Page 1 of 1

custom teleport spell

Posted: Sun Oct 09, 2016 11:52 am
by icxb06
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 :D )

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;
I tested it, but it never does anything, and I saved the script under the darkstar\scripts\globals

thank you for your help

Re: custom teleport spell

Posted: Mon Oct 10, 2016 4:36 am
by Enko
Goes in /commands buddy not /globals