Show me the method that add skill xp.Code:if(xp > 200000000) { return; }
|
Pls help!
@papa.
Doesnt work. Errors where ever i put it.
@Kastro.
Im using Emulous... It does say in the thread title...
playerAssistant.
Code:public boolean addSkillXP(int amount, int skill){ if (amount+c.playerXP[skill] < 0 || c.playerXP[skill] > 2000000000) { return false; } int oldLevel = getLevelForXP(c.playerXP[skill]); c.playerXP[skill] += amount; if (oldLevel < getLevelForXP(c.playerXP[skill])) { if(skill != 3) { //hp doesn't level c.playerLevel[skill] = getLevelForXP(c.playerXP[skill]); } else { c.playerLevel[skill] += 1; // hp only increases by one } levelUp(skill); c.gfx100(199); requestUpdates(); } setSkillLevel(skill, c.playerLevel[skill], c.playerXP[skill]); return true; }
thats my add skill xp :O
Ofcourse it wouldn't work you bloody idiot it's just a example.
You had 2b xp set in there... ???
Code:public boolean addSkillXP(int amount, int skill){ if (amount + c.playerXP[skill] < 0) { return false; } if(c.playerXP[skill] >= 200000000) { c.playerXP[skill] = 200000000; return false; } int oldLevel = getLevelForXP(c.playerXP[skill]); c.playerXP[skill] += amount; if (oldLevel < getLevelForXP(c.playerXP[skill])) { if(skill != 3) { c.playerLevel[skill] = getLevelForXP(c.playerXP[skill]); } else { c.playerLevel[skill] += 1; } levelUp(skill); c.gfx100(199); requestUpdates(); } setSkillLevel(skill, c.playerLevel[skill], c.playerXP[skill]); return true; }
lol i did that but now xp does stop at 200m+...
so if i had 1 xp off 200m xp and gain 2 xp it will take me to 200m and 1 xp and doesnt go up any more :O
« Previous Thread | Next Thread » |
Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |