Been a while since I've been around the OT community and alot has changed. But im glad to be back and I'm trying to learn new things. I'm running Tfs 1.2 10.77 and I found an awesome system I would like to use, but its made for Tfs 1.1 and I cant seem to get it to work. Anyone know what I need to do to convert this? I've tried everything I can think of and searched for a long time to no avail! any help would be appreciated!
Here's the system:
https://otland.net/threads/tfs-1-1-...at-for-rpg-servers.230015/page-4#post-2306582
The Error I'm getting:
and my teleporter.lua
Here's the system:
https://otland.net/threads/tfs-1-1-...at-for-rpg-servers.230015/page-4#post-2306582
The Error I'm getting:
Code:
Lua Script Error: [MoveEvents Interface]
data/movements/scripts/catacombs/teleporter.lua:eek:onStepIn
data/movements/scripts/catacombs/teleporter.lua:6: attempt to index local 'player' (a nil value)
stack traceback:
[C]: in function '__index'
data/movements/scripts/catacombs/teleporter.lua:6: in function <data/movements/scripts/catacombs/teleporter.lua:3>
and my teleporter.lua
Code:
local choose = {}
function onStepIn(cid, item, position, fromPosition)
local player = Player(cid)
local pos = player:getPosition()
if not player then
return true
end
if getPlayerStorageValue(cid, 6661) == 1 then
return sendCatacombWindow(cid)
end
return true
end