"data/movements/scripts/segundavip"
function onStepIn(cid, item, position, fromPosition)
local config = {
msgDenied = "Somente players VIP podem passar aqui.",
msgWelcome = "Seja bem-vindo a area VIP!"
}
vip = getPlayerStorageValue(cid,18966)
if vip == -1 then
doTeleportThing(cid, fromPosition, true)
doPlayerSendTextMessage(cid, MESSAGE_EVENT_DEFAULT, "Adquira Sua Vip.")
doSendMagicEffect(getThingPos(cid), CONST_ME_MAGIC_BLUE)
return true
end
doPlayerSendTextMessage(cid, MESSAGE_EVENT_DEFAULT, "Bom Proveito.")
return true
end
"data/movements/movements.xml"
<movevent type="StepIn" actionid="18966" event="script" value="segundavip.lua"/>