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

VIP Teleport

Tobbz

New Member
Joined
Jan 7, 2008
Messages
35
Reaction score
3
Location
Sweden
Hello! :)

I wounder if someone got a vip teleport script, have search alot but didint found any ;/
 
You didn't search hard enough. Add this to your "citizen.lua" script:

LUA:
local ACTION_ID = 1234 -- teleport actionId
local storage = 4545 -- VIP storage
local k = item.actionid == ACTION_ID
if(k and getCreatureStorage(cid, storage) < 0) then
	doTeleportThing(cid, fromPosition, true)
	doSendMagicEffect(fromPosition, CONST_ME_TELEPORT)
	doCreatureSay(cid, "VIP only.", TALKTYPE_MONSTER)
end
Set the destination to the TP in the map editor and this will work.
 
Last edited:
vip tp?
explain it better, what you want?

I got a VIP system with storageid 20500. And when you have VIP should you be able to teleport to a vip city, and if not right storageid -> back to the temple

- - - Updated - - -

You didn't search hard enough. Add this to your "citizen.lua" script:

LUA:
local ACTION_ID = 1234 -- teleport actionId
local storage = 4545 -- VIP storage
local k = item.actionid == ACTION_ID
if(k and getCreatureStorage(cid, storage) < 0) then
	doTeleportThing(cid, fromPosition, true)
	doSendMagicEffect(fromPosition, CONST_ME_TELEPORT)
	doCreatureSay(cid, "VIP only.", TALKTYPE_MONSTER)
end
Set the destination to the TP in the map editor and this will work.

Thanks alot J-Dre! :)

- - - Updated - - -

I got a VIP system with storageid 20500. And when you have VIP should you be able to teleport to a vip city, and if not right storageid -> back to the temple

- - - Updated - - -



Thanks alot J-Dre! :)

Cant get it work, i set right storage id "20500" , and set action id "1234" on the teleport but still didn't work, and no errors in console? :(

Any idea? :)
 
Back
Top