Open caduhsn opened 8 months ago
Remove a função: em lever door
if Creature.checkCreatureInsideDoor(player, toPosition) then return true end return true end
Alterando apenas para
return true end
E testa novamente
Não deu certo. data-global/scripts/actions/door/level_door.lua
`local doorIds = {} for index, value in ipairs(LevelDoorTable) do if not table.contains(doorIds, value.openDoor) then table.insert(doorIds, value.openDoor) end
if not table.contains(doorIds, value.closedDoor) then
table.insert(doorIds, value.closedDoor)
end
end
local levelDoor = Action() function levelDoor.onUse(player, item, fromPosition, target, toPosition, isHotkey) for index, value in ipairs(LevelDoorTable) do if value.closedDoor == item.itemid then if item.actionid > 0 and player:getLevel() >= item.actionid - 1000 then item:transform(value.openDoor) item:getPosition():sendSingleSoundEffect(SOUND_EFFECT_TYPE_ACTION_OPEN_DOOR) player:teleportTo(toPosition, true) return true else player:sendTextMessage(MESSAGE_EVENT_ADVANCE, "Only the worthy may pass.") return true end end end return true end
for index, value in ipairs(doorIds) do levelDoor:id(value) end
levelDoor:register()`
Remove a função: em lever door
if Creature.checkCreatureInsideDoor(player, toPosition) then return true end return true end
Alterando apenas para
return true end
E testa novamente
Não consegui reproduzir o erro. Fez alguma alteração?
Não consegui reproduzir o erro. Fez alguma alteração?
não, o script é do global mesmo.. pode ser porque os bixos fecham os sqms pra empurrar o corpo ?
This issue is stale because it has been open 120 days with no activity.
Priority
High
Area
What happened?
Player morre na porta de level e corpo some, foi testado em dois tipos virada para sul/norte e leste/oeste. Porta sul nao apreseta erro(o corpo é chutado para fora) porta leste o corpo do player some após morrer.
https://github.com/opentibiabr/canary/assets/148654410/50617679-94fc-4f21-8de0-f61e0c62fb10
What OS are you seeing the problem on?
Linux, Windows
Code of Conduct