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

Lua need a teleport script!

aod ot

New Member
Joined
May 1, 2011
Messages
47
Reaction score
0
I need a script that when someone steps on a teleport he tps back to temple, but if he have vip he just go throught. im using kekox system.

Rep++
 
Code:
local TEMPLE_POS = {x=1000,y=1000,z=7}
local VIP_POS = {x=1000,y=1000,z=7}
local VIP_PLAYER = --storage value for VIP membership?--

function onStepIn(cid, item, position, fromPosition)
	if isPlayer(cid) and getPlayerStorageValue(cid,VIP_PLAYER) == 1 then
		doTeleportThing(cid, VIP_POS)
		doSendMagicEffect(VIP_POS, 10)
		doPlayerSendTextMessage(cid, 25, 'Welcome to the VIP island.')
	else
		doTeleportThing(cid, TEMPLE_POS)
		doSendMagicEffect(TEMPLE_POS, 10)
		doPlayerSendTextMessage(cid, 25, 'You do not have a VIP membership.')
	end
return true
end

I don't know how your VIP membership works, so alter it to your requirements?
 
nice is it a aid or uid?

Should work with both aid or uid. Its your choice how you connect this script. Just make sure the storage value for vip is correct.
and the positions.

I would make the script a bit different, if vip then return true. Else teleport, but it dosnt matter that much.

Ok, I couldnt resist modifying it: Remember its a movement script.
Lua:
-- Script originally by Radium, edited by Znote.
local TEMPLE_POS = {x=1000,y=1000,z=7}
local VIP_PLAYER = --storage value for VIP membership?--

function onStepIn(cid, item, position, fromPosition)
if not isPlayer(cid) then
return true
end
	if getPlayerStorageValue(cid,VIP_PLAYER) > 0 then
		doSendMagicEffect(cid, 10)
		doPlayerSendTextMessage(cid, 25, 'Welcome to the VIP island.')
		return true
	else
		doTeleportThing(cid, TEMPLE_POS)
		doSendMagicEffect(TEMPLE_POS, 10)
		doPlayerSendTextMessage(cid, 25, 'You do not have a VIP membership.')
	end
return true
end
 
Last edited:
Ok, that isnt a problem, but how in the world am i ment to help if i don't know what queries this system is using.


Edit - http://otland.net/f81/mod-vip-system-96000/ This system???

If so here.

Code:
local TEMPLE_POS = {x=1000,y=1000,z=7}
local VIP_POS = {x=1000,y=1000,z=7}
local VIP_PLAYER = --storage value for VIP membership?--

function onStepIn(cid, item, position, fromPosition)
	if isPlayer(cid) and getPlayerVipDays(cid) > 0 then
		doTeleportThing(cid, VIP_POS)
		doSendMagicEffect(VIP_POS, 10)
		doPlayerSendTextMessage(cid, 25, 'Welcome to the VIP island.')
	else
		doTeleportThing(cid, TEMPLE_POS)
		doSendMagicEffect(TEMPLE_POS, 10)
		doPlayerSendTextMessage(cid, 25, 'You do not have a VIP membership.')
	end
return true
end
 
Back
Top