EPuncker / orts2

ORTS datapack working on latest TFS
GNU General Public License v3.0
40 stars 19 forks source link

onUsePick tile returning nil #6

Closed torresmon closed 3 years ago

torresmon commented 3 years ago

got this one while trying to use a pick on different tiles near venore

Lua Script Error: [Action Interface] data/actions/scripts/tools/pick.lua:onUse data/actions/lib/actions.lua:283: attempt to index a nil value (global 'tile') stack traceback: [C]: in metamethod 'index' data/actions/lib/actions.lua:283: in function 'onUsePick' (...tail calls...)

torresmon commented 3 years ago

another nil, this time on PlayerStorageKeys. got this one while trying to use: plague mask - id: 12786

Lua Script Error: [Scripts Interface] C:\Users\o7\Documents\TIBIA\SERVAO\SERVER\forgottenserver-master\data\scripts\actions\others\afflicted_outfit.lua:callback ...-master\data\scripts\actions\others\afflicted_outfit.lua:8: attempt to index a nil value (global 'PlayerStorageKeys') stack traceback: [C]: in metamethod 'index' ...-master\data\scripts\actions\others\afflicted_outfit.lua:8: in function <...-master\data\scripts\actions\others\afflicted_outfit.lua:3>

EPuncker commented 3 years ago

eu atualizei eles hoje, dá uma olhada: https://github.com/EPuncker/orts2/blob/main/data/actions/lib/actions.lua https://github.com/EPuncker/orts2/blob/main/data/scripts/actions/others/afflicted_outfit.lua

torresmon commented 3 years ago

blz vou atualizar

torresmon commented 3 years ago

pick persistiu, plague mask e plague bell: "You cannot use this object" (droparam pré update)

Lua Script Error: [Action Interface] data/actions/scripts/tools/pick.lua:onUse data/actions/lib/actions.lua:283: attempt to index a nil value (global 'tile') stack traceback: [C]: in metamethod 'index' data/actions/lib/actions.lua:283: in function 'onUsePick' (...tail calls...)

torresmon commented 3 years ago

funcionou depois que peguei o afflicted... eu devia ter conferido isso antes. sry

EPuncker commented 3 years ago

fixed on https://github.com/EPuncker/orts2/commit/30a862c063d57e10d81afdaf753b180fcb565436