Jump to content
  • 0

PvP Skill reward question - help


Question

Posted

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?

1 answer to this question

Recommended Posts

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...