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"/>