Acubens
Old Penguin
Hello guys i got a problem today im trying use item:clone() to copy item but look, if use this
The script tell me the item is added to the character but not appear, maybe it keep on memory? what method would can solve this? thanks
Lua:
local clone = containerItem:clone()
if(containerItem:remove())
if(player:addItemEx(clone)) then
player:sendTextMessage(MESSAGE_STATUS_CONSOLE_BLUE, ">> [Autoloot]: You looted the item.")
else
clone:remove()
player:sendTextMessage(MESSAGE_STATUS_CONSOLE_RED, ">> [Autoloot]: You can't pickup: the item.")
end
end
The script tell me the item is added to the character but not appear, maybe it keep on memory? what method would can solve this? thanks