Ir para conteúdo

[Encerrado] [Pokemon] Dúvidas? - Pda


lucashgas

Posts Recomendados

@zeref

hum.. eh uma ideia heim.. hehe mas e se o player n souber o nome dos npcs.. '-' talvez um comando tb tpw..

!task names... ? '-' vlw ae tas ms inspirado hj uahuah

Link para o comentário
Compartilhar em outros sites

@Slicer consegui o troço do "f" lá D: , extrai dnv o configuration.lua ai deu certo ._. acho q eu tinha feito alguma coisa q deu melda :$

Editado por MaatheeuusYuurii
Link para o comentário
Compartilhar em outros sites

@zeref

/\ intendi nd kkk

http://www.youtube.com/watch?feature=player_embedded&v=GyUY2pRBTOw

comofas? pq n fazem um MMO de verdade? pq tem q ficar nesses 'consoles' nbnhus.. ;/ odio.. hehe

 

@off

melhor?

 

newtask.jpg

 

Editado por Slicer
Link para o comentário
Compartilhar em outros sites

@Slice. Coloca no server log mesmo. Tipo com cores diferentes talvez:

 

!task

 

-Task Jonny

defeat 40 Pidgey 39/40

defeat 30 Rattata 30/30

 

-Task Robert

 

defeat 10 Warturtle 3/10

defeat 30 Crab 20/30

 

 

Existe essa possibilidade?

Link para o comentário
Compartilhar em outros sites

@Slicer

Ficaria legal aparecer os reward de cada task tambem, nem se for xp ou gold.

 

@Off

To meio off por causa da facul, mas quando eu tiver tempo respondo os pms, ja que semana que vem não tenho aula.

AH como eu odeio fisíca ;x

Link para o comentário
Compartilhar em outros sites

Como que eu coloco o templo que o player vai ser teleportado depois de pegar o bau inicial eu uso o pda sem level??

 

a linha é essa correto?

 

 

 

doTeleportThing(cid, getTownTemplePosition(getPlayerTown(cid))

 

 

 

Script:

 

 

 

 

local starterpokes = {

["Chikorita"] = {x = 1058, y = 897, z = 4},

["Totodile"] = {x = 1058, y = 900, z = 4},

["Cyndaquil"] = {x = 1058, y = 903, z = 4},

["Bulbassauro"] = {x = 1063, y = 897, z = 4},

["Rattata"] = {x = 1063, y = 900, z = 4},

["Caterpie"] = {x = 1063, y = 903, z = 4},

 

}

 

local btype = "normal"

 

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

 

if getPlayerLevel(cid) > 5 then --alterado v1.3

return true

end

 

local pokemon = ""

 

for a, b in pairs (starterpokes) do

if isPosEqualPos(topos, b) then

pokemon = a

end

end

 

if pokemon == "" then return true end

 

local gender = getRandomGenderByName(pokemon)

 

local happy = 180

 

doPlayerAddItem(cid, 2394, 10)

 

local item = doCreateItemEx(2219)

doItemSetAttribute(item, "poke", pokemon)

doItemSetAttribute(item, "hp", 1)

doItemSetAttribute(item, "happy", happy)

doItemSetAttribute(item, "gender", gender)

doItemSetAttribute(item, "description", "Contains a "..pokemon..".")

doItemSetAttribute(item, "fakedesc", "Contains a "..pokemon..".")

doItemSetAttribute(item, "firstpoke", getCreatureName(cid))

doPlayerAddItemEx(cid, item, true)

 

doTransformItem(item, pokeballs[btype].on)

 

doPlayerSendTextMessage(cid, 27, "You got your first pokemon! You also received some pokeballs to help you in your way.")

doPlayerSendTextMessage(cid, 27, "Don\'t forget to use your pokedex on every undiscovered pokemon!")

 

doSendMagicEffect(getThingPos(cid), 29)

doTeleportThing(cid, getTownTemplePosition(getPlayerTown(cid))

doSendMagicEffect(getThingPos(cid), 27)

doSendMagicEffect(getThingPos(cid), 29)

 

 

return TRUE

end

 

 

Link para o comentário
Compartilhar em outros sites

@All

 

Eu estou precisando d euma ajuda simples !!

 

a um tempo eu editei meu boost e deixei ele cada 1 stone 1 boost se for 2 stones 2 boosts eu queria deixa assim

 

cada boost almentava a stone tipo se for da 2 boost seria 3 stones 4 sao 5 cada boost almentava 1 stones

 

Script minha de boost caso precise ^^

 

\/

 

 

local ballslot = 12355

local ballslot_run = 12352

local stoneslot = 12354

local stoneslot_run = 12353

local button = 12356

local button_run = 12357

function isRunning(id)

if isInArray({button_run, stoneslot_run, ballslot_run}, id) then

return true

end

return false

end

boost_stones = {

["Bulbasaur"] = {leaf},

["Ivysaur"] = {leaf},

["Venusaur"] = {leaf},

["Charmander"] = {fire},

["Charmeleon"] = {fire},

["Charizard"] = {fire},

["Squirtle"] = {water},

["Wartortle"] = {water},

["Blastoise"] = {water},

["Caterpie"] = {coccon},

["Metapod"] = {coccon},

["Butterfree"] = {coccon},

["Weedle"] = {coccon},

["Kakuna"] = {coccon},

["Beedrill"] = {coccon},

["Pidgey"] = {heart},

["Pidgeotto"] = {heart},

["Pidgeot"] = {heart},

["Rattata"] = {heart},

["Raticate"] = {heart},

["Spearow"] = {heart},

["Fearow"] = {heart},

["Ekans"] = {venom},

["Arbok"] = {venom},

["Pikachu"] = {thunder},

["Raichu"] = {thunder},

["Sandshrew"] = {earth},

["Sandslash"] = {earth},

["Nidoran Female"] = {venom},

["Nidorina"] = {venom},

["Nidoqueen"] = {venom, earth},

["Nidoran Male"] = {venom},

["Nidorino"] = {venom},

["Nidoking"] = {venom, earth},

["Clefairy"] = {heart},

["Clefable"] = {heart},

["Vulpix"] = {fire},

["Ninetales"] = {fire},

["Jigglypuff"] = {heart},

["Wigglytuff"] = {heart},

["Zubat"] = {venom},

["Golbat"] = {venom},

["Oddish"] = {leaf, venom},

["Gloom"] = {leaf, venom},

["Vileplume"] = {leaf, venom},

["Paras"] = {coccon, leaf},

["Parasect"] = {coccon, leaf},

["Venonat"] = {coccon, venom},

["Venomoth"] = {coccon, venom},

["Diglett"] = {earth},

["Dugtrio"] = {earth},

["Meowth"] = {heart},

["Persian"] = {heart},

["Psyduck"] = {water},

["Golduck"] = {water, enigma},

["Mankey"] = {punch},

["Primeape"] = {punch},

["Growlithe"] = {fire},

["Arcanine"] = {fire},

["Poliwag"] = {water},

["Poliwhirl"] = {water},

["Poliwrath"] = {water, punch},

["Abra"] = {enigma},

["Kadabra"] = {enigma},

["Alakazam"] = {enigma},

["Machop"] = {punch},

["Machoke"] = {punch},

["Machamp"] = {punch},

["Bellsprout"] = {leaf, venom},

["Weepinbell"] = {leaf, venom},

["Victreebel"] = {leaf, venom},

["Tentacool"] = {water, venom},

["Tentacruel"] = {water, venom},

["Geodude"] = {earth, rock},

["Graveler"] = {earth, rock},

["Golem"] = {earth, rock},

["Ponyta"] = {fire},

["Rapidash"] = {fire},

["Slowpoke"] = {water, enigma},

["Slowbro"] = {water, enigma},

["Magnemite"] = {thunder, metal},

["Magneton"] = {thunder, metal},

["Farfetch'd"] = {heart},

["Doduo"] = {heart},

["Dodrio"] = {heart},

["Seel"] = {water, ice},

["Dewgong"] = {water, ice},

["Grimer"] = {venom},

["Muk"] = {venom},

["Shellder"] = {water, ice},

["Cloyster"] = {water, ice},

["Gastly"] = {dark},

["Haunter"] = {dark},

["Gengar"] = {dark},

["Onix"] = {rock, earth},

["Drowzee"] = {enigma},

["Hypno"] = {enigma},

["Krabby"] = {water},

["Kingler"] = {water},

["Voltorb"] = {thunder},

["Electrode"] = {thunder},

["Exeggcute"] = {enigma, leaf},

["Exeggutor"] = {enigma, leaf},

["Cubone"] = {earth},

["Marowak"] = {earth},

["Hitmonlee"] = {punch},

["Hitmonchan"] = {punch},

["Lickitung"] = {heart},

["Koffing"] = {venom},

["Weezing"] = {venom},

["Rhyhorn"] = {earth, rock},

["Rhydon"] = {earth, rock},

["Chansey"] = {heart},

["Tangela"] = {leaf},

["Leafeon"] = {leaf},

["Kangaskhan"] = {heart},

["Horsea"] = {water},

["Seadra"] = {water},

["Goldeen"] = {water},

["Seaking"] = {water},

["Staryu"] = {water},

["Starmie"] = {water},

["Mr. Mime"] = {enigma},

["Scyther"] = {coccon},

["Jynx"] = {enigma, ice},

["Electabuzz"] = {thunder},

["Magmar"] = {fire},

["Pinsir"] = {coccon},

["Tauros"] = {heart},

["Magikarp"] = {water},

["Gyarados"] = {water, crystal},

["Lapras"] = {water, ice},

["Glaceon"] = {water, ice},

["Ditto"] = {heart},

["Eevee"] = {heart},

["Vaporeon"] = {water},

["Jolteon"] = {thunder},

["Flareon"] = {fire},

["Porygon"] = {heart, enigma},

["Omanyte"] = {rock, water},

["Omastar"] = {rock, water},

["Kabuto"] = {rock, water},

["Kabutops"] = {rock, water},

["Aerodactyl"] = {rock},

["Snorlax"] = {heart},

["Articuno"] = {ice},

["Zapdos"] = {thunder},

["Moltres"] = {fire},

["Dratini"] = {crystal},

["Dragonair"] = {crystal},

["Dragonite"] = {crystal},

["Mewtwo"] = {enigma},

["shiny blastoise"] = {water},

["Mew"] = {enigma},

["Shiny Bulbasaur"] = {leaf},

["Shiny Ivysaur"] = {leaf},

["Shiny Venusaur"] = {leaf},

["Shiny Charmander"] = {fire},

["Shiny Charmeleon"] = {fire},

["Shiny Charizard"] = {fire},

["Shiny Squirtle"] = {water},

["Shiny Wartortle"] = {water},

["Shiny Blastoise"] = {water},

["Turtwig"] = {leaf},

["Grotle"] = {leaf},

["Torterra"] = {leaf},

["Treecko"] = {leaf},

["Grovyle"] = {leaf},

["Sceptile"] = {leaf},

["Cloned Torterra"] = {leaf},

["Bagon"] = {fire},

["Shelgon"] = {fire},

["Salamence"] = {fire},

["Chimchar"] = {fire},

["Monferno"] = {fire},

["Infernape"] = {fire},

["Cloned Infernape"] = {fire},

["Torchic"] = {fire},

["Combusken"] = {fire},

["Blaziken"] = {fire},

["Piplup"] = {water},

["Prinplup"] = {water},

["Empoleon"] = {water},

["Cloned Empoleon"] = {water},

["Shiny Caterpie"] = {coccon},

["Shiny Metapod"] = {coccon},

["Shiny Butterfree"] = {coccon},

["Shiny Weedle"] = {coccon},

["Shiny Kakuna"] = {coccon},

["Shiny Beedrill"] = {coccon},

["Shiny Pidgey"] = {heart},

["Shiny Pidgeotto"] = {heart},

["Shiny Pidgeot"] = {heart},

["Shiny Rattata"] = {heart},

["Shiny Raticate"] = {heart},

["Shiny Spearow"] = {heart},

["Shiny Fearow"] = {heart},

["Shiny Ekans"] = {venom},

["Shiny Arbok"] = {venom},

["Shiny Pikachu"] = {thunder},

["Shiny Raichu"] = {thunder},

["Shiny Sandshrew"] = {earth},

["Shiny Sandslash"] = {earth},

["Shiny Nidoran Female"] = {venom},

["Shiny Nidorina"] = {venom},

["Shiny Nidoqueen"] = {venom, earth},

["Shiny Nidoran Male"] = {venom},

["Shiny Nidorino"] = {venom},

["Shiny Nidoking"] = {venom, earth},

["Shiny Clefairy"] = {heart},

["Shiny Clefable"] = {heart},

["Shiny Vulpix"] = {fire},

["Shiny Ninetales"] = {fire},

["Shiny Jigglypuff"] = {heart},

["Shiny Wigglytuff"] = {heart},

["Shiny Zubat"] = {venom},

["Shiny Golbat"] = {venom},

["Shiny Oddish"] = {leaf, venom},

["Shiny Gloom"] = {leaf, venom},

["Shiny Vileplume"] = {leaf, venom},

["Shiny Paras"] = {coccon, leaf},

["Shiny Parasect"] = {coccon, leaf},

["Shiny Venonat"] = {coccon, venom},

["Shiny Venomoth"] = {coccon, venom},

["Shiny Diglett"] = {earth},

["Shiny Dugtrio"] = {earth},

["Shiny Meowth"] = {heart},

["Shiny Persian"] = {heart},

["Shiny Psyduck"] = {water},

["Shiny Golduck"] = {water, enigma},

["Shiny Mankey"] = {punch},

["Shiny Primeape"] = {punch},

["Shiny Growlithe"] = {fire},

["Shiny Arcanine"] = {fire},

["Shiny Poliwag"] = {water},

["Shiny Poliwhirl"] = {water},

["Shiny Poliwrath"] = {water, punch},

["Shiny Abra"] = {enigma},

["Shiny Kadabra"] = {enigma},

["Shiny Alakazam"] = {enigma},

["Togepi"] = {enigma},

["Togetic"] = {enigma},

["Togekiss"] = {enigma},

["Shiny Machop"] = {punch},

["Shiny Machoke"] = {punch},

["Shiny Machamp"] = {punch},

["Shiny Bellsprout"] = {leaf, venom},

["Shiny Weepinbell"] = {leaf, venom},

["Shiny Victreebel"] = {leaf, venom},

["Shiny Tentacool"] = {water, venom},

["Shiny Tentacruel"] = {water, venom},

["Cranidos"] = {earth, rock},

["Rampardos"] = {earth, rock},

["Shiny Geodude"] = {earth, rock},

["Shiny Graveler"] = {earth, rock},

["Shiny Golem"] = {earth, rock},

["Shiny Ponyta"] = {fire},

["Shiny Rapidash"] = {fire},

["Shiny Slowpoke"] = {water, enigma},

["Shiny Slowbro"] = {water, enigma},

["Shiny Magnemite"] = {thunder, metal},

["Shiny Magneton"] = {thunder, metal},

["Shiny Farfetch'd"] = {heart},

["Shiny Doduo"] = {heart},

["Shiny Dodrio"] = {heart},

["Shiny Seel"] = {water, ice},

["Shiny Dewgong"] = {water, ice},

["Shiny Grimer"] = {venom},

["Shiny Muk"] = {venom},

["Shiny Shellder"] = {water, ice},

["Shiny Cloyster"] = {water, ice},

["Shiny Gastly"] = {dark},

["Shiny Haunter"] = {dark},

["Shiny Gengar"] = {dark},

["Shiny Onix"] = {rock, earth},

["Darkrei"] = {dark},

["Umbreon"] = {dark},

["Espeon"] = {enigma},

["Crystal Steelix"] = {rock, earth},

["Shiny Drowzee"] = {enigma},

["Shiny Hypno"] = {enigma},

["Shiny Krabby"] = {water},

["Shiny Kingler"] = {water},

["Shiny Voltorb"] = {thunder},

["Shiny Electrode"] = {thunder},

["Shiny Exeggcute"] = {enigma, leaf},

["Shiny Exeggutor"] = {enigma, leaf},

["Shiny Cubone"] = {earth},

["Shiny Marowak"] = {earth},

["Shiny Hitmonlee"] = {punch},

["Shiny Hitmonchan"] = {punch},

["Shiny Lickitung"] = {heart},

["Shiny Koffing"] = {venom},

["Shiny Weezing"] = {venom},

["Shiny Rhyhorn"] = {earth, rock},

["Shiny Rhydon"] = {earth, rock},

["Rhyperior"] = {earth, rock},

["Shiny Chansey"] = {heart},

["Shiny Tangela"] = {leaf},

["Tangrowth"] = {leaf},

["Leafeon"] = {leaf},

["Shiny Kangaskhan"] = {heart},

["Shiny Horsea"] = {water},

["Shiny Seadra"] = {water},

["Shiny Goldeen"] = {water},

["Shiny Seaking"] = {water},

["Shiny Staryu"] = {water},

["Shiny Starmie"] = {water},

["Shiny Mr. Mime"] = {enigma},

["Shiny Scyther"] = {coccon},

["Shiny Scizor"] = {coccon},

["Scizor"] = {coccon},

["Shiny Jynx"] = {enigma, ice},

["Shiny Regice"] = {enigma, ice},

["Regice"] = {enigma, ice},

["Regirock"] = {enigma, Rock},

["Shiny Regirock"] = {enigma, Rock},

["Weavile"] = {Dark, ice},

["Sneasel"] = {Dark, ice},

["Abomasnow"] = {Leaf, ice},

["Snover"] = {Leaf, ice},

["Mamoswine"] = {crystal, ice},

["Supreme Electabuzz"] = {thunder},

["Shiny Magmar"] = {fire},

["Shiny Electivire"] = {thunder},

["Shiny Magmortar"] = {fire},

["Electivire"] = {thunder},

["Magmortar"] = {fire},

["Shiny Pinsir"] = {coccon},

["Shiny Tauros"] = {heart},

["Shiny Magikarp"] = {water},

["Shiny Gyarados"] = {water, crystal},

["Shiny Lapras"] = {water, ice},

["Shiny Ditto"] = {heart},

["Shiny Eevee"] = {heart},

["Shiny Vaporeon"] = {water},

["Shiny Jolteon"] = {thunder},

["Shiny Flareon"] = {fire},

["Shiny Porygon"] = {heart, enigma},

["Shiny Omanyte"] = {rock, water},

["Shiny Omastar"] = {rock, water},

["Shiny Kabuto"] = {rock, water},

["Shiny Kabutops"] = {rock, water},

["Shiny Aerodactyl"] = {rock},

["Shiny Snorlax"] = {heart},

["Shiny Articuno"] = {ice},

["Glaceon"] = {ice},

["Shiny Zapdos"] = {thunder},

["Shiny Moltres"] = {fire},

["Shiny Dratini"] = {crystal},

["Shiny Dragonair"] = {crystal},

["Shiny Dragonite"] = {crystal},

["Gible"] = {crystal},

["Gabite"] = {crystal},

["Garchomp"] = {crystal},

["Milotic"] = {crystal},

["Shiny Mewtwo"] = {enigma},

["shiny blastoise"] = {water},

["Swampert"] = {water},

["Marshtomp"] = {water},

["Mudkip"] = {water},

["Wailmer"] = {water},

["Wailord"] = {water},

["Chikorita"] = {leaf},

["Bayleef"] = {leaf},

["Meganium"] = {leaf},

["Cyndaquil"] = {fire},

["Quilava"] = {fire},

["Typhlosion"] = {fire},

["Totodile"] = {water},

["Croconaw"] = {water},

["Feraligatr"] = {water},

["Sentret"] = {heart},

["Furret"] = {heart},

["Hoothoot"] = {heart, enigma},

["Noctowl"] = {heart, enigma},

["Ledyba"] = {coccon},

["Ledian"] = {coccon},

["Spinarak"] = {coccon, venom},

["Ariados"] = {coccon, venom},

["Crobat"] = {venom},

["Chinchou"] = {water, thunder},

["Lanturn"] = {water, thunder},

["Pichu"] = {thunder},

["Cleffa"] = {heart},

["Iglybuff"] = {venom},

["Natu"] = {enigma},

["Xatu"] = {enigma},

["Mareep"] = {thunder},

["Flaaffy"] = {thunder},

["Ampharos"] = {thunder},

["Bellossom"] = {leaf},

["Marill"] = {water},

["Azulmarill"] = {water},

["Sudowoodo"] = {rock, earth},

["Politoed"] = {water, earth},

["Hoppip"] = {leaf},

["Skiploom"] = {leaf},

["Jumpluff"] = {leaf},

["Aipom"] = {heart},

["Sunkern"] = {leaf},

["Sunflora"] = {leaf},

["Yanma"] = {venom, coccon},

["Wooper"] = {water},

["Quagsire"] = {water, earth},

["Murkrow"] = {dark},

["Slowking"] = {water,enigma},

["Misdreavus"] = {dark},

["Wobbuffet"] = {enigma},

["Girafarig"] = {enigma},

["Pineco"] = {coccon},

["Forretress"] = {coccon},

["Gligar"] = {dark, heart},

["Steelix"] = {earth, rock},

["Snubbull"] = {heart},

["Granbull"] = {heart},

["Qwilfish"] = {water},

["Shuckle"] = {earth},

["Heracross"] = {coccon},

["Teddiursa"] = {heart},

["Ursaring"] = {heart, dark},

["Slugma"] = {fire},

["Magcargo"] = {fire},

["Swinub"] = {ice, earth},

["Piloswine"] = {ice, earth},

["Corsola"] = {water},

["Remoraid"] = {water},

["Octillery"] = {water},

["Delibird"] = {ice, heart},

["Mantine"] = {water},

["Skarmory"] = {heart},

["Houndour"] = {fire, dark},

["Houndoom"] = {fire, dark},

["Kingdra"] = {water, crystal},

["Phanpy"] = {earth},

["Donphan"] = {earth},

["porygon2"] = {enigma},

["Stantler"] = {heart},

["Smeargle"] = {heart},

["Tyrogue"] = {punch},

["Hitmontop"] = {punch},

["Smoochum"] = {ice, enigma},

["Elekid"] = {thunder},

["Magby"] = {fire},

["Miltank"] = {heart},

["Blissey"] = {heart},

["Raikou"] = {thunder},

["Entei"] = {fire},

["Suicune"] = {water},

["Larvitar"] = {earth, dark},

["Pupitar"] = {earth, dark},

["Tyranitar"] = {earth, dark},

["Lugia"] = {enigma, water},

["Ho-oh"] = {enigma, fire},

["Celebi"] = {leaf, enigma},

["Shiny Mew"] = {enigma},

["porygon Z"] = {enigma},

["Purugly"] = {heart},

["Absol"] = {dark},

["Altaria"] = {heart},

["Baltoy"] = {enigma},

["Buneary"] = {heart},

["Buizel"] = {water},

["Camerupt"] = {fire},

["Carnivine"] = {leaf},

["Carvanha"] = {water},

["Claydol"] = {enigma},

["Tropius"] = {leaf},

["Yanmega"] = {coccon},

["Zangoose"] = {heart},

["Toxicroak"] = {venom},

["Sharpedo"] = {water},

["Croagunk"] = {venom},

["Floatzel"] = {water},

["Pachirisu"] = {thunder},

["Metang"] = {rock},

["Honchkrow"] = {dark},

["Froslass"] = {ice},

["Glalie"] = {ice},

["Gastrodon"] = {water},

["Plusle"] = {thunder},

["Probopass"] = {rock},

["Luxray"] = {thunder},

["Lunatone"] = {enigma},

["Solrock"] = {enigma},

["Metagross"] = {earth, rock},

["Drapion"] = {venom},

["Mamoswine"] = {ice, earth},

["Munchlax"] = {heart},

["Staraptor"] = {heart},

["Beldum"] = {rock},

["Feebas"] = {water},

["Wailmer"] = {water},

["Wailord"] = {water},

["Swablu"] = {heart},

["Shiny Absol"] = {dark},

["Shiny Altaria"] = {heart},

["Shiny Baltoy"] = {enigma},

["Shiny Claydol"] = {enigma},

["Shiny Buneary"] = {heart},

["Shiny Beldum"] = {rock},

["Shiny Metang"] = {rock},

["Shiny Metagross"] = {earth, rock},

["Shiny Camerupt"] = {fire},

["Shiny Carnivine"] = {leaf},

["Shiny Carvanha"] = {water},

["Shiny Sharpedo"] = {water},

["Shiny Croagunk"] = {venom},

["Shiny Toxicroak"] = {venom},

["Shiny Buizel"] = {water},

["Shiny Floatzel"] = {water},

["Shiny Gabite"] = {crystal},

["Shiny Gible"] = {crystal},

["Gliscor"] = {dark, heart},

["Shiny Gliscor"] = {dark, heart},

["Shiny Honchkrow"] = {dark},

["Shiny Luxray"] = {thunder},

["Shiny Mamoswine"] = {ice, earth},

["Shiny Pachirisu"] = {thunder},

["Minun"] = {thunder},

["Shiny Plusle"] = {thunder},

["Shiny Minun"] = {thunder},

["Shiny Probopass"] = {rock},

["Shiny Purugly"] = {heart},

["Shiny Froslass"] = {ice},

["Shiny Glalie"] = {ice},

["Shiny Snorunt"] = {ice},

["Shiny Lunatone"] = {enigma},

["Shiny Solrock"] = {enigma},

["Shiny Staraptor"] = {heart},

["Shiny Tropius"] = {leaf},

["Shiny Yanmega"] = {coccon},

["Shiny Zangoose"] = {heart},

["Shiny Rhyperior"] = {earth, rock},

["Shiny Gastrodon"] = {water},

["Shiny Cyndaquil"] = {fire},

["Shiny Quilava"] = {fire},

["Shiny Typhlosion"] = {fire},

["Shiny Chikorita"] = {leaf},

["Shiny Bayleef"] = {leaf},

["Shiny Meganium"] = {leaf},

["Shiny Totodile"] = {water},

["Shiny Croconaw"] = {water},

["Shiny Feraligatr"] = {water},

["Happiny"] = {heart},

["Roselia"] = {leaf},

["Anorith"] = {rock, venom},

["Armaldo"] = {rock, venom},

["Aron"] = {rock},

["Lairon"] = {rock},

["Aggron"] = {rock},

["Bagon"] = {crystal},

["Shelgon"] = {crystal},

["Salamence"] = {crystal},

["Barboach"] = {water},

["Whiscash"] = {water},

["Roserade"] = {leaf, venom},

["Budew"] = {leaf, venom},

["Cacnea"] = {leaf},

["Cacturne"] = {leaf},

["Castform"] = {heart},

["Chingling"] = {enigma},

["Chimecho"] = {enigma},

["Clamperl"] = {water},

["Huntail"] = {water},

["Gorebyss"] = {water},

["Corphish"] = {water},

["Crawdaunt"] = {water},

["Duskull"] = {dark},

["Dusclops"] = {dark},

["Dusknoir"] = {dark},

["Electrike"] = {thunder},

["Manectric"] = {thunder},

["Gulpin"] = {venom},

["Swalot"] = {venom},

["Kecleon"] = {heart},

["Lileep"] = {leaf},

["Cradily"] = {leaf},

["Lotad"] = {leaf},

["Lombre"] = {leaf},

["Ludicolo"] = {leaf},

["Luvdisc"] = {water},

["Makuhita"] = {punch},

["Hariyama"] = {punch},

["Mawile"] = {rock},

["Meditite"] = {enigma},

["Medicham"] = {enigma},

["Nincada"] = {venom},

["Ninjask"] = {venom},

["Shedinja"] = {venom},

["Poochyena"] = {dark},

["Mightyena"] = {dark},

["Ralts"] = {enigma},

["Kirlia"] = {enigma},

["Gardevoir"] = {enigma},

["Gallade"] = {enigma},

["Relicanth"] = {rock, water},

["Sableye"] = {dark},

["Seedot"] = {leaf},

["Nuzleaf"] = {leaf},

["Shiftry"] = {leaf},

["Seviper"] = {venom},

["Shroomish"] = {leaf},

["Breloom"] = {leaf},

["Shuppet"] = {dark},

["Banette"] = {dark},

["Skitty"] = {heart},

["Delcatty"] = {heart},

["Slakoth"] = {heart},

["Vigoroth"] = {heart},

["Slaking"] = {heart},

["Spheal"] = {water, ice},

["Sealeo"] = {water, ice},

["Walrein"] = {water, ice},

["Spinda"] = {heart},

["Spoink"] = {enigma},

["Grumpig"] = {enigma},

["Surskit"] = {venom},

["Masquerain"] = {venom},

["Taillow"] = {heart},

["Swellow"] = {heart},

["Torkoal"] = {fire},

["Trapinch"] = {crystal},

["Vibrava"] = {crystal},

["Flygon"] = {crystal},

["Illumise"] = {venom},

["Volbeat"] = {venom},

["Wingull"] = {water},

["Pelipper"] = {water},

["Whismur"] = {heart},

["Loudred"] = {heart},

["Exploud"] = {heart},

["Wurmple"] = {venom},

["Silcoon"] = {venom},

["Cascoon"] = {venom},

["Beautifly"] = {venom},

["Dustox"] = {venom},

["Zigzagoon"] = {heart},

["Linoone"] = {heart},

["Nosepass"] = {rock},

["Magnezone"] = {thunder},

["Numel"] = {fire},

["Snorunt"] = {ice}}

function doRestoreBoostMachine(cid, b_pos, p_pos, s_pos, msg, msg2)

doSendAnimatedText(b_pos, "DONE.", 215)

if isCreature(cid) then

doCreatureSetNoMove(cid, false)

doPlayerSendTextMessage(cid, 27, msg)

doPlayerSendTextMessage(cid, 27, msg2)

end

local ball_s = getTileItemById(p_pos, ballslot_run)

doTransformItem(ball_s.uid, ballslot)

local stne_s = getTileItemById(s_pos, stoneslot_run)

doTransformItem(stne_s.uid, stoneslot)

local butn_s = getTileItemById(b_pos, button_run)

doTransformItem(butn_s.uid, button)

end

local stones_required = { -- custo base de stones para boostar

[heart] = 1,

[leaf] = 1,

[water] = 1,

[venom] = 1,

[thunder] = 1,

[rock] = 1,

[punch] = 1,

[fire] = 1,

[coccon] = 1,

[crystal] = 1,

[dark] = 1,

[earth] = 1,

[enigma] = 1,

[ice] = 1,

}

local stone_increase = { -- a cada quantos boosts irá aumentar o custo de stones

[heart] = 50,

[leaf] = 50,

[water] = 50,

[venom] = 50,

[thunder] = 50,

[rock] = 50,

[punch] = 50,

[fire] = 50,

[coccon] = 50,

[crystal] = 50,

[dark] = 50,

[earth] = 50,

[enigma] = 50,

[ice] = 50,

}

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

if isRunning(item.itemid) then

doPlayerSendCancel(cid, "Wait until boosting finishes.")

return true

end

if item.itemid == button then

local pbpos = topos

pbpos.x = pbpos.x + 1

local ball_slot = getTileItemById(pbpos, ballslot)

local myball = getContainerItem(ball_slot.uid, 0)

if myball.uid <= 0 or getItemWeight(myball.uid) == 0 then

doPlayerSendCancel(cid, "You need to put a pokeball in the ball slot.")

return true

end

local pokemon = getItemAttribute(myball.uid, "poke")

local boost = getItemAttribute(myball.uid, "boost") or 0

if boost >= 50 then

doPlayerSendCancel(cid, "Your pokemon is already at maximum boost.")

return true

end

local stnpos = pbpos

stnpos.x = stnpos.x - 2

local stone_slot = getTileItemById(stnpos, stoneslot)

local stone = getContainerItem(stone_slot.uid, 0)

if stone.uid <= 0 then

doPlayerSendCancel(cid, "You need to put a stone in the stone slot.")

return true

end

if not isStone(stone.itemid) then

doPlayerSendCancel(cid, "Please, put only stones in the stone slot.")

return true

end

if not isInArray(boost_stones[pokemon], stone.itemid) then

local cancelstr = "Sorry, you are not using the correct stone."

if #boost_stones[pokemon] > 1 then

local stonesused = ""

cancelstr = cancelstr.." This pokemon needs "

for su = 1, #boost_stones[pokemon] do

local n = doCorrectString(getItemNameById(boost_stones[pokemon][su]))

if su == #boost_stones[pokemon] then

stonesused = stonesused.." or "..getArticle(n).." "..n..""

elseif su == 1 then

stonesused = stonesused..""..getArticle(n).." "..n..""

else

stonesused = stonesused..", "..n..""

end

end

cancelstr = cancelstr..""..stonesused.." to be boosted."

else

cancelstr = cancelstr.." This pokemon needs a "..doCorrectString(getItemNameById(boost_stones[pokemon][1])).." to be boosted."

end

doPlayerSendCancel(cid, cancelstr)

return true

end

local removeStones = 0

local extraStones = math.floor(boost / stone_increase[stone.itemid])

local required_stones = stones_required[stone.itemid] + extraStones

local boosts = 0

for a = 0, getContainerSize(stone_slot.uid) - 1 do

local it = getContainerItem(stone_slot.uid, a)

if it.uid > 0 then

if not isStone(it.itemid) then

doPlayerSendCancel(cid, "Please, put only stones in the stone slot.")

return true

end

if it.itemid ~= stone.itemid then

doPlayerSendCancel(cid, "Please, put only one type of stone in the stone slot.")

return true

end

if required_stones > 0 then

required_stones = required_stones - 1

if required_stones <= 0 then

boosts = boosts + 1

removeStones = removeStones + stones_required[stone.itemid] + extraStones

if boost + boosts <= 50 then

extraStones = math.floor((boost + boosts) / stone_increase[stone.itemid])

required_stones = stones_required[stone.itemid] + extraStones

end

end

end

end

end

if required_stones > 0 and boosts == 0 then

doPlayerSendCancel(cid, "You need more stones to boost this pokemon.")

return true

end

for b = 1, removeStones do

doRemoveItem(getContainerItem(stone_slot.uid, 0).uid, 1)

end

local off = pokes[pokemon].offense * boost_rate * boosts

local def = pokes[pokemon].defense * boost_rate * boosts

local agi = pokes[pokemon].agility * boosts

local spatk = pokes[pokemon].specialattack * boost_rate * boosts

local vit = pokes[pokemon].vitality * boost_rate * boosts

doSetItemAttribute(myball.uid, "boost", boost + boosts)

doItemSetAttribute(myball.uid, "offense", getItemAttribute(myball.uid, "offense") + off)

doItemSetAttribute(myball.uid, "defense", getItemAttribute(myball.uid, "defense") + def)

doItemSetAttribute(myball.uid, "speed", getItemAttribute(myball.uid, "speed") + agi)

doItemSetAttribute(myball.uid, "specialattack", getItemAttribute(myball.uid, "specialattack") + spatk)

doItemSetAttribute(myball.uid, "vitality", getItemAttribute(myball.uid, "vitality") + vit)

local msg = "Your "..getPokeballName(myball.uid).." ["..getItemAttribute(myball.uid, "level").."] has been boosted!"

local msg2 = "• Boost: "..(boost + boosts).." (+"..boosts..") • Offense: +"..doMathDecimal(off).." • Defense: +"..doMathDecimal(def).." • Spc. Atk: +"..doMathDecimal(spatk).." • Agility: +"..doMathDecimal(agi).." • Vitality: +"..doMathDecimal(vit)..""

local downpos = getThingPos(cid)

downpos.y = downpos.y + 1

local mypos = getThingPos(cid)

doTeleportThing(cid, downpos, false)

doTeleportThing(cid, mypos, false)

doTransformItem(ball_slot.uid, ballslot_run)

doTransformItem(stone_slot.uid, stoneslot_run)

doTransformItem(item.uid, button_run)

doCreatureSetNoMove(cid, true)

doCreatureAddCondition(cid, boostcondition)

addEvent(doRestoreBoostMachine, 3000, cid, getThingPos(item.uid), getThingPos(ball_slot.uid), getThingPos(stone_slot.uid), msg, msg2)

return true

end

end

 

 

Rep+

Link para o comentário
Compartilhar em outros sites

@Slicer

Sword Art Online - Infinity Moment (PSP) parece ser de turno, se não for parece bom :D

-----

Slicer, change this: ";" for "," fica mais STYLEEE

 

@PraduH

["Bulbassauro"] = {x = 1063, y = 897, z = 4},

 

Ae Lucassauro (@PknFan) achei teu irmão!

 

@DantesWakening

Ele mal terminou e vai postar, ainda querem data, vish.

Editado por ZerefShirou
Link para o comentário
Compartilhar em outros sites

Visitante
Este tópico está impedido de receber novos posts.
×
×
  • Criar Novo...