Slot Machine game
Please Register to submit score.
| Average Score | 5.7 |
| Scores Submitted | 3 |
| Date Added | May 04, 2008 |
| Last Updated | May 05, 2008 |
| Tags | fun game machine slot |
Introduction
;Written by cr0sis -irc.affinitygamers.com
;Version 1.1
Load into remotes (don't just copy and paste)
Place the script in you /mirc/ root folder (where the .exe is)
and on that client, type /load -rs slotmachine.mrc
YOU MUST USE THIS ON A SECOND CLIENT AND PLAY WITH IT ON YOUR REGULAR
Commands: !slot, !stats, !stats <player> ( without the < or > )
Single player game, nothing more, but anyone can play at any time and if they don't win they add 1 point to the jackpot.
Feel free to modify the base jackpot (before loading, of if you do it after loading, unload and load it again) -> SET %jackpot 100
Change 200 to anything you want and that's the set amount, each play adds 1 to that number, and the winner gets all accumulated + base points.
Also
PLEASE don't whine at me if you forget to change this line:
TIMER [ $+ [ %nickslot ] ] 1 10 ECHO -s timer for %nickslot deactivated
This line handles the delay between turns, so users can't spam, the number BEFORE echo (10 in my script) is the time users must wait between plays. Edit to suit you/your players.
mIRC Snippet:
Slot Machine game
Posted on May 4, 2008 3:24 pm
Posted on May 4, 2008 3:24 pm
on *:INPUT:#: { set %chanslot $chan | set %nickslot $me | inc %jackpot | notice %nickslot 1 point added to the jackpot | MSG %chanslot [SLOT-MACHINE] Current Jackpot: %jackpot ::: Rolling the wheels. | PLAYSLOT }
^ Single player code, or better yet split everything off after set %nickslot onto an alias and use it instead for both
^ Single player code, or better yet split everything off after set %nickslot onto an alias and use it instead for both
mIRC Snippet:
Slot Machine game
Posted on May 4, 2008 3:41 pm
Posted on May 4, 2008 3:41 pm
Btw if you have a community website with its own "currency" (Like mine has points which you accumulate by posting in the forums and spend by changing your avatar/title etc) Then you can add a socket script in that client and use this game to give the winner all the accumulated game points.
It's addictive for large channels without this, even more so with, I've had it finished for under 2 hours and already more than 500 in points has been given away!
It's addictive for large channels without this, even more so with, I've had it finished for under 2 hours and already more than 500 in points has been given away!
mIRC Snippet:
Slot Machine game
Posted on May 4, 2008 6:57 pm
Posted on May 4, 2008 6:57 pm
Update: Already added !stats and said so in the introduction
mIRC Snippet:
Slot Machine game
Posted on May 5, 2008 1:59 pm
Posted on May 5, 2008 1:59 pm
Just do:
instead of doing it for each number ;)
| Code: |
unset %symbol.* |
instead of doing it for each number ;)
mIRC Snippet:
Slot Machine game
Posted on May 5, 2008 5:25 pm
Posted on May 5, 2008 5:25 pm
Fixed :)
I wrote it with the intention of keeping it for my own community tbh, and so for myself, but now it's released it's only right that I make it smaller and more efficient :D
I wrote it with the intention of keeping it for my own community tbh, and so for myself, but now it's released it's only right that I make it smaller and more efficient :D
mIRC Snippet:
Slot Machine game
Posted on May 9, 2008 3:07 pm
Posted on May 9, 2008 3:07 pm
fun game to play but is there any way of changing the win %
mIRC Snippet:
Slot Machine game
Posted on May 9, 2008 5:39 pm
Posted on May 9, 2008 5:39 pm
great game :) well done, it's simple, yet fun.
mIRC Snippet:
Slot Machine game
Posted on May 9, 2008 6:46 pm
Posted on May 9, 2008 6:46 pm
Yeah automag, change the number of "Pictures"
Here:
on *:LOAD:{
SET %Winners 0
SET %jackpot 100
SET %symbol.0 1,8 BELL
SET %symbol.1 1,4 CHERRY
SET %symbol.2 1,6 PLUM
SET %symbol.3 1,9 WEED
SET %symbol.4 0,4 STRAWBERRY
SET %symbol.5 0,1 COAL
SET %symbol.6 1,11 BLUEBERRY
SET %symbol.7 1,7 ORANGE
SET %symbol.8 4,3 APPLE
}
Take out as many lines as you want, leaving atleast 3 in. There are 9 there, my initial calculation was for 8, so when the !stats shows the win %, it's wrong... The real number is 1.234%
If you do take out one/some in that list, please make sure you also mofify:
SET %col.0 %symbol. [ $+ [ $rand(0,8) ] ]
SET %col.1 %symbol. [ $+ [ $rand(0,8) ] ]
SET %col.2 %symbol. [ $+ [ $rand(0,8) ] ]
$rand(0,8) <-- This is for 9 symbols, change it from 0,8 based on how many you use, for example if you you six... you'd enter 0,5 in each of the three lines
Here:
on *:LOAD:{
SET %Winners 0
SET %jackpot 100
SET %symbol.0 1,8 BELL
SET %symbol.1 1,4 CHERRY
SET %symbol.2 1,6 PLUM
SET %symbol.3 1,9 WEED
SET %symbol.4 0,4 STRAWBERRY
SET %symbol.5 0,1 COAL
SET %symbol.6 1,11 BLUEBERRY
SET %symbol.7 1,7 ORANGE
SET %symbol.8 4,3 APPLE
}
Take out as many lines as you want, leaving atleast 3 in. There are 9 there, my initial calculation was for 8, so when the !stats shows the win %, it's wrong... The real number is 1.234%
If you do take out one/some in that list, please make sure you also mofify:
SET %col.0 %symbol. [ $+ [ $rand(0,8) ] ]
SET %col.1 %symbol. [ $+ [ $rand(0,8) ] ]
SET %col.2 %symbol. [ $+ [ $rand(0,8) ] ]
$rand(0,8) <-- This is for 9 symbols, change it from 0,8 based on how many you use, for example if you you six... you'd enter 0,5 in each of the three lines
mIRC Snippet:
Slot Machine game
Posted on May 9, 2008 6:50 pm
Posted on May 9, 2008 6:50 pm
Oh and don't forget, I worked out the win % in my head and just put that number into the script
NOTICE $nick Chance of winning: 1.5625% Number of Winners: %Winnerss
SHOULD read 1.234%, 1.5625% is for 8 symbols (I'm using 9), you'll have to do the working out yourself for how many symbols you will be using.
NOTICE $nick Chance of winning: 1.5625% Number of Winners: %Winnerss
SHOULD read 1.234%, 1.5625% is for 8 symbols (I'm using 9), you'll have to do the working out yourself for how many symbols you will be using.
mIRC Snippet:
Slot Machine game
Posted on May 9, 2008 7:51 pm
Posted on May 9, 2008 7:51 pm
perfect thanks....
and one more thing how who i make it show stats for everyone @ once rather then single..
like this:
ViRuS's Slot Machine stats: Won Amount: 712 Lost games: 453 Net: 259
AuToMaG's Slot Machine stats: Won Amount: 320 Lost games: 250 Net: 123
and so on...thanks again i'm not that good @ this script stuff...lol
and one more thing how who i make it show stats for everyone @ once rather then single..
like this:
ViRuS's Slot Machine stats: Won Amount: 712 Lost games: 453 Net: 259
AuToMaG's Slot Machine stats: Won Amount: 320 Lost games: 250 Net: 123
and so on...thanks again i'm not that good @ this script stuff...lol



