davidmemo
New Member
- Joined
- Mar 28, 2011
- Messages
- 37
- Reaction score
- 0
this is my error in console!
and this is my code
and this is my code
Code:
local demonPositions = {
Position(33060, 31623, 15),
Position(33066, 31623, 15),
Position(33060, 31627, 15),
Position(33066, 31627, 15)
}
function onRemoveItem(item, tile, position)
local targetItem = Item(item.uid)
Game.createItem(item.itemid, 1, targetItem:getPosition())
targetItem:remove()
for i = 1, #demonPositions do
Game.createMonster('Demon', demonPositions[i])
end
return true
end