Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- on *:invite:#:{
- if (%blackl [ $+ [ $chan ] ] == yes) { .notice $Nick Cannot join, channel is blacklisted! Reason: %blackreason [ $+ [ $chan ] ] $3- | halt }
- if ($me == CookieScript) {
- msg #CookieScript 12(4Invite12)2 $nick 14from # $+.
- .join $chan
- .timer 1 1 msg $chan 10 Hey :D im the CookieBot - Created by 4Blunt10 @cookie to begin, for commands do @cjar 11Support #cookieScript 4ยค
- }
- }
- on *:kick:#: {
- if ($knick == $me) {
- msg #CookieScript 12(4Kick12)14 $nick 10Kicked Me 4from # $+.
- }
- }
- On $*:TEXT:/^[!.@]CJar/Si:#: {
- if ($chanhalt($chan) == true) || ($nickhalt($nick) == true) { halt }
- if (%loggedin [ $+ [ $nick ] ] != Yes) { notice $nick 14(4ERROR14): You are 4not14 logged in with me. Please do !login (No password needed). | halt }
- $iif(@* iswm $1,msg #,notice $nick) 14(4Commands14): !Cookie, !RobShip [When 3CookieShip14 is docked], !Collect [With 3Business 14Cookie], !Lighthouse [11Lighthouse14 Cookie required], !Cstats, !Cstore, !Thief [With 6Thieving 14cookie], !iCookie [With 15Invisible14 cookie], !Citems, !BuyCookie <4Cookie14>, !SellCookie <4Cookie14>, !Cinfo <4Cookie14>
- }
- On $*:TEXT:/^[!.@](cookie|cookies)/Si:#: {
- if ($chanhalt($chan) == true) || ($nickhalt($nick) == true) { halt }
- if (%loggedin [ $+ [ $nick ] ] != Yes) { notice $nick 14(4ERROR14): You are 4not14 logged in with me. Please do !login (No password needed). | halt }
- cookieitems $chan
- if ($left($1,1) == @) { set %lastm [ $+ [ $chan ] ] @ }
- if ($left($1,1) == .) { set %lastm [ $+ [ $chan ] ] . }
- if ($left($1,1) == !) { set %lastm [ $+ [ $chan ] ] ! }
- if (%timeleft [ $+ [ $nick ] ]) { $iif(%lastm [ $+ [ $chan ] ] == @,msg $chan,notice $nick) 14(4Notice14): You can use this command again in10 $duration(%timeleft [ $+ [ $nick ] ]) | halt }
- if (%lighttime [ $+ [ $nick ] ]) { $iif(%lastm [ $+ [ $chan ] ] == @,msg $chan,notice $nick) 14(4Notice14): You can use this command again in10 $duration(%lighttime [ $+ [ $nick ] ]) | halt }
- cookies $chan
- }
- alias Cookieitems {
- if (!%LightCookie [ $+ [ $nick ] ]) { set %LightCookie $+ $nick 0 }
- if (!%TCookie [ $+ [ $nick ] ]) { set %TCookie $+ $nick 0 }
- if (!%LhouseCookie [ $+ [ $nick ] ]) { set %LhouseCookie $+ $nick 0 }
- if (!%SafeCookie [ $+ [ $nick ] ]) { set %SafeCookie $+ $nick 0 }
- if (!%InvisibleCookie [ $+ [ $nick ] ]) { set %invisibleCookie $+ $nick 0 }
- if (!%BusinessCookie [ $+ [ $nick ] ]) { set %BusinessCookie $+ $nick 0 }
- if (!%ShipCount [ $+ [ $nick ] ]) { set %ShipCount $+ $nick 0 }
- }
- alias cookies {
- if (%LightCookie [ $+ [ $nick ] ] = 0) {
- //var %x = $r(10,20)
- //var %y = $r(60,90)
- inc %cookies [ $+ [ $nick ] ] %x
- $iif(%lastm [ $+ [ $chan ] ] == @,msg $chan,notice $nick) 14You reach into the jar and pull out10 %x 14cookies. You now have10 $bytes(%cookies [ $+ [ $nick ] ],bd) Cookies!
- set -z %timeleft $+ $nick %y
- }
- if (%LightCookie [ $+ [ $nick ] ] >= 1) {
- //var %x = $r(70,100)
- //var %y = $r(60,90)
- inc %cookies [ $+ [ $nick ] ] %x
- $iif(%lastm [ $+ [ $chan ] ] == @,msg $chan,notice $nick) 14You use your 8Lightning14 cookie to steal some extra cookies! You stole10 %x 14cookies. You now have10 $bytes(%cookies [ $+ [ $nick ] ],bd) Cookies!
- set -z %lighttime $+ $nick %y
- dec %lightcookie [ $+ [ $nick ] ] 1
- }
- }
- On $*:TEXT:/^[!.@]cstats/Si:#: {
- if ($chanhalt($chan) == true) || ($nickhalt($nick) == true) { halt }
- if (%loggedin [ $+ [ $nick ] ] != Yes) { notice $nick 14(4ERROR14): You are 4not14 logged in with me. Please do !login (No password needed). | halt }
- $iif(@* iswm $1,msg #,notice $nick) 14(4Cookie Stats14):14 $iif($2,$2 $+ 's,Your) current cookie count is10 $bytes(%cookies [ $+ [ $$iif($2,$2,$nick) ] ],bd) cookies14.
- }
- on $*:TEXT:/^[!@.]citems/Si:#: {
- if ($chanhalt($chan) == true) || ($nickhalt($nick) == true) { halt }
- if (%loggedin [ $+ [ $nick ] ] != Yes) { notice $nick 14(4ERROR14): You are 4not14 logged in with me. Please do !login (No password needed). | halt }
- $cookieitems
- $iif(@* iswm $1,msg #,notice $nick) 14(4 $+ $iif($2,$2,$nick) $+ 's Items14): 6Thieving Cookie( $+ $bytes(%tcookie [ $+ [ $iif($2,$2,$nick) ] ],bd))) $+ ) 1- 8Lightning Cookie( $+ $bytes(%lightcookie [ $+ [ $iif($2,$2,$nick) ] ],bd))) $+ ) 1- 11Lighthouse Cookie( $+ $bytes(%lhousecookie [ $+ [ $iif($2,$2,$nick) ] ],bd))) $+ ) 1- 7Safety Cookie( $+ $bytes(%safecookie [ $+ [ $iif($2,$2,$nick) ] ],bd))) $+ ) 1- 3Business Cookie( $+ $bytes(%businesscookie [ $+ [ $iif($2,$2,$nick) ] ],bd))) $+ ) 1-14 (3Special Cookies14): 15Invisible Cookie( $+ $bytes(%invisiblecookie [ $+ [ $iif($2,$2,$nick) ] ],bd))) $+ ) 14(10Cookies14):10 $bytes(%Cookies [ $+ [ $iif($2,$2,$nick) ] ],bd) Cookies {
- }
- }
- On $*:TEXT:/^[!.@](CookieStore|cshop|cstore)/Si:#: {
- if ($chanhalt($chan) == true) || ($nickhalt($nick) == true) { halt }
- $iif(@* iswm $1,msg #,notice $nick) 14(4Store14): 6Thieving Cookie 14[4Cost:10 250 Cookies14] 1-8 Lightning Cookie 14[4Cost:10 75 Cookies14] 1-11 Lighthouse Cookie 14[4Cost:10 500 Cookies14] 1-7 Safety Cookie 14[4Cost:10 200 Cookies14] 1-3 Business Cookie 14[4Cost:10 1000 Cookies14] (3Special Cookies14): 15Invisible Cookie 9~14 For info about each cookie type7 !Cinfo <Cookie>
- }
- on $*:TEXT:/^[!@.]cinfo/Si:#: {
- if ($chanhalt($chan) == true) || ($nickhalt($nick) == true) { halt }
- if ($2- == Thieving Cookie) { $iif(@* iswm $1,msg #,notice $nick) 14(4Cookie Info14): 6Thieving Cookie14 allows you to steal cookies from other players! | halt }
- if ($2- == Lightning Cookie) { $iif(@* iswm $1,msg #,notice $nick) 14(4Cookie Info14): 8Lightning Cookie14 allows you to steal more cookies when doing7 !cookies | halt }
- if ($2- == Lighthouse Cookie) { $iif(@* iswm $1,msg #,notice $nick) 14(4Cookie Info14): 11Lighthouse Cookie14 calls the 3Cookie Ship14 allowing you to 6!rob14 it. | halt }
- if ($2- == Safety Cookie) { $iif(@* iswm $1,msg #,notice $nick) 14(4Cookie Info14): 7Safety Cookie14 reduces the amount of cookies stolen from you when others use the 6!Thief14 command! | halt }
- if ($2- == Invisible Cookie) { $iif(@* iswm $1,msg #,notice $nick) 14(4Cookie Info14): 15Invisible Cookie14 can only be obtained from the 3Cookie Ship14 it's a rare item that resets ALL cookie timers when the 4!iCookie14 command is used! | halt }
- if ($2- == Business Cookie) { $iif(@* iswm $1,msg #,notice $nick) 14(4Cookie Info14): 3Business Cookie14 allows the user to use the 7!Collect14 command to collect cookies from the 3Cookie Ship14! | halt }
- }
- On $*:TEXT:/^[!.@]buycookie/Si:#: {
- if ($chanhalt($chan) == true) || ($nickhalt($nick) == true) { halt }
- if (%loggedin [ $+ [ $nick ] ] != Yes) { notice $nick 14(4ERROR14): You are 4not14 logged in with me. Please do !login (No password needed). | halt }
- if ($2- == Thieving Cookie) && (%cookies [ $+ [ $nick ] ] >= 250) {
- $iif(@* iswm $1,msg #,notice $nick) 4Congratulations14! You have just purchased a 6Thieving Cookie14!
- dec %cookies [ $+ [ $nick ] ] 250
- inc %tcookie [ $+ [ $nick ] ] 1
- }
- else {
- if (%cookies [ $+ [ $nick ] ] < 250) && ($2- == Thieving Cookie) {
- notice $nick 14(4ERROR14): You do not have enough cookies to purchase a 6Thieving14 cookie! You currently have4 %cookies [ $+ [ $nick ] ] 14cookies!
- }
- }
- if ($2- == Lightning Cookie) && (%cookies [ $+ [ $nick ] ] >= 75) {
- $iif(@* iswm $1,msg #,notice $nick) 4Congratulations14! You have just purchased a 8Lightning Cookie14!
- dec %cookies [ $+ [ $nick ] ] 50
- inc %lightcookie [ $+ [ $nick ] ] 1
- }
- else {
- if (%cookies [ $+ [ $nick ] ] < 75) && ($2- == Lightning cookie) {
- notice $nick 14(4ERROR14): You do not have enough cookies to purchase a 8Lightning14 cookie! You currently have4 %cookies [ $+ [ $nick ] ] 14cookies!
- }
- }
- if ($2- == Lighthouse Cookie) && (%cookies [ $+ [ $nick ] ] >= 500) {
- $iif(@* iswm $1,msg #,notice $nick) 4Congratulations14! You have just purchased a 11Lighthouse Cookie14!
- dec %cookies [ $+ [ $nick ] ] 500
- inc %lhousecookie [ $+ [ $nick ] ] 1
- }
- else {
- if (%cookies [ $+ [ $nick ] ] < 500) && ($2- == Lighthouse Cookie) {
- notice $nick 14(4ERROR14): You do not have enough cookies to purchase a 11Lighthouse14 cookie! You currently have4 %cookies [ $+ [ $nick ] ] 14cookies!
- }
- }
- if ($2- == Safety Cookie) && (%cookies [ $+ [ $nick ] ] >= 200) {
- $iif(@* iswm $1,msg #,notice $nick) 4Congratulations14! You have just purchased a 7Safety Cookie14!
- dec %cookies [ $+ [ $nick ] ] 200
- inc %safecookie [ $+ [ $nick ] ] 1
- }
- else {
- if (%cookies [ $+ [ $nick ] ] < 200) && ($2- == Safety Cookie) {
- notice $nick 14(4ERROR14): You do not have enough cookies to purchase a 7Safety14 cookie! You currently have4 %cookies [ $+ [ $nick ] ] 14cookies!
- }
- }
- if ($2- == Business Cookie) && (%cookies [ $+ [ $nick ] ] >= 1000) {
- $iif(@* iswm $1,msg #,notice $nick) 4Congratulations14! You have just purchased a 3Business Cookie14!
- dec %cookies [ $+ [ $nick ] ] 1000
- inc %businesscookie [ $+ [ $nick ] ] 1
- }
- else {
- if (%cookies [ $+ [ $nick ] ] < 1000) && ($2- == Business Cookie) {
- notice $nick 14(4ERROR14): You do not have enough cookies to purchase a 3Business14 cookie! You currently have4 %cookies [ $+ [ $nick ] ] 14cookies!
- }
- }
- }
- On $*:TEXT:/^[!.@]sellcookie/Si:#: {
- if ($chanhalt($chan) == true) || ($nickhalt($nick) == true) { halt }
- if (%loggedin [ $+ [ $nick ] ] != Yes) { notice $nick 14(4ERROR14): You are 4not14 logged in with me. Please do !login (No password needed). | halt }
- if ($2- == Thieving Cookie) && (%tcookie [ $+ [ $nick ] ] >= 1) {
- $iif(@* iswm $1,msg #,notice $nick) 4Congratulations14! You have just sold one of your 6Thieving Cookies14!
- inc %cookies [ $+ [ $nick ] ] 125
- dec %tcookie [ $+ [ $nick ] ] 1
- }
- else {
- if ($2- = Thieving Cookie) && (%tcookie [ $+ [ $nick ] ] = 0) {
- notice $nick 14(4ERROR14): You do not own a 6Thieving Cookie14!
- }
- }
- if ($2- == Lightning Cookie) && (%lightcookie [ $+ [ $nick ] ] >= 1) {
- $iif(@* iswm $1,msg #,notice $nick) 4Congratulations14! You have just sold one of your 8Lightning Cookies14!
- inc %cookies [ $+ [ $nick ] ] 25
- dec %lightcookie [ $+ [ $nick ] ] 1
- }
- else {
- if ($2- = Lightning Cookie) && (%lightcookie [ $+ [ $nick ] ] = 0) {
- notice $nick 14(4ERROR14): You do not own a 8Lightning Cookie14!
- }
- }
- if ($2- == Lighthouse Cookie) && (%lhousecookie [ $+ [ $nick ] ] >= 1) {
- $iif(@* iswm $1,msg #,notice $nick) 4Congratulations14! You have just sold one of your 11Lighthouse Cookies14!
- inc %cookies [ $+ [ $nick ] ] 250
- dec %lhousecookie [ $+ [ $nick ] ] 1
- }
- else {
- if ($2- = Lighthouse Cookie) && (%lhousecookie [ $+ [ $nick ] ] = 0) {
- notice $nick 14(4ERROR14): You do not own a 11Lighthouse Cookie14!
- }
- }
- if ($2- == Safety Cookie) && (%Safecookie [ $+ [ $nick ] ] >= 1) {
- $iif(@* iswm $1,msg #,notice $nick) 4Congratulations14! You have just sold one of your 7Safety Cookies14!
- inc %cookies [ $+ [ $nick ] ] 100
- dec %safecookie [ $+ [ $nick ] ] 1
- }
- else {
- if ($2- = Safety Cookie) && (%Safecookie [ $+ [ $nick ] ] = 0) {
- notice $nick 14(4ERROR14): You do not own a 7Safety Cookie14!
- }
- }
- if ($2- == Business Cookie) && (%Businesscookie [ $+ [ $nick ] ] >= 1) {
- $iif(@* iswm $1,msg #,notice $nick) 4Congratulations14! You have just sold one of your 3Business Cookies14!
- inc %cookies [ $+ [ $nick ] ] 500
- dec %businesscookie [ $+ [ $nick ] ] 1
- }
- else {
- if ($2- = Business Cookie) && (%Businesscookie [ $+ [ $nick ] ] = 0) {
- notice $nick 14(4ERROR14): You do not own a 3Business Cookie14!
- }
- }
- }
- On $*:TEXT:/^[!.@]thief/Si:#: {
- if ($chanhalt($chan) == true) || ($nickhalt($nick) == true) { halt }
- if (%loggedin [ $+ [ $nick ] ] != Yes) { notice $nick 14(4ERROR14): You are 4not14 logged in with me. Please do !login (No password needed). | halt }
- if ($left($1,1) == @) { set %lastm [ $+ [ $chan ] ] @ }
- if ($left($1,1) == .) { set %lastm [ $+ [ $chan ] ] . }
- if ($left($1,1) == !) { set %lastm [ $+ [ $chan ] ] ! }
- if (%thieftime [ $+ [ $nick ] ]) { $iif(%lastm [ $+ [ $chan ] ] == @,msg $chan,notice $nick) 14(4Notice14): You can use this command again in10 $duration(%Thieftime [ $+ [ $nick ] ]) | halt }
- if (%tcookie [ $+ [ $nick ] ] >= 1) && (%SafeCookie [ $+ [ $2 ] ] = 0) || (%SafeCookie [ $+ [ $2 ] ] = $null) {
- //var %x = $r(10,30)
- //var %y = 1800
- if (!$2) { notice $nick 14You forgot to choose someone to steal from! 4!Thief <nick> | halt }
- if ($2 = $nick) { notice $nick 14(4Notice14): You can't steal from yourself! Try again! 4!Thief <nick> | halt }
- if (%cookies [ $+ [ $2 ] ] == $null) { notice $nick 14(4Notice14):10 $2 14 doesn't have any cookies to steal! Try again! 4!thief <nick> | halt }
- if (%cookies [ $+ [ $2 ] ] < %x) { notice $nick 14(4Error14): 14Ouch!10 $2 14doesn't have enough cookies for you to steal!10 $2 14 only has10 %cookies [ $+ [ $2 ] ] Cookies! | halt }
- inc %cookies [ $+ [ $nick ] ] %x
- $iif(%lastm [ $+ [ $chan ] ] == @,msg $chan,notice $nick) 14You use one of your 6Thieving14 cookie to steal some cookies from 4 $+ $2 $+ 14! You stole10 %x 14cookies. You now have10 $bytes(%cookies [ $+ [ $nick ] ],bd) Cookies!
- set -z %Thieftime $+ $nick %y
- dec %cookies [ $+ [ $2 ] ] %x
- notice $2 14(4Notice14):14 $nick has just stolen10 %x 14cookies from you!
- dec %tcookie [ $+ [ $nick ] ] 1
- }
- else {
- if (%tcookie [ $+ [ $nick ] ] >= 1) && (%SafeCookie [ $+ [ $2 ] ] >= 1) {
- //var %x = $r(1,15)
- //var %y = 1800
- if (!$2) { notice $nick 14You forgot to choose someone to steal from! 4!Thief <nick> | halt }
- if ($2 = $nick) { notice $nick 14(4Notice14): You can't steal from yourself! Try again! 4!Thief <nick> | halt }
- if (%cookies [ $+ [ $2 ] ] == $null) { notice $nick 14(4Notice14):10 $2 14 doesn't have any cookies to steal! Try again! 4!thief <nick> | halt }
- if (%cookies [ $+ [ $2 ] ] < %x) { notice $nick 14(4Notice14): Ouch!10 $2 14doesn't have enough cookies for you to steal!10 $2 14 only has10 %cookies [ $+ [ $2 ] ] Cookies! | halt }
- inc %cookies [ $+ [ $nick ] ] %x
- $iif(%lastm [ $+ [ $chan ] ] == @,msg $chan,notice $nick) 4 $2 14uses their 7Safety Cookie14 to protect some of thier cookies! You only steal10 %x 14cookies! You now have10 $bytes(%cookies [ $+ [ $nick ] ],bd) Cookies!
- set -z %Thieftime $+ $nick %y
- dec %cookies [ $+ [ $2 ] ] %x
- notice $2 14Your 7Safety Cookie14 prevented4 $nick 14from stealing a lot of cookies from you!4 $nick 14only got away with10 %x cookies14!
- dec %tcookie [ $+ [ $nick ] ] 1
- dec %safecookie [ $+ [ $2 ] ] 1
- }
- else {
- if (%tcookie [ $+ [ $nick ] ] = 0) {
- notice $nick 14(4ERROR14): 14Sorry, you do not have any 6Thieving14 cookies!
- }
- }
- }
- }
- On $*:TEXT:/^[!.@]Lighthouse/Si:#: {
- if ($chanhalt($chan) == true) || ($nickhalt($nick) == true) { halt }
- if (%loggedin [ $+ [ $nick ] ] != Yes) { notice $nick 14(4ERROR14): You are 4not14 logged in with me. Please do !login (No password needed). | halt }
- if ($left($1,1) == @) { set %lastm [ $+ [ $chan ] ] @ }
- if ($left($1,1) == .) { set %lastm [ $+ [ $chan ] ] . }
- if ($left($1,1) == !) { set %lastm [ $+ [ $chan ] ] ! }
- if (%lighthousetime [ $+ [ $nick ] ]) { $iif(%lastm [ $+ [ $chan ] ] == @,msg $chan,notice $nick) 14(4Notice14): You can use this command again in10 $duration(%lighthousetime [ $+ [ $nick ] ]) | halt }
- if (%ShipDocked = Yes) { notice $nick 14(4Notice14): The 3Cookie Ship14 is already docked! Type4 !robship14 to get some loot! | halt }
- if (%LhouseCookie [ $+ [ $nick ] ] >= 1) {
- CookieShip $chan
- set %ShipDocked Yes
- dec %lhousecookie [ $+ [ $nick ] ] 1
- }
- else {
- if (%lhousecookie [ $+ [ $nick ] ] = 0) || (%lhousecookie [ $+ [ $nick ] ] = $null) {
- notice $nick 14(4ERROR14): Sorry you don't have any 11Lighthouse14 cookies!
- }
- }
- }
- alias CookieShip {
- //var %x = 3600
- //var %z = 300
- set -z %Lighthousetime $+ $nick %x
- amsg 14(3Cookie Ship14): *7Fog Horn14* The 3Cookie Ship14 is now docking! It'll stay docked for4 $duration(%z) $+ 14! Type 7!RobShip14 to get some loot before it sets sail again!
- timer 1 %z msg $chan 14(3Cookie Ship14): *7Fog Horn14* The 3Cookie Ship14 is now departing! Enjoy your loot!
- timer 1 301 set %shipdocked no
- timer 1 302 unset %shipcount*
- timer 1 303 unset %collectcount*
- }
- On $*:TEXT:/^[!.@]robship/Si:#: {
- if ($chanhalt($chan) == true) || ($nickhalt($nick) == true) { halt }
- if (%loggedin [ $+ [ $nick ] ] != Yes) { notice $nick 14(4ERROR14): You are 4not14 logged in with me. Please do !login (No password needed). | halt }
- CookieItems $chan
- if (%shipcount [ $+ [ $nick ] ] = 2) { notice $nick 14(4ERROR14): You have robbed the ship twice already! Don't be greedy! | halt }
- if ($left($1,1) == @) { set %lastm [ $+ [ $chan ] ] @ }
- if ($left($1,1) == .) { set %lastm [ $+ [ $chan ] ] . }
- if ($left($1,1) == !) { set %lastm [ $+ [ $chan ] ] ! }
- if (%robtime [ $+ [ $nick ] ]) { $iif(%lastm [ $+ [ $chan ] ] == @,msg $chan,notice $nick) 14(4Notice14): You can use this command again in10 $duration(%robtime [ $+ [ $nick ] ]) | halt }
- if (%ShipDocked = Yes) {
- //var %y = $r(20,70)
- //var %u = $r(1,10)
- //var %i = $r(1,20)
- set -z %robtime [ $+ [ $nick ] ] 120
- inc %shipcount [ $+ [ $nick ] ] 1
- inc %cookies [ $+ [ $nick ] ] %y
- $iif(%lastm [ $+ [ $chan ] ] == @,msg $chan,notice $nick) 14(3Cookie Ship14): You hop onto the 3Cookie Ship14 and steal10 %y cookies14 from a random chest! You now have10 $bytes(%cookies [ $+ [ $nick ] ],bd) Cookies!
- }
- if (%shipdocked = no) {
- $iif(%lastm [ $+ [ $chan ] ] == @,msg $chan,notice $nick) 14(4ERROR14): The 3Cookie Ship14 isn't docked at this time! Try later!
- }
- if (%u = 1) && (%shipdocked = yes) {
- notice $nick 14(4Special Loot14): You happened to find a 11Lighthouse Cookie14 lying on the floor while raiding the ship!
- inc %lhousecookie [ $+ [ $nick ] ] 1
- }
- if (%i = 1) && (%shipdocked = yes) {
- notice $nick 14(4Special Loot14): You happened to find a 15Invisible Cookie14 lying on the floor while raiding the ship!
- inc %invisiblecookie [ $+ [ $nick ] ] 1
- }
- }
- On $*:TEXT:/^[!.@]Collect/Si:#: {
- if ($chanhalt($chan) == true) || ($nickhalt($nick) == true) { halt }
- if (%loggedin [ $+ [ $nick ] ] != Yes) { notice $nick 14(4ERROR14): You are 4not14 logged in with me. Please do !login (No password needed). | halt }
- $cookieitems $chan
- if (%CollectCount [ $+ [ $nick ] ] = 1) { notice $nick 14(4ERROR14): Looks like you've already collected from this ship! Try again on the next one! | halt }
- if ($left($1,1) == @) { set %lastm [ $+ [ $chan ] ] @ }
- if ($left($1,1) == .) { set %lastm [ $+ [ $chan ] ] . }
- if ($left($1,1) == !) { set %lastm [ $+ [ $chan ] ] ! }
- set %CollectCount [ $+ [ $nick ] ] 0
- if (%businesscookie [ $+ [ $nick ] ] = 0) && (%ShipDocked = Yes) {
- notice $nick 14(4ERROR14): Sorry you don't have any 3Business14 cookies!
- }
- if (%ShipDocked = Yes) && (%BusinessCookie [ $+ [ $nick ] ] >= 1) {
- dec %businesscookie [ $+ [ $nick ] ] 1
- //var %q = 100
- $iif(%lastm [ $+ [ $chan ] ] == @,msg $chan,notice $nick) 14(3Collect14): You go through with a deal with the 7Cookie Pirates14 and they give you10 %q cookies14.
- inc %cookies [ $+ [ $nick ] ] 100
- dec %businesscookie [ $+ [ $nick ] ] 1
- inc %CollectCount [ $+ [ $nick ] ] 1
- }
- if (%ShipDocked = No) {
- $iif(%lastm [ $+ [ $chan ] ] == @,msg $chan,notice $nick) 14(4ERROR14): The 3Cookie Ship14 isn't docked at this time! Try later!
- }
- }
- On $*:TEXT:/^[!.@]iCookie/Si:#: {
- if ($chanhalt($chan) == true) || ($nickhalt($nick) == true) { halt }
- if (%loggedin [ $+ [ $nick ] ] != Yes) { notice $nick 14(4ERROR14): You are 4not14 logged in with me. Please do !login (No password needed). | halt }
- if ($left($1,1) == @) { set %lastm [ $+ [ $chan ] ] @ }
- if ($left($1,1) == .) { set %lastm [ $+ [ $chan ] ] . }
- if ($left($1,1) == !) { set %lastm [ $+ [ $chan ] ] ! }
- if (%invisibletime [ $+ [ $nick ] ]) { $iif(%lastm [ $+ [ $chan ] ] == @,msg $chan,notice $nick) 14(4Notice14): You can use this command again in10 $duration(%invisibletime [ $+ [ $nick ] ]) | halt }
- if (%invisiblecookie [ $+ [ $nick ] ] >= 1) {
- $iif(%lastm [ $+ [ $chan ] ] == @,msg $chan,notice $nick) 14(15Invisible14): All of your 3cookie timers14 have been 4reset14! Enjoy!
- unset %robtime [ $+ [ $nick ] ]
- unset %lighthousetime [ $+ [ $nick ] ]
- unset %lighttime [ $+ [ $nick ] ]
- unset %timeleft [ $+ [ $nick ] ]
- unset %thieftime [ $+ [ $nick ] ]
- dec %invisiblecookie [ $+ [ $nick ] ] 1
- }
- else {
- if (%invisiblecookie [ $+ [ $nick ] ] = 0) || (%invisiblecookie [ $+ [ $nick ] ] = $null) {
- $iif(%lastm [ $+ [ $chan ] ] == @,msg $chan,notice $nick) 14(4ERROR14): You do not have any 15Invisible14 cookies!
- }
- }
- }
- on $*:TEXT:/^[.!@]login/Si:#: {
- if (%loggedin [ $+ [ $nick ] ] == Yes) {
- notice $nick 14(4ERROR14): You are already logged in, to logout type !logout | halt
- }
- set %login $nick
- ns status $nick
- set %logchan $chan
- set %logmsg $1
- }
- on *:NOTICE:*:?: {
- if ($nick == NickServ) {
- if (%login) {
- if (*3* iswm $1-) {
- $iif(@* iswm %logmsg, msg %logchan, notice %login) 14(3LogIn14): You are now logged in with the address:10 $address(%login,2)
- set %loggedin $+ %login Yes
- unset %login
- unset %logchan
- }
- else {
- notice $nick 14(4ERROR14): You are not identified, please do 10/ns identify password14 to login.
- unset %login
- unset %logchan
- }
- }
- }
- }
- on $*:TEXT:/^[.!@]logout/Si:#: {
- if (%loggedin [ $+ [ $nick ] ] == No) {
- notice $nick 14(4ERROR14): You arent identified! To login do !login provided your identified with NickServ | halt
- }
- if (%loggedin [ $+ [ $nick ] ] == Yes) {
- $iif(@* iswm $1, msg $chan, notice $nick) 14(4LogOut14): You have been logged out!
- }
- set %loggedin $+ $nick No
- }
- alias rank {
- window -h @list1
- window -h @list2
- var %aa 1
- while ($var(%cookies*,%aa)) {
- aline -a @list1 $($v1,2) $right($v1,100)
- inc %aa
- }
- filter -wwteuc 1 1 @list1 @list2
- var %bb $iif($1 isnum,$1,$fline(@list2,*%cookies $+ $1)), %rr = $token($line(@list2,%bb),2,32) $token($line(@list2,%bb),1,32) %bb
- close -@ @list*
- return %rr
- }
- on $*:text:/^[!@.](rank|score)/Si:#: {
- if (!$2) {
- if (%loggedin [ $+ [ $nick ] ] != Yes) { notice $nick 14(4ERROR14): You are 4not14 logged in with me. Please do !login (No password needed). | halt }
- if (%cookies [ $+ [ $nick ] ] !isnum) { $iif($left($1,1) == @,msg $chan,notice $nick) 14(4ERROR14): You're not ranked in my database }
- elseif (%cookies [ $+ [ $nick ] ] isnum) { $iif($left($1,1) == @,msg $chan,notice $nick) 14(10Rank14): You're ranked10 $gettok($rank($nick),3,32)) 14out of10 $var(%cookies*) 14players with10 $bytes(%cookies [ $+ [ $nick ] ],bd) cookies }
- }
- if ($2 != $null) && ($2 isnum) {
- if ($rank($2) isnum) { $iif($left($1,1) == @,msg $chan,notice $nick) 14(4ERROR14): No one is ranked10 $2 14in my highscores. }
- elseif ($rank($2) !isnum) { $iif($left($1,1) == @,msg $chan,notice $nick) 14(10Rank14): On rank10 $2 14is10 $remove($gettok($rank($2),1,32),$chr(37) $+ cookies)) 14with10 $bytes($gettok($rank($2),2,32),bd) cookies }
- }
- if ($2 != $null) && ($2 !isnum) {
- if (%cookies [ $+ [ $replace($2-,$chr(32),_) ] ] !isnum) { $iif($left($1,1) == @,msg $chan,notice $nick) 14(4ERROR14):10 $2- 4is not ranked in my database }
- elseif (%cookies [ $+ [ $replace($2-,$chr(32),_) ] ] isnum) { $iif($left($1,1) == @,msg $chan,notice $nick) 14(10Rank14):10 $2- 14is ranked $gettok($rank($replace($2-,$chr(32),_)),3,32) 14out of10 $var(%cookies*) 14total players, with10 $bytes(%cookies [ $+ [ $replace($2-,$chr(32),_) ] ],bd) cookies }
- }
- }
- on $*:text:/^[!@.]ctop10/Si:#: {
- var %topten $topten
- $iif($left($1,1) == @,msg $chan,notice $nick) 14(10TopTen14): The top 10 players are:10 $replace(%topten,$chr(32),$chr(44) $+ $chr(32))
- }
- alias topten {
- var %xx = 1
- var %result
- while (%xx <= 10) {
- var %result %result $remove($gettok($rank(%xx),1,32),$chr(37) $+ cookies))
- inc %xx
- }
- return %result
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement