Hokku
Member
Hello! I had configured svargrond arena script from Printer datapack https://otland.net/threads/10-77-tfs-1-2-orts-a-real-map-project.204514/ to my TFS 1.1 by Mark Samman and after repair all debugs when i join the pit and kill the first boss Frostfur, nothing happens, pile doesnt move. Here is the debug at console
My arena_kill.lua
Spended last two days trying to fix by myself and not i cannot, would be great if someone can help me.
My arena_kill.lua
Code:
function onKill(creature, target)
local targetMonster = target:getMonster()
if not targetMonster then
return
end
local player = creature:getPlayer()
local pit = player:getStorageValue(Storage.SvargrondArena.Pit)
if pit < 1 or pit > 10 then
return
end
local arena = player:getStorageValue(Storage.SvargrondArena.Arena)
if arena < 1 then
return
end
if not isInArray(ARENA[arena].creatures, targetMonster:getName():lower()) then
return
end
-- Remove pillar and create teleport
local pillarTile = Tile(PITS[pit].pillar)
if pillarTile then
local pillarItem = pillarTile:getItemById(SvargrondArena.itemPillar)
if pillarItem then
pillarItem:remove()
local teleportItem = Game.createItem(SvargrondArena.itemTeleport, 1, PITS[pit].tp)
if teleportItem then
teleportItem:setActionId(25200)
end
SvargrondArena.sendPillarEffect(pit)
end
end
player:setStorageValue(Storage.SvargrondArena.Pit, pit + 1)
player:say('Victory! Head through the new teleporter into the next room.', TALKTYPE_MONSTER_SAY)
return true
end
Spended last two days trying to fix by myself and not i cannot, would be great if someone can help me.