addskillxp()
just make it check what skill or skills then load it from config.
|
Well here is the code anyone knows how i make it so that it loads the CONFIG.MODMELEE_EXP_RATECode:if (c.fightMode == 3) { c.getPA().addSkillXP((damage * Config.MELEE_EXP_RATE / 3), 0); c.getPA().addSkillXP((damage * Config.MELEE_EXP_RATE / 3), 1); c.getPA().addSkillXP((damage * Config.MELEE_EXP_RATE / 3), 2); c.getPA().addSkillXP((damage * Config.MELEE_EXP_RATE / 3), 3); c.getPA().refreshSkill(0); c.getPA().refreshSkill(1); c.getPA().refreshSkill(2); c.getPA().refreshSkill(3); } else { c.getPA().addSkillXP((damage * Config.MELEE_EXP_RATE), c.fightMode); c.getPA().addSkillXP((damage * Config.MELEE_EXP_RATE / 3), 3); c.getPA().refreshSkill(c.fightMode); c.getPA().refreshSkill(3); }
addskillxp()
just make it check what skill or skills then load it from config.
There is probably a lot better way to do it, but it seems that not many like to help, so I offer my knowledge:
I hoped this helped.Code:int expRate = 0; //This is a local variable if(c.playerRights >= 1) //Checks to see if player is mod or greater expRate = Config.MODMELEE_EXP_RATE; else //If not, then they get the normal rate expRate = Config.MELEE_EXP_RATE; ... c.getPA().addSkillXP((damage * expRate / 3), 1); ...
Holy shit.... really?
Oh nice! thanks ;D
« Previous Thread | Next Thread » |
Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |