View Single Post
Old 11-25-2004, 03:01 AM  
jeza
Senior Member
 
jeza's Avatar
 
Join Date: May 2003
Posts: 530
Default

this works for me

Code:
set trigger "!trigger"

proc pub:calc { nick uhost hand chan text } {
  
  #!trigger 3 100
  #size * ratio + (size * (multiplier - 1))
  
  set math [expr [expr [lindex $text 1]*3]+[expr [lindex $text 1]*[expr [lindex $text 0]-1]] ]
  
  putquick "PRIVMSG $chan :[lindex $text 1]Mb release nuked [lindex $text 0]x will result in $math Mb punishment "
  
  return 
}

bind pub -|- $trigger pub:calc
Code:
1125[08:58] <__jeza> !trigger 3 100
1125[08:58] <ef~|iojTQ|> 100Mb release nuked 3x will result in 500 Mb punishment 
1125[08:58] <__jeza> !trigger 3 11235
1125[08:58] <ef~|iojTQ|> 11235Mb release nuked 3x will result in 56175 Mb punishment
jeza is offline   Reply With Quote