-
[Mini-Release] Re-edit of Rock, Paper, Scissors Admin
Revision 2:
I added player messages to the previous npc so that if you lose or win a match, the Rock, Paper, Scissors Admin will give a funny comment. (shows to the player only) The npc will also give 15k mesos to you if you win and the opposite when you lose.
Original Rock, Paper, Scissors Admin npc:
http://forum.ragezone.com/f427/rock-...in-npc-557870/
Made by watzmename and edited by blitzbleed12:
Code:
/*************************
Made by LuckeeAzn (watzmename of ragezone)
and edited by blitzbleed12 of ragezone (www.fyrestory.tk)
Rock Paper Scissors
02/08/09
*************************/
var compchoice;
var playerchoice;
var Frock = "#fUI/UIWindow.img/RpsGame/Frock#";
var Fpaper = "#fUI/UIWindow.img/RpsGame/Fpaper#";
var Fscissor = "#fUI/UIWindow.img/RpsGame/Fscissor#";
var rock = "#fUI/UIWindow.img/RpsGame/rock#";
var paper = "#fUI/UIWindow.img/RpsGame/paper#";
var scissor = "#fUI/UIWindow.img/RpsGame/scissor#";
var win = "#fUI/UIWindow.img/RpsGame/win#";
var lose = "#fUI/UIWindow.img/RpsGame/lose#";
var draw = "#fUI/UIWindow.img/RpsGame/draw#";
var spacing = " ";
var beta = "#fUI/UIWindow.img/BetaEdition/BetaEdition#\r\n";
var winmatch = false;
var losematch = false
var drawmatch = false;
function start() {
status = -1;
action(1, 0, 0);
}
function action(mode, type, selection) {
if (mode == -1) {
cm.dispose();
} else {
if (status == 0 && mode == 0) {
cm.dispose();
return;
} else if (status == 1 && mode == 0) {
cm.sendOk("Why of course, your too chicken to face me in Rock, Paper, Scissors match!");
cm.dispose();
return;
}
if (mode == 1) {
status++;
} else {
status--;
}
if (status == 0) {
cm.sendNext(beta + "I am the master of Rock, Paper, Scissors..."); //do not remove
} else if (status == 1) {
cm.sendAcceptDecline("Would you like to challenge me to a game of Rock, Paper Scissors?\r\n\r\nMade by watzmename & blitzbleed12 of ragezone");
} else if (status == 2) {
cm.sendSimple("Choose one...\r\n"
+ "#L0##fUI/UIWindow.img/RpsGame/Frock##l"
+ "#L1##fUI/UIWindow.img/RpsGame/Fpaper##l"
+ "#L2##fUI/UIWindow.img/RpsGame/Fscissor##l"
);
} else if (status == 3) {
if (selection == 0) {
playerchoice = "rock";
} else if (selection == 1) {
playerchoice = "paper";
} else if (selection == 2) {
playerchoice = "scissor";
}
var random = Math.floor(Math.random()*4);
if (random <= 1) {
compchoice = "rock";
} else if (random <= 2) {
compchoice = "paper";
} else if (random <= 4) {
compchoice = "scissor";
}
cm.sendNext("And the results are...");
} else if (status == 4) {
if (playerchoice == "rock" && compchoice == "rock") {
cm.sendOk(Frock + spacing + rock + draw);
drawmatch = true;
} else if (playerchoice == "rock" && compchoice == "paper") {
cm.sendOk(Frock + spacing + paper + lose);
losematch = true;
cm.gainMeso(-15000);
cm.playerMessage("Haha you lost to me. Eat my cornhole >:(");
} else if (playerchoice == "rock" && compchoice == "scissor") {
cm.sendOk(Frock + spacing + scissor + win);
winmatch = true;
cm.gainMeso(15000);
cm.playerMessage("So what if you won me this time. I demand a rematch, noob!");
} else if (playerchoice == "paper" && compchoice == "rock") {
cm.sendOk(Fpaper + spacing + rock + win);
winmatch = true;
cm.gainMeso(15000);
cm.playerMessage("Lol, you won because i was just getting warmed up. Again?");
} else if (playerchoice == "paper" && compchoice == "paper") {
cm.sendOk(Fpaper + spacing + paper + draw);
drawmatch = true;
} else if (playerchoice == "paper" && compchoice == "scissor") {
cm.sendOk(Fpaper + spacing + scissor + lose);
losematch = true;
cm.gainMeso(-15000);
cm.playerMessage("Haha you lost to me. Go and get some cake you loser.");
} else if (playerchoice == "scissor" && compchoice == "rock") {
cm.sendOk(Fscissor + spacing + rock + lose);
losematch = true;
cm.gainMeso(-15000);
cm.playerMessage("Rofl, You suck at hand games. Nobody will like your hand-jobs, retard.");
} else if (playerchoice == "scissor" && compchoice == "paper") {
cm.sendOk(Fscissor + spacing + paper + win);
winmatch = true;
cm.gainMeso(15000);
cm.playerMessage("OMG, you cheated! Fucking noob! Next time don't be a cheater!");
} else if (playerchoice == "scissor" && compchoice == "scissor") {
cm.sendOk(Fscissor + spacing + scissor + draw);
drawmatch = true;
} else {
cm.sendOk("Error");
}
} else if (status == 5) {
cm.dispose();
}
}
}
The script is easy to edit and credits are given to watzmename and me (partially).
This is my first release to ragezone and i hope i won't get any bad remarks.
-
Re: [Mini-Release] Re-edit of Rock, Paper, Scissors Admin
-
Re: [Mini-Release] Re-edit of Rock, Paper, Scissors Admin
No problem. I didn't edited anything much anyway. Most of the credits are to watzmename.
This is my first release for ragezone.
I might release player hangouts soon..
The one on my server. It is really simple.
-
Re: [Mini-Release] Re-edit of Rock, Paper, Scissors Admin
Quote:
Originally Posted by
blitzbleed12
No problem. I didn't edited anything much anyway. Most of the credits are to watzmename.
This is my first release for ragezone.
I might release player hangouts soon..
The one on my server.
I lol'd...
Theres not much you can add to it.
-
Re: [Mini-Release] Re-edit of Rock, Paper, Scissors Admin
maby you can add
if some one lose
then he lost 1.5k mesos
and the npc keeps it untill some one wins
and when you lose you lost 1.5k and the npc got it and iff some one wins he got 3k do you know what i mean?
-
Re: [Mini-Release] Re-edit of Rock, Paper, Scissors Admin
Editting is a nice start if you just began to work on NPCs. That's how I started. At least you gave proper credits.
Kinda scary how...
PHP Code:
cm.playerMessage("OMG, you cheated! Fucking noob! Next time don't be a cheater!");
RPS chick cussing. Awesome.
-
Re: [Mini-Release] Re-edit of Rock, Paper, Scissors Admin
I agree a good first release or should I refer to it by 'Mini-Release'?
-
Re: [Mini-Release] Re-edit of Rock, Paper, Scissors Admin
LooL
cm.playerMessage("Rofl, You suck at hand games. Nobody will like your hand-jobs, retard.");
-
Re: [Mini-Release] Re-edit of Rock, Paper, Scissors Admin
Welcome to ragezone releases section!
yep, ts is indeed a cool guy.
-
Re: [Mini-Release] Re-edit of Rock, Paper, Scissors Admin
-
Re: [Mini-Release] Re-edit of Rock, Paper, Scissors Admin
glad you guys like my 1st release.
:)
-
Re: [Mini-Release] Re-edit of Rock, Paper, Scissors Admin
Oh great. You should of left it, and let the noobs find out themself.
-
Re: [Mini-Release] Re-edit of Rock, Paper, Scissors Admin
oh great, when will you stop spamming?
-
Re: [Mini-Release] Re-edit of Rock, Paper, Scissors Admin
Thanks
im gonna use this :)
-
Re: [Mini-Release] Re-edit of Rock, Paper, Scissors Admin
-
Re: [Mini-Release] Re-edit of Rock, Paper, Scissors Admin
Wow awesome release gonna use it ;)
-
Re: [Mini-Release] Re-edit of Rock, Paper, Scissors Admin
Quote:
Originally Posted by
mertjuh
Wow awesome release gonna use it ;)
Thanks! This is my first release though.. I'm glad you like it so much.
-
Re: [Mini-Release] Re-edit of Rock, Paper, Scissors Admin
what map is that?
NEVER seen it before? (the 1 in the pic)
?
how u get there?
what's the map's ID?
ty
-
Re: [Mini-Release] Re-edit of Rock, Paper, Scissors Admin
Quote:
Originally Posted by
moshik12
what map is that?
NEVER seen it before? (the 1 in the pic)
?
how u get there?
what's the map's ID?
ty
Lol, that's my player hangouts.
-
Re: [Mini-Release] Re-edit of Rock, Paper, Scissors Admin
-
Re: [Mini-Release] Re-edit of Rock, Paper, Scissors Admin
-
Re: [Mini-Release] Re-edit of Rock, Paper, Scissors Admin
lol how many people are using it?
-
Re: [Mini-Release] Re-edit of Rock, Paper, Scissors Admin
-
Re: [Mini-Release] Re-edit of Rock, Paper, Scissors Admin
P.S This is an excuse to advertise his server.
-
Re: [Mini-Release] Re-edit of Rock, Paper, Scissors Admin
glitch: keep doing paper. you'll win about 90% of the time.
great release though =]