ralke
(҂ ͠❛ ෴ ͡❛)ᕤ
- Joined
- Dec 17, 2011
- Messages
- 1,689
- Solutions
- 29
- Reaction score
- 950
- Location
- Santiago - Chile
- GitHub
- ralke23
- Twitch
- ralke23
Actually you're right! I need to clean a corpse. Got this error from the merge. Also fixed bossarea for bossArea.Delete any item might be difficult cause it could delete the items that were placed in map editor, however if you want to remove specific item, like a corpse type, or certain item id, then you can use something like that
I'd add this somewhere afterLUA:iterateArea( function(position) local tile = Tile(position) if not tile then return end local items = tile:getItems() if items then for i = 1, #items do local checkitem = items[i] if checkitem:getId() == 18472 then local item = items[i] item:remove() end end end end, Position(config.bossarea.fromPos.x, config.bossarea.fromPos.y, config.bossarea.fromPos.z), Position(config.bossarea.toPos.x, config.bossarea.toPos.y, config.bossarea.toPos.z) )
stopEvent(config.kickEventId)

Thanks for the reply! Regards
