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

Storage Tp?

Teddy

SweStream.se
Joined
Oct 2, 2008
Messages
3,797
Reaction score
10
Location
Sweden 172
Are There any script so if player have storage 9999 you can enter a tp and if u not have that storage you cant enter it..
 
put a uniqueID under the teleport tile and dont give any cordination to the teleport
and add in movement the unique id of what you put there and it woud work perfect.

XML:
<movevent type="StepIn" uniqueid="00000" event="script" value="tp1.lua"/>

LUA:
local nPos = {x=33023, y=32436, z=12}
function onStepIn(cid, item, pos)
	if isPlayer(cid) == TRUE then
    tele = getPlayerStorageValue(cid,61163)
    if tele == 1 then
			doTeleportThing(cid, nPos)
			doSendMagicEffect(nPos, CONST_ME_ENERGYAREA)
			doCreatureSay(cid, "Welcome!", TALKTYPE_ORANGE_1)
    else
        doPlayerSendCancel(cid, "You are not aloud to enter.")
    end
	end
	return TRUE
end
 
Back
Top