Ir para conteúdo

Featured Replies

Postado
  • Autor

qual a sua base

 

Estranho o.O esse é um script bem comum nos servidores de poketibia e.e 

qual base você usa ? .-.

Uso a Base pokemon zot do Factur a 80%. Eu avisei ali em cima pow 

  • Respostas 15
  • Visualizações 1.2k
  • Created
  • Última resposta

Top Posters In This Topic

Postado

tenta pegar o script dos pokémons inicias, 

criar um novo do msm tipo, e adc o poke q tu quer e por a posição x,y,z

dai dps vai lá e adc nakele outro treko de script q esqueci o nome >_>

Gente, não dou suporte via mp, caso queira ajuda crie um tópico no fórum!!!
youtube.png  10869_64x64.png
Ajudei? Clicar em gostar não vai te matar

Postado

Dá pra colocar direto no baú.
Em "Data/actions/scripts" copie e cole um arquivo.LUA e renomeie para nome_do_arquivo.lua, apague tudo e cole:

local t = {
    storage = 34444, -- Storage da quest, só mexa se necessário.
    pokemon = "Ditto", -- Nome do pokémon que irá ganhar.
    level = 100, -- Level necessário para fazer a quest.
    ball = "normal" -- Tipo da ball.
}

function onUse(cid)
    local gender = math.random(0, 1)
    if getPlayerStorageValue(cid, t.storage) < 1 then
       if getPlayerLevel(cid) >= t.level then
          doSendMagicEffect(getPlayerPosition(cid), 12)
          doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Você encontrou um "..t.pokemon..".")
          addPokeToPlayer(cid, t.pokemon, 0, gender, t.ball)
          setPlayerStorageValue(cid, t.storage, 1)
       else
          doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Você precisa ser level "..t.level.." para ganhar a recompensa.")
       end
    else
       doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Você já pegou sua recompensa.")
    end
   return true
end

Em "Data/actions" abra o actions.xml e cole a tag:

 <action actionid="actionID_desejada" event="script" value="nome_do_arquivo.lua"/>

Ai é só colocar a actionID desejada no baú.

Postado
  • Autor

Ainda nao consegui resolver... Vou deixar aqui um exemplo de uma box 

 

function onUse (cid,item,frompos,item2,topos)

pos = {x=1053, y=1053, z=7}
pos2 = getPlayerPosition(cid)
 
if getPlayerLevel(cid) >= 10 then
if item.uid == 9050 then
queststatus = getPlayerStorageValue(cid,72712)
if queststatus == -1 then
doTeleportThing(cid,pos)
doPlayerSendTextMessage(cid,22,"Parabens Você pegou sua box ")
doPlayerAddItem(cid,11639,1)
setPlayerStorageValue(cid,72712,1)
doTeleportThing(cid, pos)
doSendMagicEffect(getThingPos(cid), 29)
else
doPlayerSendTextMessage(cid,22,"Vazio.")
end
end
else
doPlayerSendCancel(cid,'Somente level 10+ para abrir esse baú')
end
return 1
end
 
Postado

vá em no seu otserver/data/actions/script e abra o arquivo box. lua

 

deve ta assim

 


local a = {
[11638] = {
pokemons = {"Slowpoke", "Magnemite", "Doduo", "Seel", "Grimer", "Gastly", "Drowzee", "Voltorb",
"Cubone", "Koffing", "Cyndaquil", "Pidgeotto", "Weepinbell", "Wooper", "Dratini", "Dunsparce", "Pichu", "Slugma", "Remoraid", "Ledyba",
"Goldeen", "Vulpix", "Tentacool", "Bulbasaur", "Charmander", "Squirtle", "Metapod", "Kakuna",
"Teddiursa", "Chikorita", "Chinchou", "Cleffa", "Marill", "Natu", "Smoochum", "Phanpy", "Slugma",
"Ekans", "Abra", "Mankey", "Psyduck", "Sandshrew", "Kabuto", "Beedrill", "Omanyte", "Butterfree", "Snubbul", "Togepi",
"Zubat", "Diglett", "Venonat", "Shuckle", "Mareep",
"Meowth", "Poliwag", "Growlithe", "Machop", "Ponyta", "Geodude", "Hoothoot", "Pineco", "Sentret",
"Swinub", "Totodile"}},
[11639] = {pokemons = {"Skiploom", "Raticate", "Ariados", "Flaffy", "Delibird", "Fearow", "Clefairy", "Arbok",
"Nidorino", "Nidorina", "Elekid", "Magby", "Ledian",
"Dodrio", "Golbat", "Gloom", "Parasect", "Venomoth", "Dugtrio", "Persian",
"Poliwhirl", "Machoke", "Quilava", "Yanma",
"Graveler", "Slowbro", "Magneton", "Farfetch'd", "Haunter", "Kingler", "Electrode",
"Weezing", "Seadra", "Bayleef", "Croconaw", "Qwilfish", "Tyrogue",
"Jigglypuff", "Seaking", "Tauros", "Starmie", "Eevee", "Charmeleon",
"Wartortle", "Ivysaur", "Pikachu"}},
[11640] = {pokemons = {"Politoed", "Magcargo", "Noctowl", "Poliwrath", "Nidoking", "Pidgeot", "Sandslash", "Ninetales", "Vileplume",
"Primeape", "Nidoqueen", "Granbull", "Jumpluff", "Golduck", "Kadabra", "Rapidash", "Azumarill", "Murkrow",
"Clefable", "Wigglytuff", "Dewgong", "Onix", "Cloyster", "Hypno", "Exeggutor", "Marowak",
"Hitmonchan", "Quagsire", "Stantler", "Xatu", "Hitmonlee", "Bellossom", "Lanturn", "Pupitar", "Smeargle",
"Lickitung", "Golem", "Chansey", "Tangela", "Mr. Mime", "Pinsir", "Espeon", "Umbreon", "Vaporeon", "Jolteon",
"Flareon", "Porygon", "Dragonair", "Hitmontop", "Octillery", "Sneasel"}},
[11641] = {pokemons = {"Shiny Hitmonlee", "Shiny Hitmonchan", "Dragonite", "Snorlax", "Kabutops", "Omastar", "Kingdra",
"Ampharos", "Blissey", "Donphan", "Girafarig", "Mantine", "Miltank", "Porygon2", "Skarmory", "Lapras", "Gyarados", "Magmar", "Electabuzz", "Jynx", "Scyther", "Kangaskhan",
"Venusaur", "Crobat", "Heracross", "Meganium", "Piloswine", "Scizor",
"Machamp", "Arcanine", "Charizard", "Blastoise", "Tentacruel",
"Alakazam", "Feraligatr", "Houndoom",
"Gengar", "Rhydon", "Misdreavus", "Wobbuffet", "Raichu", "Slowking", "Steelix", "Sudowoodo", "Typhlosion", "Tyranitar", "Ursaring"}},
[12331] = {pokemons = {"Tropius","Electivire","Magmortar","Magnezone","Metagross","Milotic","Absol","Salamence","Wailord"}},
[1990] = {pokemons = {"Ditto"}},
[12227] = {pokemons = {"Shiny Crobat", "Shiny Magmar", "Shiny Giant Magikarp", "Shiny Venusaur", "Shiny Charizard", "Shiny Blastoise", "Shiny Arcanine", "Shiny Alakazam", "Shiny Ninetales",
"Shiny Gengar", "Shiny Scyther", "Shiny Rhydon", "Shiny Umbreon", "Shiny Pidgeot", "Shiny Raichu", "Shiny Tentacruel", "Shiny Ampharos", "Shiny Feraligatr", "Shiny Meganium",
"Shiny Jynx", "Shiny Electabuzz", "Shiny Gyarados", "Shiny Snorlax", "Shiny Tangela", "Shiny Ariados", "Shiny Politoed", "Shiny Typhlosion", "Shiny Tauros",
"Shiny Butterfree", "Shiny Beedrill", "Shiny Venomoth", "Shiny Espeon", "Shiny Magneton", "Shiny Onix", "Shiny Larvitar", "Shiny Pupitar", "Shiny Machamp",
"Shiny Golbat", "Shiny Kingler", "Shiny Dodrio", "Shiny Farfetch'd", "Shiny Parasect", "Shiny Pinsir", "Shiny Zubat", "Shiny Dratini", "Shiny Venonat",
"Shiny Electrode", "Shiny Muk", "Shiny Stantler", "Shiny Marowak", "Shiny Seadra", "Shiny Dragonair", "Shiny Mr. Mime"}}
}

local happy = 1000

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)]
if not pokes[pokemon] then return true end

doPlayerSendTextMessage(cid, 27, "You opened a pokemon prize box +"..item.itemid - (11637).."!")
doPlayerSendTextMessage(cid, 27, "The prize pokemon was a "..pokemon..", congratulations!")
doSendMagicEffect(getThingPos(cid), 29)

addPokeToPlayer(cid, pokemon, 0, nil, btype) --alterado v1.9
doRemoveItem(item.uid, 1)
if useOTClient then
doCreatureExecuteTalkAction(cid, "/salvar")
end

return true
end

 

 

para add uma nova box basta você pega essa tag 

 

[11639] = {pokemons = {"Skiploom", "Raticate", "Ariados", "Flaffy", "Delibird", "Fearow", "Clefairy", "Arbok",
        "Nidorino", "Nidorina", "Elekid", "Magby", "Ledian",
        "Dodrio", "Golbat", "Gloom", "Parasect", "Venomoth", "Dugtrio", "Persian",
        "Poliwhirl", "Machoke", "Quilava", "Yanma",
        "Graveler", "Slowbro", "Magneton", "Farfetch'd", "Haunter", "Kingler", "Electrode",
        "Weezing", "Seadra", "Bayleef", "Croconaw", "Qwilfish", "Tyrogue",
        "Jigglypuff", "Seaking", "Tauros", "Starmie", "Eevee", "Charmeleon",
        "Wartortle", "Ivysaur", "Pikachu"}},

e mudar assim

[aqui o id da box] = {pokemons = {"aqui o nome dos pokemons seguindo os exemplos a cima"}},

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

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.6k

Informação Importante

Confirmação de Termo