Cash Money RPG Game System
Platform: mIRC
Published May 13, 2012
Updated Aug 25, 2012
A fun game where you can steal money from other users :3
INSTRUCTIONS:
Paste in remotes (nb: you cannot play this in the same client you are using, so use a bot).
Change the section that says 'ChangeToAdminNickname' to the bot owners name - Line 2
As the bot owner, you can &give $amount to players to start the game.
ADJUSTMENTS:
* You can change much money can be stolen (the default range is $500-$4000) - Line 21
* You can change the amount of fines (the default amount is $1000) - Lines 36-38
* You can set the delay for time between !rob (the default is 3 seconds) - Lines 23-24
COMMANDS:
!rob *nickname* to steal money from another user
!cash *nickname* to see how much money a user currently has
ENJOY
(This is an edited version of #7426)
;########################################################################
;# Cash Money RPG Game System by cptpan - http://www.pangamers.com #
;########################################################################
on *:TEXT:&give*:#: {
if ($nick == ChangeToAdminNickname ) {
if ($2 ison $chan) {
inc %money [ $+ [ $2 ] ] $3
msg # The Bank has given $2 $3 dollars
}
}
else { msg # Access Denied }
}
on *:TEXT:!cash*:#: {
if (%money [ $+ [ $2 ] ] == $null) {
msg # $$2 is a homeless whale and doesn't have any money!
}
else {
msg # 14 $+ $$2 is currently carrying $ $+ %money [ $+ [ $2 ] ]
}
}
on *:TEXT:!rob*:#: {
if ($2 ison $chan) {
if (%delayed.rob == $true) return
set -u3 %delayed.rob $true
var %mug $rand(1,3)
var %mugmoney $rand(500,4000)
if (%mug == 1) {
if (%money [ $+ [ $2 ] ] >= %mugmoney) {
msg $chan 14 $+ $nick steals $ $+ %mugmoney from $2
inc %money [ $+ [ $nick ] ] %mugmoney
if (%money [ $+ [ $2 ] ] >= %mugmoney) {
dec %money [ $+ [ $2 ] ] %mugmoney
}
else { set %money [ $+ [ $2 ] ] 0 }
}
else { msg # 14 $+ $2 is a poor whale and doesn't have $ $+ %mugmoney $+ ; your theft was unsuccessful }
}
if (%mug == 2) {
msg $chan 14 $+ $2 punches $nick in the face and runs away...
}
if (%mug == 3) { msg $chan 14 $+ $nick gets caught by the police and receives a $ $+ 1000 fine.
if (%money [ $+ [ $nick ] ] >= 1000) {
dec %money [ $+ [ $nick ] ] 1000
}
else { set %money [ $+ [ $nick ] ] 0 }
}
}
else { msg # $2 is currently not in this channel }
}