- on $*:TEXT:/^[!@.]gp/Si:*: {
- if (%cash [ $+ [ $nick ] ] == $null) { set %cash [ $+ [ $nick ] ] 0 }
- if (%timer [ $+ [ $nick ] ] == 1) { notice $nick You gotta wait $duration($timer($nick).secs) before using the .gp command. | halt }
- timer $+ $nick 1 $r(162,259) unset %timer [ $+ [ $nick ] ]
- set %timer [ $+ [ $nick ] ] 1
- timer 1 1 notice $nick You'll have to wait $duration($timer($nick).secs) before using the .gp command again.
- var %r $rand(1,15)
- if (%r == 1) {
- set %gp $r(4825,5231)
- inc -s %cash [$+ [ $nick ] ] %gp
- notice $nick 12 $nick steals a car and sells it for %gp $+ GP, You have now got $bytes(%cash [ $+ [ $nick ] ],b) $+ GP
- }
- if (%r == 2) {
- set %gp $r(692,925)
- inc -s %cash [ $+ [ $nick ] ] %gp
- notice $nick 12 $nick Stole $nick($chan,$r(1,$nick($chan,0)))'s wallet, gaining %gp $+ GP, you have now got $bytes(%cash [ $+ [ $nick ] ],b) $+ GP
- }
- if (%r == 3) {
- set %gp $r(1950,2351)
- inc -s %cash [ $+ [ $nick ] ] %gp
- notice $nick 12 $+ $nick Finds %gp $+ GP in his trouser pocket, You have now got $bytes(%cash [ $+ [ $nick ] ],b) $+ GP
- }
- if (%r == 4) {
- set %gp $r(12395,13420)
- inc -s %cash [ $+ [ $nick ] ] %gp
- notice $nick 12 $nick Robs a bank getting away with %gp $+ GP, You have now got $bytes(%cash [ $+ [ $nick ] ],b) $+ GP
- }
- if (%r == 5) {
- set %gp $r(295,402)
- inc -s %cash [ $+ [ $nick ] ] %gp
- notice $nick 12 $nick Sells the last of his weed for %gp $+ GP, You have now got $bytes(%cash [ $+ [ $nick ] ],b) $+ GP
- }
- if (%r == 6) {
- set %gp $r(2135,2495)
- inc -s %cash [ $+ [ $nick ] ] %gp
- notice $nick 12 $nick Trips over whilst at work and claims %gp $+ GP compensation, You have now got $bytes(%cash [ $+ [ $nick ] ],b) $+ GP
- }
- if (%r == 7) {
- set %gp $r(3251,3592)
- inc -s %cash [ $+ [ $nick ] ] %gp
- notice $nick 12 $nick Sells some stuff at a carboot earning %gp $+ GP, You have now got $bytes(%cash [ $+ [ $nick ] ],b) $+ GP
- }
- if (%r == 8) {
- set %gp $r(673,823)
- inc -s %cash [ $+ [ $nick ] ] %gp
- notice $nick 12 $nick Finds a wallet on the floor, and took %gp $+ GP, You have now got $bytes(%cash [ $+ [ $nick ] ],b) $+ GP
- }
- if (%r == 9) {
- set %gp $r(549,725)
- inc -s %cash [ $+ [ $nick ] ] %gp
- notice $nick 12 $nick Sells some stuff on Ebay for %gp $+ GP, You have now got $bytes(%cash [ $+ [ $nick ] ],b) $+ GP
- }
- if (%r == 10) {
- set %gp $r(1492,1654)
- inc -s %cash [ $+ [ $nick ] ] %gp
- notice $nick 12 $nick sold there Runescape account for %gp $+ GP, You have now got $bytes(%cash [ $+ [ $nick ] ],b) $+ GP
- }
- if (%r == 11) {
- set %gp $r(1452,1629)
- inc -s %cash [ $+ [ $nick ] ] %gp
- notice $nick 12 $nick Finds a mobile phone on the floor and sells it for %gp $+ GP, You have now got $bytes(%cash [ $+ [ $nick ] ],b) $+ GP
- }
- if (%r == 12) {
- set %gp $r(1825,2034)
- inc -s %cash [ $+ [ $nick ] ] %gp
- notice $nick 12 $nick Picked up some cocaine off the floor and sold it for %gp $+ GP, you gain %gp $+ GP, you have now got $bytes(%cash [ $+ [ $nick ] ],b) $+ GP
- }
- if (%r == 13) {
- set %gp $r(2238,2952)
- inc -s %cash [ $+ [ $nick ] ] %gp
- notice $nick 12 $nick stole $nick($chan,$r(1,$nick($chan,0)))'s hat and sold it on Ebay, you gain %gp $+ GP, you have now got $bytes(%cash [ $+ [ $nick ] ],b) $+ GP
- }
- if (%r == 14) {
- set %gp $r(1502,1793)
- inc -s %cash [ $+ [ $nick ] ] %gp
- notice $nick 12 $nick stole $nick($chan,$r(1,$nick($chan,0)))'s laptop and sold it for %gp $+ GP, you gain %gp $+ GP, you have now got $bytes(%cash [ $+ [ $nick ] ],b) $+ GP
- }
- if (%r == 15) {
- set %gp $r(1105,1429)
- inc -s %cash [ $+ [ $nick ] ] %gp
- notice $nick 12 $nick found a laptop on the floor and sold it to $nick($chan,$r(1,$nick($chan,0))) for %gp $+ GP, you gain %gp $+ GP, you have now got $bytes(%cash [ $+ [ $nick ] ],b) $+ GP
- }
- }
- on $*:TEXT:/^[!@.]killo/Si:*: {
- if (%cash [ $+ [ $nick ] ] == $null) { set %cash [ $+ [ $nick ] ] 0 }
- var %delay2 %killdelay [ $+ [ $nick ] ]
- if (%delay2) {
- notice $nick You can't use .kill right now, please wait $duration(%delay2)
- return
- }
- var %delay2 $rand(20,30)
- set -z %killdelay $+ $nick %delay2
- timer3 1 1 notice $nick You can use .kill again in $duration(%delay2 )
- var %r $rand(1,1)
- if (%r == 1) {
- set %gp $r(10,20)
- inc -s %cash [ $+ [ $nick ] ] %gp
- notice $nick 12 $nick killed $nick($chan,$r(1,$nick($chan,0))), You recieved ITEMSHERE(GPYOUGOTHERE), You have now got $bytes(%cash [ $+ [ $nick ] ],b) $+ GP
- }
- }
- alias rank {
- close -@ @list*
- ;;$gwdRank(Name) returns "name :: score :: rank";;
- window @list1
- window @list2
- var %a 1
- while ($var(%cash*,%a)) {
- aline -a @list1 %cash [ $+ [ $remove($var(%cash*,%a),$+($chr(37),cash)) ] ] $remove($var(%cash*,%a),$+($chr(37),cash))
- inc %a
- }
- filter -wwteuc 1 1 @list1 @list2
- var %b $fline(@list2,* $1)
- return $+(4,$token($line(@list2,%b),2,32)) 14has4 $+($bytes($line(@list2,%b),b),GP) 14and is ranked4 $ord(%b) $+ .
- }
- on $*:TEXT:/^[!@.]score/Si:*: {
- if (!$2) {
- if (%cash [ $+ [ $nick ] ] isnum) {
- $iif($left($1,1) == @, msg $chan, .notice $nick) $rank($nick)
- halt
- }
- if (%cash [ $+ [ $nick ] ] !isnum) {
- $iif($left($1,1) == @, msg $chan, .notice $nick) 14Sorry4 $nick $+ 14, you have no score.
- halt
- }
- }
- if ($2) {
- if (%cash [ $+ [ $2 ] ] isnum) {
- $iif($left($1,1) == @, msg $chan, .notice $nick) $rank($2)
- halt
- }
- if (%cash [ $+ [ $2 ] ] !isnum) {
- $iif($left($1,1) == @, msg $chan, .notice $nick) 14Sorry4 $2 $+ 14, has no score.
- halt
- }
- }
- }
- on $*:text:/^[!.@]del/Si:#: { if ($nick == exp) { unset %cash [ $+ [ $2 ] ] | notice $nick deleted $2 $+ 's scores. }
- }
- on $*:TEXT:/^[!@.]dp/Si:*: {
- if (%cash [ $+ [ $nick ] ] == $null) { set %cash [ $+ [ $nick ] ] 0 }
- var %delay %dpdelay [ $+ [ $nick ] ]
- if (%delay) {
- notice $nick You can't use .dp right now, please wait $duration(%delay)
- return
- }
- var %delay $rand(1242,1862)
- set -z %dpdelay $+ $nick %delay
- timer2 1 1 notice $nick You can use .dp again in $duration(%delay)
- var %r $rand(1,5)
- if (%r == 1) {
- set %gp $r(3023,3629)
- inc -s %cash [ $+ [ $nick ] ] %gp
- notice $nick 12 $nick Popped a yellow balloon and found a laptop on the floor, you gain %gp $+ GP, You have now got $bytes(%cash [ $+ [ $nick ] ],b) $+ GP
- }
- if (%r == 2) {
- set %gp $r(3923,4426)
- inc -s %cash [ $+ [ $nick ] ] %gp
- notice $nick 12 $nick popped a blue balloon and found $nick($chan,$r(1,$nick($chan,0)))'s bank card on the floor , you gain %gp $+ GP, You have now got $bytes(%cash [ $+ [ $nick ] ],b) $+ GP
- }
- if (%r == 3) {
- set %gp $r(1954,2931)
- inc -s %cash [ $+ [ $nick ] ] %gp
- notice $nick 12 $nick popped a orange balloon and found a ipod on the floor, you gain %gp $+ GP, You have now got $bytes(%cash [ $+ [ $nick ] ],b) $+ GP
- }
- if (%r == 4) {
- set %gp $r(1452,1629)
- inc -s %cash [ $+ [ $nick ] ] %gp
- notice $nick 12 $nick popped a red balloon and found a piece of paper on the floor with $nick($chan,$r(1,$nick($chan,0))) runescape password on it and sold it for %gp $+ GP, you gain %gp $+ GP, You have now got $bytes(%cash [ $+ [ $nick ] ],b) $+ GP
- }
- if (%r == 5) {
- set %gp $r(2304,3913)
- inc -s %cash [ $+ [ $nick ] ] %gp
- notice $nick $nick popped a black balloon and found a iphone on the floor and sold it for %gp $+ GP, you gain %gp $+ GP, You have now got $bytes(%cash [ $+ [ $nick ] ],b) $+ GP
- }
- }
- alias items {
- var %x $rand(1,20)
- ;====EXAMPLE===;
- ;if (%x == 1) {
- ;var %gp 1000
- ;inc -s %cash [ $+ [ $nick ] ] %gp
- ;return Bones (1000gp)
- ;}
- ;===END EXAMPLE===;
- if (%x == 1) {
- var %gp AMOUNT
- inc -s %cash [ $+ [ $nick ] ] %gp
- return Name of Item
- }
- ;repeat for numbers 2-20
- }
- on *:invite:*: { join $chan }
