wut
JASS:
library DisplayGear
function DisplayGear takes unit u, player forPlayer returns nothing
local integer i = 1
local integer array i2
call CreateUnitAtLoc(forPlayer, 'h000', udg_TempLoc, 0.)
loop
exitwhen i == 10
set i2[i] = ItemToAbil(GetEquippedItemTypeId(forPlayer, i))
if i == 0 then
call UnitAddAbility(GetLastCreatedUnit(), ReturnItemBase(i2[i]))
else
endif
set i = i + 1
endloop
set i = 1
loop
exitwhen i == 10
if i2[i] == 0 then
else
endif
endloop
endfunction
function ReturnItemBase takes integer slot returns integer
if slot == 1 then
return 'A00X'
else
endif
if slot == 2 then
return 'A00Y'
else
endif
if slot == 3 then
return 'A00S'
else
endif
if slot == 4 then
else
endif
return '0'
endfunction
endlibrary