
Originally Posted by
Calvin Yang
Didn't work, I still get the 131072 ap when I logout and do a refresh in the Mysql
Here's my
public void resetAPSP() {
PHP Code:
public void resetAPSP() {
resetSP(0);
gainAp((short) -this.remainingAp);
}
Why reset your AP and remove it while you can try setting your AP to 4,4,4,4. Instead of resetting the stats, make a function to set your whole STR,DEX,INT,LUK.
Based on ExiledDEV v117 MapleCharacter.java, assuming that it's Lithium-Based.
ADD INTO MAPLECHARACTER.JAVA
PHP Code:
public final void setAllStats(int amount) {
this.str = amount;
this.dex = amount;
this.int_ = amount;
this.luk = amount;
stats.recalcLocalStats(this);
}
NPC SCRIPT:
PHP Code:
var status = 0;
var selected = 1;
var wui = 0;
function start() {
status = -1;
action(1, 0, 0);
}
function action(mode, type, selection) {
selected = selection;
if (mode == -1) {
cm.dispose();
} else {
if (mode == 0 && status == 0) {
cm.dispose();
return;
}
if (mode == 1)
status++;
else
status--;
if (status == 0) {
cm.sendAcceptDecline("Hey, I am the Max Stat Item NPC!#k\r\n#rPlease have these Requirements to Make a Max Stat Item: \r\n
\r\n#b30,000 in STR,DEX,INT,LUK\r\n\r\n#b1,000 Maple Leafs\r\n\r\n#b10 Vote Points#l");
} else if (status == 1) {
if (cm.getPlayer().getStat().getStr() > 29999 && cm.getPlayer().getStat().getDex() > 29999 && cm.getPlayer().getStat
().getInt() > 29999 && cm.getPlayer().getStat().getLuk() > 29999 && cm.getPlayer().getVPoints() >= 10 && cm.haveItem
(4001126, 1000)){
var String = "Please Choose your desired item or nx you want as your new MSI. Please check your Inventory to make sure you
have enough room because, we don't give back refunds. Enjoy!\r\n\r\n";
cm.sendSimple(String+cm.EquipList(cm.getC())); //isn't it cm.getPlayer().getClient() ? O.O
} else {
cm.sendOk ("You do not have the requirements.");
cm.dispose();
}
} else if (status == 2) {
cm.MakeGMItem(selected, cm.getPlayer());
cm.gainItem(4001126, -1000);
cm.getPlayer().setVPoints(cm.getPlayer().getVPoints() - 10);
cm.getPlayer().setAllStats(4); // set all your stats to 4 without giving any AP to remainingAP.
cm.getPlayer().resetSP(0);
cm.reloadChar();
cm.dispose(); //I always put this on the bottom..
}
}
}