Nice and simple.
|
If you have a integer called "totalz" then replace it with these few lines instead of manualy adding them all together.
This should be placed in process.
also add the folowing var in Player.javaCode:for(int stat = 0; stat < 21; stat++){ totalLevel = (getLevelForXP(playerXP[stat]); } int oldTotalLevel = totalLevel; if (oldTotalLevel != totalLevel) { sendFrame126("Total Lvl: " + totalLevel, 3984); }
- Ian...Code:public int totalLevel = 0;
EDIT: tbh i dont even think it will work lmao... fix it someone
ok explaining
for the stats is lower than 21 the stat will do +1Code:for(int stat = 0; stat < 21; stat++){
Nice Job, never even thought of something like this.
You did make 1 mistake, it sets oldTotalLevel after changing the new one - Heres the fix:
That makes the last part work.Code:int oldTotalLevel = totalLevel; for(int stat = 0; stat < 21; stat++){ totalLevel = (getLevelForXP(playerXP[stat]); } if (oldTotalLevel != totalLevel) { sendFrame126("Total Lvl: " + totalLevel, 3984); }
Anyways. Good Job. :woot:
-Unborn
« Previous Thread | Next Thread » |
Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |