Johncorex / otg-premium-version

A free and open-source MMORPG server emulator written in C++ Copyright (C) 2020 Mark Samman
GNU General Public License v2.0
36 stars 38 forks source link

lloyd Lever Bug #79

Open travisani opened 3 years ago

travisani commented 3 years ago

Erro ao usar a alavanca do BOSS LLOYD.

Lua Script Error: [Action Interface]
data/actions/scripts/quests/forgotten knowledge/lloydLever.lua:onUse
...ctions/scripts/quests/forgotten knowledge/lloydLever.lua:55: attempt to call method 'setExhaustion' (a nil value)
stack traceback:
        [C]: in function 'setExhaustion'
        ...ctions/scripts/quests/forgotten knowledge/lloydLever.lua:55: in function <...ctions/scripts/quests/forgotten knowledge/lloydLever.lua:28>
Lua Script Error: [Main Interface]
in a timer event called from:
(Unknown scriptfile)
data/lib/core/game.lua:98: table index is nil
stack traceback:
        [C]: in function '__newindex'
        data/lib/core/game.lua:98: in function 'setStorageValue'
        data/lib/miscellaneous/050-functions.lua:69: in function <data/lib/miscellaneous/050-functions.lua:50>
travisani commented 3 years ago

To solve this.

Just change: playerTile:setExhaustion(Storage.ForgottenKnowledge.LloydTimer, os.time() + 20 * 3600)

To playerTile:setStorageValue(Storage.ForgottenKnowledge.LloydTimer, os.time() + 20 * 3600)

eltonbrayner commented 8 months ago

@Johncorex PR: https://github.com/Johncorex/otg-premium-version/pull/90