• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

How to Get Itemtype of item in slot

Status
Not open for further replies.
Level 9
Joined
Apr 23, 2011
Messages
460
I'm trying to draw an itemtype of an item in slot X. This is how much of the code i have, but i cant find the native to get the slot
JASS:
local itemtype i1 = GetItemType(???)

EDIT: Found it, It was
JASS:
local itemtype i1 = GetItemType(UnitItemInSlot(GetTriggerUnit(), 0))
 
Status
Not open for further replies.
Top