Ir para conteúdo
  • Cadastre-se

Posts Recomendados

Fala galera, uma vez procurei uma script por aki e não tinha, procurei em outro forum e não tinha. Então resolvi pedir pra alguem fazer aki, ninguem fez e no outro forum nem responderam '-' Ai resolvi eu mesmo fazer, não sou muito bom em Scripter, demoro mais pra fazer e não fica tão bem feito mas da pra o gasto. Bom vou explicar como a script funciona.

 

O que é?

R- Sua Cidade principal é Vermilion por exemplo, ai você está em Cerulean ai vc entra no PVP, e decide voltar, só que quando vc entra no TP pra voltar vc ao invez de voltar pra Cerulean que era a cidade que vc tava vc volta pra Vermilion que é a cidade principal. O Script faz quando vc entra no pvp de volta, vc volta para a cidade que vc tinha entrado no pvp. Exemplo entrou no pvp em cerulean, quando voltar volta pra cerulean. 

Isso acontece em varios servers e acredito que algumas pessoas queriam, então ta ae. Sem mais delongas...

 

Vá em Movements/scripts copie qualquer script.lua renomeie para irpvp.lua abra e cole isso:

  Mostrar conteúdo oculto

s = {
--[actionID do piso] = {storage}
[6397] = {181778}, -- Cinnabar
[6395] = {181779}, -- pewter
[6390] = {181780}, -- cerulean
[6396] = {181781}, -- saffron
[6392] = {181782}, -- vermillion
[6393] = {181783}, -- fuchsia
[6394] = {181784}, -- viridian
[6391] = {181785}, -- celadon
[6398] = {181786}, -- Lavender
}


local posi = {x = 969, y = 915, z = 15} -- Posiçao do PvP...

function onStepIn(cid, item, pos)
if isSummon(cid) then
return false
end
if #getCreatureSummons(cid) >= 1 then
doTeleportThing(getCreatureSummons(cid)[1], {x=posi.x - 1, y=posi.y, z=posi.z}, false)
doTeleportThing(cid, {x=posi.x, y=posi.y, z=posi.z}, false)
setPlayerStorageValue(cid, s[item.actionid][1], 1)
doSendMagicEffect(getThingPos(cid), 21)
doSendMagicEffect(getThingPos(getCreatureSummons(cid)[1]), 21)
else
doTeleportThing(cid, {x=posi.x, y=posi.y, z=posi.z}, false)
setPlayerStorageValue(cid, s[item.actionid][1], 1)
doSendMagicEffect(getThingPos(cid), 21)
end
return true
end

As Actions ID do Piso e as Storages.

A Coordenada do PVP.

Agora vá em Movements.xml e cole essa tag.

  Citar
    <movevent type="StepIn" actionid="6390-6398" event="script" value="irpvp.lua"/>

 

Mostrar mais  

Essas Actions ID vocês colocam nos Portais PVP de cada city. Exemplo: Em Cinnabar você coloca o Action ID: 6390. Em Saffon você coloca o Action ID: 6391, em Vermilion você coloca: 6392 e assim por diante...

 

Agora vamos fazer o sistema para voltar.

Vá em Movements/scripts copie qualquer script.lua renomeie para voltarpvp.lua e cole isso dentro:

  Mostrar conteúdo oculto

citys = {
--[storage da city] = {posiçao do CP das citys}
[181778] = {x=635,y=1344,z=7}, -- Cinnabar
[181779] = {x=572,y=669,z=6}, -- pewter
[181780] = {x=1059,y=904,z=7}, -- cerulean
[181781] = {x=576,y=1143,z=7}, -- saffron
[181782] = {x=1072,y=1238,z=7}, -- vermillion
[181783] = {x=1213,y=1325,z=7}, -- fuchsia
[181784] = {x=561,y=1040,z=7}, -- viridian
[181785] = {x=862,y=1035,z=6}, -- Celadon

[181786] = {x=1204, y=1045, z= 7}, -- Lavender
}

function onStepIn(cid, item, pos)
if isSummon(cid) then
return false
end
for i = 181778, 181786 do
if getPlayerStorageValue(cid, i) == 1 then
if #getCreatureSummons(cid) >= 1 then
doTeleportThing(getCreatureSummons(cid)[1], {x=citys.x - 1, y=citys.y, z=citys.z}, false)
doTeleportThing(cid, {x=citys.x, y=citys.y, z=citys.z}, false)
setPlayerStorageValue(cid, i, 0)
doSendMagicEffect(getThingPos(cid), 21)
doSendMagicEffect(getThingPos(getCreatureSummons(cid)[1]), 21)
else
doTeleportThing(cid, {x=citys.x, y=citys.y, z=citys.z}, false)
setPlayerStorageValue(cid, i, 0)
doSendMagicEffect(getThingPos(cid), 21)
end
end
end
return true
end

A Coordenada de Cada City.

 

Agora você vai em Movements.xml e cola esta tag.

  Citar
    <movevent type="StepIn" actionid="6399" event="script" value="voltar.lua"/>

 

Expand   Mostrar mais  

O Action ID: 6399 você coloca no portal que fica no pvp, o portal pra sair do pvp e voltar para a cidade.

Qualquer duvida, posta ae. Se gostou REP+ :D

 

Queria que se alguem for postar em algum outro forum poste também com os devidos creditos pois não tem em nenhum forum essa script.

Editado por Kuchiki Kenpachi (veja o histórico de edições)

                                                                           wcoq.jpg

Link para o post
Compartilhar em outros sites
  • Respostas 13
  • Created
  • Última resposta

Top Posters In This Topic

Top Posters In This Topic

Popular Posts

Fala galera, uma vez procurei uma script por aki e não tinha, procurei em outro forum e não tinha. Então resolvi pedir pra alguem fazer aki, ninguem fez e no outro forum nem responderam '-' Ai resolvi eu mesmo fazer, não sou muito bom em Scripter, demoro mais pra fazer e não fica tão bem feito mas da pra o gasto. Bom vou explicar como a script funciona.   O que é? R- Sua Cidade principal é Vermilion por exemplo, ai você está em Cerulean ai vc entra no PVP, e decide voltar, só que quando vc en

Entendi Num é melhor fazer por tile não ? tipo ao player passar por cima de um tile o player se torna morador da city e aparece um nome "Você agora é morador de TAL City." É assim ?

Claro, você que sabe, quer por portal ou por tile mrm ? na minha opinião fica mais bonito por tile que não chama mtu atenção tlg kkkk

Testei sim :D eu uso este script no Meu Server. 

Funciona assim: você volta para a cidade que entrou no pvp ao invez de voltar para a cidade natal tendeu ? :D

                                                                           wcoq.jpg

Link para o post
Compartilhar em outros sites

Participe da conversa

Você pode postar agora e se cadastrar mais tarde. Se você tem uma conta, faça o login para postar com sua conta.

Visitante
Responder

×   Você colou conteúdo com formatação.   Remover formatação

  Apenas 75 emojis são permitidos.

×   Seu link foi automaticamente incorporado.   Mostrar como link

×   Seu conteúdo anterior foi restaurado.   Limpar o editor

×   Não é possível colar imagens diretamente. Carregar ou inserir imagens do URL.

  • Quem Está Navegando   0 membros estão online

    Nenhum usuário registrado visualizando esta página.

  • Conteúdo Similar

    • Por Kiman174
      GRIMHAVEN SEASON 4
      LAUNCHING APRIL 18TH 19:00 CEST
       
      Join our community and stay up to date:
      Official Discord Server
       
       
       
       
       
      Step into a world where passion meets innovation—welcome to Grimhaven MMORPG! Born from a heartfelt passion project, Grimhaven has evolved into an extraordinary realm where every pixel on our meticulously crafted Real Map tells a story. Leveraging the classic legacy of version 8.6 and elevated by inventive custom content, our server transcends traditional gameplay, inviting you into a living, breathing adventure at every turn.
       
       
      Explore sprawling landscapes, battle formidable foes, and uncover hidden lore as you journey through environments that blend classic mechanics with innovative systems. Every corner of Grimhaven pulses with life and mystery, inviting you to forge alliances, challenge epic quests, and redefine what you thought possible in an open Tibia server. With each update, our dedicated team pushes the envelope, ensuring that every raid, dungeon, and social encounter feels fresh and electrifying.
       
       
      Whether you're a seasoned adventurer or new to the realm, Grimhaven offers a thrilling escape into a world where the spirit of discovery and the thrill of combat come together in perfect harmony. Embrace the extraordinary—your adventure begins now in Grimhaven MMORPG!
       
       
      What Makes Grimhaven Stand Out?
       
      With over thousands of hours of development and 4000+ commits, Grimhaven stands out with its unique blend of classic and innovative MMORPG features. Built on an authentic Real Map with 8.6 mechanics and expanded with carefully designed custom content, the experience is unmatched. The server offers rates starting from 12x, stunning HD visuals, and intricately scripted quests that immerse you in a dynamic narrative. From challenging custom raid bosses to a refined item system inspired by classic action RPGs, every element is thoughtfully crafted to deliver an engaging and ever-evolving adventure, all backed by a dedicated team ensuring a top-tier gaming experience.
       
       
       
      Custom Zones :
      Explore meticulously designed zones that promise unique challenges and unparalleled rewards.
       

       
       
       
      Unique Randomly Generated Dungeons :
      As if that's not enough, brace yourselves for our unique dungeons. Each one is randomly generated, ensuring that no adventure is ever the same. The thrill of exploring the unknown awaits you in every twist and turn.
       


       

       
       


       
       
       
      Scripted and Mechanically Challenging Quests:
      Immerse yourself in intricately designed quests that push your strategic prowess and combat skills, all brought to life by the remarkable creativity of our quest designer and mapper.
       

       

       


       
       
      Mighty Bosses:
      Confront colossal adversaries, each boasting unique abilities and intricate mechanics that challenge your tactics and teamwork, turning every encounter into an unforgettable battle.
       


       
       
       
      Ancient and Mythic Monsters:
      Encounter legendary beasts, ancient guardians, and mythical creatures that not only test your skills and courage but also offer tougher challenges, richer loot drops, and enhanced experience rewards.
       

       
       
       
      Magical Attributes & Crafting:
      Discover a world of enchantment where magical items not only have a chance to drop in the wild, but can also be expertly crafted to bestow unique and powerful attributes on your gear.
       
       

       

       
       
       
      Custom Events :
      We keep the excitement rolling with unique, server-wide events that'll keep you on the edge of your seat. Expect the unexpected!
       
       



       
       
       
      This glimpse barely scratches the surface—there's a TON more content that would overwhelm this thread! To dive even deeper, visit our official wiki at Grimhaven Wiki (https://wiki.grimhaven.net) and create your account today at Latestnews - Grimhaven (https://www.grimhaven.net/) .   
       
      Gear up for an unforgettable adventure starting April 18th 19:00 CEST.
      Dive into a realm of epic rewards, heart-pounding quests, and intense PVP battles where you'll test your skills against others.
      Join a vibrant community of adventurers, embrace the thrill of discovery, and answer the call to glory on the battlefield!
    • Por zandoria
      Olá, aventureiro!

      É com grande entusiasmo que anunciamos o lançamento do servidor Zandoria! Prepare-se para uma experiência única em um mundo totalmente novo, repleto de desafios, mistérios e diversão!

      Link de acesso: https://zandoria.com.br
      Host BR - Ping: 20ms

      FREE PREMIUM

      Server Info

      IP: zandoria.com.br
      Client: 13.40
      World type: PVP
      Protection level: 7
      Loot: x800
      Spawn: x80
      House rent: monthly
      Level to create guild: 100
      Level to buy house: 100

      Rates
      Exp Rate: x800
      Magic Level: x800
      Skills: x800

      Frags & Skull system

      PZ Lock: 1 min
      Frag Duration: 7 hours
      RedSkull Duration: 1 days
      BlackSkull Duration: 3 days
      Red skull: 3 daily / 5 weekly / 10 monthly
      Black skull: 6 daily / 10 frags weekly / 20 frags monthly 
    • Por FeK
      CSTibia (beta) | 01/03 às 16:00

      CSTibia é um jogo PvP que conecta Counter Strike e Tibia, proporcionando uma experiência única para aqueles que gostam de PvP.

      São 2 modos de jogo, 6 mapas e mais de 50 armas disponíveis para jogar!

      #Modos de jogo: Mata-mata e Torneio x1.

      #Mapas: Dust2, Inferno, Mirage, India, IceWorld e PoolDay.

      O beta estará disponível a partir do dia 01/03 às 16 horas! Ele terá duração de 1 mês e no dia 01/04 iniciará a Session 1.

      #Download: 01/03 às 12 horas.

      ▶️ Crie já sua conta!
      http://www.cstibia.com

      🎮 Discord: https://discord.gg/zdxdTTURpq

      📸 Instagram: https://www.instagram.com/cstibia
    • Por Natsume
      Website: https://dbsu.eu
                Fanpage: https://www.facebook.com/profile.php?id=61550637247869
                                      Discord: https://discord.gg/hx5QHWfsgg

       
       

       
       
       
    • Por Pifafa
      Tibinha - YurOts
      Olá hoje trago a vocês meu projeto, tenho como objetivo atingir 50 jogadores (um sonho talvez que quase já se realizou) 
      www.tibinha.online



      Obrigado por ver meu projeto, caso tenha interesse entre nele e converse comigo, estou disponível para tira duvidas e ajudar a todos aqui!
       
  • Estatísticas dos Fóruns

    96843
    Tópicos
    519590
    Posts



×
×
  • Criar Novo...

Informação Importante

Confirmação de Termo