Quantcast
Channel: OTLand
Viewing all articles
Browse latest Browse all 32031

Set uniqueid to created item

$
0
0
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.

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
This is what i came up with so far.

Viewing all articles
Browse latest Browse all 32031

Trending Articles