I just got back to the Maple scene after school being busy... and I'm stuck on one thing at moment. well, not stuck more like I completely forget how this works..
Is what I made to resetap, but the issue is with my source is that when it resets the ap, it doesn't go back to the remaining AP , it just deletes it.
Thats my issue atm, I also am wondering how some sources have ti that when they do @str -400, it subtructs the output amount and adds back to remaining ap.
Code:
public static class resetap extends CommandExecute {
@[I][B][URL="http://forum.ragezone.com/members/2000004426.html"]Override[/URL][/B][/I]
public int execute(MapleClient c, String[] splitted) {
c.getPlayer().setStr(4);
c.getPlayer().setDex(4);
c.getPlayer().setInt(4);
c.getPlayer().setLuk(4);
c.getPlayer().updateAllStats(0, true);
return 1;
}
}
Is what I made to resetap, but the issue is with my source is that when it resets the ap, it doesn't go back to the remaining AP , it just deletes it.
Thats my issue atm, I also am wondering how some sources have ti that when they do @str -400, it subtructs the output amount and adds back to remaining ap.