- Joined
- May 16, 2020
- Messages
- 660
Hi all,
When a unit casts an item ability, the OrderID which WC3 derives is the ID of the item SLOT, not the ID of the ability being cast through the item:
public constant integer useslot1=852008
public constant integer useslot2=852009
public constant integer useslot3=852010
public constant integer useslot4=852011
public constant integer useslot5=852012
public constant integer useslot6=852013
(see Order Ids)
So for example, if a Hero uses an item in Slot 1 (which is an item that can Charm), I want to get the OrderID 852581, not 852008.
(public constant integer charm=852581)
Would anyone have a solution for this?
When a unit casts an item ability, the OrderID which WC3 derives is the ID of the item SLOT, not the ID of the ability being cast through the item:
public constant integer useslot1=852008
public constant integer useslot2=852009
public constant integer useslot3=852010
public constant integer useslot4=852011
public constant integer useslot5=852012
public constant integer useslot6=852013
(see Order Ids)
So for example, if a Hero uses an item in Slot 1 (which is an item that can Charm), I want to get the OrderID 852581, not 852008.
(public constant integer charm=852581)
Would anyone have a solution for this?