otg-premium-version
otg-premium-version copied to clipboard
lloyd Lever Bug
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>
To solve this.
Just change:
playerTile:setExhaustion(Storage.ForgottenKnowledge.LloydTimer, os.time() + 20 * 3600)
To
playerTile:setStorageValue(Storage.ForgottenKnowledge.LloydTimer, os.time() + 20 * 3600)
@Johncorex PR: https://github.com/Johncorex/otg-premium-version/pull/90