- Joined
- Aug 7, 2013
- Messages
- 1,338
Hi,
Is there a way to get the level of an item based on its integer id?
Otherwise, do we have to create a dummy item--how does this sound (and leakless too I hope..)?
Is there a way to get the level of an item based on its integer id?
Otherwise, do we have to create a dummy item--how does this sound (and leakless too I hope..)?
JASS:
function GetItemLevelById takes integer itemID returns integer
local item i = CreateItem(itemId, X, Y)
local integer level = GetItemLevel(i)
call RemoveItem(i)
set i = null
return level
endfunction