Hey ive got a teleport in temple and id like to make so that only vip members can pass trough. The vip medal is id 5785 and it works already with a vip door i have created but i just dont know how to make it with the vip teleport? should i change the action id of teleport to 5785? and uinique id to 111152 because ive got a script but it doesnt work
I dont know what this line is for?
Code:
function onStepIn(cid, item, position, lastPosition, fromPosition, toPosition, actor)
if(not isPlayer(cid)) then
return true
end
if (item.actionid == 5785 and getPlayerStorageValue(cid,11552) >= 1) then
doTeleportThing(cid, fromPosition, true)
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "You need VIP to go through here.")
else
local destination = {x = 247, y = 659, z = 13}
doTeleportThing(cid, destination, true)
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Enjoy vip.")
end
return true
end
I dont know what this line is for?
Code:
local destination = {x = 247, y = 659, z = 13}