Versão testada: 8.54 ~ 8.60
Bem vi que algumas pessoas com problema neste tipo de script então resolvi postar.
oque o script faz?
O titulo do tópico já diz,ele teleporta os jogadores que não forem mais vips para o templo,para que eles não fiquem acessando area vip sem ter vip...
[ End Vip para o Perfect Vip System ] :
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) elseif getPlayerStorageValue(cid, 9898) == 1 and getPlayerStorageValue(cid, 13540) - os.time() <= 0 then doTeleportThing(cid, getTownTemplePosition(getPlayerTown(cid))) doPlayerPopupFYI(cid, "Sua vip Account acabou.") setPlayerStorageValue(cid, 9898, -1) end return TRUE end
em Creaturescript.xml adicione a tag:
<event type="login" name="checkvip" script="endvip.lua"/>
[ End vip para o Vip System By MOCK] :
em Creaturescript/script Crie um arquivo.lua e renomeie para :
endvip.lua
--[[ by vodkart ]]-- function onLogin(cid) if vip.hasVip(cid) == TRUE then setPlayerStorageValue(cid, 9898, 1) elseif getPlayerStorageValue(cid, 9898) == 1 and vip.hasVip(cid) == FALSE and vip.getVip(cid) == 0 then doTeleportThing(cid, getTownTemplePosition(getPlayerTown(cid))) doPlayerPopupFYI(cid, "Sua vip Account acabou.") setPlayerStorageValue(cid, 9898, -1) end return TRUE end
em Creaturescript.xml adicione a tag:
<event type="login" name="checkvip" script="endvip.lua"/>