Lava Titan
Developer
Hey there, I got this code that if player got storage he cant be pushed but if some1 trys to push a NPC it will send error to console so I tried
but I got this error:
Code:
if not creature:isNpc() and player:getStorageValue(777777) == 1 then
return false
end
but I got this error:
Code:
Lua Script Error: [Event Interface]
data/events/scripts/player.lua:player@onMoveCreature
data/events/scripts/player.lua:98: attempt to call method 'isNpc' (a nil value)
stack traceback:
[C]: in function 'isNpc'
data/events/scripts/player.lua:98: in function <data/events/scripts/play
er.lua:96>