custom teleport spell

Post Reply
icxb06
Posts: 13
Joined: Thu Aug 25, 2016 1:18 am

custom teleport spell

Post by icxb06 » 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 :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

Enko
Posts: 7
Joined: Wed Dec 03, 2014 5:24 am

Re: custom teleport spell

Post by Enko » Mon Oct 10, 2016 4:36 am

Goes in /commands buddy not /globals

Post Reply