JDB
OtLand Veteran
- Joined
- Jun 1, 2009
- Messages
- 4,145
- Solutions
- 2
- Reaction score
- 115
This script is simple, and is usefull for BIG Rpg maps.
I hope they help somebody. :thumbup:
Action:
Script:
I hope they help somebody. :thumbup:
Action:
Lua:
<action uniqueid="1000" event="script" value="teleport.lua"/>
Script:
Lua:
local cfg = {location = {x=100, y=100, z=7}, vipStatus = 12345}
function onUse(cid, item, fromPos, item2, toPos)
local vipAccess = getPlayerStorageValue(cid, cfg.vipStatus)
local playerPos = getPlayerPosition(cid)
if vipAccess == 1 then
doTeleportThing(cid, cfg.location)
doSendMagicEffect(playerPos, CONST_ME_GIFT_WRAPS)
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "You have been teleported.")
else
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "You must be a VIP to use this teleport.")
end
return TRUE
end
Last edited: