Vodkart 1515 Postado Fevereiro 20, 2012 Autor Share Postado Fevereiro 20, 2012 @up 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 account (true or false) Need_Item = true, -- se precisa de item para usar Item = 2123 -- ID do seu item } --[[ 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 isVip(cid) == FALSE then doPlayerSendTextMessage(cid, MESSAGE_EVENT_DEFAULT, "Apenas players com VIP podem teleportar.") return TRUE elseif config.Need_Item == true and getPlayerItemCount(cid,config.Item) < 1 then doPlayerSendCancel(cid,"Você não tem o item " .. getItemNameById(config.Item)) 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 https://xtibia.com/forum/topic/134593-talkaction-teleport-por-talk-para-vip/page/5/#findComment-1202760 Compartilhar em outros sites More sharing options...
Leoxtibia 137 Postado Fevereiro 22, 2012 Share Postado Fevereiro 22, 2012 Vlw cara, funcionou direitinho! vc é fera =P Rep + Link para o comentário https://xtibia.com/forum/topic/134593-talkaction-teleport-por-talk-para-vip/page/5/#findComment-1203971 Compartilhar em outros sites More sharing options...
coyotestark 25 Postado Fevereiro 23, 2012 Share Postado Fevereiro 23, 2012 Otimo parabens XD, daria REP+ se nao tivese alcançado o limit muito util Link para o comentário https://xtibia.com/forum/topic/134593-talkaction-teleport-por-talk-para-vip/page/5/#findComment-1204321 Compartilhar em outros sites More sharing options...
AlexandreKG 134 Postado Fevereiro 26, 2012 Share Postado Fevereiro 26, 2012 Nossa eu estava procurando justamente isso rep++ Link para o comentário https://xtibia.com/forum/topic/134593-talkaction-teleport-por-talk-para-vip/page/5/#findComment-1206568 Compartilhar em outros sites More sharing options...
delderwakku 0 Postado Julho 12, 2012 Share Postado Julho 12, 2012 Parabens, como sempre otimos scripts '-' +REP Link para o comentário https://xtibia.com/forum/topic/134593-talkaction-teleport-por-talk-para-vip/page/5/#findComment-1291514 Compartilhar em outros sites More sharing options...
AlexandreKG 134 Postado Julho 22, 2012 Share Postado Julho 22, 2012 Muito Bom,Estarei colocando em meu server Link para o comentário https://xtibia.com/forum/topic/134593-talkaction-teleport-por-talk-para-vip/page/5/#findComment-1298021 Compartilhar em outros sites More sharing options...
lukas13on 4 Postado Julho 23, 2012 Share Postado Julho 23, 2012 Vodkart, será que seria possível fazer isso só que tipo você seleciona o lugar e clica em ok e será teleportado, será possível isso no tibia? Link para o comentário https://xtibia.com/forum/topic/134593-talkaction-teleport-por-talk-para-vip/page/5/#findComment-1298936 Compartilhar em outros sites More sharing options...
Vodkart 1515 Postado Julho 23, 2012 Autor Share Postado Julho 23, 2012 se eu não me engano para dar o "ok" teria que fazer por c++ mas dá para fazer pelo texto sim, vc digita e vai teleportado Link para o comentário https://xtibia.com/forum/topic/134593-talkaction-teleport-por-talk-para-vip/page/5/#findComment-1299014 Compartilhar em outros sites More sharing options...
Nathan96 4 Postado Julho 23, 2012 Share Postado Julho 23, 2012 Entra msn ai Thiago para você mi tirar uma duvida Link para o comentário https://xtibia.com/forum/topic/134593-talkaction-teleport-por-talk-para-vip/page/5/#findComment-1299020 Compartilhar em outros sites More sharing options...
lukas13on 4 Postado Julho 24, 2012 Share Postado Julho 24, 2012 (editado) Hm se alguem fizesse por "OK" seria mto mais da hora a vida HushUSHusHSUhsuHSU ' mais valeu pelo script REP+ ! Editado Julho 24, 2012 por HarpiaLOOK Link para o comentário https://xtibia.com/forum/topic/134593-talkaction-teleport-por-talk-para-vip/page/5/#findComment-1299358 Compartilhar em outros sites More sharing options...
\Mattheus ~* 7 Postado Julho 26, 2012 Share Postado Julho 26, 2012 onde posso colocar storage só para meus vip ? Link para o comentário https://xtibia.com/forum/topic/134593-talkaction-teleport-por-talk-para-vip/page/5/#findComment-1301542 Compartilhar em outros sites More sharing options...
SkySeven 5 Postado Julho 26, 2012 Share Postado Julho 26, 2012 Obrigado,pelo script estarei botando no meu servidor. Link para o comentário https://xtibia.com/forum/topic/134593-talkaction-teleport-por-talk-para-vip/page/5/#findComment-1301571 Compartilhar em outros sites More sharing options...
Vodkart 1515 Postado Julho 26, 2012 Autor Share Postado Julho 26, 2012 onde posso colocar storage só para meus vip ? qual seu sistema vip? Link para o comentário https://xtibia.com/forum/topic/134593-talkaction-teleport-por-talk-para-vip/page/5/#findComment-1301574 Compartilhar em outros sites More sharing options...
\Mattheus ~* 7 Postado Julho 26, 2012 Share Postado Julho 26, 2012 http://www.xtibia.com/forum/topic/133661-moveevent-action-perfect-vip-system-20/ Esse aqui, o meu storage: 13700 mesmo .. Link para o comentário https://xtibia.com/forum/topic/134593-talkaction-teleport-por-talk-para-vip/page/5/#findComment-1301577 Compartilhar em outros sites More sharing options...
Vodkart 1515 Postado Julho 26, 2012 Autor Share Postado Julho 26, 2012 storage 13700? blz --[[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 getPlayerStorageValue(cid, 13700) - os.time() <= 0 then doPlayerSendTextMessage(cid, MESSAGE_EVENT_DEFAULT, "Apenas players vips 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 https://xtibia.com/forum/topic/134593-talkaction-teleport-por-talk-para-vip/page/5/#findComment-1301595 Compartilhar em outros sites More sharing options...
Posts Recomendados