this is why i dont publicly contribute to rz
Printable View
this is why i dont publicly contribute to rz
oh nooooos u added anti-leech f4
Leachers are fine as long as they give credits. Why would I presonally care about your learning rofl
@thisiakevin
are you gonna replace the script or not
oh yeah.... let me test ur script first :X
forgot to do it
erm... ur script doesnt work >_<
Checking ur script...
Oh well :/
what doesnt work? I didnt remake it i added a check like you asked
yep this works just tried it
Sorry.. how stupid of me i added the wrong scrpit to the section i told u i fixed. It was the original rofl
I replaced it with the original
Code:/*
Base Script by Luke(Roamer in RaGEZONE) and GanstaX(StraightX in RaGEZONE) in CookieMS
Gambling NPC by MeGoesRawr of SpinMs
Please leave credits! If not.... You are a crazy mofo leecher and deserve to die!
*/
// creditz to fusion for fixing the above failed slightly
importPackage(net.sf.odinms.client);
var status = 0;
var fee;
var chance = Math.floor(Math.random()*4+1);
function start() {
status = -1;
action(1, 0, 0);
}
function action(mode, type, selection) {
if (mode == -1) {
cm.dispose();
} else {
if (mode == 0) {
cm.sendOk("Okay... See ya later...");
cm.dispose();
return;
}
if (mode == 1)
status++;
else
status--;
if (status == 0) {
cm.sendYesNo("Hello #h #! I am the Gambler NPC of #bENTER SERVER NAME HERE#k! Press Yes İf you would like to gamble mesos and try your chance to win x2 in return ");
} else if (status == 1) {
cm.sendGetText("How much money would you like to gamble? Please Type İt İn !");
} else if (status == 2) {
fee = cm.getText();
cm.sendYesNo("Are you sure you want to gamble #r" + fee + "#k mesos?");
} else if (cm.getMeso() < fee) {
cm.sendOk("You don't have enough mesos! ");
cm.dispose();
} else if (cm.GetText() >= 1050000000) {
cm.sendOk("Stupid noob, wtfux i tell you about betting 1.05bill mesos? You just dont fucking listen do you");
cm.dispose();
} else if (cm.getMeso() >= 1050000000) {
cm.sendOk("Just letting you know you got over 1.05bill mesos. Please remember not to try bet over that.");
} else if (cm.getText() < 0) {
cm.sendOk("You can't gamble less than 0 mesos... ");
cm.dispose();
} else {
if (chance <= 1) {
cm.gainMeso(-fee);
cm.sendNext("Tough luck... Maybe next time you will win! ");
cm.dispose();
}
else if (chance == 2) {
cm.gainMeso(-fee);
cm.sendNext("Tough luck... Maybe next time you will win! ");
cm.dispose();
}
else if (chance == 3) {
cm.gainMeso(-fee);
cm.sendNext("Tough luck... Maybe next time you will win! ");
cm.dispose();
}
else if (chance >= 4) {
cm.gainMeso(fee * 2);
cm.sendNext("#rCONGRATUMAGALATIONS#k! You have won! You Will now recieve x2 the mesos you first bet ");
cm.dispose();
}
}
}
}
}
What is the % of winning?
What does it look like?
4 chances :/
do ijust make it a SQl file from notepad and execute?
Gtfo noob.
what do i do with the code please help
omfg.
why did u revive this old thread.
seriously u should post this in the help section or gtfo
He means stop bumping old threads
whos the npc who does this?
o.o
Are you RETARD? save it as any npc of your choice
god of course