This is a very easy channel calculator, but it can camo in handy. Type !calc 5+5 and see what is does. You can obviously use a lot of other things. Type !c-commands for more info.
I think it looks better in a ot but if you want to put in in your script...who cares...:)
on *:TEXT:!calc*:#: {
if ($3 == $null) /msg $chan $2 =7 $calc( $2 )
if ($3 != $null) /msg $chan 7Please dont use the space bar for the !calc7 trigger. Do it like this: 5+5 7for example.
}
on *:TEXT:!c-commands:#: {
/msg $nick 7To use this channel calculator, you should know this:
/msg $nick The Calculator Buttons Are: 7[+7] [-7] [^7] [*7] [/7]
/msg $nick Here are some examples:
/msg $nick 3^2 = 9
/msg $nick 3*2 = 6
/msg $nick 3/2 = 1,5
/msg $nick 3+2 = 5
/msg $nick 3-2 = 1
}