custom teleport spell
Posted: Sun Oct 09, 2016 11:52 am
Hi,
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:
I tested it, but it never does anything, and I saved the script under the darkstar\scripts\globals
thank you for your help
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