<leafname="USE_ITEM"sendto="EGS"format="u16"description="client wants to use teleport in the specified bag slot or consume an item to trigger its effect"/>
<leafname="STOP_USE_XP_CAT"sendto="EGS"format="b"description="client wants to stop using xp catalyser"/>
<leafname="LOCK"sendto="EGS"format="u8 u16 b"description="lock or unlock an item. inventory, slot, lock"/>
<leafname="RENAME"sendot="EGS"format="u8 u16 b s"description="change an item name to a phrase or literal. inventory, slot, literal, name"/>
<leafname="WRITE"sendot="EGS"format="u8 u16 s"description="wrrite a crafter's message. inventory, slot, text"/>
<leafname="RENAME"sendto="EGS"format="u8 u16 b s"description="change an item name to a phrase or literal. inventory, slot, literal, name"/>
<leafname="WRITE"sendto="EGS"format="u8 u16 s"description="wrrite a crafter's message. inventory, slot, text"/>
</branch>
<branchname="TP">
<leafname="RESPAWN"sendto="EGS"format=""description="teleport the player to his respawn point"/>
BOMB_IF(!idx,"Attempt to access a null item pointer",return&_Items[0]);
BOMB_IF(idx>=_Items.size(),"Attempt to access an item beyond end of item vector",return&_Items[0]);
BOMB_IF(_Items[idx].AllocatorNext>=0,NLMISC::toString("Attempt to access an item that is not allocated or has been freed (idx: %d)",idx),return&_Items[0]);
BOMB_IF(_Items[idx].AllocatorNext>0,NLMISC::toString("Attempt to access an item that is not allocated or has been freed (idx: %d)",idx),return&_Items[0]);