Cash/money/mafia/gangster/RPG Game System

By cptpan on May 13, 2012

Screenshots

Instant install - easy to configure (takes seconds to get going)

~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~

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

Keywords: cash mug money rob gun guns gangster gangsters system game fun mafia thief theft steal dollars rpg

;########################################################################
;#   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 }
}

Comments

Sign in to comment.
pingsora   -  Aug 27, 2012

Yes, I am. I have a few users who seems to enjoy mugging.

cptpan  -  May 10, 2014

haha awesome. You should check out our new gangster game! http://www.tg.pangamers.com

Sign in to comment

cptpan   -  Aug 25, 2012

Are you still using this script anyway, pingsora?

 Respond  
pingsora   -  Aug 22, 2012

awww... =(

 Respond  
cptpan   -  Aug 22, 2012

It would take a bit of extra work to have it log every user to ensure the timer isn't reset on rejoin etc.

The job is too large for me to do. Maybe someone else can do it :)

 Respond  
pingsora   -  Aug 15, 2012

Is there a way for there to be a timer for each user? What I have in mind is to limit each user to one !rob every 24 hrs. But what happens is that the timer applies to all users. Also, it would be nice to add a line that will indicate that remaining time before one can do !rob again.

cptpan  -  May 10, 2014

Check out this new game: http://www.TextGangsters.com

It's way bigger than this!

Sign in to comment

cptpan   -  May 14, 2012

Edited and added a timer to stop trigger floods.

 Respond  
cptpan   -  May 13, 2012

I was just saying that if someone's preference was to utilise ini's they can alter the above if they want.

 Respond  
Sorasyn   -  May 13, 2012

Why would we convert it? It's your snippet after all.

 Respond  
cptpan   -  May 13, 2012

If someone wants to convert this to using ini files, please do so and paste below :3

 Respond  
Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.