
נכתב במקור על ידי
Symphony
קוד PHP:
var status = 0;
function start() {
status = -1;
action(1, 0, 0);
}
function action(mode, type, selection) {
if (mode == -1) {
cm.dispose();
} else {
if (mode == 0) {
cm.dispose();
return;
}
if (mode == 1)
status++;
else
status--;
if (status == 0) {
cm.sendNext("#e hello #r#h ##k i am NPC that reset all your stat and give you 1 item with proitem +32767 that you want");
} else if (status == 1) {
cm.sendYesNo("#eif you got max in all stat and you want item + proitem click on YES if not click NO");
} else if (status == 2) {
cm.sendGetNumber("How many stats would you like to add?", 1, 1, 32767);
} else if (status == 3) {
if (cm.getPlayer().getStr() == 32767 && cm.getPlayer().getInt() == 32767 && cm.getPlayer().getLuk() == 32767 && cm.getPlayer().getDex() == 32767) {
cm.makeProItem(8702251, selection);
cm.getPlayer().setStr(4);
cm.getPlayer().setDex(4);
cm.getPlayer().setInt(4);
cm.getPlayer().setLuk(4);
cm.sendOk("#rEnjoy your item");
} else {
cm.sendOk("#byou dont have max in your stat");
}
cm.dispose();
}
}
}
היו לך כל כך הרבה טעויות...
טעות שלי
התכוונתי ש
cm.sendGetNumber יתן את ה ID של הנשק
לא רשמתי את זה נכון
עשיתי עריכה למה שרשמתי
הינה עוד פעם אבל מתוקן
קוד PHP:
/*
by asafgb
*/
var status = 0;
function start() {
status = -1;
action(1, 0, 0);
}
function action(mode, type, selection) {
if (mode == -1) {
cm.dispose();
} else {
if (mode == 0) {
cm.dispose();
return;
}
if (mode == 1)
status++;
else
status--;
if (status == 0) {
cm.sendNext("#e hello #r#h ##k i am NPC that reset all your stat and give you 1 item with proitem +32767 that you want");
} else if (status == 1) {
cm.sendYesNo("#eif you got max in all stat and you want item + proitem click on YES if not click NOT");
} else if (status == 2) {
id=id;
cm.sendGetNumber("put your weapon id here>>?", 1, 1, 8702251);
} else if (status == 3) {
if (((cm.getPlayer().getStr() == 32767)&&((cm.getPlayer().getInt() == 32767)&&((cm.getPlayer().getLuk() == 32767)&&((cm.getPlayer().getDex() == 32767));
cm.makeProItem(id, 32767);
cm.player.setStr(4);
cm.player.setDex(4);
cm.player.setInt(4);
cm.player.setLuk(4);
cm.sendOk("#r Enjoy your item");
} else {
cm.sendOk("#b you dont have max in your stat");
}
}
}
הכוונה הייתה כשהוא נותן את ה מספר זה יהיה ה ID של הנשק ואז הוא יקבל את הנשק+ 32767
עריכה
הינה הקוד החדש
הוא עדיין לא עובד
תוכל לעזור לי לתקן אותו
השתמשתי בקוד שלך
תראה
קוד PHP:
var status = 0;
function start() {
status = -1;
action(1, 0, 0);
}
function action(mode, type, selection) {
if (mode == -1) {
cm.dispose();
} else {
if (mode == 0) {
cm.dispose();
return;
}
if (mode == 1)
status++;
else
status--;
if (status == 0) {
cm.sendNext("#e hello #r#h ##k i am NPC that reset all your stat and give you 1 item with proitem +32767 that you want");
} else if (status == 1) {
cm.sendYesNo("#eif you got max in all stat and you want item + proitem click on YES if not click NO");
} else if (status == 2) {
cm.sendGetNumber("put your weapon id here>>", 1, 1, 9992251);
} else if (status == 3) {
if (cm.getPlayer().getStr() == 32767 && cm.getPlayer().getInt() == 32767 && cm.getPlayer().getLuk() == 32767 && cm.getPlayer().getDex() == 32767) {
cm.makeProItem(id, 32767);
cm.getPlayer().setStr(4);
cm.getPlayer().setDex(4);
cm.getPlayer().setInt(4);
cm.getPlayer().setLuk(4);
cm.sendOk("#rEnjoy your item");
} else {
cm.sendOk("#byou dont have max in your stat");
}
cm.dispose();
}
}
}