Thank you !!! ^
It worked ! I am so relieved, I have another problem though if you can help.
My :ure and ::zerkpure command are giving triple the xp that I have put in the amount.
I do not know why... here's the code
Code:
if (playerCommand.startsWith("pure") && c.pure == 0) {
if (c.inWild())
return;
if (c.duelStatus == 5)
return;
int i = 0;
c.getPA().addSkillXP((1212421), 0);
c.getPA().addSkillXP((15000000), 2);
c.getPA().addSkillXP((15000000), 3);
c.getPA().addSkillXP((15000000), 4);
c.getPA().addSkillXP((123660), 5);
c.getPA().addSkillXP((15000000), 6);
c.playerXP[1] = c.getPA().getXPForLevel(99)+5;
c.playerLevel[1] = c.getPA().getLevelForXP(c.playerXP[1]);
c.getPA().refreshSkill(1);
c.pure = 1;
c.SaveGame();
c.sendMessage("You are now a pure. If you are trying to downgrade,");
c.sendMessage("Please type in ::resetall to reset all stats, then try again.");
}
if (playerCommand.startsWith("zerkpure") && c.zerkpure == 0) {
if (c.inWild())
return;
if (c.duelStatus == 5)
return;
int i = 0;
c.getPA().addSkillXP((15000000), 0);
c.getPA().addSkillXP((61512), 1);
c.getPA().addSkillXP((15000000), 2);
c.getPA().addSkillXP((15000000), 3);
c.getPA().addSkillXP((15000000), 4);
c.getPA().addSkillXP((15000000), 5);
c.getPA().addSkillXP((15000000), 6);
c.playerXP[1] = c.getPA().getXPForLevel(99)+5;
c.playerLevel[1] = c.getPA().getLevelForXP(c.playerXP[1]);
c.getPA().refreshSkill(1);
c.zerkpure = 1;
c.SaveGame();
c.sendMessage("You are now a zerker pure. If you are trying to downgrade,");
c.sendMessage("Please type in ::resetall to reset all stats, then try again.");
}