Tut:PHP Code:var pi = 0;
var status = 0;
function start() {
status = -1;
action(1, 0, 0);
}
function action(mode, type, selection) {
if (mode == -1) {
cm.dispose();
}
else {
if (status >= 2 && mode == 0) {
cm.dispose();
return;
}
if (mode == 1) {
status++;
}
else {
status--;
}
if (status == 0) {
cm.sendOk("Do you want " + "to " + "gamble some mesos? Press " + "yes " + "if you want to gamble.");
} else if (status == 1) {
cm.gainMeso(-31415926);
var r = Math.floor((Math.random() * 5));
if (r == 0) {
cm.sendOk("You have lost. Please retry by paying 10M mesos");
cm.dispose();
} else if (r == 1) {
cm.gainMeso(53589793);
cm.sendOk("You have " + "won 53M. Pay 10M to retry.");
cm.dispose();
} else if (r == 2) {
cm.gainMeso(238462643);
cm.sendOk("You have won the jackpot " + "of 238M mesos");
cm.dispose();
} else if (r == 3) {
cm.gainMeso(cm.getMeso());
cm.sendOk("You have loss all of" + "your mesos. Please earn some more before retrying.");
} else if (r == 4) {
cm.sendOk("Press yes if you want to gamble some more mesos.");
cm.dispose();
}
}
}
}
Copy the stuff in php tags.
Paste in notepad.
Save as 2040016.js
Put it in your scripts folder.

