- Joined
- Nov 14, 2008
- Messages
- 142
- Reaction score
- 59
Been released about 50 times already.
Code:cm.sendOk("You have loss all of" + "your mesos. Please earn some more before retrying.");
Should be...
Code:cm.sendOk("You have lost all of" + "your mesos. Please earn some more before retrying.");
If you're going to try to be a show off, atleast get your grammar and spelling right. Maybe reviewing your scripts before releasing them pointlessly would help.
You forgot to point out all the other pointless things in this release. It wasn't released for show off purposes. It was released for fun, and the reason for the mistakes/pointless code is to add subtle references to pi. All the string + string usages are all useless, and many more. If you want a real script:
Quite honestly this NPC fails, as pointed out above my myself since there are many errors put in on purpose.
cm.sendOk("gamble?"); should be sendYesNo, the gainMeso(cm.getMeso()) should be negative, and a lot more problems are there.
PHP:
function start() {
cm.sendYesNo("Do you want to gamble some mesos? Press yes if you want to gamble.");
}
function action(mode, type, selection) {
cm.gainMeso(-31415926);
var r = (Math.random() * 4) | 0;
if (r == 0) {
cm.sendOk("You have lost. Please retry by paying 10M mesos.");
} else if (r == 1) {
cm.gainMeso(53589793);
cm.sendOk("You have won 53M. Pay 10M to retry.");
} else if (r == 2) {
cm.gainMeso(238462643);
cm.sendOk("You have won the jackpot of 238M mesos");
} else {
cm.gainMeso(-cm.getMeso());
cm.sendOk("You have loss all of your mesos. Please earn some more before retrying.");
}
cm.dispose();
}
You should also look at your NPCs, totally pointless and released over and over.
Last edited:

