The idea is to use the Admin on my Local server with RL map to have the full clean map on OtsClient.
As soon as i have the full RL map cleared i will release it for everybody that are using OtsClient (which is amazing) and plays in a RL map.
so here is a script i found (dunno the version of the script, i'm using TFS 1.0) but doesn't work, seems that i can't enter the if statement where is the doteleportThing...dunno why.
and this is the script:
OFC, if some1 has the complete RL map for OtsClient and wants to share ....is more than welcome
As soon as i have the full RL map cleared i will release it for everybody that are using OtsClient (which is amazing) and plays in a RL map.
so here is a script i found (dunno the version of the script, i'm using TFS 1.0) but doesn't work, seems that i can't enter the if statement where is the doteleportThing...dunno why.
and this is the script:
Code:
local map = {
Xmax=33760;
Ymax=33023;
Xstart=36;
Ystart=36;
Zstart=7;
--
Delay=1500;
Skip_tiles=4;
Floors_skip=1; --Can be 1 or -1
Floors_count=3; --Start form floor Zstart and stop after be teleproted to 3 floors
}
function cycle(player,x,y,z,c)
local player = Player(cid)
-- if not isPlayer(cid) then
-- print('ancora qui?');
-- return 0;
-- end
x = x+map.Skip_tiles;
if x > map.Xmax then
x = map.Xmax;
end
if (getThingfromPos({x=x,y=y,z=z},false) or {}).uid ~= nil then
print('qui ci entro?');
doTeleportThing(cid,{x=x,y=y,z=z})
end
if x == map.Xmax then
x = map.Xstart;
y = y+map.Skip_tiles;
end
print('x= ' .. (x) .. 'y= ' .. (y) .. 'mapx= ' .. (map.Xmax) .. 'mapy= ' .. (map.Ymax));
if y >= map.Ymax then
y = map.Ystart;
z = z+Floors_skip;
c = c-1;
if c <= 0 then
return 0;
end
end
addEvent(cycle,map.Delay,cid,x,y,z,c)
end
function onSay(player, words, param)
local player = Player(cid)
cycle(cid,map.Xstart,map.Ystart,map.Zstart,map.Floors_count)
end
OFC, if some1 has the complete RL map for OtsClient and wants to share ....is more than welcome
Last edited: