Code: Select all
|||Cast a spell from an item
Sub ItemCast(icItemName)
/if (${Debug}==1) /echo Status: botspell.ItemCast, ${cItemName}
/if (${cItemName.Length}<=0) /return
/varset SpellSts 0
/varset Fail 0
/if (${Me.Sitting}) /stand
/echo ${icItemName}
/cast item "${icItemName}"
:ItemLoop
/doevents
/delay 5
/if (${Me.Casting.ID}) /goto :ItemLoop
/returnThe echo give back the right name of the item but to cast it I need to put the "" around the name (at least it was so with the old var system). I have tried both using
Code: Select all
/cast item "${icItemName}"Code: Select all
/cast item ${icItemName}Code: Select all
/cast item "Brown Silk Bridle"

