HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

UnitMoveItemToSlot

07-27-2004, 09:57 PM#1
weaaddar
Here it is the function that I know many have asked for...

http://kattana.users.whitehat.dk/viewfunc.php?id=330

UnitMoveItemToSlot simple little function that will move an item present in the units inventory from its current position to the position you input to the function.

I.e. to move an item to the first slot you would go

call UnitMoveItemToSlot(unit,item,0)

If you are a wierdo, who likes to think that indices start at 1, you can use the fluff wrapper function I included UnitMoveItemToSlotBJ

If you used that function then the code would be as fallows
call UnitMoveItemToSlotBJ(unit,item,1)
07-27-2004, 10:09 PM#2
Panto
Pretty slick, for as simple as it is.
07-27-2004, 10:22 PM#3
Aiursrage2k
Great, though I like to start my INDEX at 0.
07-27-2004, 10:40 PM#4
Starcraftfreak
Quote:
Originally Posted by Aiursrage2k
Great, though I like to start my INDEX at 0.
His first function is 0-based. What's up with you?