Odp: Teleport na komende w wybrane miejsce TFS 8.6
Ehh, bana?.
[lua]function onSay(cid, words, param)
if getTilePzInfo(getPlayerPosition(cid)) then
doTeleportThing(cid,{x=POZ, y=POZ, z=POZ})
doSendMagicEffect(getCreaturePosition(cid), CONST_ME_TELEPORT)
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "You have successfully teleported to T1.")
else
doPlayerSendCancel(cid, "Sorry, you must stand in protection zone.")
doSendMagicEffect(getCreaturePosition(cid), 2)
end
return true
end[/lua]
Code:
<talkaction words="!t1" event="script" value="t1.lua" />
Pomog?em daj rep+.