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

Need Rebirth Portal

patriciou

Member
Joined
Dec 26, 2009
Messages
180
Reaction score
6
Hello, Since last Week i was Trying to Find Something Called Prestige Portal or Rebirth Portal that allowes people that already Rebbed or Prestiged Enter new Spawns and Towns

It Looks Like this ::



Uploaded with ImageShack.us

And Basically When the Person hasnt rebirthed yet it Wont let them in and it Will say " Only Players that have Rebirthed can Enter Rebirth Portal"

++ I Wanted it so it Will be the same as on the Picture so When you stand on a Tile Then it teleports you to Certain Area .


If anybody could find me or Write one then i would be very pleased

And REP ++ For a Person that will Help Me :)

@Up
If so It can Also be A teleport Only people that Prestiged can enter it :)
 

Attachments

Last edited:
Here it is

local keywordHandler = KeywordHandler:new()
local npcHandler = NpcHandler:new(keywordHandler)
NpcSystem.parseParameters(npcHandler)
local talkState = {}

function onCreatureAppear(cid) npcHandler:onCreatureAppear(cid) end
function onCreatureDisappear(cid) npcHandler:onCreatureDisappear(cid) end
function onCreatureSay(cid, type, msg) npcHandler:onCreatureSay(cid, type, msg) end
function onThink() npcHandler:onThink() end

function creatureSayCallback(cid, type, msg)
if(not npcHandler:isFocused(cid)) then
return false
end

local talkUser = NPCHANDLER_CONVBEHAVIOR == CONVERSATION_DEFAULT and 0 or cid

if(msgcontains(msg, 'prestige')) then
selfSay('Are you ready to prestige and start a new life?', cid)
talkState[talkUser] = 1
elseif(msgcontains(msg, 'yes') and talkState[talkUser] == 1) then
-------CONFIGS-------
local level = 450
local cost = 10000
------/CONFIGS-------
-----LOCALS-----
local id = getPlayerGUID(cid)
local name = getCreatureName(cid)
local vocation = getPlayerVocation(cid)
local storage = getCreatureStorage(cid, 85987)
----/LOCALS-----
if(getPlayerLevel(cid) >= level) then
if(doPlayerRemoveMoney(cid, cost) == TRUE) then
if(isInArray({5, 6, 7, 8}, vocation)) then
doCreatureSetStorage(cid, 85987, storage == -1 and 1 or storage + 1)
doRemoveCreature(cid)
db.executeQuery("UPDATE `players` SET `level` = 8, `experience` = 4200, `healthmax` = 2000, `manamax` = 2000, `promotion` = 0 WHERE `id` ='"..id.."';")
db.executeQuery("UPDATE `players` SET `name` = '"..name.."' WHERE `id` ='"..id.."';")
else
selfSay('Please talk with Forgotten King and promote first.', cid)
talkState[talkUser] = 0
end
else
selfSay('You don\'t have enough money. You need to pay 10 mil to be rebirthed.', cid)
talkState[talkUser] = 0
end
else
selfSay('Only characters of level 450 or higher can be rebirthed.', cid)
talkState[talkUser] = 0
end
elseif(msgcontains(msg, 'no') and talkState[talkUser] == 1) then
selfSay('Okey. Come back when you feel ready.', cid)
talkState[talkUser] = 0
end

return true
end

npcHandler:setCallback(CALLBACK_MESSAGE_DEFAULT, creatureSayCallback)
npcHandler:addModule(FocusModule:new())

- - - Updated - - -

:D?

- - - Updated - - -

D:?

- - - Updated - - -

dude? D:

- - - Updated - - -

:blink:?
 
To me this script seems right, only player with the rebirht storage can enter. Isnt it that you want?
LUA:
local teleportpos = {x=999, y=1000, z=7} --The position where player will be teleported
function onStepIn(cid, item, position, lastPosition, fromPosition, toPosition, actor)
	if getPlayerStorageValue(cid, 85987) >= 1 then --dont forget to edite to your rebirth storage
		doTeleportThing(cid, teleportpos, true)
	else
		doTeleportThing(cid, fromPosition, false)
		doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, 'Sorry, only rebirthed players can pass.')
		return true
	end
end
 
yeah, but the last one u gave me makes imposibble to enter de teleport, even if u are prestige >.<

- - - Updated - - -

oh man now is working!!!! :DDDD thanks man :D tell me how can i give u rep :DDD
 
man sorry is not working :( if u are rpestige it teleports you and no messagge, if u are not prestige it teleports you too but with the messagge :S Sorry, only rebirthed players can pass.

maybe i'm doing something wrong in the map editor o.O
 
The messae only appear if you dont have presitage and you wont get teleported, you only get teleported from the tile or teleport. What message do you want to appear when they get teleported then :P

Also make sure on the mapeditor put the x = 0 y = 0 z = 0 and change the values on the script:
local teleportpos = {x=999, y=1000, z=7} --The position where player will be teleported
<-- add here the pos you want them to get tped!
 
Click on the star below my name:

o2LCyE.png
 
ready ;) man and if i want to do now a 5 prestige teleport, should i copy the movements lua and xml and edit them to 5 besides 1 and the name of lua? (sorry my inglish)
 
Back
Top