• 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!

teleport / time travel

calum69

New Member
Joined
Aug 12, 2007
Messages
346
Reaction score
3
Location
Great Britain
hello i was wondering if somone can make a spell that teleports a player to x position on a map and stores their previous position then teleports them back to the same location they teleported from after a time limit.

or if not that, this is another idea a command / spell that gets a player pos example: 100,100, 7 (original map) and teleports them to a duplicate map (copy pasted next to original map) and adds 1000 to pos x and y, and keeps same location for z. when the player moves on the duplicated map it takes the players new pos on (duplicated map)once they moved (example: 1010,1010,6 and removes 1000 it added at the start, so their location on the (original map) would be 110,110,6. to other players they see them disappear and reappear after x seconds as if they blinked like on wow.

this idea can be used for different universes (idea: a player can travel to the same towns on the map but they are in ruins and decayed. this can be used for quests and to solve mysteries before returning back to the real universe) the same concept on soul reaver the playstation game)

if both these spells could be done it would be awesome for the hole community to have

down side:

only small maps could use the blink idea

thanks ~

if anyone doesnt understand the concept of blink i can explain it better with pictures if somone can help :thumbup:
 
Last edited:
Here I made you a fast talkaction example/script:
PHP:
local config = {
x = 9,
y = 9,
timeToComeBack = 4,  -- in seconds
store = 129559
}

function goBack(cid)
	local pos = getPlayerPosition(cid)
	pos.x,pos.y = pos.x - config.x,pos.y - config.y
	doTeleportThing(cid,pos,false)
	setPlayerStorageValue(cid,config.store,-1)
end


function onSay(cid, words, param, channel)
	if getPlayerStorageValue(cid,config.store) == 1 then
		return true
	end
	local pos,s = getPlayerPosition(cid)
	pos.x,pos.y = pos.x + config.x,pos.y + config.y
	doTeleportThing(cid,pos,false)
	doSendMagicEffect(pos,12)
	doSendMagicEffect(pos,2)
	addEvent(goBack,1000*config.timeToComeBack,cid)
	setPlayerStorageValue(cid,config.store,1)
	return true
end

In config you will find that:
x = 9 => This is the difference of the positions in x
y = 9 => This is the difference of the positions in y
==> Like you said: adds 1000 to pos x and y
timeToComeBack = 4 => The time after the player will be teleported back in seconds..

Important if the player logs he won't be teleported back so you should either make the zone to "no logout zone" or do an extra creature event..
 
good job, is there a way to make a condition on logout that the countdown stops till player logs back in with storage value's

or as its a war ot is their a way on login i can make players spawn at the temple?

and last thing set a rule that the spell can only be used every x mins so players dont spam it?

i just thought, what happens when a player uses it on the duplicate map?
 
=> i just thought, what happens when a player uses it on the duplicate map?
It's impossible.

Just add this to your login lua:
PHP:
if getPlayerStorageValue(cid,129559) == 1 then
doTeleportThing(cid,getTownTemplePosition(getPlayerTown(cid)))
setPlayerStorageValue(cid,129559,-1)
end

And if a player logs there and logsin again he will be teleported to temple..
 
is it possible to make this a spell?
because within making it a spell i can set a radius for cetrain vocations

example: druid uses spell "name" area 4x4, teleports all players there they can more on that map as they chase target etc, then it shifts back to the original map
(this idea comes from being able to teleport a trapped target away from healers kill him if they can and then they return in the same positions they moved on the duplicated map, but either with the target or his body is left behind)

does this talk action save moved locations and teleport them to new positions?


cheers for the help man, rep+ :)
 
Back
Top