הפקודות האלה הם כמו הפקודות @str\dex\int\luk אבל משופרות.
הפקודה פשוט לוקחת את כל ה AP ומעלה במקום שצריך.
קרדיט לי.קוד PHP:} else if (splitted[0].equals("@strall")) {
if (player.getRemainingAp() + player.getStr() < 32768) {
player.setStr(player.getStr() + player.getRemainingAp());
player.setRemainingAp(0);
player.updateSingleStat(MapleStat.STR, player.getStr());
player.updateSingleStat(MapleStat.AVAILABLEAP, player.getRemainingAp());
player.dropMessage("You have added " + player.getRemainingAp() + " to your STR. Now , your STR is " + player.getStr() + ".");
} else {
player.dropMessage("Please make sure your AP is not over 32767.");
}
} else if (splitted[0].equals("@dexall")) {
if (player.getRemainingAp() + player.getDex() < 32768) {
player.setDex(player.getDex() + player.getRemainingAp());
player.setRemainingAp(0);
player.updateSingleStat(MapleStat.DEX, player.getDex());
player.updateSingleStat(MapleStat.AVAILABLEAP, player.getRemainingAp());
player.dropMessage("You have added " + player.getRemainingAp() + " to your DEX. Now , your DEX is " + player.getDex() + ".");
} else {
player.dropMessage("Please make sure your AP is not over 32767.");
}
} else if (splitted[0].equals("@intall")) {
if (player.getRemainingAp() + player.getInt() < 32768) {
player.setInt(player.getInt() + player.getRemainingAp());
player.setRemainingAp(0);
player.updateSingleStat(MapleStat.INT, player.getInt());
player.updateSingleStat(MapleStat.AVAILABLEAP, player.getRemainingAp());
player.dropMessage("You have added " + player.getRemainingAp() + " to your INT. Now , your INT is " + player.getInt() + ".");
} else {
player.dropMessage("Please make sure your AP is not over 32767.");
}
} else if (splitted[0].equals("@lukall")) {
if (player.getRemainingAp() + player.getLuk() < 32768) {
player.setLuk(player.getLuk() + player.getRemainingAp());
player.setRemainingAp(0);
player.updateSingleStat(MapleStat.LUK, player.getLuk());
player.updateSingleStat(MapleStat.AVAILABLEAP, player.getRemainingAp());
player.dropMessage("You have added " + player.getRemainingAp() + " to your LUK. Now , your LUK is " + player.getLuk() + ".");
} else {
player.dropMessage("Please make sure your AP is not over 32767.");
}
![]()




ציטוט ההודעה

ספוילר: 