Im trying to get a backpack set up for one player
they are a healer, so I wanted them to be able to add herbs and herb healing values, and use them on other players.

!AddHerbs
!ViewParcel
!UseHerb

on *:TEXT:!viewparcel*:#:{
if ($nick == Chisu) {
msg $chan You've have %parcel in your parcel!
}
}

on *:TEXT:!addherbs*:#:{
if ($nick == Chisu) {
set %quantity $2
write item.txt $3
set %parcel %quantity %item
msg $chan You've added $2 $3 to your parcel!
}
}
on *:TEXT:!delherbs*:#:{
if ($nick == Chisu) {
del %parcel $2
msg $chan You've removed $2 to your parcel!
}
}

on *:TEXT:!useherbs*:#:{
if ($user == Chisu) || ($2 isin %quantity) || ($3 isin item.txt) || {

var %recover = $iif($calc( 100 - %health [ $+ [ $nick ] ] ) < %quantity, $v1, $v2)

if (%recover <= 0) {
msg $chan 8,17 There is none of that item!
return
}

dec %quantity %recover
inc %health [ $+ [ $nick ] ] %recover
msg $chan 8,1~7 $nick has healed $nick with $2 they have %Recover health
}
}


-Chan: #WolvenSpirit -Server: Irc.Sorcery.Net