Ir para conteúdo

[HELP] Slot das Bag e Boost Machine - Dash v6


Jeffer000

Posts Recomendados

Boa tarde o/

 

Estou tentado adaptar o Dash v6 com o PDA, e quando estava tentando adaptar a Boost Machine e fui testar vi que nem a Bag nem os container da Machine estao com slot dentro, aquele slot padrao que tem no PDA e que fica onde coloca a pokeball, eles estao simplesmente cinza, da pra colocar item e talz mas as boost machine fala que não foi detectado ball ou stone no slot mesmo tendo colocado la o.O

 

Print:

eon5.jpg

 

Alguém sabe o que pode estar causando este erro? E se tem como e onde trocar o slot no fundo dos containers... ty desde ja : )

Link para o comentário
Compartilhar em outros sites

15:32 You see a pokemon slot. (Vol:1).
ItemID: [12355]
Position: [X: 1063][Y: 1051][Z: 7]


15:32 You see a stone slot. (Vol:28).
ItemID: [12354]
Position: [X: 1061][Y: 1051][Z: 7]

15:32 You see a boost machine.
This is the turn on button. You can start it when you are ready to boost a pokemon.
ItemID: [12356].
Position: [X: 1062] [Y: 1051] [Z: 7].

Aqui esta.,, ^^

e no Item.xml esta assim:

	<item id="12355" article="a" name="pokemon slot">
		<attribute key="description" value="This is the ball slot. Put here to pokemon you want to boost." />
		<attribute key="containerSize" value="1"/>
	</item>

	<item id="12354" article="a" name="stone slot">
		<attribute key="description" value="This is the stone slot. You have to put a stone here to boost a pokemon." />
		<attribute key="containerSize" value="28"/>
	</item> 

o meu boost.lua é esse:

 

 

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
stone_need = {
["Bulbasaur"] = 10,
["Ivysaur"] = 7,
["Venusaur"] = 3,
["Charmander"] = 10,
["Charmeleon"] = 7,
["Charizard"] = 3,
["Squirtle"] = 10,
["Wartortle"] = 7,
["Blastoise"] = 3,
["Caterpie"] = 30,
["Metapod"] = 15,
["Butterfree"] = 10,
["Weedle"] = 30,
["Kakuna"] = 15,
["Beedrill"] = 10,
["Pidgey"] = 30,
["Pidgeotto"] = 10,
["Pidgeot"] = 3,
["Rattata"] = 30,
["Raticate"] = 10,
["Spearow"] = 20,
["Fearow"] = 4,
["Ekans"] = 15,
["Arbok"] = 8,
["Pikachu"] = 7,
["Raichu"] = 3,
["Sandshrew"] = 30,
["Sandslash"] = 4,
["Nidoran Female"] = 20,
["Nidorina"] = 9,
["Nidoqueen"] = 4,
["Nidoran Male"] = 20,
["Nidorino"] = 9,
["Nidoking"] = 4,
["Clefairy"] = 7,
["Clefable"] = 4,
["Vulpix"] = 15,
["Ninetales"] = 4,
["Jigglypuff"] = 7,
["Wigglytuff"] = 4,
["Zubat"] = 20,
["Golbat"] = 8,
["Oddish"] = 30,
["Gloom"] = 10,
["Vileplume"] = 4,
["Paras"] = 30,
["Parasect"] = 5,
["Venonat"] = 10,
["Venomoth"] = 5,
["Diglett"] = 20,
["Dugtrio"] = 8,
["Meowth"] = 15,
["Persian"] = 9,
["Psyduck"] = 10,
["Golduck"] = 5,
["Mankey"] = 15,
["Primeape"] = 5,
["Growlithe"] = 10,
["Arcanine"] = 3,
["Poliwag"] = 30,
["Poliwhirl"] = 10,
["Poliwrath"] = 4,
["Abra"] = 15,
["Kadabra"] = 6,
["Alakazam"] = 3,
["Machop"] = 10,
["Machoke"] = 6,
["Machamp"] = 3,
["Bellsprout"] = 30,
["Weepinbell"] = 10,
["Victreebel"] = 4,
["Tentacool"] = 15,
["Tentacruel"] = 3,
["Geodude"] = 15,
["Graveler"] = 7,
["Golem"] = 4,
["Ponyta"] = 10,
["Rapidash"] = 5,
["Slowpoke"] = 15,
["Slowbro"] = 7,
["Magnemite"] = 15,
["Magneton"] = 3,
["Farfetch'd"] = 7,
["Doduo"] = 15,
["Dodrio"] = 7,
["Seel"] = 10,
["Dewgong"] = 4,
["Grimer"] = 15,
["Muk"] = 3,
["Shellder"] = 20,
["Cloyster"] = 4,
["Gastly"] = 10,
["Haunter"] = 6,
["Gengar"] = 3,
["Onix"] = 5,
["Drowzee"] = 10,
["Hypno"] = 4,
["Krabby"] = 20,
["Kingler"] = 7,
["Voltorb"] = 20,
["Electrode"] = 8,
["Exeggcute"] = 20,
["Exeggutor"] = 3,
["Cubone"] = 10,
["Marowak"] = 5,
["Hitmonlee"] = 4,
["Hitmonchan"] = 4,
["Lickitung"] = 5,
["Koffing"] = 15,
["Weezing"] = 8,
["Rhyhorn"] = 9,
["Rhydon"] = 3,
["Chansey"] = 4,
["Tangela"] = 5,
["Kangaskhan"] = 3,
["Horsea"] = 20,
["Seadra"] = 6,
["Goldeen"] = 20,
["Seaking"] = 8,
["Staryu"] = 15,
["Starmie"] = 3,
["Mr. Mime"] = 4,
["Scyther"] = 3,
["Jynx"] = 3,
["Electabuzz"] = 3,
["Magmar"] = 3,
["Pinsir"] = 6,
["Tauros"] = 6,
["Magikarp"] = 30,
["Gyarados"] = 3,
["Lapras"] = 3,
["Ditto"] = 7,
["Eevee"] = 10,
["Vaporeon"] = 4,
["Jolteon"] = 4,
["Flareon"] = 4,
["Espeon"] = 4,
["Umbreon"] = 4,
["Porygon"] = 7,
["Omanyte"] = 10,
["Omastar"] = 3,
["Kabuto"] = 10,
["Kabutops"] = 3,
["Aerodactyl"] = 2,
["Snorlax"] = 3,
["Articuno"] = 1,
["Zapdos"] = 1,
["Moltres"] = 1,
["Dratini"] = 50,
["Dragonair"] = 50,
["Dragonite"] = 30,
["Mewtwo"] = 1,
["Mew"] = 1,
["Chikorita"] = 10,
["Bayleef"] = 7,
["Meganium"] = 3,
["Cyndaquil"] = 10,
["Quilava"] = 7,
["Typhlosion"] = 3,
["Totodile"] = 10,
["Croconaw"] = 7,
["Feraligatr"] = 3,
["Sentret"] = 30,
["Furret"] = 15,
["Hoothoot"] = 30,
["Noctowl"] = 5,
["Ledyba"] = 50,
["Ledian"] = 8,
["Spinarak"] = 50,
["Ariados"] = 5,
["Crobat"] = 3,
["Chinchou"] = 30,
["Lanturn"] = 5,
["Pichu"] = 30,
["Cleffa"] = 30,
["Iglybuff"] = 30,
["Natu"] = 30,
["Xatu"] = 3,
["Mareep"] = 10,
["Flaaffy"] = 7,
["Ampharos"] = 3,
["Bellossom"] = 3,
["Marill"] = 15,
["Azumarill"] = 5,
["Sudowoodo"] = 3,
["Politoed"] = 3,
["Hoppip"] = 50,
["Skiploom"] = 15,
["Jumpluff"] = 8,
["Aipom"] = 30,
["Sunkern"] = 50,
["Sunflora"] = 10,
["Yanma"] = 8,
["Wooper"] = 30,
["Quagsire"] = 8,
["Murkrow"] = 8,
["Slowking"] = 30,
["Misdreavus"] = 30,
["Wobbuffet"] = 20,
["Girafarig"] = 3,
["Pineco"] = 30,
["Forretress"] = 8,
["Gligar"] = 30,
["Steelix"] = 30,
["Snubbull"] = 30,
["Granbull"] = 5,
["Qwilfish"] = 10,
["Shuckle"] = 30,
["Heracross"] = 3,
["Teddiursa"] = 30,
["Ursaring"] = 3,
["Slugma"] = 20,
["Magcargo"] = 8,
["Swinub"] = 8,
["Piloswine"] = 5,
["Corsola"] = 5,
["Remoraid"] = 30,
["Octillery"] = 5,
["Delibird"] = 5,
["Mantine"] = 3,
["Skarmory"] = 30,
["Houndour"] = 30,
["Houndoom"] = 3,
["Kingdra"] = 30,
["Phanpy"] = 30,
["Donphan"] = 5,
["porygon2"] = 30,
["Stantler"] = 5,
["Smeargle"] = 5,
["Tyrogue"] = 30,
["Hitmontop"] = 3,
["Smoochum"] = 30,
["Elekid"] = 30,
["Magby"] = 30,
["Miltank"] = 3,
["Blissey"] = 30,
["Scizor"] = 30,
["Raikou"] = 1,
["Entei"] = 1,
["Suicune"] = 1,
["Larvitar"] = 30,
["Pupitar"] = 15,
["Tyranitar"] = 30,
["Lugia"] = 1,
["Ho-oh"] = 1,
["Celebi"] = 1,
-----------------------------shinys----------------------
["Shiny Bulbasaur"] = 10,
["Shiny Ivysaur"] = 7,
["Shiny Venusaur"] = 3,
["Shiny Charmander"] = 10,
["Shiny Charmeleon"] = 7,
["Shiny Charizard"] = 3,
["Shiny Squirtle"] = 10,
["Shiny Wartortle"] = 7,
["Shiny Blastoise"] = 3,
["Shiny Caterpie"] = 30,
["Shiny Metapod"] = 15,
["Shiny Butterfree"] = 10,
["Shiny Weedle"] = 30,
["Shiny Kakuna"] = 15,
["Shiny Beedrill"] = 10,
["Shiny Pidgey"] = 30,
["Shiny Pidgeotto"] = 10,
["Shiny Pidgeot"] = 3,
["Shiny Rattata"] = 30,
["Shiny Raticate"] = 10,
["Shiny Spearow"] = 20,
["Shiny Fearow"] = 4,
["Shiny Ekans"] = 15,
["Shiny Arbok"] = 8,
["Shiny Pikachu"] = 7,
["Shiny Raichu"] = 3,
["Shiny Sandshrew"] = 30,
["Shiny Sandslash"] = 4,
["Shiny Nidoran Female"] = 20,
["Shiny Nidorina"] = 9,
["Shiny Nidoqueen"] = 4,
["Shiny Nidoran Male"] = 20,
["Shiny Nidorino"] = 9,
["Shiny Nidoking"] = 4,
["Shiny Clefairy"] = 7,
["Shiny Clefable"] = 4,
["Shiny Vulpix"] = 15,
["Shiny Ninetales"] = 4,
["Shiny Jigglypuff"] = 7,
["Shiny Wigglytuff"] = 4,
["Shiny Zubat"] = 20,
["Shiny Golbat"] = 8,
["Shiny Oddish"] = 30,
["Shiny Gloom"] = 10,
["Shiny Vileplume"] = 4,
["Shiny Paras"] = 30,
["Shiny Parasect"] = 5,
["Shiny Venonat"] = 10,
["Shiny Venomoth"] = 5,
["Shiny Diglett"] = 20,
["Shiny Dugtrio"] = 8,
["Shiny Meowth"] = 15,
["Shiny Persian"] = 9,
["Shiny Psyduck"] = 10,
["Shiny Golduck"] = 5,
["Shiny Mankey"] = 15,
["Shiny Primeape"] = 5,
["Shiny Growlithe"] = 10,
["Shiny Arcanine"] = 3,
["Shiny Poliwag"] = 30,
["Shiny Poliwhirl"] = 10,
["Shiny Poliwrath"] = 4,
["Shiny Abra"] = 15,
["Shiny Kadabra"] = 6,
["Shiny Alakazam"] = 3,
["Shiny Machop"] = 10,
["Shiny Machoke"] = 6,
["Shiny Machamp"] = 3,
["Shiny Bellsprout"] = 30,
["Shiny Weepinbell"] = 10,
["Shiny Victreebel"] = 4,
["Shiny Tentacool"] = 15,
["Shiny Tentacruel"] = 3,
["Shiny Geodude"] = 15,
["Shiny Graveler"] = 7,
["Shiny Golem"] = 4,
["Shiny Ponyta"] = 10,
["Shiny Rapidash"] = 5,
["Shiny Slowpoke"] = 15,
["Shiny Slowbro"] = 7,
["Shiny Magnemite"] = 15,
["Shiny Magneton"] = 3,
["Shiny Farfetch'd"] = 7,
["Shiny Doduo"] = 15,
["Shiny Dodrio"] = 7,
["Shiny Seel"] = 10,
["Shiny Dewgong"] = 4,
["Shiny Grimer"] = 15,
["Shiny Muk"] = 3,
["Shiny Shellder"] = 20,
["Shiny Cloyster"] = 4,
["Shiny Gastly"] = 10,
["Shiny Haunter"] = 6,
["Shiny Gengar"] = 3,
["Shiny Onix"] = 5,
["Shiny Drowzee"] = 10,
["Shiny Hypno"] = 4,
["Shiny Krabby"] = 20,
["Shiny Kingler"] = 7,
["Shiny Voltorb"] = 20,
["Shiny Electrode"] = 8,
["Shiny Exeggcute"] = 20,
["Shiny Exeggutor"] = 3,
["Shiny Cubone"] = 10,
["Shiny Marowak"] = 5,
["Shiny Hitmonlee"] = 4,
["Shiny Hitmonchan"] = 4,
["Shiny Lickitung"] = 5,
["Shiny Koffing"] = 15,
["Shiny Weezing"] = 8,
["Shiny Rhyhorn"] = 9,
["Shiny Rhydon"] = 3,
["Shiny Chansey"] = 4,
["Shiny Tangela"] = 5,
["Shiny Kangaskhan"] = 3,
["Shiny Horsea"] = 20,
["Shiny Seadra"] = 6,
["Shiny Goldeen"] = 20,
["Shiny Seaking"] = 8,
["Shiny Staryu"] = 15,
["Shiny Starmie"] = 3,
["Shiny Mr. Mime"] = 4,
["Shiny Scyther"] = 3,
["Shiny Jynx"] = 3,
["Shiny Electabuzz"] = 3,
["Shiny Magmar"] = 3,
["Shiny Pinsir"] = 6,
["Shiny Tauros"] = 6,
["Shiny Magikarp"] = 30,
["Shiny Gyarados"] = 3,
["Shiny Lapras"] = 3,
["Shiny Ditto"] = 7,
["Shiny Eevee"] = 10,
["Shiny Vaporeon"] = 4,
["Shiny Jolteon"] = 4,
["Shiny Flareon"] = 4,
["Shiny Espeon"] = 4,
["Shiny Umbreon"] = 4,
["Shiny Porygon"] = 7,
["Shiny Omanyte"] = 10,
["Shiny Omastar"] = 3,
["Shiny Kabuto"] = 10,
["Shiny Kabutops"] = 3,
["Shiny Aerodactyl"] = 2,
["Shiny Snorlax"] = 3,
["Shiny Articuno"] = 1,
["Shiny Zapdos"] = 1,
["Shiny Moltres"] = 1,
["Shiny Dratini"] = 50,
["Shiny Dragonair"] = 50,
["Shiny Dragonite"] = 30,
["Shiny Mewtwo"] = 1,
["Shiny Mew"] = 1,
["Shiny Chikorita"] = 10,
["Shiny Bayleef"] = 7,
["Shiny Meganium"] = 3,
["Shiny Cyndaquil"] = 10,
["Shiny Quilava"] = 7,
["Shiny Typhlosion"] = 3,
["Shiny Totodile"] = 10,
["Shiny Croconaw"] = 7,
["Shiny Feraligatr"] = 3,
["Shiny Sentret"] = 30,
["Shiny Furret"] = 15,
["Shiny Hoothoot"] = 30,
["Shiny Noctowl"] = 5,
["Shiny Ledyba"] = 50,
["Shiny Ledian"] = 8,
["Shiny Spinarak"] = 50,
["Shiny Ariados"] = 5,
["Shiny Crobat"] = 3,
["Shiny Chinchou"] = 30,
["Shiny Lanturn"] = 5,
["Shiny Pichu"] = 30,
["Shiny Cleffa"] = 30,
["Shiny Iglybuff"] = 30,
["Shiny Natu"] = 30,
["Shiny Xatu"] = 3,
["Shiny Mareep"] = 10,
["Shiny Flaaffy"] = 7,
["Shiny Ampharos"] = 3,
["Shiny Bellossom"] = 3,
["Shiny Marill"] = 15,
["Shiny Azumarill"] = 5,
["Shiny Sudowoodo"] = 3,
["Shiny Politoed"] = 3,
["Shiny Hoppip"] = 50,
["Shiny Skiploom"] = 15,
["Shiny Jumpluff"] = 8,
["Shiny Aipom"] = 30,
["Shiny Sunkern"] = 50,
["Shiny Sunflora"] = 10,
["Shiny Yanma"] = 8,
["Shiny Wooper"] = 30,
["Shiny Quagsire"] = 8,
["Shiny Murkrow"] = 8,
["Shiny Slowking"] = 30,
["Shiny Misdreavus"] = 30,
["Shiny Wobbuffet"] = 20,
["Shiny Girafarig"] = 3,
["Shiny Pineco"] = 30,
["Shiny Forretress"] = 8,
["Shiny Gligar"] = 30,
["Shiny Steelix"] = 30,
["Shiny Snubbull"] = 30,
["Shiny Granbull"] = 5,
["Shiny Qwilfish"] = 10,
["Shiny Shuckle"] = 30,
["Shiny Heracross"] = 3,
["Shiny Teddiursa"] = 30,
["Shiny Ursaring"] = 3,
["Shiny Slugma"] = 20,
["Shiny Magcargo"] = 8,
["Shiny Swinub"] = 8,
["Shiny Piloswine"] = 5,
["Shiny Corsola"] = 5,
["Shiny Remoraid"] = 30,
["Shiny Octillery"] = 5,
["Shiny Delibird"] = 5,
["Shiny Mantine"] = 3,
["Shiny Skarmory"] = 30,
["Shiny Houndour"] = 30,
["Shiny Houndoom"] = 3,
["Shiny Kingdra"] = 30,
["Shiny Phanpy"] = 30,
["Shiny Donphan"] = 5,
["Shiny porygon2"] = 30,
["Shiny Stantler"] = 5,
["Shiny Smeargle"] = 5,
["Shiny Tyrogue"] = 30,
["Shiny Hitmontop"] = 3,
["Shiny Smoochum"] = 30,
["Shiny Elekid"] = 30,
["Shiny Magby"] = 30,
["Shiny Miltank"] = 3,
["Shiny Blissey"] = 30,
["Shiny Raikou"] = 1,
["Shiny Entei"] = 1,
["Shiny Suicune"] = 1,
["Shiny Larvitar"] = 50,
["Shiny Pupitar"] = 40,
["Shiny Tyranitar"] = 30,
["Shiny Lugia"] = 1,
["Shiny Ho-oh"] = 1,
["Shiny Celebi"] = 1
}
boost_stones = { --alterado v1.9 \/
["Bulbasaur"] = {leaf, boostStone},
["Ivysaur"] = {leaf, boostStone},
["Venusaur"] = {leaf, boostStone},
["Charmander"] = {fire, boostStone},
["Charmeleon"] = {fire, boostStone},
["Charizard"] = {fire, boostStone},
["Squirtle"] = {water, boostStone},
["Wartortle"] = {water, boostStone},
["Blastoise"] = {water, boostStone},
["Caterpie"] = {coccon, boostStone},
["Metapod"] = {coccon, boostStone},
["Butterfree"] = {coccon, boostStone},
["Weedle"] = {coccon, boostStone},
["Kakuna"] = {coccon, boostStone},
["Beedrill"] = {coccon, boostStone},
["Pidgey"] = {heart, boostStone},
["Pidgeotto"] = {heart, boostStone},
["Pidgeot"] = {heart, boostStone},
["Rattata"] = {heart, boostStone},
["Raticate"] = {heart, boostStone},
["Spearow"] = {heart, boostStone},
["Fearow"] = {heart, boostStone},
["Ekans"] = {venom, boostStone},
["Arbok"] = {venom, boostStone},
["Pikachu"] = {thunder, boostStone},
["Raichu"] = {thunder, boostStone},
["Sandshrew"] = {earth, boostStone},
["Sandslash"] = {earth, boostStone},
["Nidoran Female"] = {venom, boostStone},
["Nidorina"] = {venom, boostStone},
["Nidoqueen"] = {venom, earth, boostStone},
["Nidoran Male"] = {venom, boostStone},
["Nidorino"] = {venom, boostStone},
["Nidoking"] = {venom, earth, boostStone},
["Clefairy"] = {heart, boostStone},
["Clefable"] = {heart, boostStone},
["Vulpix"] = {fire, boostStone},
["Ninetales"] = {fire, boostStone},
["Jigglypuff"] = {heart, boostStone},
["Wigglytuff"] = {heart, boostStone},
["Zubat"] = {venom, boostStone},
["Golbat"] = {venom, boostStone},
["Oddish"] = {leaf, venom, boostStone},
["Gloom"] = {leaf, venom, boostStone},
["Vileplume"] = {leaf, venom, boostStone},
["Paras"] = {coccon, leaf, boostStone},
["Parasect"] = {coccon, leaf, boostStone},
["Venonat"] = {coccon, venom, boostStone},
["Venomoth"] = {coccon, venom, boostStone},
["Diglett"] = {earth, boostStone},
["Dugtrio"] = {earth, boostStone},
["Meowth"] = {heart, boostStone},
["Persian"] = {heart, boostStone},
["Psyduck"] = {water, boostStone},
["Golduck"] = {water, enigma, boostStone},
["Mankey"] = {punch, boostStone},
["Primeape"] = {punch, boostStone},
["Growlithe"] = {fire, boostStone},
["Arcanine"] = {fire, boostStone},
["Poliwag"] = {water, boostStone},
["Poliwhirl"] = {water, boostStone},
["Poliwrath"] = {water, punch, boostStone},
["Abra"] = {enigma, boostStone},
["Kadabra"] = {enigma, boostStone},
["Alakazam"] = {enigma, boostStone},
["Machop"] = {punch, boostStone},
["Machoke"] = {punch, boostStone},
["Machamp"] = {punch, boostStone},
["Bellsprout"] = {leaf, venom, boostStone},
["Weepinbell"] = {leaf, venom, boostStone},
["Victreebel"] = {leaf, venom, boostStone},
["Tentacool"] = {water, venom, boostStone},
["Tentacruel"] = {water, venom, boostStone},
["Geodude"] = {earth, rock, boostStone},
["Graveler"] = {earth, rock, boostStone},
["Golem"] = {earth, rock, boostStone},
["Ponyta"] = {fire, boostStone},
["Rapidash"] = {fire, boostStone},
["Slowpoke"] = {water, enigma, boostStone},
["Slowbro"] = {water, enigma, boostStone},
["Magnemite"] = {thunder, metal, boostStone},
["Magneton"] = {thunder, metal, boostStone},
["Farfetch'd"] = {heart, boostStone},
["Doduo"] = {heart, boostStone},
["Dodrio"] = {heart, boostStone},
["Seel"] = {water, ice, boostStone},
["Dewgong"] = {water, ice, boostStone},
["Grimer"] = {venom, boostStone},
["Muk"] = {venom, boostStone},
["Shellder"] = {water, ice, boostStone},
["Cloyster"] = {water, ice, boostStone},
["Gastly"] = {dark, boostStone},
["Haunter"] = {dark, boostStone},
["Gengar"] = {dark, boostStone},
["Onix"] = {rock, earth, boostStone},
["Drowzee"] = {enigma, boostStone},
["Hypno"] = {enigma, boostStone},
["Krabby"] = {water, boostStone},
["Kingler"] = {water, boostStone},
["Voltorb"] = {thunder, boostStone},
["Electrode"] = {thunder, boostStone},
["Exeggcute"] = {enigma, leaf, boostStone},
["Exeggutor"] = {enigma, leaf, boostStone},
["Cubone"] = {earth, boostStone},
["Marowak"] = {earth, boostStone},
["Hitmonlee"] = {punch, boostStone},
["Hitmonchan"] = {punch, boostStone},
["Lickitung"] = {heart, boostStone},
["Koffing"] = {venom, boostStone},
["Weezing"] = {venom, boostStone},
["Rhyhorn"] = {earth, rock, boostStone},
["Rhydon"] = {earth, rock, boostStone},
["Chansey"] = {heart, boostStone},
["Tangela"] = {leaf, boostStone},
["Kangaskhan"] = {heart, boostStone},
["Horsea"] = {water, boostStone},
["Seadra"] = {water, boostStone},
["Goldeen"] = {water, boostStone},
["Seaking"] = {water, boostStone},
["Staryu"] = {water, boostStone},
["Starmie"] = {water, boostStone},
["Mr. Mime"] = {enigma, boostStone},
["Scyther"] = {coccon, boostStone},
["Jynx"] = {enigma, ice, boostStone},
["Electabuzz"] = {thunder, boostStone},
["Magmar"] = {fire, boostStone},
["Pinsir"] = {coccon, boostStone},
["Tauros"] = {heart, boostStone},
["Magikarp"] = {water, boostStone},
["Gyarados"] = {water, crystal, boostStone},
["Lapras"] = {water, ice, boostStone},
["Ditto"] = {heart, boostStone},
["Eevee"] = {heart, boostStone},
["Vaporeon"] = {water, boostStone},
["Jolteon"] = {thunder, boostStone},
["Flareon"] = {fire, boostStone},
["Espeon"] = {enigma, boostStone},
["Umbreon"] = {dark, boostStone},
["Porygon"] = {heart, enigma, boostStone},
["Omanyte"] = {rock, water, boostStone},
["Omastar"] = {rock, water, boostStone},
["Kabuto"] = {rock, water, boostStone},
["Kabutops"] = {rock, water, boostStone},
["Aerodactyl"] = {rock, boostStone},
["Snorlax"] = {heart, boostStone},
["Articuno"] = {ice, boostStone},
["Zapdos"] = {thunder, boostStone},
["Moltres"] = {fire, boostStone},
["Dratini"] = {crystal, boostStone},
["Dragonair"] = {crystal, boostStone},
["Dragonite"] = {crystal, ancient, boostStone},
["Mewtwo"] = {enigma, boostStone},
["Mew"] = {enigma, boostStone},
["Shiny Typhlosion"] = {fire, boostStone},
--
["Shiny Bulbasaur"] = {leaf, boostStone},
["Shiny Ivysaur"] = {leaf, boostStone},
["Shiny Venusaur"] = {leaf, boostStone},
["Shiny Charmander"] = {fire, boostStone},
["Shiny Charmeleon"] = {fire, boostStone},
["Shiny Charizard"] = {fire, boostStone},
["Shiny Squirtle"] = {water, boostStone},
["Shiny Wartortle"] = {water, boostStone},
["Shiny Blastoise"] = {water, boostStone},
["Shiny Caterpie"] = {coccon, boostStone},
["Shiny Metapod"] = {coccon, boostStone},
["Shiny Butterfree"] = {coccon, boostStone},
["Shiny Weedle"] = {coccon, boostStone},
["Shiny Kakuna"] = {coccon, boostStone},
["Shiny Beedrill"] = {coccon, boostStone},
["Shiny Pidgey"] = {heart, boostStone},
["Shiny Pidgeotto"] = {heart, boostStone},
["Shiny Pidgeot"] = {heart, boostStone},
["Shiny Rattata"] = {heart, boostStone},
["Shiny Raticate"] = {heart, boostStone},
["Shiny Spearow"] = {heart, boostStone},
["Shiny Fearow"] = {heart, boostStone},
["Shiny Ekans"] = {venom, boostStone},
["Shiny Arbok"] = {venom, boostStone},
["Shiny Pikachu"] = {thunder, boostStone},
["Shiny Raichu"] = {thunder, boostStone},
["Shiny Sandshrew"] = {earth, boostStone},
["Shiny Sandslash"] = {earth, boostStone},
["Shiny Nidoran Female"] = {venom, boostStone},
["Shiny Nidorina"] = {venom, boostStone},
["Shiny Nidoqueen"] = {venom, earth, boostStone},
["Shiny Nidoran Male"] = {venom, boostStone},
["Shiny Nidorino"] = {venom, boostStone},
["Shiny Nidoking"] = {venom, earth, boostStone},
["Shiny Clefairy"] = {heart, boostStone},
["Shiny Clefable"] = {heart, boostStone},
["Shiny Vulpix"] = {fire, boostStone},
["Shiny Ninetales"] = {fire, boostStone},
["Shiny Jigglypuff"] = {heart, boostStone},
["Shiny Wigglytuff"] = {heart, boostStone},
["Shiny Zubat"] = {venom, boostStone},
["Shiny Golbat"] = {venom, boostStone},
["Shiny Oddish"] = {leaf, venom, boostStone},
["Shiny Gloom"] = {leaf, venom, boostStone},
["Shiny Vileplume"] = {leaf, venom, boostStone},
["Shiny Paras"] = {coccon, leaf, boostStone},
["Shiny Parasect"] = {coccon, leaf, boostStone},
["Shiny Venonat"] = {coccon, venom, boostStone},
["Shiny Venomoth"] = {coccon, venom, boostStone},
["Shiny Diglett"] = {earth, boostStone},
["Shiny Dugtrio"] = {earth, boostStone},
["Shiny Meowth"] = {heart, boostStone},
["Shiny Persian"] = {heart, boostStone},
["Shiny Psyduck"] = {water, boostStone},
["Shiny Golduck"] = {water, enigma, boostStone},
["Shiny Mankey"] = {punch, boostStone},
["Shiny Primeape"] = {punch, boostStone},
["Shiny Growlithe"] = {fire, boostStone},
["Shiny Arcanine"] = {fire, boostStone},
["Shiny Poliwag"] = {water, boostStone},
["Shiny Poliwhirl"] = {water, boostStone},
["Shiny Poliwrath"] = {water, punch, boostStone},
["Shiny Abra"] = {enigma, boostStone},
["Shiny Kadabra"] = {enigma, boostStone},
["Shiny Alakazam"] = {enigma, boostStone},
["Shiny Machop"] = {punch, boostStone},
["Shiny Machoke"] = {punch, boostStone},
["Shiny Machamp"] = {punch, boostStone},
["Shiny Bellsprout"] = {leaf, venom, boostStone},
["Shiny Weepinbell"] = {leaf, venom, boostStone},
["Shiny Victreebel"] = {leaf, venom, boostStone},
["Shiny Tentacool"] = {water, venom, boostStone},
["Shiny Tentacruel"] = {water, venom, boostStone},
["Shiny Geodude"] = {earth, rock, boostStone},
["Shiny Graveler"] = {earth, rock, boostStone},
["Shiny Golem"] = {rock, boostStone},
["Shiny Ponyta"] = {fire, boostStone},
["Shiny Rapidash"] = {fire, boostStone},
["Shiny Slowpoke"] = {water, enigma, boostStone},
["Shiny Slowbro"] = {water, enigma, boostStone},
["Shiny Magnemite"] = {thunder, metal, boostStone},
["Shiny Magneton"] = {thunder, metal, boostStone},
["Shiny Farfetch'd"] = {heart, boostStone},
["Shiny Doduo"] = {heart, boostStone},
["Shiny Dodrio"] = {heart, boostStone},
["Shiny Seel"] = {water, ice, boostStone},
["Shiny Dewgong"] = {water, ice, boostStone},
["Shiny Grimer"] = {venom, boostStone},
["Shiny Muk"] = {venom, boostStone},
["Shiny Shellder"] = {water, ice, boostStone},
["Shiny Cloyster"] = {water, ice, boostStone},
["Shiny Gastly"] = {dark, boostStone},
["Shiny Haunter"] = {dark, boostStone},
["Shiny Gengar"] = {dark, boostStone},
["Shiny Onix"] = {rock, earth, boostStone},
["Shiny Drowzee"] = {enigma, boostStone},
["Shiny Hypno"] = {enigma, boostStone},
["Shiny Krabby"] = {water, boostStone},
["Shiny Kingler"] = {water, boostStone},
["Shiny Voltorb"] = {thunder, boostStone},
["Shiny Electrode"] = {thunder, boostStone},
["Shiny Exeggcute"] = {enigma, leaf, boostStone},
["Shiny Exeggutor"] = {enigma, leaf, boostStone},
["Shiny Cubone"] = {earth, boostStone},
["Shiny Marowak"] = {earth, boostStone},
["Shiny Hitmonlee"] = {punch, boostStone},
["Shiny Hitmonchan"] = {punch, boostStone},
["Shiny Hitmontop"] = {punch, boostStone}, --alterado v1.4
["Shiny Lickitung"] = {heart, boostStone},
["Shiny Koffing"] = {venom, boostStone},
["Shiny Weezing"] = {venom, boostStone},
["Shiny Rhyhorn"] = {earth, rock, boostStone},
["Shiny Rhydon"] = {earth, rock, boostStone},
["Shiny Chansey"] = {heart, boostStone},
["Shiny Tangela"] = {leaf, boostStone},
["Shiny Kangaskhan"] = {heart, boostStone},
["Shiny Horsea"] = {water, boostStone},
["Shiny Seadra"] = {water, boostStone},
["Shiny Goldeen"] = {water, boostStone},
["Shiny Seaking"] = {water, boostStone},
["Shiny Staryu"] = {water, boostStone},
["Shiny Starmie"] = {water, boostStone},
["Shiny Mr. Mime"] = {enigma, boostStone},
["Shiny Scyther"] = {coccon, boostStone},
["Shiny Jynx"] = {enigma, ice, boostStone},
["Shiny Electabuzz"] = {thunder, boostStone},
["Shiny Magmar"] = {fire, boostStone},
["Shiny Pinsir"] = {coccon, boostStone},
["Shiny Tauros"] = {heart, boostStone},
["Shiny Magikarp"] = {water, boostStone},
["Shiny Gyarados"] = {water, crystal, boostStone},
["Shiny Lapras"] = {water, ice, boostStone},
["Shiny Ditto"] = {heart, boostStone},
["Shiny Eevee"] = {heart, boostStone},
["Shiny Vaporeon"] = {water, boostStone},
["Shiny Jolteon"] = {thunder, boostStone},
["Shiny Flareon"] = {fire, boostStone},
["Shiny Porygon"] = {heart, enigma, boostStone},
["Shiny Omanyte"] = {rock, water, boostStone},
["Shiny Omastar"] = {rock, water, boostStone},
["Shiny Kabuto"] = {rock, water, boostStone},
["Shiny Kabutops"] = {rock, water, boostStone},
["Shiny Aerodactyl"] = {rock, boostStone},
["Shiny Snorlax"] = {heart, boostStone},
["Shiny Articuno"] = {ice, boostStone},
["Shiny Zapdos"] = {thunder, boostStone},
["Shiny Moltres"] = {fire, boostStone},
["Shiny Dratini"] = {crystal, boostStone},
["Shiny Dragonair"] = {crystal, boostStone},
["Shiny Dragonite"] = {crystal, boostStone},
["Shiny Mewtwo"] = {enigma, boostStone},
["Shiny Mew"] = {enigma, boostStone},
--
["Chikorita"] = {leaf, boostStone},
["Bayleef"] = {leaf, boostStone},
["Meganium"] = {leaf, boostStone},
["Cyndaquil"] = {fire, boostStone},
["Quilava"] = {fire, boostStone},
["Typhlosion"] = {fire, boostStone},
["Totodile"] = {water, boostStone},
["Croconaw"] = {water, boostStone},
["Feraligatr"] = {water, boostStone},
["Sentret"] = {heart, boostStone},
["Furret"] = {heart, boostStone},
["Hoothoot"] = {heart, enigma, boostStone},
["Noctowl"] = {heart, enigma, boostStone},
["Ledyba"] = {coccon, boostStone},
["Ledian"] = {coccon, boostStone},
["Spinarak"] = {coccon, venom, boostStone},
["Ariados"] = {coccon, venom, boostStone},
["Crobat"] = {venom, boostStone},
["Chinchou"] = {water, thunder, boostStone},
["Lanturn"] = {water, thunder, boostStone},
["Pichu"] = {thunder, boostStone},
["Cleffa"] = {heart, boostStone},
["Iglybuff"] = {venom, boostStone},
["Natu"] = {enigma, boostStone},
["Xatu"] = {enigma, boostStone},
["Mareep"] = {thunder, boostStone},
["Flaaffy"] = {thunder, boostStone},
["Ampharos"] = {thunder, boostStone},
["Bellossom"] = {leaf, boostStone},
["Marill"] = {water, boostStone},
["Azulmarill"] = {water, boostStone},
["Sudowoodo"] = {rock, earth, boostStone},
["Politoed"] = {water, earth, boostStone},
["Hoppip"] = {leaf, boostStone},
["Skiploom"] = {leaf, boostStone},
["Jumpluff"] = {leaf, boostStone},
["Aipom"] = {heart, boostStone},
["Sunkern"] = {leaf, boostStone},
["Sunflora"] = {leaf, boostStone},
["Yanma"] = {venom, coccon, boostStone},
["Wooper"] = {water, boostStone},
["Quagsire"] = {water, earth, boostStone},
["Murkrow"] = {dark, boostStone},
["Slowking"] = {ancient, boostStone},
["Misdreavus"] = {dark, boostStone},
["Wobbuffet"] = {enigma, boostStone},
["Girafarig"] = {enigma, boostStone},
["Pineco"] = {coccon, boostStone},
["Forretress"] = {coccon, boostStone},
["Gligar"] = {dark, heart, boostStone},
["Steelix"] = {metal, boostStone},
["Snubbull"] = {heart, boostStone},
["Granbull"] = {heart, boostStone},
["Qwilfish"] = {water, boostStone},
["Shuckle"] = {earth, boostStone},
["Heracross"] = {coccon, boostStone},
["Teddiursa"] = {heart, boostStone},
["Ursaring"] = {ancient, boostStone},
["Slugma"] = {fire, boostStone},
["Magcargo"] = {fire, boostStone},
["Swinub"] = {ice, earth, boostStone},
["Piloswine"] = {ice, earth, boostStone},
["Corsola"] = {water, boostStone},
["Remoraid"] = {water, boostStone},
["Octillery"] = {water, boostStone},
["Delibird"] = {ice, heart, boostStone},
["Mantine"] = {water, boostStone},
["Skarmory"] = {metal, boostStone},
["Houndour"] = {fire, dark, boostStone},
["Houndoom"] = {fire, dark, boostStone},
["Kingdra"] = {ancient, crystal, boostStone},
["Phanpy"] = {earth, boostStone},
["Donphan"] = {earth, boostStone},
["porygon2"] = {ancient, boostStone},
["Stantler"] = {heart, boostStone},
["Smeargle"] = {heart, boostStone},
["Tyrogue"] = {punch, boostStone},
["Hitmontop"] = {punch, boostStone},
["Smoochum"] = {ice, enigma, boostStone},
["Elekid"] = {thunder, boostStone},
["Magby"] = {fire, boostStone},
["Miltank"] = {heart, boostStone},
["Blissey"] = {ancient, boostStone},
["Scizor"] = {metal, boostStone},
["Raikou"] = {thunder, boostStone},
["Entei"] = {fire, boostStone},
["Suicune"] = {water, boostStone},
["Larvitar"] = {earth, dark, boostStone},
["Pupitar"] = {earth, dark, boostStone},
["Tyranitar"] = {ancient, boostStone},
["Lugia"] = {enigma, water, boostStone},
["Ho-oh"] = {enigma, fire, boostStone},
["Celebi"] = {leaf, enigma, boostStone}}
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,
[metal] = 1,
[ancient] = 1,
[boostStone] = 1, --alterado v1.9
}
local stone_increase = { -- a cada quantos boosts irá aumentar o custo de stones
[heart] = 4,
[leaf] = 4,
[water] = 4,
[venom] = 4,
[thunder] = 4,
[rock] = 4,
[punch] = 4,
[fire] = 4,
[coccon] = 4,
[crystal] = 4,
[dark] = 4,
[earth] = 4,
[enigma] = 4,
[ice] = 4,
[metal] = 4,
[ancient] = 4,
[boostStone] = 4, --alterado v1.9
}
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_need[getItemAttribute(myball.uid, "poke")])
local required_stones = stones_required[stone.itemid] + extraStones
local boosts = 0
local availableStones = 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
availableStones = availableStones + it.type
end
end
for a = 1, availableStones do
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 <= 49 then
extraStones = math.floor((boost + boosts) / stone_need[getItemAttribute(myball.uid, "poke")])
required_stones = stones_required[stone.itemid] + extraStones
end
end
end
end
local qtdstne = stones_required[stone.itemid] + extraStones
if required_stones > 0 and boosts == 0 then
doPlayerSendCancel(cid, "You need "..qtdstne.." stones to boost this pokemon.")
return true
end
for b = 1, removeStones do
local i = getContainerItem(stone_slot.uid, 0)
doChangeTypeItem(i.uid, i.type - 1)
end
doSetItemAttribute(myball.uid, "boost", boost + boosts)
local msg = "Your "..getPokeballName(myball.uid).." has been boosted!"
local msg2 = "• Boost: "..(boost + boosts).." (+"..boosts..")"
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, 500, cid, getThingPos(item.uid), getThingPos(ball_slot.uid), getThingPos(stone_slot.uid), msg, msg2)
return true
end
end

 

 

 

 

EDIT: Consegui arrumar o boost, não tinha nada a ver com a bag era um outro script no Lib que tava passando id de stones 1 que o configration, ae como o id era de runa no meu otmb e xml ele dava q n tinha stone...vlw ^^

 

Agora sabem como arruamr o slot pra ficar igual o do PDA?

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

×
×
  • Criar Novo...