kimokimo
Kimo
I was trying to check player equipped items on login to see if they carry a certain description but it seems like it returns a nil on login but it works in other scripts like movements, actions it returns the correct description.
Code:
for i = 1, 9 do
local items = getPlayerSlotItem(player, i)
if items.uid ~= 0 then
if items.actionid == 200 then
local desc = getItemAttribute(items.uid, ITEM_ATTRIBUTE_DESCRIPTION)
print(desc)
end
end
end
Gyazo
gyazo.com