Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- on *:text:!heist:#: {
- var %topic $+($chan,.,$nick)
- var %points $iif($readini(Points.ini,%topic,Points) == $null,0,$v1)
- var %rng $rand(1,10)
- if (%points < 50) {
- msg $chan $nick you do not have enough points to start a heist.
- return
- }
- %points = $calc(%points - 50)
- msg $chan $nick has started a heist and it will last 15 seconds. $+ . Removed 50 points from $nick (Had $calc(%points + 50) points and now has %points points).
- writeini -n Points.ini %topic Points %points
- return %points
- if (%rng == 1) { .timer1 1 15 msg # $nick, the heist went well, you earned 100 points
- %points = $calc(%points + 100)
- writeini -n Points.ini %topic Points %points
- return %points
- if (%rng == 2) { .timer2 1 15 msg # $nick, the heist went bad, you lost 200 points
- %points = $calc(%points - 200)
- writeini -n Points.ini %topic Points %points
- return %points
- }
- if (%rng == 3) { .timer3 1 15 msg # $nick, the heist went well, you earned 50 points
- %points = $calc(%points + 50)
- writeini -n Points.ini %topic Points %points
- return %points
- }
- if (%rng == 4) { .timer4 1 15 msg # $nick, the heist went bad, you lost 100
- %points = $calc(%points - 100)
- writeini -n Points.ini %topic Points %points
- return %points
- }
- if (%rng == 5) { .timer5 1 15 msg # $nick, the heist went well, you earned 300 points
- %points = $calc(%points + 300)
- writeini -n Points.ini %topic Points %points
- return %points
- }
- if (%rng == 6) { .timer6 1 15 msg # $nick, the heist went bad, you lost 300 points
- %points = $calc(%points - 300)
- writeini -n Points.ini %topic Points %points
- return %points
- }
- if (%rng == 7) { .timer7 1 15 msg # $nick, the heist went well, you earned 350 points
- %points = $calc(%points + 350)
- writeini -n Points.ini %topic Points %points
- return %points
- }
- if (%rng == 8) { .timer8 1 15 msg # $nick, the heist went bad, you lost 50 points
- %points = $calc(%points - 50)
- writeini -n Points.ini %topic Points %points
- return %points
- }
- if (%rng == 9) { .timer9 1 15 msg # $nick, the heist went well, you earned 400 points
- %points = $calc(%points + 400)
- writeini -n Points.ini %topic Points %points
- return %points
- }
- if (%rng == 10) { .timer10 1 15 msg # $nick, the heist went bad, you lost 400 points
- %points = $calc(%points - 400)
- writeini -n Points.ini %topic Points %points
- return %points
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement