otg-premium-version icon indicating copy to clipboard operation
otg-premium-version copied to clipboard

lloyd Lever Bug

Open travisani opened this issue 4 years ago • 2 comments

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 avatar Oct 12 '20 12:10 travisani

To solve this.

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

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

travisani avatar Oct 12 '20 12:10 travisani

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

eltonbrayner avatar Jan 06 '24 19:01 eltonbrayner