!calc ( notices you ) @calc ( msgs Channel )
on $*:TEXT:/^[!@]calc */Si:#: $iif($left($1,1) == !,notice $nick,msg $chan) 4Calc:14 $2- 4=14 $bytes($calc($replace($2-,b,000000000,k,000,m,000000,x,*,t,000000000000,pi,3.14159)),db)
;)
LucSaitise, the point of this isnt to necessarily calculate things, but calculate things using b k x t and pi
just use this:
on *:TEXT:!calc*:#:{ if (!$2) { notice $nick Syntax: !calc <calculation> | notice $nick Example: !calc 1 + 1 | halt } if ($2) { msg $chan The Answer Is: $calc($2-) } }
Usage: !calc 1 + 1 !calc 1 - 1 !calc 1 * 1 !calc 1 / 1
Enjoy
theres another one of these somewhere on here, just compare urs to that one and find ur mistake
better spot if forums ;/
plz tell me the mistake >.<