Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   Events and Activities (https://forums.graalonline.com/forums/forumdisplay.php?f=18)
-   -   Make a money betting event! (https://forums.graalonline.com/forums/showthread.php?t=22468)

Zfan 01-29-2002 10:47 PM

Make a money betting event!
 
hey u guys its me, Zfan.
on graal2001 it is very hard to make moneyz.
so if u can ET could u make some kind of gralat money gambling
game?
:)

Sparkplug 01-29-2002 11:32 PM

yea that would be cool :D

Faheria_GP2 01-30-2002 06:33 AM

1 Attachment(s)
I made a gambling game for sidra, but sidra is dead so here it is, go use it on your crappy delteria **** or whatever :o

NPC Code:

// NPC made by Supersonic
if (playertouchsme && playerdir=0 && this.mode=0) {
this.mode=1;
if (playerrupees>=200) {
setani idle,;
while (!keydown(5)) {
freezeplayer .05;
message This game requires 200g, press S to continue or A to cancel;
if (keydown(6)) break;
sleep .05;
}
if (keydown(5)) setplayerprop #c,;
if (!keydown(6)) {
playerrupees-=200;
message;
this.7={0,0,0};
setbackpal dusk8.png;
while (!keydown(4)) {
this.1=int(random(0,7));
this.2=int(random(0,7));
this.3=int(random(0,7));
updateimg();
freezeplayer .05;
sleep .05;
}
while (keydown(4)) {
this.2=int(random(0,7));
this.3=int(random(0,7));
updateimg();
freezeplayer .05;
sleep .05;
}
while (!keydown(4)) {
this.2=int(random(0,7));
this.3=int(random(0,7));
updateimg();
freezeplayer .05;
sleep .05;
}
while (keydown(4)) {
this.3=int(random(0,7));
updateimg();
freezeplayer .05;
sleep .05;
}
while (!keydown(4)) {
this.3=int(random(0,7));
updateimg();
freezeplayer .05;
sleep .05;
}
while (keydown(4)) {
sleep .05;
}
checkwinnings();
playerrupees+=this.winnings;
message;
if (this.winnings>0) say2 You have won #v(this.winnings) rupees;
else say2 Try again!;
sleep .05;
hideimg 200;
hideimg 201;
hideimg 202;
setbackpal pics1.png;
}else{
setplayerprop #c,;
message;
say2 Slot Machine Aborted;
}
}else{
say2 You need 200 rupees to play!;
}
this.mode=0;
}
function updateimg() {
showimg 200,sidra_slotmachinesprites.png,screenwidth/2-96,screenheight/2-32;
changeimgpart 200,this.1*64,0,64,64;
changeimgvis 200,4;
showimg 201,sidra_slotmachinesprites.png,screenwidth/2-32,screenheight/2-32;
changeimgpart 201,this.2*64,0,64,64;
changeimgvis 201,4;
showimg 202,sidra_slotmachinesprites.png,screenwidth/2+32,screenheight/2-32;
changeimgpart 202,this.3*64,0,64,64;
changeimgvis 202,4;
}
function checkwinnings() {
this.winnings=0;
tokenize #v(this.1) #v(this.2) #v(this.3);
for (i=0; i<3; i++) {
if (strequals(#t(i),0)) this.winnings+=20;
}
if (this.1 in |4,6|) this.7[0]=1;
else this.7[0]=0;
if (this.2 in |4,6|) this.7[1]=1;
else this.7[1]=0;
if (this.3 in |4,6|) this.7[2]=1;
else this.7[2]=0;
if (strequals(#t(0)#t(1)#t(2),111)) this.winnings=100;
if (strequals(#t(0)#t(1)#t(2),222)) this.winnings=250;
if (strequals(#t(0)#t(1)#t(2),333)) this.winnings=400;
if (this.7[0]=1 && this.7[1]=1 && this.7[2]=1) this.winnings=500;
if (strequals(#t(0)#t(1)#t(2),444)) this.winnings=750;
if (strequals(#t(0)#t(1)#t(2),555)) this.winnings=1000;
if (strequals(#t(0)#t(1)#t(2),666)) this.winnings=2500;
}



give the npc an image like slot.gif...

it is old and crappy now, but it maybe it could be improved and put on g2k1?

*attached is the necessary image*

Falcor 01-30-2002 07:47 AM

too long, could be DRASTICALLY shortend.

_0AfTeRsHoCk0_ 01-30-2002 12:25 PM

Once again, someone already planned to do this (Antago) but it's yet another unfinished project :(

HVOstroHS 02-03-2002 09:35 AM

Would this work?
 
Note: Yes it could be coded, but there is still always that issue of the rich getting richer and the poor getting poorer. If you made 200g slots that payed off 200g+, this would just make the graalian economy lower and making the value of hats, etc. go up. Making more new graalians more in the dark and with less money.

Faheria_GP2 02-03-2002 09:39 AM

Quote:

Originally posted by Falcor
too long, could be DRASTICALLY shortend.
1. I did it before I became really good with such things

2. I did it for Sidra, so I did sorta half-assed to begin with anyways

royce 02-03-2002 02:38 PM

My dad has about 8 slot machines and 85 percent of the time you get either a free chance that next pull gives you 30 percent of what you put in or it gives you nuttin.


All times are GMT +2. The time now is 04:53 AM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.