tiddpd
PHP Scripter
- Joined
- Apr 16, 2008
- Messages
- 331
- Reaction score
- 0
I made this script to open a door when you say "open sesame" in front of it, it does work, I get this error:
(I am using TFS 0.3 Beta 3)
[07/02/2009 14:04:14] Lua Script Error: [TalkAction Interface]
[07/02/2009 14:04:14] data/talkactions/scripts/open.lua
[07/02/2009 14:04:14] luaGetThingFromPos(). Tile not found
This is the script
Also note: I get the same error in other scripts that use getThingFromPos. It can't find the tile. (when its actually there)
(I am using TFS 0.3 Beta 3)
[07/02/2009 14:04:14] Lua Script Error: [TalkAction Interface]
[07/02/2009 14:04:14] data/talkactions/scripts/open.lua
[07/02/2009 14:04:14] luaGetThingFromPos(). Tile not found
This is the script
Code:
local standPos = {x=457,y=199,z=7}
local statuePos = getThingFromPos {x = 457, y = 198, z = 7, stackpos=1}
local statue = getThingFromPos(statuePos)
function onSay(cid, param)
if statue.itemid > 0 then
doTransformItem(item.uid, item.itemid + 1)
else
doSendMagicEffect(getPlayerPosition(cid), CONST_ME_POFF)
end
end
Also note: I get the same error in other scripts that use getThingFromPos. It can't find the tile. (when its actually there)
Last edited: