Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [script]
- n0=on *:TEXT:!sellcookie:#[MM]IKKE: {
- n1= if ($me == %bot4) {
- n2= rpglog $nick $1-
- n3= if (!$exists(Stats\ $+ $nick $+ .txt)) {
- n4= createaccount $nick
- n5= }
- n6= alive $nick
- n7= checkcookie $nick 1
- n8= getcookie $nick
- n9= increasecash $nick 10000
- n10= msg $chan 4 $+ $nick 2has sold one cookie for7 10,000 2cash!
- n11= }
- n12=}
- n13=on *:TEXT:!buycookie:#[MM]IKKE: {
- n14= if ($me == %bot4) {
- n15= rpglog $nick $1-
- n16= if (!$exists(Stats\ $+ $nick $+ .txt)) {
- n17= createaccount $nick
- n18= }
- n19= alive $nick
- n20= checkmoney $nick 12000
- n21= cookie $nick
- n22= decreasecash $nick 12000
- n23= msg $chan 4 $+ $nick 2has bought one cookie for7 12,000 2cash!
- n24= }
- n25=}
- n26=on *:TEXT:!givecookie*:#[MM]IKKE: {
- n27= if ($2 != $nick) {
- n28= if ($me == %bot4 && $nick isin $read(Stats\Administrator list.txt, w, $nick) && $1 == !givecookie) {
- n29= rpglog $nick $1-
- n30= if ($2 ison $chan) {
- n31= if ($2 isin $read(bots.txt,w,$2) || $2 isin $read(userbots.txt,w,$2)) {
- n32= .notice $nick 4ERROR:2 You cannot give the bot a cookie
- n33= }
- n34= else {
- n35= if (!$exists(Stats\ $+ $2 $+ .txt)) {
- n36= createaccount $2
- n37= }
- n38= cookie $2
- n39= if ($3 == $null) { describe $chan gives4 $2 6a cookie (given by9 $nick $+ 6).4 $2 6has now7 $read(Stats\ $+ $2 $+ .txt, 3) 6cookie(s). }
- n40= else { describe $chan gives4 $2 6a cookie (given by9 $nick $+ 6, Reason:2 $3- $+ 6).4 $2 6has now7 $read(Stats\ $+ $2 $+ .txt, 3) 6cookie(s). }
- n41= }
- n42= }
- n43= elseif ($2 == $null) { .notice $nick 4ERROR:2 Usage: !givecookie <nick> }
- n44= else { .notice $nick 4ERROR: $2 2isn't in the channel }
- n45= }
- n46= elseif ($me == %bot4 && $1 == !givecookie) {
- n47= rpglog $nick $1-
- n48= if ($2 ison $chan) {
- n49= if ($2 isin $read(bots.txt,w,$2) || $2 isin $read(userbots.txt,w,$2)) {
- n50= .notice $nick 4ERROR:2 You cannot give the bot a cookie
- n51= }
- n52= else {
- n53= if (!$exists(Stats\ $+ $nick $+ .txt)) {
- n54= createaccount $nick
- n55= }
- n56= alive $nick
- n57= if (!$exists(Stats\ $+ $2 $+ .txt)) {
- n58= createaccount $2
- n59= }
- n60= if ($read(Stats\ $+ $nick $+ .txt, 3) == 0) {
- n61= .notice $nick 4ERROR:2 You do not have enough cookies
- n62= }
- n63= if ($read(Stats\ $+ $nick $+ .txt, 3) >= 0) {
- n64= checkcookie $nick 1
- n65= getcookie $nick
- n66= cookie $2
- n67= msg $chan 9 $+ $nick 2has given4 $2 2a cookie.4 $2 2has now7 $read(Stats\ $+ $2 $+ .txt, 3) 2cookies,9 $nick 2has got7 $read(Stats\ $+ $nick $+ .txt, 3) 2cookies.
- n68= }
- n69= }
- n70= }
- n71= elseif ($2 == $null) { .notice $nick 4ERROR:2 Usage: !givecookie <nick> }
- n72= else { .notice $nick 4ERROR: $2 2isn't in the channel }
- n73= }
- n74= }
- n75= elseif ($nick == $2 && $me == %bot4 && $1 == !givecookie) {
- n76= rpglog $nick $1-
- n77= .notice $nick 4ERROR:2 You can't give yourself a cookie!
- n78= }
- n79=}
- n80=on *:TEXT:!eatcookie:#[MM]IKKE: {
- n81= if ($me == %bot4) {
- n82= rpglog $nick $1-
- n83= if (!$exists(Stats\ $+ $nick $+ .txt)) {
- n84= createaccount $nick
- n85= }
- n86= alive $nick
- n87= if ($read(Stats\ $+ $nick $+ .txt, 3) == 0) {
- n88= .notice $nick 4ERROR:2 You do not have enough cookies
- n89= }
- n90= else {
- n91= getcookie $nick
- n92= if ($read(Stats\ $+ $nick $+ .txt, 7) <= 74) {
- n93= write -l7 Stats\ $+ $nick $+ .txt $calc($read(Stats\ $+ $nick $+ .txt, 7) + 50)
- n94= msg $chan 4 $+ $nick 2ate a cookie and restored his health with 50% (4 $+ $nick 2has got7 $read(Stats\ $+ $nick $+ .txt, 3) 2cookies)
- n95= }
- n96= elseif ($read(Stats\ $+ $nick $+ .txt, 7) == 125) {
- n97= msg $chan 4 $+ $nick 2ate a cookie... (4 $+ $nick 2has got7 $read(Stats\ $+ $nick $+ .txt, 3) 2cookies)
- n98= }
- n99= else {
- n100= write -l7 Stats\ $+ $nick $+ .txt 125
- n101= msg $chan 4 $+ $nick 2ate a cookie and fully restored his health (4 $+ $nick 2has got7 $read(Stats\ $+ $nick $+ .txt, 3) 2cookies)
- n102= }
- n103= }
- n104= }
- n105=}
- n106=on *:TEXT:!stealcookie:#[MM]IKKE: {
- n107= if ($me == %bot4) {
- n108= rpglog $nick $1-
- n109= msg $chan 2Current options: Stealing all cookies (3%), stealing 1 up to 10 cookies (7%), stealing one cookie (40%), nothing (15%), other user steals cookie (20%), losing a cookie (13%), losing all cookies (2%)
- n110= }
- n111=}
- n112=on *:TEXT:!stealcookie*:#[MM]IKKE: {
- n113= if ($me == %bot4 && $1 == !stealcookie) {
- n114= rpglog $nick $1-
- n115= if (!$exists(Stats\ $+ $nick $+ .txt)) {
- n116= createaccount $nick
- n117= }
- n118= alive $nick
- n119= checkjob $nick $nick
- n120= if ($2 ison $chan) {
- n121= if ($2 isin $read(bots.txt,w,$2) || $2 isin $read(userbots.txt,w,$2)) {
- n122= .notice $nick 4ERROR:2 Bots don't have any cookies
- n123= }
- n124= else {
- n125= if (!$exists(Stats\ $+ $2 $+ .txt)) {
- n126= createaccount $2
- n127= }
- n128= checkjob $2 $nick
- n129= if ($read(Stats\ $+ $2 $+ .txt, 3) <= 0) {
- n130= .notice $nick 4ERROR: $2 2does not have any cookies,9 $nick $+ 2!
- n131= halt
- n132= }
- n133= if ($read(Stats\ $+ $nick $+ .txt, 3) == 0) {
- n134= .notice $nick 4ERROR:2 You need at least one cookie to steal
- n135= halt
- n136= }
- n137= else {
- n138= var %i = $rand(1,100)
- n139= if (%i <= 3) {
- n140= write -l3 Stats\ $+ $nick $+ .txt $calc($read(Stats\ $+ $nick $+ .txt, 3) + $read(Stats\ $+ $2 $+ .txt, 3))
- n141= write -l3 Stats\ $+ $2 $+ .txt 0
- n142= msg $chan 9 $+ $nick 2is a professional thief! He stole all the cookies of4 $2 $+ 2! He has7 $read(Stats\ $+ $nick $+ .txt, 3) 2cookies now.
- n143= }
- n144= elseif (%i <= 10) {
- n145= if ($read(Stats\ $+ $2 $+ .txt, 3) <= 10) {
- n146= var %j = $rand(2, $read(Stats\ $+ $2 $+ .txt, 3))
- n147= write -l3 Stats\ $+ $2 $+ .txt $calc($read(Stats\ $+ $2 $+ .txt, 3) - %j )
- n148= write -l3 Stats\ $+ $nick $+ .txt $calc($read(Stats\ $+ $nick $+ .txt, 3) + %j )
- n149= msg $chan 9 $+ $nick 2stole7 %j 2cookies :O9 $nick 2now has7 $read(Stats\ $+ $nick $+ .txt, 3) 2cookies,4 $2 2has7 $read(Stats\ $+ $2 $+ .txt, 3) 2cookies.
- n150= }
- n151= else {
- n152= var %j = $rand(2,10)
- n153= write -l3 Stats\ $+ $2 $+ .txt $calc($read(Stats\ $+ $2 $+ .txt, 3) - %j )
- n154= write -l3 Stats\ $+ $nick $+ .txt $calc($read(Stats\ $+ $nick $+ .txt, 3) + %j )
- n155= msg $chan 9 $+ $nick 2stole7 %j 2cookies :O9 $nick 2now has7 $read(Stats\ $+ $nick $+ .txt, 3) 2cookies,4 $2 2has7 $read(Stats\ $+ $2 $+ .txt, 3) 2cookies.
- n156= }
- n157= }
- n158= elseif (%i <= 50) {
- n159= write -l3 Stats\ $+ $2 $+ .txt $calc($read(Stats\ $+ $2 $+ .txt, 3) - 1)
- n160= write -l3 Stats\ $+ $nick $+ .txt $calc($read(Stats\ $+ $nick $+ .txt, 3) + 1)
- n161= msg $chan 9 $+ $nick 2stole4 $2 $+ 2's cookie :O9 $nick 2now has7 $read(Stats\ $+ $nick $+ .txt, 3) 2cookies,4 $2 2has7 $read(Stats\ $+ $2 $+ .txt, 3) 2cookies.
- n162= }
- n163= elseif (%i <= 98) {
- n164= if ($read(Stats\ $+ $nick $+ .txt, 3) >= 0 && %i >= 85) {
- n165= write -l3 Stats\ $+ $nick $+ .txt $calc($read(Stats\ $+ $nick $+ .txt, 3) - 1)
- n166= msg $chan 4 $+ $2 2has dodged the lame attempt of9 $nick 2to steal the cookie.9 $nick 2even lost a cookie! He has now7 $read(Stats\ $+ $nick $+ .txt, 3) 2cookies.
- n167= }
- n168= elseif ($read(Stats\ $+ $nick $+ .txt, 3) >= 0 && %i >= 65) {
- n169= write -l3 Stats\ $+ $2 $+ .txt $calc($read(Stats\ $+ $2 $+ .txt, 3) + 1)
- n170= write -l3 Stats\ $+ $nick $+ .txt $calc($read(Stats\ $+ $nick $+ .txt, 3) - 1)
- n171= msg $chan 4 $+ $2 2has dodged the lame attempt of9 $nick 2to steal the cookie.9 $2 2even stole a cookie back!4 $2 2has now7 $read(Stats\ $+ $2 $+ .txt, 3) 2cookies.9 $nick 2has7 $read(Stats\ $+ $nick $+ .txt, 3) 2cookies.
- n172= }
- n173= else {
- n174= msg $chan 4 $+ $2 2has dodged the lame attempt of9 $nick 2to steal the cookie.
- n175= }
- n176= }
- n177= else {
- n178= write -l3 Stats\ $+ $nick $+ .txt 0
- n179= msg $chan NOES! 2Cops saw9 $nick 2stealing4 $2 $+ 2's cookies! He got caught and lost all his cookies :O
- n180= }
- n181= }
- n182= }
- n183= }
- n184= elseif ($2 == $null) { .notice $nick 4ERROR:2 Usage: !stealcookie <nick> }
- n185= else { .notice $nick 4ERROR: $2 2isn't in the channel }
- n186= }
- n187=}
Add Comment
Please, Sign In to add comment