• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

[Snippet] UnitInventoryEvent

Kazeon

Hosted Project: EC
Level 33
Joined
Oct 12, 2011
Messages
3,449
JASS:
    constant integer ORDER_moveslot1=852002
    constant integer ORDER_moveslot2=852003
    constant integer ORDER_moveslot3=852004
    constant integer ORDER_moveslot4=852005
    constant integer ORDER_moveslot5=852006
    constant integer ORDER_moveslot6=852007
    constant integer ORDER_useslot1=852008
    constant integer ORDER_useslot2=852009
    constant integer ORDER_useslot3=852010
    constant integer ORDER_useslot4=852011
    constant integer ORDER_useslot5=852012
    constant integer ORDER_useslot6=852013

Does it fire the order event when a unit moves an item to it's own slot? Like when I right click an item on inventory and put it back to it's current slot? If yes, then you can graveyard this.
 

Kazeon

Hosted Project: EC
Level 33
Joined
Oct 12, 2011
Messages
3,449
I think we need to test it :D

though if you can do some GetSwappedItem(slot) functionality, that will be genius :D

Ah yeah! Using that order event we won't be able to obtain the item's previous slot! #win mwahaha!

EDIT:
Wait, mine is unable too D: #lose

EDIT2:
Yeah, you are right. We are unable to get the swapped item. #still_win :D
 
Top