Shiris undrin
Intermediate OT User
- Joined
- Jun 10, 2010
- Messages
- 115
- Solutions
- 1
- Reaction score
- 103
Why does this error happen in the distro? When I finish the arena quest in svargrond last final portal to get to the reward room, that's when the error appears in the distro, it doesn't affect the quest at all, apparently, but I wanted to fix it and I couldn't find any way, because when I modify something in the arenaPit.lua:59 line it influences the quest and causes a larger error.
Erro:
arenaPit.lua:
Erro:
data/movements/scripts/quests/svargrond arena/arenaPit.lua:59: in function <data/movements/scripts/quests/svargrond arena/arenaPit.lua:5>
arenaPit.lua:
Lua:local condition = Condition(CONDITION_OUTFIT) condition:setTicks(120000) condition:setOutfit({lookType = 111}) function onStepIn(creature, item, position, fromPosition) local player = creature:getPlayer() if not player then return true end local playerId = player.uid if item.actionid == 25300 then player:addCondition(condition) player:setStorageValue(Storage.SvargrondArena.Pit, 0) player:teleportTo(SvargrondArena.kickPosition) player:say('Coward!', TALKTYPE_MONSTER_SAY) SvargrondArena.cancelEvents(playerId) return true end local pitId = player:getStorageValue(Storage.SvargrondArena.Pit) local arenaId = player:getStorageValue(Storage.SvargrondArena.Arena) if pitId > 10 then player:teleportTo(SvargrondArena.rewardPosition) player:setStorageValue(Storage.SvargrondArena.Pit, 0) if arenaId == 1 then SvargrondArena.rewardPosition:sendMagicEffect(CONST_ME_FIREWORK_BLUE) player:setStorageValue(Storage.SvargrondArena.Greenhorn, 1) player:say('Welcome back, little hero!', TALKTYPE_MONSTER_SAY) elseif arenaId == 2 then SvargrondArena.rewardPosition:sendMagicEffect(CONST_ME_FIREWORK_YELLOW) player:setStorageValue(Storage.SvargrondArena.Scrapper, 1) player:say('Congratulations, brave warrior!', TALKTYPE_MONSTER_SAY) elseif arenaId == 3 then SvargrondArena.rewardPosition:sendMagicEffect(CONST_ME_FIREWORK_RED) player:setStorageValue(Storage.SvargrondArena.Warlord, 1) player:say('Respect and honour to you, champion!', TALKTYPE_MONSTER_SAY) end player:setStorageValue(Storage.SvargrondArena.Arena, player:getStorageValue(Storage.SvargrondArena.Arena) + 1) player:sendTextMessage(MESSAGE_STATUS_CONSOLE_ORANGE, 'Congratulations! You completed ' .. ARENA[arenaId].name .. ' arena, you should take your reward now.') player:setStorageValue(ARENA[arenaId].questLog, 2) SvargrondArena.cancelEvents(playerId) return true end local occupant = SvargrondArena.getPitOccupant(pitId, player) if occupant then player:sendTextMessage(MESSAGE_EVENT_ADVANCE, occupant:getName() .. ' is currently in the next arena pit. Please wait until ' .. (occupant:getSex() == PLAYERSEX_FEMALE and 's' or '') .. 'he is done fighting.') player:teleportTo(fromPosition, true) return true end SvargrondArena.cancelEvents(playerId) SvargrondArena.resetPit(pitId) SvargrondArena.scheduleKickPlayer(playerId, pitId) Game.createMonster(ARENA[arenaId].creatures[pitId], PITS[pitId].summon, false, true) player:teleportTo(PITS[pitId].center) player:getPosition():sendMagicEffect(CONST_ME_MAGIC_RED) player:say('Fight!', TALKTYPE_MONSTER_SAY) return true end
Attachments
-
erro distro.png6.7 KB · Views: 31 · VirusTotal
-
errp print.png960.2 KB · Views: 30 · VirusTotal