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

Quick Escape And Return?

axewound

New Member
Joined
Aug 7, 2011
Messages
20
Reaction score
0
I'm not Sure if this has been asked for or not. But i found A script That makes A portal Out of A ID - EG: 7735
And takes you to X Y Z. Is There Anyway for The portal to Stay open like this - Let's Say your hunting, And you need to go sell, You quick escape to the temple and the portal stay's open, you go sell and go back into it returning you to were you left.

Thanks.
 
Just like in Diablo 2? :D
I don't know who made this script and if it works but i had this script on my pc.
Code:
local time = 10
 
local tele = {
	{ x = 1000, y = 1000, z = 7}
 
}
 
function removeTele(item, position)
	addEvent(createtele, timeToCreate * 10000)
	for i = 1, doPlayerSendTextMessage(cid, 14, "" ..time[i].."") do
		doRemoveItem(getThingfromPos(tele[i]).uid)
		doSendMagicEffect(tele[i], CONST_ME_MAGIC_RED)
	end
	return TRUE
end
 
function createTele(item, position)
	for i = 1, doPlayerSendTextMessage(cid, 14, "tele is created") do
		doCreateItem(8304, 1, tele[i])
		doSendMagicEffect(tele[i], CONST_ME_MAGIC_GREEN)
	end
	return TRUE
end
 
function onThink(interval, lastExecution)
	addEvent(removeTele, 10000)
	return TRUE
end

It doesn't take u back to your huntingplace tho
(this one works with id 8304, eternal flame)
 
Just like in Diablo 2? :D
I don't know who made this script and if it works but i had this script on my pc.
Code:
local time = 10
 
local tele = {
	{ x = 1000, y = 1000, z = 7}
 
}
 
function removeTele(item, position)
	addEvent(createtele, timeToCreate * 10000)
	for i = 1, doPlayerSendTextMessage(cid, 14, "" ..time[i].."") do
		doRemoveItem(getThingfromPos(tele[i]).uid)
		doSendMagicEffect(tele[i], CONST_ME_MAGIC_RED)
	end
	return TRUE
end
 
function createTele(item, position)
	for i = 1, doPlayerSendTextMessage(cid, 14, "tele is created") do
		doCreateItem(8304, 1, tele[i])
		doSendMagicEffect(tele[i], CONST_ME_MAGIC_GREEN)
	end
	return TRUE
end
 
function onThink(interval, lastExecution)
	addEvent(removeTele, 10000)
	return TRUE
end

It doesn't take u back to your huntingplace tho
(this one works with id 8304, eternal flame)
What's Crazy is just a few ago a guy on my server said the same thing.. I was thinking just like on diablo 2..
Problem is i have one that works fine teleporting you back to the cords.. but i want one to take me back to were i first ported from.. :)
 
Post the script you are using or fix it yourself. You just have to make the script create 2 portals, one which will tp you to town and the other which will take you back where you were hunting... the only problem is that everyone can go trough that portal to the place you were hunting.
 
Post the script you are using or fix it yourself. You just have to make the script create 2 portals, one which will tp you to town and the other which will take you back where you were hunting... the only problem is that everyone can go trough that portal to the place you were hunting.

local cfg = {
time = 15, -- Time the teleport is open.
exhausted = 60, -- Time you are exhausted.
storage = 1337, -- Storage used for "exhaust."
to = { x = 1000, y = 1000, z = 7 } -- Where the teleport takes you.
}
function onUse(cid, item, fromPosition, itemEx, toPosition)
if(getPlayerStorageValue(cid, cfg.storage) > os.time()) then
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_RED, "You must wait another " .. getPlayerStorageValue(cid, cfg.storage) - os.time() .. ' second' .. ((getPlayerStorageValue(cid, cfg.storage) - os.time()) == 1 and "" or "s") .. " to create another teleport.")
elseif(getTilePzInfo(getCreaturePosition(cid)) == true) then
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_RED, "You cannot create a teleport in a protection zone.")
elseif(getCreatureCondition(cid, CONDITION_INFIGHT) == true) then
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_RED, "You may not create a teleport while fighting.")
elseif(hasProperty(getThingFromPos(toPosition).uid, CONST_PROP_BLOCKSOLID) == true) then
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_RED, "You cannot create a teleport here.")
else
local function deleteTeleport()
local teleport = getTileItemById(toPosition, 1387).uid
if(teleport > 0) then
doRemoveItem(teleport)
doSendMagicEffect(toPosition, CONST_ME_POFF)
doSendAnimatedText(toPosition, "Closed", TEXTCOLOR_RED)
end
return true
end
for x = 1, cfg.time do
local n = cfg.time - x
addEvent(doSendAnimatedText, x * 1000, toPosition, n > 0 and tostring(n), TEXTCOLOR_WHITE)
end
doCreateTeleport(1387, cfg.to, toPosition)
doSendMagicEffect(toPosition, CONST_ME_ENERGYAREA)
addEvent(deleteTeleport, cfg.time * 1000)
setPlayerStorageValue(cid, cfg.storage, os.time() + cfg.exhausted)
end
return true
end
 
Post the script you are using or fix it yourself. You just have to make the script create 2 portals, one which will tp you to town and the other which will take you back where you were hunting... the only problem is that everyone can go trough that portal to the place you were hunting.

local cfg = {
time = 15, -- Time the teleport is open.
exhausted = 60, -- Time you are exhausted.
storage = 1337, -- Storage used for "exhaust."
to = { x = 1000, y = 1000, z = 7 } -- Where the teleport takes you.
}
function onUse(cid, item, fromPosition, itemEx, toPosition)
if(getPlayerStorageValue(cid, cfg.storage) > os.time()) then
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_RED, "You must wait another " .. getPlayerStorageValue(cid, cfg.storage) - os.time() .. ' second' .. ((getPlayerStorageValue(cid, cfg.storage) - os.time()) == 1 and "" or "s") .. " to create another teleport.")
elseif(getTilePzInfo(getCreaturePosition(cid)) == true) then
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_RED, "You cannot create a teleport in a protection zone.")
elseif(getCreatureCondition(cid, CONDITION_INFIGHT) == true) then
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_RED, "You may not create a teleport while fighting.")
elseif(hasProperty(getThingFromPos(toPosition).uid, CONST_PROP_BLOCKSOLID) == true) then
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_RED, "You cannot create a teleport here.")
else
local function deleteTeleport()
local teleport = getTileItemById(toPosition, 1387).uid
if(teleport > 0) then
doRemoveItem(teleport)
doSendMagicEffect(toPosition, CONST_ME_POFF)
doSendAnimatedText(toPosition, "Closed", TEXTCOLOR_RED)
end
return true
end
for x = 1, cfg.time do
local n = cfg.time - x
addEvent(doSendAnimatedText, x * 1000, toPosition, n > 0 and tostring(n), TEXTCOLOR_WHITE)
end
doCreateTeleport(1387, cfg.to, toPosition)
doSendMagicEffect(toPosition, CONST_ME_ENERGYAREA)
addEvent(deleteTeleport, cfg.time * 1000)
setPlayerStorageValue(cid, cfg.storage, os.time() + cfg.exhausted)
end
return true
end
 
Back
Top