HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

UnitAddItemToSlot

07-30-2004, 10:36 PM#1
weaaddar
http://kattana.users.whitehat.dk/viewfunc.php?id=331
The counterpoint function to UnitAddItemToSlotById. Takes an already in existance item and will add it to the unit inventory in the slot specified. If the item was not added, or the units inventory does not stretch to that slot size, or there is an undroppable item in the destination slot position, it will return false.

Once again, if you start your item indices at one, then I have included a UnitAddItemToSlotBJ fluffer function:
I.e.
UnitAddItemToSlot(hero,it,5) will add an item to slot 6 of hero's inventory.
UnitAddItemToSlotBJ(hero,it,5) will add an item to slot 5 on hero's inventory.
Uses:
UnitMoveItemToSlot
07-30-2004, 11:44 PM#2
linkmaster23
This is old news for me... sorry.