- Joined
- Mar 16, 2008
- Messages
- 941
Hey guys.
I'm working on an inventory system that allows you to store items in a bag, while the bonus of the items is only applied if they are in it. I got the full stat part working, but my problem is to get the items which are "dragged into the bag". My "dragging into the bag" is actually "dragging onto the bag" and removing(saving) it, but that doesn't mather.
I already have something
called with:
Yes,this is working. If I drag an item on the bag, this will show "bag" (or in my case "Backpack"). My problem is to find the item "dragged on the bag".
Could you help me pls?
Greets Justify.
PS: Horrible text like always, sry^^
I'm working on an inventory system that allows you to store items in a bag, while the bonus of the items is only applied if they are in it. I got the full stat part working, but my problem is to get the items which are "dragged into the bag". My "dragging into the bag" is actually "dragging onto the bag" and removing(saving) it, but that doesn't mather.
I already have something
JASS:
function Order2Slot takes integer o returns integer
local integer i = o-852002 //Drag on slot 1 is 852002, on Slot 6 852007, guess the rest :P
if i >= 0 and i <= 5 then
return i
endif
return -1
endfunction
JASS:
call BJDebugMsg(GetItemName(UnitItemInSlot(GetTriggerUnit(), Order2Slot(GetIssuedOrderId()))))
Yes,this is working. If I drag an item on the bag, this will show "bag" (or in my case "Backpack"). My problem is to find the item "dragged on the bag".
Could you help me pls?
Greets Justify.
PS: Horrible text like always, sry^^
Last edited: