Rizz
Quited with Tibia/OT
Lua:
local vipZones = {
{fromPos = {x=1800, y=150, z=0}, toPos = {x=2050, y=300, z=15}},
{fromPos = {x=1000, y=1250, z=0}, toPos = {x=1500, y=1600, z=15}}
}
local vipTowns = {14,15}
local homeTown = 1
local homeCords = {x = 1060, y = 994, z = 7}
function onLogin(cid)
if isPlayerVip(cid) == FALSE then
for _, v in ipairs(vipZones) do
if isInRange(getCreaturePosition(cid), v.fromPos, v.toPos) == TRUE then
doTeleportThing(cid, homeCords, TRUE)
doPlayerSendTextMessage(cid, MESSAGE_EVENT_ADVANCE, "Your VIP has expired. The gods has therefore transported you to safety in "..getTownName(homeTown)..".")
end
end
if isInArray(vipTowns, getPlayerTown(cid)) == TRUE then
doPlayerSetTown(cid, homeTown)
end
end
return TRUE
end
If you use premium instead of http://otland.net/f163/full-working-vip-system-shawak-44840/ change
Lua:
if isPlayerVip(cid) == FALSE then
Lua:
if isPremium(cid) == FALSE then