אוקיי ראיתי ילדים שביקשו SUPER REBIRTH NPC
אז החלטתי לפרסם
הסקריפט :
קוד PHP:
var status = 0;
var wui = 0;
var stat = 32767;
var reqstat = 131068;
function start() {
status = -1;
action(1, 0, 0);
}
function action(mode, type, selection) {
if (mode == -1) {
cm.dispose();
} else {
if (status >= 0 && mode == 0) {
cm.dispose();
return;
}
if (mode == 1)
status++;
else
status--;
if (status == 0) {
cm.sendSimple ("#eHi #b#h ##k, Would you like to make a #rSuper Rebirth#k?\r\n\r\nYou'll need " + reqstat + " stats in total.\r\nmeans acoually 32767 in every status.\r\nAfter Super rebirth, It will make all your stats rested to 4 and it'll give you a ring with " + stat + " #rStrength#k, " + stat + " #gDextirity#k, " + stat + " #bIntelligence#k, " + stat + " #dLuck#k .\r\nDo you like to do this?\r\n#L0#Yea, sure why not.\r\n#L1#No, thanks anyways.");
} else if (status == 1) {
if (selection == 0) {
var statup = new java.util.ArrayList();
var p = cm.c.getPlayer();
var totAp = p.getRemainingAp() + p.getStr() + p.getDex() + p.getInt() + p.getLuk();
if (totAp >= 131068) { /* Make this how much you want to, Make it 1 less than the reqstat */
p.setStr(4);
p.setDex(4);
p.setInt(4);
p.setRemainingAp (0);
p.setLuk(4);
statup.add (new net.sf.odinms.tools.Pair(net.sf.odinms.client.MapleStat.STR, java.lang.Integer.valueOf(4)));
statup.add (new net.sf.odinms.tools.Pair(net.sf.odinms.client.MapleStat.DEX, java.lang.Integer.valueOf(4)));
statup.add (new net.sf.odinms.tools.Pair(net.sf.odinms.client.MapleStat.LUK, java.lang.Integer.valueOf(4)));
statup.add (new net.sf.odinms.tools.Pair(net.sf.odinms.client.MapleStat.INT, java.lang.Integer.valueOf(4)));
statup.add (new net.sf.odinms.tools.Pair(net.sf.odinms.client.MapleStat.AVAILABLEAP, java.lang.Integer.valueOf(p.getRemainingAp())));
p.getClient().getSession().write (net.sf.odinms.tools.MaplePacketCreator.updatePlayerStats(statup));
cm.gainItem(1112000,1);
cm.sendOk ("You have super rebirthed! nice job!\r\nHere is your " + stat + " stats item!");
cm.dispose();
} else {
cm.sendOk ("#eYou don't have enough stats.\r\nYou currently have #d" + totAp + "#k in total.\r\nYou need #d" + reqstat + "#k in total!");
cm.dispose();
}
} else if (selection == 1) {
cm.sendOk("#eAlright see you next time.");
cm.dispose();
}
}
}
}
בהצלחה!
בברכה,
אוריאל