Code:
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.
}



Something like that.? I dunno your request is a bit unclear to me. In my code a potion=5 hi-potion=10, x-potion=20.

Last edited by Belhifet; 11/12/14 10:57 PM.