!Cookie - Gives someone a cookie.
!Cake - Gives someone a cake...
!Calc - [Number[*|-|+|/]Number]
=========================================================================================
Scripted by Diamond
Server: IRC.SwiftIRC.net
Channel: #Diamond
=========================================================================================
===============
ALIASES NEEDED:
===============
Alias logo return ** $+([,$upper($1),],:)
===================
THE FUNNY COMMANDS:
===================
On $*:Text:/^[!.]Cookie/Si:#: {
if ($mainbot ison $chan) && ($me != $mainbot) { halt }
else {
set %cookie.who $iif($left($2,1) == $null, $nick, $2-)
describe $chan Gives some Cookies to $+(%cookie.who,!) .. Miammmm =)
}
}
On $*:Text:/^[!.]Cake/Si:#: {
if ($mainbot ison $chan) && ($me != $mainbot) { halt }
else {
set %cake.who $iif($left($2,1) == $null, $nick, $2-)
describe $chan Gives some Cake to $+(%cake.who,!) .. Miammmm =)
}
}
===============
THE CALCULATOR:
===============
On $*:Text:/^[@!.](Calculator|Calc)/Si:#: {
if ($mainbot ison $chan) && ($me != $mainbot) { halt }
elseif (!$2) {
set %ctarg1 $iif($left($1,1) == @, msg $chan, notice $nick)
%ctarg1 $logo(error) Please give me some numbers to calculate.
unset %ctarg1
}
else {
set %ctarg2 $iif($left($1,1) == @, msg $chan, notice $nick)
%ctarg2 $logo(calc) $2- = $bytes($calc($replace($2-,k,*1000,m,*1000000,pi,$pi)),bd)
unset %ctarg2
}
}
This code is so good that it makes me want to get married, father it's children, and move to Jersey with it. Nay, I want to serenade it on the edge of a glorious waterfall after promising to give it my very soul for eternity.
Yes, that is how awesome and original this snippet is.
Make more for us. PLEASE.
Ripper.
using the ; before the outter script comments makes them ignored when you load the script they will still show in the script file its self but the script (while its working) will just ignore them.
nice script, I'm not to keen on the !cake and !cookie commands or the need to use $logo but I think the calculator part is cool, so based on what I've seen and tested i'll give it a 6.
But I'm not to sure why you have some of these tags:
anti bot diamond eio failscript glam555 how irc mirc script spam start swiftirc timer timers to