10k mesos is peanuts !
Should make it higher xD
Printable View
10k mesos is peanuts !
Should make it higher xD
The funny npc :D :laugh:
you missed two brackets at the end. And remove that dispose at top.
This is my version =]Code:n gy/*
Scammer NPC
By TofuBob @ chunkytofubobms.co.cc
*/
function start() {
cm.sendSimple ("Hey! Want a godly player pack?\r\n#r#L0##eGM Player Pack - 1,000,000,000 Mesos#n#l\r\n#k#L1##eSuperGM Player Pack - 2,000,000,000 Mesos#n#l#k")
}
function action(mode, type, selection) {
cm.dispose();
switch(selection){
case 0:
if(cm.getMeso() >= 1000000000){
cm.sendOk("Ha! I have just robbed you of your money!#k");
cm.gainMeso(-1000000000);
cm.dispose();
}else{
cm.sendOk("Hmm...Are you sure you have enough mesos?");
cm.dispose();
}
break;
case 1:
if(cm.getMeso() >= 2000000000) {
cm.sendOk("Ha! I have just robbed you of your money!#k");
cm.gainMeso(-2000000000);
cm.dispose();
}
Lol not bad i guess. but 50k is piddly change in my server xD
you version also will not works "Rich" (you're rich right?)
english please.
Zomg I lost 50K mesos wth am I gonna do! =]
lol funni cunt
MY NAME's NOT RICH!!!!!!!!!!!!!!
But why would i have to remove the brackets?
it works...
Maple1134 version better
Can you use switch in Java script?
Because if so, I hate my teacher.
We programmed today some script as for practice and I asked if can I use switch in stead of an array and he said that switch wouldn't work.