• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!
  • 2026 staff recruitment is open! Check it out and consider applying!

[Request] Advanced Tp Commands

ollie

New Member
Joined
Feb 15, 2008
Messages
34
Reaction score
0
Hey I am after an advanced script for teleporting.
here is the idea so far... hope you understand...


you can save 5 different positions and just say !pos 1/2/3/4/5 and it will teleport you there

so like



!savepos ......... saves a certen position

!pos <position number>........... takes you to your saved position


and if anyone wants to remember what they are incase they forgot then they can just have a scroll with what they have written for the positions

eg:

pos 1 = Guild house

pos 2 = My House

pos 3 = Shops

pos 4 = Temple

pos 5 = Trainers

so all the commands for this script would be

!savepos <position number>

!deletepos <position number>

!pos <position number>


thank you and i hope someone can make this script
 
its called waypoints :)

set them in your map editor and there is a command in talkactions to tele to it :) for example /depot after you set it. one of my gms showed me it its pretty insane.
 
Code:
function onSay(cid, words, param, channel)

local wpt = {

x=1000, y=310, z=11, stackpos=1, --first wpt etc
x=727, y=310, z=11, stackpos=1,
x=527, y=310, z=11, stackpos=1
}

	if (param == "") then
		doPlayerSendCancel(cid, "You have to write number of waypoint.")
		return TRUE
	end
	
	if (param == 1) then
		doTeleportThing(cid, wpt[1])
		return TRUE
	end
	
	if (param == 2) then
		doTeleportThing(cid, wpt[2])
		return TRUE
	end

	if (param == 3) then
		doTeleportThing(cid, wpt[3])
		return TRUE
	end
return TRUE
else
return FALSE
end

TRY THIS AS TALKACTION ;P post results

I'm thinking about !savepos command ,but for a while it is not even possibile for me to create ;d
 
i tryed but it didnt work... it was saying that "end" was too close too "function" :S

and i thought i might just mention this... this is for individual characters so.. if i was to save a position on one character and then goto my other character the positions would not be saved there


hope someone understands... and thanks Legolas23 :P
 
i tryed but it didnt work... it was saying that "end" was too close too "function" :S

and i thought i might just mention this... this is for individual characters so.. if i was to save a position on one character and then goto my other character the positions would not be saved there


hope someone understands... and thanks Legolas23 :P

return TRUE
end

juste delete return FALSE and else in end :o
 
Back
Top