All pastes #418659 Raw Edit

Something

public text v1 · immutable
#418659 ·published 2007-03-31 19:29 UTC
rendered paste body
//Public Commands
on *:TEXT:!calc*:#:{ 
  if ($2 == $null) { notice $nick 3Error - You Didn't Specify An Equasion To Solve | halt }
  else { notice $nick 12 $2- 4=3 $calc($replace($2-,k,000,m,000000,c,00) $2- )) }
}

//Bot Oper and Bot Admin Commands

//Bot Owner Commands
on *:TEXT:!addadmin *:#: {
  if ($nick isin %botowner) { set %botadmin $addtok($address($2,2),c,46)
}
on *:TEXT:!addoper *:#: {
  if ($nick isin %botowner) { set %botoper $addtok($address($2,2),c,46) | msg $chan 
}
//Other Stuff
on *:JOIN:#: {
  if ($me isop $chan) && ($address($1,2) isin %botowner) { msg $chan 3~2*4»5 $+ Bot Owner - $nick $+ 4«2*3~ }
  if ($me ishop $chan) && ($address($1,2) isin %botowner) { msg $chan 3~2*4»5 $+ Bot Owner - $nick $+ 4«2*3~ }
  if ($me isop $chan) && ($address($1,2) isin %botadmin) { msg $chan 3~2*4»5 $+ Bot Admin - $nick $+ 4«2*3~ }
  if ($me ishop $chan) && ($address($1,2) isin %botadmin) { msg $chan 3~2*4»5 $+ Bot Admin - $nick $+ 4«2*3~ }
  if ($me isop $chan) && ($address($1,2) isin %botoper) { msg $chan 3~2*4»5 $+ Bot Operator - $nick $+ 4«2*3~ }
  if ($me ishop $chan) && ($address($1,2)isin %botoper) { msg $chan 3~2*4»5 $+ Bot Operator - $nick $+ 4«2*3~ }
}