Im writing my own script for my own server, so later on my friend can teleport to a chocobo circuit and can teleport to any city (that will be a next project )
and this is what i wrote:
Code: Select all
---------------------------------------------------------------------------------------------------
-- func: pos <x> <y> <z> <optional zone> <optional target>
-- desc: Sets the players position. If none is given, prints out the position instead.
---------------------------------------------------------------------------------------------------
cmdprops =
{
permission = 0,
parameters = "s"
};
function onTrigger(player, city, target)
if (city == "chocobo_circuit") then
player:setPos(-319, 0, -474, 0, 70);
end
end;
thank you for your help