How can I make my server reset my AP, once a player reached level 10?
This is because else a player would have like 50 strength when he becomes a mage.
I'm using MoopleDev rev 116
Every help is appreciated!
How can I make my server reset my AP, once a player reached level 10?
This is because else a player would have like 50 strength when he becomes a mage.
I'm using MoopleDev rev 116
Every help is appreciated!
Inside the levelUp method add this:
PHP Code:if (level == 10) {
int ap = getStr() + getDex() + getInt() + getLuk() - 16;
setStr(4);
setDex(4);
setInt(4);
setLuk(4);
setRemainingAp(ap);
// I have no idea if you have to use updateSingleStat, haven't fooled around with Moople for a while, if it doesn't update, try using them.
}