I have a quest that consists in destroying an item/object.
After it's destroyed I want to let it respawn with uniqueid, but i cant get it to work.
This is what i came up with so far.
After it's destroyed I want to let it respawn with uniqueid, but i cant get it to work.
Lua:
function createEgg(position)
print('Egg has respawned')
Game.createItem(14820, 1, position)
local egg = Tile(position):getItemById(14820)
egg:setAttribute(IITEM_ATTRIBUTE_UNIQUEID, 6603)
end