Raikou
Well-Known Member
- Joined
- Jul 18, 2007
- Messages
- 145
- Solutions
- 2
- Reaction score
- 54
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
This is what i came up with so far.
Last edited: