Ir para conteúdo
  • Cadastre-se

(Resolvido)Pokemons Iniciais


Ir para solução Resolvido por Ayron5,

Posts Recomendados

Em 25/08/2016 ás 00:38, lucasmourahere disse:

Olá Tibiaking,

 

como faço para dar 3 Pokemons Iniciais, sem ser com box.. quando o novo jogador nascer ele já vem com as 3 pokeballs, que seriam eles Charmander, Bulbasaur e Squirtle.

Pode ser por portal? tipo esse que uso no meu servidor, Vc entra no portal e ganha o poke e os itens (configuráveis)

 

 

Spoiler

Sem título.jpg

 

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

                                                                             1535210279_tumblr_o9b6yoxM1Z1tco8kto1_500(3).gif.f527686e19da738322c39555244decac.gif

                                                             Meus tópicos         

                                                         Se ajudei você deixe seu Rep! para fortalecer a amizade ^^

                                                                              Vamos ajudar o fórum a crescer mais.

                                                                          1641206641_gif-escudo-fla-3d(1).gif.a5d3c0c24824d5272a181aa91c5eda0c.gif

                                                                                                Mengão porra! . .

                                                                     tumblr_oxm8eriUeU1sqwgnro2_400.gif.22e347b2fc58fdfd88dbf84f4bdaa1bc.gif

                                                                                ----- NPC que vende informação -----

                                                                           -----Baú Que dá Outfit se tiver Level -----

                                                                     ----- [Npc] Que vende Stones (itens) por diamonds -----

 

 

                                                                       

                       

Link para o post
Compartilhar em outros sites
Just now, Sepultura said:

Pode ser por portal? tipo esse que uso no meu servidor. 

  Hide contents

 

 

Sem título.jpg

 

 

Opa meu caro.. obrigado pela atenção.

Então cara, por portal eu sei fazer.. precisava sem portais mesmo, ao nascer a primeira vez no cp ele estaria com as 3 pokeballs em seu inventario.

Link para o post
Compartilhar em outros sites
1 minuto atrás, lucasmourahere disse:

 

 

Opa meu caro.. obrigado pela atenção.

Então cara, por portal eu sei fazer.. precisava sem portais mesmo, ao nascer a primeira vez no cp ele estaria com as 3 pokeballs em seu inventario.

Vou tentar algo aqui ^^ qual a versão do seu servidor? 

                                                                             1535210279_tumblr_o9b6yoxM1Z1tco8kto1_500(3).gif.f527686e19da738322c39555244decac.gif

                                                             Meus tópicos         

                                                         Se ajudei você deixe seu Rep! para fortalecer a amizade ^^

                                                                              Vamos ajudar o fórum a crescer mais.

                                                                          1641206641_gif-escudo-fla-3d(1).gif.a5d3c0c24824d5272a181aa91c5eda0c.gif

                                                                                                Mengão porra! . .

                                                                     tumblr_oxm8eriUeU1sqwgnro2_400.gif.22e347b2fc58fdfd88dbf84f4bdaa1bc.gif

                                                                                ----- NPC que vende informação -----

                                                                           -----Baú Que dá Outfit se tiver Level -----

                                                                     ----- [Npc] Que vende Stones (itens) por diamonds -----

 

 

                                                                       

                       

Link para o post
Compartilhar em outros sites
39 minutos atrás, lucasmourahere disse:

 

 

Versão: 8.54

TFS: 0.3.6

Base: Pokemon Dash Advanced

Mano tentei aqui mais n consegui kkk oque eu posso fazer é criar 3 box com 1 poke cada e colocar para quando o player logar ganhar as 3 de uma só vez ou seja ganhar os 3 pokes de uma só vez ^^ 

                                                                             1535210279_tumblr_o9b6yoxM1Z1tco8kto1_500(3).gif.f527686e19da738322c39555244decac.gif

                                                             Meus tópicos         

                                                         Se ajudei você deixe seu Rep! para fortalecer a amizade ^^

                                                                              Vamos ajudar o fórum a crescer mais.

                                                                          1641206641_gif-escudo-fla-3d(1).gif.a5d3c0c24824d5272a181aa91c5eda0c.gif

                                                                                                Mengão porra! . .

                                                                     tumblr_oxm8eriUeU1sqwgnro2_400.gif.22e347b2fc58fdfd88dbf84f4bdaa1bc.gif

                                                                                ----- NPC que vende informação -----

                                                                           -----Baú Que dá Outfit se tiver Level -----

                                                                     ----- [Npc] Que vende Stones (itens) por diamonds -----

 

 

                                                                       

                       

Link para o post
Compartilhar em outros sites
1 minute ago, Sepultura said:

Mano tentei aqui mais n consegui kkk oque eu posso fazer é criar 3 box com 1 poke cada e colocar para quando o player logar ganhar as 3 de uma só vez ou seja ganhar os 3 pokes de uma só vez ^^ 

 

Teria como fazer pra mim meu caro? agradeceria muito!

Link para o post
Compartilhar em outros sites
  • Solução

As tags do actions.xml   os  itemid você coloca de acordo com seu gosto ^^ 

Spoiler

 

<action itemid="7884" event="script" value="boxB.lua"/>

<action itemid="7885" event="script" value="boxC.lua"/>

<action itemid="7886" event="script" value="boxS.lua"/>

 

 Script: boxB

Spoiler

 

function onUse(cid, item, frompos, item2, topos)
r1 = math.random(1,1)

if getPlayerLevel(cid) >= 1 and getPlayerFreeCap(cid) ~= 0 then
if doPlayerRemoveItem(cid,7884,1) == TRUE then
if r1 == 1 then
doPlayerSendTextMessage(cid,22,"Você ganhou um Bulbasaur.")
local health = 300 -- Health do poke
local maxhealth = 300 -- Maximo de health do poke
local description = "Contains a Bulbasaur."
local poke1 = "This is Bulbasaur's pokeball. HP = ["..health.."/"..maxhealth.."]"
item = doCreateItemEx(2219)
doItemSetAttribute(item, "poke", poke1)
doItemSetAttribute(item, "nome", "Bulbasaur")
doItemSetAttribute(item, "description", description)
doPlayerAddItemEx(cid, item, true)
doTransformItem(item, 2222)
doSendMagicEffect(getCreaturePosition(cid), 28)

         else
        doPlayerSendTextMessage(cid,22,"..")
          end
  end
        else
  doPlayerSendCancel(cid,'Somente players level 1+ e que estejam carregando 5 ou menos pokemons podem abrir este presente.')
        end
return 1
end

 

Script: boxC

Spoiler

 

function onUse(cid, item, frompos, item2, topos)
r1 = math.random(1,1)

if getPlayerLevel(cid) >= 1 and getPlayerFreeCap(cid) ~= 0 then
if doPlayerRemoveItem(cid,7885,1) == TRUE then
if r1 == 1 then
doPlayerSendTextMessage(cid,22,"Você ganhou um Charmander.")
local health = 325 -- Health do poke
local maxhealth = 325 -- Maximo de health do poke
local description = "Contains a Charmander."
local poke1 = "This is Charmander's pokeball. HP = ["..health.."/"..maxhealth.."]"
item = doCreateItemEx(2219)
doItemSetAttribute(item, "poke", poke1)
doItemSetAttribute(item, "nome", "Charmander")
doItemSetAttribute(item, "description", description)
doPlayerAddItemEx(cid, item, true)
doTransformItem(item, 2222)
doSendMagicEffect(getCreaturePosition(cid), 28)


         else
        doPlayerSendTextMessage(cid,22,"..")
          end
  end
        else
  doPlayerSendCancel(cid,'Somente players level 1+ e que estejam carregando 5 ou menos pokemons podem abrir este presente.')
        end
return 1
end

 

Script: boxS

Spoiler

 

function onUse(cid, item, frompos, item2, topos)
r1 = math.random(1,1)

if getPlayerLevel(cid) >= 1 and getPlayerFreeCap(cid) ~= 0 then
if doPlayerRemoveItem(cid,7886,1) == TRUE then

if r1 == 1 then
doPlayerSendTextMessage(cid,22,"Você ganhou um Squirtle.")
local health = 380 -- Health do poke
local maxhealth = 380 -- Maximo de health do poke
local description = "Contains a Squirtle."
local poke1 = "This is Squirtle's pokeball. HP = ["..health.."/"..maxhealth.."]"
item = doCreateItemEx(2219)
doItemSetAttribute(item, "poke", poke1)
doItemSetAttribute(item, "nome", "Squirtle")
doItemSetAttribute(item, "description", description)
doPlayerAddItemEx(cid, item, true)
doTransformItem(item, 2222)
doSendMagicEffect(getCreaturePosition(cid), 28)

         else
        doPlayerSendTextMessage(cid,22,"..")
          end
  end
        else
  doPlayerSendCancel(cid,'Somente players level 1+ e que estejam carregando 5 ou menos pokemons podem abrir este presente.')
        end
return 1
end

 

Feito isso vá na pasta mods do seu servidor e abra o arquivo firstitems. 

aonde tiver assim >     storage = 30001,
            items = {1988, 1987, 2382, 2120, 2580, 2550, 7385, 2395, 2547}  vc coloca os numeros dos ids das box ex: ficaria assim >  items = {1988, 1987, 2382, 2120, 2580, 2550, 7385, 2395, 2547, 7884, 7885, 7886} 

Bom espero ter ajudado ^^ 

                                                                             1535210279_tumblr_o9b6yoxM1Z1tco8kto1_500(3).gif.f527686e19da738322c39555244decac.gif

                                                             Meus tópicos         

                                                         Se ajudei você deixe seu Rep! para fortalecer a amizade ^^

                                                                              Vamos ajudar o fórum a crescer mais.

                                                                          1641206641_gif-escudo-fla-3d(1).gif.a5d3c0c24824d5272a181aa91c5eda0c.gif

                                                                                                Mengão porra! . .

                                                                     tumblr_oxm8eriUeU1sqwgnro2_400.gif.22e347b2fc58fdfd88dbf84f4bdaa1bc.gif

                                                                                ----- NPC que vende informação -----

                                                                           -----Baú Que dá Outfit se tiver Level -----

                                                                     ----- [Npc] Que vende Stones (itens) por diamonds -----

 

 

                                                                       

                       

Link para o post
Compartilhar em outros sites
23 minutes ago, Sepultura said:

As tags do actions.xml   os  itemid você coloca de acordo com seu gosto ^^ 

  Reveal hidden contents

 

<action itemid="7884" event="script" value="boxB.lua"/>

<action itemid="7885" event="script" value="boxC.lua"/>

<action itemid="7886" event="script" value="boxS.lua"/>

 

 Script: boxB

  Reveal hidden contents

 

function onUse(cid, item, frompos, item2, topos)
r1 = math.random(1,1)

if getPlayerLevel(cid) >= 1 and getPlayerFreeCap(cid) ~= 0 then
if doPlayerRemoveItem(cid,7884,1) == TRUE then
if r1 == 1 then
doPlayerSendTextMessage(cid,22,"Você ganhou um Bulbasaur.")
local health = 300 -- Health do poke
local maxhealth = 300 -- Maximo de health do poke
local description = "Contains a Bulbasaur."
local poke1 = "This is Bulbasaur's pokeball. HP = ["..health.."/"..maxhealth.."]"
item = doCreateItemEx(2219)
doItemSetAttribute(item, "poke", poke1)
doItemSetAttribute(item, "nome", "Bulbasaur")
doItemSetAttribute(item, "description", description)
doPlayerAddItemEx(cid, item, true)
doTransformItem(item, 2222)
doSendMagicEffect(getCreaturePosition(cid), 28)

         else
        doPlayerSendTextMessage(cid,22,"..")
          end
  end
        else
  doPlayerSendCancel(cid,'Somente players level 1+ e que estejam carregando 5 ou menos pokemons podem abrir este presente.')
        end
return 1
end

 

Script: boxC

  Reveal hidden contents

 

function onUse(cid, item, frompos, item2, topos)
r1 = math.random(1,1)

if getPlayerLevel(cid) >= 1 and getPlayerFreeCap(cid) ~= 0 then
if doPlayerRemoveItem(cid,7885,1) == TRUE then
if r1 == 1 then
doPlayerSendTextMessage(cid,22,"Você ganhou um Charmander.")
local health = 325 -- Health do poke
local maxhealth = 325 -- Maximo de health do poke
local description = "Contains a Charmander."
local poke1 = "This is Charmander's pokeball. HP = ["..health.."/"..maxhealth.."]"
item = doCreateItemEx(2219)
doItemSetAttribute(item, "poke", poke1)
doItemSetAttribute(item, "nome", "Charmander")
doItemSetAttribute(item, "description", description)
doPlayerAddItemEx(cid, item, true)
doTransformItem(item, 2222)
doSendMagicEffect(getCreaturePosition(cid), 28)


         else
        doPlayerSendTextMessage(cid,22,"..")
          end
  end
        else
  doPlayerSendCancel(cid,'Somente players level 1+ e que estejam carregando 5 ou menos pokemons podem abrir este presente.')
        end
return 1
end

 

Script: boxS

  Reveal hidden contents

 

function onUse(cid, item, frompos, item2, topos)
r1 = math.random(1,1)

if getPlayerLevel(cid) >= 1 and getPlayerFreeCap(cid) ~= 0 then
if doPlayerRemoveItem(cid,7886,1) == TRUE then

if r1 == 1 then
doPlayerSendTextMessage(cid,22,"Você ganhou um Squirtle.")
local health = 380 -- Health do poke
local maxhealth = 380 -- Maximo de health do poke
local description = "Contains a Squirtle."
local poke1 = "This is Squirtle's pokeball. HP = ["..health.."/"..maxhealth.."]"
item = doCreateItemEx(2219)
doItemSetAttribute(item, "poke", poke1)
doItemSetAttribute(item, "nome", "Squirtle")
doItemSetAttribute(item, "description", description)
doPlayerAddItemEx(cid, item, true)
doTransformItem(item, 2222)
doSendMagicEffect(getCreaturePosition(cid), 28)

         else
        doPlayerSendTextMessage(cid,22,"..")
          end
  end
        else
  doPlayerSendCancel(cid,'Somente players level 1+ e que estejam carregando 5 ou menos pokemons podem abrir este presente.')
        end
return 1
end

 

Feito isso vá na pasta mods do seu servidor e abra o arquivo firstitems. 

aonde tiver assim >     storage = 30001,
            items = {1988, 1987, 2382, 2120, 2580, 2550, 7385, 2395, 2547}  vc coloca os numeros dos ids das box ex: ficaria assim >  items = {1988, 1987, 2382, 2120, 2580, 2550, 7385, 2395, 2547, 7884, 7885, 7886} 

Bom espero ter ajudado ^^ 

 

Valeu mesmo cara!!!

Link para o post
Compartilhar em outros sites
Agora, lucasmourahere disse:

 

Valeu mesmo cara!!!

Por nada ^^ 

                                                                             1535210279_tumblr_o9b6yoxM1Z1tco8kto1_500(3).gif.f527686e19da738322c39555244decac.gif

                                                             Meus tópicos         

                                                         Se ajudei você deixe seu Rep! para fortalecer a amizade ^^

                                                                              Vamos ajudar o fórum a crescer mais.

                                                                          1641206641_gif-escudo-fla-3d(1).gif.a5d3c0c24824d5272a181aa91c5eda0c.gif

                                                                                                Mengão porra! . .

                                                                     tumblr_oxm8eriUeU1sqwgnro2_400.gif.22e347b2fc58fdfd88dbf84f4bdaa1bc.gif

                                                                                ----- NPC que vende informação -----

                                                                           -----Baú Que dá Outfit se tiver Level -----

                                                                     ----- [Npc] Que vende Stones (itens) por diamonds -----

 

 

                                                                       

                       

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.

×
×
  • Criar Novo...

Informação Importante

Confirmação de Termo