קוד PHP:
/*
System release
*/
var item = Array(1002824, 1052170, 1702099, 1112102, 1062047, 1082102, 1082173, 1082146, 1002342, 1082002, 1082162, 1012028, 1012055, 1072189, 1032024, 1102067, 1082078, 1082147);
var pro = Array(5000 ,5000 ,5000 ,5000 ,3500 ,3500,3500,3500,2500,2500,2500,2500,1500,1500,1500,1500,1500,1500);
var cost = Array(2000, 2001, 2000, 2000, 2000,2000, 2000, 2000, 2000, 2000,2000, 2000, 2000, 2000, 20002000, 2000, 2000, 2000, 2000);
var text = "Hello #e#b#h ##n#k Do You Want To Change #v4001128# for Pro Items:";
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) {
for (var i = 0; i < item.length; i++)
text += "\r\n#L"+i+"##v"+item[i]+"# + "+pro[i]+" = "+cost[selection]+"";
cm.sendSimple(text);
}else if(status == 1){
if(cm.haveItem(4001128,cost[selection]))
{
cm.gainItem(4001128,-cost[selection]);
cm.makeProItem(item[selection],pro[selection]);
cm.sendOk("Enjoy, See You Later");
cm.dispose();
return;
}else{
cm.sendOk("you dont have "+cost[selection]+" #v4001128# To Buy #v"+item[selection]+"#");
cm.dispose();
}
}
}
}
הוא רושם לכולם שה COST שלהם הם 2000