on *:TEXT:!addherb*:#:{
var %herbtypes potion,hi-potion,x-potion
var %herbvalues 5,10,20
if ($0 > 4) || ($4 !ison $chan) || ($3 !isnum) || ($findtok(%herbtypes,$2,0,32) == 0) {
.msg $chan $nick $+ , please use !addherb type number user
return
}
var %x $findtok(%herbtypes,$2,32)
var %y $gettok(%herbvalues,%x,32)
.msg $chan ok you added $3 $2 to $4 $+ , each $3 is worth %y HP, $calc(%y * $2) total HP.
}