Lava Titan
Developer
add on talkactions xml:
now go on scripts and add:
Works with tfs 0.3.2+
Report bugs!
Rep++ if i helped you!
PHP:
<talkaction words="Text here" script="scriptname.lua" />
now go on scripts and add:
LUA:
local function comparePos(pos1, pos2)
return (pos1.x == pos2.x and pos1.y == pos2.y and pos1.z == pos2.z)
end
function onSay(cid, param)
local pid = getCreaturePosition(cid)
local oldPos = {x=xxxx,y=yyyy,z=z}
local newPos = {x=xxxx,y=yyyy,z=z}
if comparePos(getPlayerPosition(cid),oldPos) then --{x=pid.x,y=pid.y,z=pid.z}
doSendMagicEffect(oldPos, 2)
doTeleportThing(cid,newPos)
doSendMagicEffect(newPos, 10)
else
doPlayerSendCancel(cid,"You are not in the right position.")
end
end
Works with tfs 0.3.2+
Report bugs!
Rep++ if i helped you!
