Jump to content
  • 0

PvP Skill reward question - help


Rio

Question

Here is elfocrash's code:

PcInstance.java:

public void PvPSkillRewardSystem()
            {
	if (getPvpKills() >= Config.COUNT_PVP_1ST)
	{	
		addSkill(SkillTable.getInstance().getInfo(Config.1ST_PVP_SKILL, Config.1ST_PVP_SKILL_LVL));
		sendMessage("You got a skill! your skill is " + Config.1ST_PVP_SKILL + " level" + Config.1ST_PVP_SKILL_LVL");		    
	}
	else if (getPvpKills() >= Config.COUNT_PVP_2ND)
	{	
		addSkill(SkillTable.getInstance().getInfo(Config.2ND_PVP_SKILL, Config.2ND_PVP_SKILL_LVL));
		sendMessage("You got a skill! your skill is " + Config.2ND_PVP_SKILL + " level" + Config.2ND_PVP_SKILL_LVL");		    
	}
	else if (getPvpKills() >= Config.COUNT_PVP_3RD)
	{	
		addSkill(SkillTable.getInstance().getInfo(Config.3RD_PVP_SKILL, Config.3RD_PVP_SKILL_LVL));
		sendMessage("You got a skill! your skill is " + Config.3RD_PVP_SKILL + " level" + Config.3RD_PVP_SKILL_LVL");		    
	}
	else if (getPvpKills() >= Config.COUNT_PVP_4TH)
	{	
		addSkill(SkillTable.getInstance().getInfo(Config.4TH_PVP_SKILL, Config.4TH_PVP_SKILL_LVL));
		sendMessage("You got a skill! your skill is " + Config.4TH_PVP_SKILL + " level" + Config.4TH_PVP_SKILL_LVL");		    
	}
	else if (getPvpKills() >= Config.COUNT_PVP_5TH)
	{	
		addSkill(SkillTable.getInstance().getInfo(Config.5TH_PVP_SKILL, Config.5TH_PVP_SKILL_LVL));
		sendMessage("You got a skill! your skill is " + Config.5TH_PVP_SKILL + " level" + Config.5TH_PVP_SKILL_LVL");		    
	}
}


EnterWorld.java:
if(Config.PVP_SKILL_REWARD_ENABLED)
	{
	    activeChar.PvPSkillRewardSystem();
	}

how can i add some skills to an warrior  and different to a mage?

Link to comment
Share on other sites

1 answer to this question

Recommended Posts

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now


×
×
  • Create New...