קח, גירסא אחרת ומתוקנת.
קוד:
/*
* By SapiRxD
*/
var status = 0;
function start() {
status = -1;
action(1, 0, 0);
}
function action(mode, type, selection) {
if (mode == -1) {
cm.dispose();
} else {
if (status == 1 && mode == 0 ) {
cm.dispose();
return;
}
if (mode == 1)
status++;
else
status--;
if (status == 0) {
cm.sendSimple("Hey, #h #. I am Jano,I need help get for me 300 old neck bone #i400273#.#b\r\n#L0#I Have 300 of old neck bone.#l");
}
else if (status == 1){
if (cm.haveItem(4001017, 300)){
cm.gainItem(4001017, -300);
cm.gainItem(400273);
cm.gainExp(99999);
cm.dispose();
}
else{
cm.sendOk("Either you don't have the items, or there is an event error.");
cm.dispose();
}
}
}
}