bom não tenho essa vip não posso testa tenta assim
function onSay(cid, words, param)
local waittime = 20 -- Tempo de exhaustion
local storage = 5560
local pos = getCreaturePosition(cid)
local from = {x=pos.x, y=pos.y, z=pos.z}
local to = {x = 1136, y = 242, z = 7} -- Onde sera teleportado outra dimensao
local area1 = {x = 1134, y = 240, z = 7} -- Ponta de cima na esquerda
local area2 = {x = 1138, y = 244, z = 7} -- Ponta de baixo na direita
local ppos = getCreaturePosition(cid)
local level = 100 -- Level necessário
if getPlayerLevel(cid) < level then
doPlayerSendCancel(cid, "Você precisa de level "..level.." para usar essa magia.")
return true
end
if isVipAccount(cid) and doPlayerSendCancel(cid, "sorry you do not have vip.") then return true end
function back(cid)
if isInArea(getCreaturePosition(cid), area1, area2) then
doTeleportThing(cid, from)
end
end
function go(cid)
if isInArea(getCreaturePosition(cid), from, from) then
doTeleportThing(cid, to)
end
end
if exhaustion.check(cid, storage) == false then
for _, pid in ipairs(getPlayersOnline()) do
addEvent(back, 5000, pid) -- Tempo para retornar (1000 = 1 seg)
addEvent(go, 1, pid)
doSendMagicEffect(getCreaturePosition(pid), 63)
doCreatureSay(pid, "Change Dimension!", TALKTYPE_MONSTER) --- Mensagem
addEvent(setPlayerStorageValue, 10000, pid, 1634, -1)
end
exhaustion.set(cid, storage, waittime)
else
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Aguarde " .. exhaustion.get(cid, storage) .. " segundos para usar a spell novamente.")
end
return true
end






info
Grupo: Campones
Registrado: 20/01/08
Posts: 56
Reputação: 0
Char no Tibia: SKyDevILFiRe
Gente, algem pode colocar esse script para apenas players vip(kidray) usarem ?
function onSay(cid, words, param) local waittime = 20 -- Tempo de exhaustion local storage = 5560 local pos = getCreaturePosition(cid) local from = {x=pos.x, y=pos.y, z=pos.z} local to = {x = 1136, y = 242, z = 7} -- Onde sera teleportado outra dimensao local area1 = {x = 1134, y = 240, z = 7} -- Ponta de cima na esquerda local area2 = {x = 1138, y = 244, z = 7} -- Ponta de baixo na direita local ppos = getCreaturePosition(cid) local level = 100 -- Level necessário if getPlayerLevel(cid) < level then doPlayerSendCancel(cid, "Você precisa de level "..level.." para usar essa magia.") return true end function back(cid) if isInArea(getCreaturePosition(cid), area1, area2) then doTeleportThing(cid, from) end end function go(cid) if isInArea(getCreaturePosition(cid), from, from) then doTeleportThing(cid, to) end end if exhaustion.check(cid, storage) == false then for _, pid in ipairs(getPlayersOnline()) do addEvent(back, 5000, pid) -- Tempo para retornar (1000 = 1 seg) addEvent(go, 1, pid) doSendMagicEffect(getCreaturePosition(pid), 63) doCreatureSay(pid, "Change Dimension!", TALKTYPE_MONSTER) --- Mensagem addEvent(setPlayerStorageValue, 10000, pid, 1634, -1) end exhaustion.set(cid, storage, waittime) else doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Aguarde " .. exhaustion.get(cid, storage) .. " segundos para usar a spell novamente.") end return true endThanks, Grato, Skydevil
Editado Outubro 7 por SkyDevilFire