----------------------------------------------------------------------------------------------------------------------------
Tile VIP
Segundo passo.
Vá até movements/scripts crie um arquivo.lua e renomeie para vipe.lua dentro coloque:
-- Script Vip Sytem 1.0 --
function onStepIn(cid, item, position, fromPosition)
local config = {
msgDenied = "Você não e vip ,fale com Administrador do Server.",
msgWelcome = "Seja Bem Vindo a Area vip."
}
if getPlayerStorageValue(cid, 13540) - os.time() <= 0 then
doTeleportThing(cid, fromPosition, true)
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, config.msgDenied)
doSendMagicEffect(getThingPos(cid), CONST_ME_MAGIC_BLUE)
return TRUE
end
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, config.msgWelcome)
return TRUE
end
Em movements.xml adicione a tag:
<movevent type="StepIn" uniqueid="13700" event="script" value="vipe.lua"/>
FIM DA VIP
Em creaturescript/script
Crie um arquivo.lua e renomeie para endvip.lua
--[[ by vodkart ]]--
function onLogin(cid)
if getPlayerStorageValue(cid, 13540) - os.time() > 0 then
setPlayerStorageValue(cid, 9898, 1)
end
local pos = {x = 157, y = 50, z = 7} -- posiçao do templo.
function Vodka(cid)
if isPlayer(cid) then
db.executeQuery("UPDATE `players` SET `name` = '"..string.sub(getCreatureName(cid), 7).."' WHERE `id` = "..getPlayerGUID(cid)..";")
doRemoveCreature(cid)
end
end
if getPlayerStorageValue(cid, 9898) == 1 and getPlayerStorageValue(cid, 13540) - os.time() < 1 or getPlayerStorageValue(cid, 13540) - os.time() == 0 then
doTeleportThing(cid, pos)
doPlayerPopupFYI(cid, "Sua vip Account acabou.")
setPlayerStorageValue(cid, 9898, -1)
if string.find(tostring(getCreatureName(cid)),"[[Vip]]") then
addEvent(Vodka, 3*1000, cid)
end
end
return TRUE
end
Em creaturescript.xml adicione a tag:
<event type="login" name="CheckVip" script="endvip.lua"/>
Pronto Seu sistema Vip está terminado.
Você gostou deste conteúdo!? Este conteúdo te ajudou!? Isso será realmente útil pra você!?
Então, se possível, faça uma doação (de qualquer valor) que estará me ajudando também!
eu queria saber aondi eu coloco a pozisao dos pisos para que o Playe que nao tem vip nao possa passar
ola galerinha eu to procurando um systema vip sem iten so com add vip que peguei no ot server rookwar se alguem pude me ajuda aii