sickk 0 Postado Setembro 10, 2012 Share Postado Setembro 10, 2012 Olá, não to conseguindo usar o talkaction de fly [http://www.xtibia.com/forum/topic/190891-fly-para-vips/] no perfect vip system 3.0 [http://www.xtibia.com/forum/topic/133661-perfect-vip-system-30/] ... na verdade eu não sei fazer ele funcionar no perfect vip system. Como deveria ficar para poder funcionar somente para players vip do PVS 3.0 ? Obrigado. Link para o comentário Compartilhar em outros sites More sharing options...
0 Vodkart 1515 Postado Setembro 10, 2012 Share Postado Setembro 10, 2012 --[[script By Vodkart]]-- function onSay(cid, words, param) local config = { pz = true, -- players precisam estar em protection zone para usar? (true or false) battle = true, -- players deve estar sem battle (true or false) custo = true, -- se os teleport irão custa (true or false) need_level = true, -- se os teleport irão precisar de level (true or false) vip = true -- se precisa ser vip (true or false) } --[[ Config lugares]]-- local lugar = { ["depot"] = { -- nome do lugar pos = {x=129, y=54, z=6},level = 5,price = 1000}, ["templo"] = { -- nome do lugar pos = {x=160, y=54, z=7},level = 10, price = 2000}, ["arena"] = { -- nome do lugar pos = {x=125, y=351, z=9},level = 15,price = 3000}, ["area vip"] ={ -- nome do lugar pos = {x=280, y=87, z=4},level = 20,price = 4000} } --[[ Lista de Viagem (Não mexa) ]]-- if (param == "lista") then local str = "" str = str .. "lista de viagem :\n\n" for name, pos in pairs(lugar) do str = str..name.."\n" end str = str .. "" doShowTextDialog(cid, 6579, str) return true end local a = lugar[param] if not(a) then doPlayerSendTextMessage(cid, 22, "desculpe,este lugar não existe") doSendMagicEffect(getCreaturePosition(cid), CONST_ME_POFF) return true elseif config.pz == true and getTilePzInfo(getCreaturePosition(cid)) == false then doPlayerSendTextMessage(cid, MESSAGE_EVENT_DEFAULT,"você precisa estar em protection zone pra poder teleportar.") return true elseif config.vip == true and not HaveCharaterAcess(cid) then doPlayerSendTextMessage(cid, MESSAGE_EVENT_DEFAULT, "Apenas players com vip podem teleportar.") return true elseif config.battle == true and getCreatureCondition(cid, CONDITION_INFIGHT) == true then doPlayerSendTextMessage(cid, MESSAGE_EVENT_DEFAULT, "Você precisa estar sem battler pra poder teleportar.") return true elseif config.need_level == true and getPlayerLevel(cid) < a.level then doPlayerSendTextMessage(cid, 22, "Desculpe,Voce não tem level. voce precisa "..a.level.." level ou mais para ser teleportado.") doSendMagicEffect(getCreaturePosition(cid), CONST_ME_POFF) return true elseif config.custo == true and doPlayerRemoveMoney(cid, a.price) == false then doPlayerSendTextMessage(cid, 22, "Desculpe,voce nao tem dinheiro suficiente. Voce precisa "..a.price.." gp para ser teleportado.") doSendMagicEffect(getCreaturePosition(cid), CONST_ME_POFF) return true end doTeleportThing(cid, a.pos) doSendMagicEffect(a.pos, CONST_ME_TELEPORT) doPlayerSendTextMessage(cid, 22, "" .. getPlayerName(cid) .. " foi teleportado para: \n " .. param .. ".") return true end Link para o comentário Compartilhar em outros sites More sharing options...
0 sickk 0 Postado Setembro 10, 2012 Autor Share Postado Setembro 10, 2012 --[[script By Vodkart]]-- function onSay(cid, words, param) local config = { pz = true, -- players precisam estar em protection zone para usar? (true or false) battle = true, -- players deve estar sem battle (true or false) custo = true, -- se os teleport irão custa (true or false) need_level = true, -- se os teleport irão precisar de level (true or false) vip = true -- se precisa ser vip (true or false) } --[[ Config lugares]]-- local lugar = { ["depot"] = { -- nome do lugar pos = {x=129, y=54, z=6},level = 5,price = 1000}, ["templo"] = { -- nome do lugar pos = {x=160, y=54, z=7},level = 10, price = 2000}, ["arena"] = { -- nome do lugar pos = {x=125, y=351, z=9},level = 15,price = 3000}, ["area vip"] ={ -- nome do lugar pos = {x=280, y=87, z=4},level = 20,price = 4000} } --[[ Lista de Viagem (Não mexa) ]]-- if (param == "lista") then local str = "" str = str .. "lista de viagem :\n\n" for name, pos in pairs(lugar) do str = str..name.."\n" end str = str .. "" doShowTextDialog(cid, 6579, str) return true end local a = lugar[param] if not(a) then doPlayerSendTextMessage(cid, 22, "desculpe,este lugar não existe") doSendMagicEffect(getCreaturePosition(cid), CONST_ME_POFF) return true elseif config.pz == true and getTilePzInfo(getCreaturePosition(cid)) == false then doPlayerSendTextMessage(cid, MESSAGE_EVENT_DEFAULT,"você precisa estar em protection zone pra poder teleportar.") return true elseif config.vip == true and not HaveCharaterAcess(cid) then doPlayerSendTextMessage(cid, MESSAGE_EVENT_DEFAULT, "Apenas players com vip podem teleportar.") return true elseif config.battle == true and getCreatureCondition(cid, CONDITION_INFIGHT) == true then doPlayerSendTextMessage(cid, MESSAGE_EVENT_DEFAULT, "Você precisa estar sem battler pra poder teleportar.") return true elseif config.need_level == true and getPlayerLevel(cid) < a.level then doPlayerSendTextMessage(cid, 22, "Desculpe,Voce não tem level. voce precisa "..a.level.." level ou mais para ser teleportado.") doSendMagicEffect(getCreaturePosition(cid), CONST_ME_POFF) return true elseif config.custo == true and doPlayerRemoveMoney(cid, a.price) == false then doPlayerSendTextMessage(cid, 22, "Desculpe,voce nao tem dinheiro suficiente. Voce precisa "..a.price.." gp para ser teleportado.") doSendMagicEffect(getCreaturePosition(cid), CONST_ME_POFF) return true end doTeleportThing(cid, a.pos) doSendMagicEffect(a.pos, CONST_ME_TELEPORT) doPlayerSendTextMessage(cid, 22, "" .. getPlayerName(cid) .. " foi teleportado para: \n " .. param .. ".") return true end Obrigadão cara, você ta sempre me ajudando OBS.: Reputado Link para o comentário Compartilhar em outros sites More sharing options...
0 caotic 393 Postado Setembro 14, 2012 Share Postado Setembro 14, 2012 Pedido Atendido. Tópico Movido Link para o comentário Compartilhar em outros sites More sharing options...
Pergunta
sickk 0
Olá,
não to conseguindo usar o talkaction de fly [http://www.xtibia.com/forum/topic/190891-fly-para-vips/] no perfect vip system 3.0 [http://www.xtibia.com/forum/topic/133661-perfect-vip-system-30/] ... na verdade eu não sei fazer ele funcionar no perfect vip system. Como deveria ficar para poder funcionar somente para players vip do PVS 3.0 ?
Obrigado.
Link para o comentário
Compartilhar em outros sites
3 respostass a esta questão
Posts Recomendados