Ir para conteúdo

Featured Replies

Postado

bom ja adicionei a box5 no items.xml e a foto tbm so que eu quando vou abrir a box nao funciona vou deixar a script dela aqui

 

local a = {
[11638] = {balltype = "normal", ballid = 11826,
        pokemons = {"Caterpie", "Weedle", "Pidgey", "Rattata", "Metapod", "Kakuna", "Spearow",
        "Diglett", "Zubat", "Paras", "Oddish", "Poliwag", "Bellsprout", "Magnemite", "Shellder", "Krabby", "Horsea",
        "Goldeen", "Magikarp", "Exeggcute"}},
[11639] = {balltype = "great", ballid = 11832,        --alterado v1.3
        pokemons = {"Bulbasaur", "Charmander", "Squirtle", "Pidgeotto", "Raticate", "Pikachu",
        "Butterfree", "Beedrill", "Ekans", "Arbok", "Gloom", "Nidoran Female", "Nidorina", "Nidoran Male", "Nidorino",
        "Golbat", "Clefairy", "Jigglypuff", "Venonat", "Sandshrew", "Vulpix", "Meowth", "Persian", "Psyduck", "Mankey",
        "Growlithe", "Poliwhirl", "Abra", "Machop", "Weepinbell", "Tentacool", "Geodude", "Ponyta", "Slowpoke", "Doduo",
        "Seel", "Grimer", "Muk", "Gastly", "Drowzee", "Voltorb", "Cubone", "Koffing", "Weezing", "Rhyhorn", "Seaking",
        "Staryu", "Eevee", "Omanyte", "Kabuto"}},
[11640] = {balltype = "super", ballid = 11835,
        pokemons = {"Ivysaur", "Charmeleon", "Wartortle", "Raichu", "Fearow", "Vileplume", "Venomoth",
        "Parasect", "Clefable", "Wigglytuff", "Sandslash", "Dugtrio", "Golduck", "Primeape", "Kadabra", "Machoke",
        "Victreebel", "Graveler", "Rapidash", "Slowbro", "Magneton", "Farfetch'd", "Dodrio", "Cloyster", "Haunter", "Onix",
        "Hypno", "Kingler", "Electrode", "Exeggutor", "Marowak", "Hitmonlee", "Hitmonchan", "Lickitung", "Chansey",
        "Tangela", "Kangaskhan", "Seadra", "Starmie", "Mr. Mime", "Pinsir", "Tauros", "Ditto", "Vaporeon", "Jolteon",
        "Flareon", "Porygon"}},
[11641] = {balltype = "ultra", ballid = 11829,
        pokemons = {"Venusaur", "Charizard", "Blastoise", "Pidgeot", "Nidoqueen", "Nidoking", "Ninetales",
        "Arcanine", "Poliwrath", "Alakazam", "Machamp", "Tentacruel", "Golem", "Dewgong", "Gengar", "Rhydon", "Scyther",
        "Jynx", "Electabuzz", "Magmar", "Gyarados", "Lapras", "Omastar", "Kabutops", "Aerodactyl", "Snorlax", "Dragonair",
        "Dragonite"}}
[13106] = {balltype = "ultra", ballid = 11829,
        pokemons = {"Shiny Hitmonchan", "Shiny Hitmonlee", "Shiny Abra", "Miltank", "Shiny Scyther", "Scizor", "Magmar", "Venusaur", "Shiny Abra"}}
}
 
local extrastrength = 1.1        
 
function onUse(cid, item, frompos, item2, topos)
         local b = a[item.itemid]                                    
               if not b then return true end
         local pokemon = b.pokemons[math.random(#b.pokemons)] --alterado v1.3
         local btype = b.balltype
               if not pokeballs[btype] then return true end
         local gender = getRandomGenderByName(pokemon)
         local happy = 220
         local leveltable = getPokemonExperienceTable(pokemon)
         
         local ball = 0
         local sendToDepot = false                                              --alterado v1.6          
    if getCreatureMana(cid) >= 6 or not hasSpaceInContainer(getPlayerSlotItem(cid, 3).uid) then
               sendToDepot = true
               ball = doCreateItemEx(b.ballid)    --alterado v1.3
         else
               ball = item.uid
         end  
         
           doItemSetAttribute(ball, "poke", pokemon)
           doItemSetAttribute(ball, "hp", 1)
  doItemSetAttribute(ball, "happy", happy)
  doItemSetAttribute(ball, "gender", gender)
  if pokemon == "Hitmonchan" or pokemon == "Shiny Hitmonchan" then
     doItemSetAttribute(ball, "hands", 0)
           end
  doItemSetAttribute(ball, "description", "Contains a "..pokemon..".")
  doItemSetAttribute(ball, "fakedesc", "Contains a "..pokemon..".")    
  
         doPlayerSendTextMessage(cid, 27, "You opened a pokemon prize box +"..item.itemid - (11637).."!")
    doPlayerSendTextMessage(cid, 27, "The prize pokemon was a "..pokemon..", congratulations!")
    
    if sendToDepot then
          doPlayerSendMailByName(getCreatureName(cid), ball, 1)  --alterado v1.3
      doPlayerSendTextMessage(cid, 27, "You are already holding six pokemons, so your new pokemon was sent to your depot.")
               doRemoveItem(item.uid)
         else
               doTransformItem(ball, pokeballs[btype].on)
    end
    
    doSendMagicEffect(getThingPos(cid), 29)
return true
end

a box +5 e a 11641

0cZD2of.gif

Meu Servidor já está on quer entrar? aperte no banner.

28948_6.png

 

 



 


" />

Postado

O tópico foi movido para a área correta, preste mais atenção da próxima vez!

Leia as regras do fórum: http://tibiaking.com/forum/topic/1281-regras-gerais/?p=7680

Este tópico foi movido:

De: "OTServSuporte OTServSuporte de OTServ Geral"

Para: "OTServSuporte OTServSuporte de Servidores Derivados"

Postado

aparece algun erro na distristo?

Se Ajudei Clique no rep_up.png ao Lado, Não Custa nada  :D!! 

e se resovel o problema não esqueça de em EEkog5AK0.png  :D 

 

____________________________________________________________________________________________________

 

Formação de Equipe para poketibia venha fazer parte dessa equipe

 

[bAIXEM] Sprites de icones para poketibia

Postado
  • Autor

ja ageitei e ra um erro no script.xml


um , por causa de uma ,  agente se fode

0cZD2of.gif

Meu Servidor já está on quer entrar? aperte no banner.

28948_6.png

 

 



 


" />

Postado

Aki não éra pra ter uma vírgula?

[11641] = {balltype = "ultra", ballid = 11829,
        pokemons = {"Venusaur", "Charizard", "Blastoise", "Pidgeot", "Nidoqueen", "Nidoking", "Ninetales",
        "Arcanine", "Poliwrath", "Alakazam", "Machamp", "Tentacruel", "Golem", "Dewgong", "Gengar", "Rhydon", "Scyther",
        "Jynx", "Electabuzz", "Magmar", "Gyarados", "Lapras", "Omastar", "Kabutops", "Aerodactyl", "Snorlax", "Dragonair",
        "Dragonite"}},

Substitua por esse /\, talvez funcione!

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

Quem Está Navegando 0

  • Nenhum usuário registrado visualizando esta página.

Estatísticas dos Fóruns

  • Tópicos 96.9k
  • Posts 519.7k

Informação Importante

Confirmação de Termo