If you have an enemy targeted, or no target at all, it will automatically bandage yourself. If you have a friendly player or npc targeted it will bandage them. Just replace XXX with the name of whatever bandages you are using.
/script for b=0,4 do for s=1,GetContainerNumSlots(b) do if (string.find(GetContainerItemLink(b,s) or " ", "XXX")) then UseContainerItem(b,s) SpellTargetUnit("Player") b=4 break end end end
0 comments:
Post a Comment