Owner Gado
Member
i've created like.. 50 training spot i just need while player stepin the teleport they going on one of these training spot place.
You really need to add more information to your posts in the future.i need to added the position of the training spot manual i've make like 50X training spot i need a script to added the spots
like
[1][x, y,z]
[2]and so on..
while they stepin the teleport of the training ..
<movevent type="StepIn" actionid="45001" event="script" value="training_tile.lua" />
local training_locations = {
{1000, 1000, 7},
{1000, 1000, 7},
{1000...
i need to added the position of the training spot manual i've make like 50X training spot i need a script to added the spots![]()
TFS 0.X - Teleport to trainer
Is this possible to do, when player enter in trainers teleport, insted of teleport him to the center of room And he have to search for a empty trainer, if there is Player be teleported to the trainer I mean check the tile positions and if dont have no one teleport him, and if all tiles are...otland.net
You really need to add more information to your posts in the future.i need to added the position of the training spot manual i've make like 50X training spot i need a script to added the spots
like
[1][x, y,z]
[2]and so on..
while they stepin the teleport of the training ..
<movevent type="StepIn" actionid="45001" event="script" value="training_tile.lua" />
local training_locations = {
{1000, 1000, 7},
{1000, 1000, 7},
{1000, 1000, 7}
}
function onStepIn(cid, item, position, fromPosition)
if not isPlayer(cid) then
return true
end
for i = 1, #training_locations do
local temp_position = {x = training_locations[i][1], y = training_locations[i][2], z = training_locations[i][3]}
if not isPlayer(getTopCreature(temp_position).uid) then
doTeleportThing(cid, temp_position)
return true
end
end
doTeleportThing(cid, fromPosition)
return true
end