- 0
This community uses essential cookies to function properly. Non-essential cookies and third-party services are used only with your consent. Read our Privacy Policy and We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue..
Question
Rio
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
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now