Ir para conteúdo

Featured Replies

Postado

Fala ai galera tudo beleza? então hoje venho compartilhar com vocês o sistema de TM , é bem diferente das quais já temos aqui no tk , ela é bem facil de se editar , então sem mais delongas vamos para  o tutorial + o script xD.

 

1° - Criar um arquivo em data/actions/scripts chamado de :tm.lua , e coloque tudo isso aqui dentro do script \/

idTM = {


[12595] = {tm = "Waterball"},
[12596] = {tm = "Dragon Claw"},
[12597] = {tm = "Water Pulse"},
[12598] = {tm = "Hypnosis"},
[12599] = {tm = "Scary Face"},
[12600] = {tm = "Poison Gas"},
[12601] = {tm = "Draco Meteor"},
[12602] = {tm = "Inferno"},
[12603] = {tm = "Bullet Seed"},
[12604] = {tm = "Rock Blast"},
[12605] = {tm = "Red Fury"},
[12606] = {tm = "Pin Missile"},
[12607] = {tm = "Ice Beam"},
[12608] = {tm = "Blizzard"},
[12609] = {tm = "Hyper Beam"},
[12610] = {tm = "Ancient Power"},
[12611] = {tm = "Power Gem"},
[12612] = {tm = "Aromateraphy"},
[12613] = {tm = "Giga Drain"},
[12614] = {tm = "Tornado"},
[12615] = {tm = "Air Slash"},
[12616] = {tm = "Leaf Blade"},
[12617] = {tm = "Meteor Smash"},
[12618] = {tm = "Thunder Bolt"},
[12619] = {tm = "Thunder"},
[12620] = {tm = "Earthquake"},
[12621] = {tm = "Dark Pulse"},
[12622] = {tm = "X-Scissor"},
[12623] = {tm = "Psychic"},
[12624] = {tm = "Shadow Ball"},
[12625] = {tm = "Rest"},
[12626] = {tm = "Tri-Attack"},
[12627] = {tm = "Reflect"},
[12628] = {tm = "Healarea"},
[12629] = {tm = "Magma Storm"},
[12630] = {tm = "Fire Blast"},
[12631] = {tm = "Rock Throw"},
[12632] = {tm = "War Dog"},
[12633] = {tm = "Icy Wind"},
[12634] = {tm = "Hydropump"},
[12635] = {tm = "Confusion"},
[12636] = {tm = "Stomp"},
[12637] = {tm = "Selfheal"},
[12638] = {tm = "Restore"},
[12639] = {tm = "Absorb"},
[12640] = {tm = "Metronome"},
[12641] = {tm = "Leaf Blade"},
[12642] = {tm = "Confuse Ray"},
[12643] = {tm = "Eruption"},
[12644] = {tm = "Razor Leaf"},


}

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

if not idTM[item.itemid] then return false end
if not isPokeball(item2.itemid) then return false end
TM = idTM[item.itemid]
List = tmList[TM.tm]
if not isInArray(List.pokes, getItemAttribute(item2.uid, "poke")) then
doPlayerSendCancel(cid, "This pokemon don\'t learn "..TM.tm.."!")
return false
end
ID = 1
Have = "not"
Slot = ""
if haveFirstTM(item2) then
if getFirstTMName(item2) == TM.tm then
Have = "yes"
end
ID = ID + 1
end
if haveSecondTM(item2) then
if getSecondTMName(item2) == TM.tm then
Have = "yes"
end
ID = ID + 1
end
if haveThirdTM(item2) then
if getThirdTMName(item2) == TM.tm then
Have = "yes"
end
ID = ID + 1
end
if Have == "yes" then
doPlayerSendCancel(cid, "This pokemon have learned this TM!")
return false
end
if ID == 1 then
Slot = "First"
elseif ID == 2 then
Slot = "Second"
elseif ID == 3 then
Slot = "Third"
end
if haveAllTMs(item2) or ID == 4 or Slot == "" then
doPlayerSendCancel(cid, "This pokemon have number max of TMs!")
return false
end

addTM(item2, TM.tm, ID)
doRemoveItem(item.uid, 1)
doPlayerSendTextMessage(cid, 22, ""..getItemAttribute(item2.uid, "poke").." learn "..TM.tm.." on "..Slot.." Slot!")
return true
end

 

Em todos os numeros dentro de [ ] colocar o id da sua tm ,  vamos agora para o próximo passo .

 

vá em data/lib e cria um arquivo chamado de : tm lib.lua , e dentro dele cole isso aqui \/ :

 

 

tmList = {


["Waterball"] = {number = 01, level = 1, cd = 20, dist = 5, target = 1, f = 65, t = "water", pokes = {"Wartortle", "Blastoise", "Golduck", "Tentacruel", "Slowbro", "Kingler", "Seadra", "Seaking", "Starmie", "Jynx", "Vaporeon", "Omastar", "Croconaw", "Feraligatr", "Azulmarill", "Politoed", "Mantine", "Sneasel", "Delibird", "Slugma", "Smoochum"}},
["Dragon Claw"] = {number = 02, level = 1, cd = 20, dist = 1, target = 1, f = 60, t = "dragon", pokes = {"Sandslash", "Nidoqueen", "Nidoking", "Rhydon", "Kangaskhan", "Magmar", "Croconaw", "Feraligatr", "Gligar", "Sneasel", "Ursaring", "Tyranitar"}},
["Water Pulse"] = {number = 03, level = 1, cd = 20, dist = 1, target = 1, f = 70, t = "dragon", pokes = {"Squirtle", "Wartortle", "Blastoise", "Nidoran Female", "Nidoqueen", "Nidoran Male", "Nidoking", "Clefairy", "Clefable", "Jigglypuff", "Wigglytuff", "Meowth", "Persian", "Psyduck", "Poliwag", "Poliwhirl", "Poliwharth", "Shiny Tentacool", "Shiny Tentacruel", "Kangaskhan", "Shiny Seadra", "Jynx", "Shiny Jynx", "Shiny Gyarados", "Gyarados", "Lapras", "Omastar", "Kabuto", "Kabutops", "Snorlax", "Shiny Snorlax", "Dratini", "Shiny Dratini", "Dragonair", "Shiny Dragonair", "Dragonite", "Shiny Dragonite", "Politoed", "Mantine", "Kingdra", "Blissey", "Miltank", "Tyranitar"}},
["Hypnosis"] = {number = 04, level = 1, cd = 20, dist = 8, target = 1, f = 0, t = "psychic", pokes = {"Golduck", "Mr.Mime", "Starmie", "Jynx", "Shiny Jynx", "Togetic", "Girafarig", "Porygon2", "Lapras"}},
["Scary Face"] = {number = 05, level = 1, cd = 20, dist = 5, target = 0, f = 0, t = "psychic", pokes = {"Venusaur", "Charizard", "Blastoise", "Raticate", "Nidoqueen", "Nidoking", "Golem", "Onix", "Rhydon", "Kangaskhan", "Vaporeon", "Jolteon", "Flareon", "Snorlax", "Dragonite", "Shiny Dragonite", "Shiny Snorlax", "Shiny Onix", "Steelix", "Ursaring", "Tyranitar", "Shiny Blastoise", "Shiny Vaporeon", "Shiny Jolteon", "Shiny Flareon"}},
["Poison Gas"] = {number = 06, level = 1, cd = 20, dist = 3, target = 0, f = 5, t = "poison", pokes = {"Ivysaur", "Venusaur", "Beedrill", "Victreebel", "Tentacrueel", "Shiny Tentacrueel", "Muk", "Shiny Muk", "Pinsir", "Shiny Pinsir", "Ariados", "Shiny Venusaur", "Shiny Beedril"}},
["Draco Meteor"] = {number = 07, level = 1, cd = 20, dist = 3, target = 0, f = 90, t = "dragon", pokes = {"Charizard", "Gyarados", "Aerodactyl", "Dragonair", "Dragonite", "Steelix", "Kingdra", "Shiny Charizard", "Shiny Gyarados", "Shiny Dragonair", "Shiny Dragonite"}},
["Inferno"] = {number = 08, level = 1, cd = 20, dist = 2, target = 1, f = 110, t = "fire", pokes = {"Charizard", "Nitetales", "Arcanine", "Rapidash", "Magmar", "Flareon", "Shiny Flareon", "Shiny Charizard"}},
["Bullet Seed"] = {number = 09, level = 1, cd = 20, dist = 3, target = 1, f = 95, t = "grass", pokes = {"Vileplume", "Parasect", "Victreebel", "Exeggutor", "Tangela", "bayleef", "Meganium", "Bellossom", "Shiny Vileplume", "Shiny Parasect", "Shiny Tanegela"}},
["Rock Blast"] = {number = 10, level = 1, cd = 20, dist = 2, target = 1, f = 90, t = "rock", pokes = {"Sandslash", "dugtrio", "Golem", "Onix", "Cubone", "Omastar", "Kabutops", "Aerodactyl", "Steelix", "Tyranitar", "sudowoodo", "Shiny Onix", "Shiny Cubone", "Marowak", "Shiny Marowak"}},
["Red Fury"] = {number = 11, level = 1, cd = 20, dist = 2, target = 0, f = 35, t = "bug", pokes = {"Raticate", "Shiny Raticate", "Arbok", "Tauros", "Hitmontop", "Shiny Fearow", "Fearow"}},
["Pin Missile"] = {number = 12, level = 1, cd = 20, dist = 2, target = 0, f = 80, t = "bug", pokes = {"Butterfree", "Beedril", "Parasect", "Venomoth", "Scyther", "Pinsir", "Ariados", "Pineco", "Scizor", "Heracross", "Shiny Butterfree", "Shiny Beedril", "Shiny Parasect", "Shiny Venomoth", "Shiny Scyther", "Shiny Pinsir"}},
["Ice Beam"] = {number = 13, level = 1, cd = 20, dist = 2, target = 0, f = 95, t = "ice", pokes = {"Wartortle", "Blastoise", "Clefable", "Wigglytuff", "Tentacruel", "Kingler", "Chansey", "Seadra", "Gyarados", "Vaporeon", "Porygon", "Omastar", "Kabutops", "Dratini", "Dragonair", "Dragonite", "Togetic", "Kingdra", "Jynx", "Shiny Jynx", "Miltank", "Blissey", "Tyranitar", "Shiny Blastoise", "Shiny Tentacruel", "Shiny Kingler", "Shiny Seadra", "Shiny Gyarados", "Shiny Vaporeon", "Shiny Dratini", "Shiny Dragonair", "Shiny Dragonite"}},
["Blizzard"] = {number = 14, level = 1, cd = 20, dist = 2, target = 0, f = 100, t = "ice", pokes = {"Wartortle", "Blastoise", "Clefable", "Wigglytuff", "Tentacruel", "Kingler", "Chansey", "Seadra", "Gyarados", "Vaporeon", "Porygon", "Omastar", "Kabutops", "Dratini", "Dragonair", "Dragonite", "Togetic", "Kingdra", "Jynx", "Shiny Jynx", "Miltank", "Blissey", "Tyranitar", "Shiny Blastoise", "Shiny Tentacruel", "Shiny Kingler", "Shiny Seadra", "Shiny Gyarados", "Shiny Vaporeon", "Shiny Dratini", "Shiny Dragonair", "Shiny Dragonite"}},
["Hyper Beam"] = {number = 15, level = 1, cd = 20, dist = 5, target = 0, f = 100, t = "normal", pokes = {"Venusaur", "Charizard", "Blastoise", "Raticate", "Nidoqueen", "Nidoking", "Golem", "Onix", "Rhydon", "Kangaskhan", "Vaporeon", "Jolteon", "Flareon", "Snorlax", "Dragonite", "Shiny Dragonite", "Shiny Snorlax", "Shiny Onix", "Steelix", "Ursaring", "Tyranitar", "Shiny Blastoise", "Shiny Vaporeon", "Shiny Jolteon", "Shiny Flareon", "Raichu", "Shiny Raichu", "Scizor", "Scyther", "Shiny Scyther", "Lapras", "Chansey", "Blissey", "Alakazam", "Shiny Alakazam", "Gengar", "Shiny Gengar", "Pidgeot", "Shiny Pidgeot"}},
["Ancient Power"] = {number = 16, level = 1, cd = 20, dist = 2, target = 0, f = 100, t = "rock", pokes = {"Sandslash", "dugtrio", "Golem", "Onix", "Cubone", "Omastar", "Kabutops", "Aerodactyl", "Steelix", "Tyranitar", "sudowoodo", "Shiny Onix", "Shiny Cubone", "Marowak", "Shiny Marowak", "Tyranitar", "Tangela", "Shiny Tangela"}},
["Power Gem"] = {number = 17, level = 1, cd = 20, dist = 2, target = 1, f = 90, t = "rock", pokes = {"Magneton", "Rhydon", "Omastar", "Steelix", "Scizor", "Tyranitar", "Electrode", "Shiny Electrode"}},
["Aromateraphy"] = {number = 18, level = 1, cd = 20, dist = 2, target = 1, f = 80, t = "grass", pokes = {"Venusaur", "Butterfree", "Arbok", "Golbat", "Vileplume", "Parasect", "Venomoth", "Victreebel", "Tentacruel", "Gengar", "Tangela", "Kabutosp", "Meganium", "Ariados", "Crobat", "Bellosom", "Miltank"}},
["Giga Drain"] = {number = 19, level = 1, cd = 20, dist = 2, target = 1, f = 80, t = "grass", pokes = {"Venusaur", "Butterfree", "Arbok", "Golbat", "Vileplume", "Parasect", "Venomoth", "Victreebel", "Tentacruel", "Gengar", "Tangela", "Kabutosp", "Meganium", "Ariados", "Crobat", "Bellosom", "Miltank"}},
["Tornado"] = {number = 20, level = 1, cd = 20, dist = 2, target = 0, f = 80, t = "grass", pokes = {"Venusaur", "Butterfree", "Arbok", "Golbat", "Vileplume", "Parasect", "Venomoth", "Victreebel", "Tentacruel", "Gengar", "Tangela", "Kabutosp", "Meganium", "Ariados", "Crobat", "Bellosom", "Miltank", "Scyther", "Shiny Scyther", "Alakazam", "Shiny Alakazam", "Jynx", "Shiny Jynx", "Shiny Dragonite", "Dragonite", "Dratini", "Shiny Dratini", "Gyarados", "Shiny Gyarados", "Pikachu", "Raichu", "Shiny Raichu", "Mew", "Shiny Mew", "Mewtwo", "Shiny Mewtwo", "Togetic", "Lapras", "Aerodactyl", "Scizor", "Mantine", "Blissey", "Chasey", "Blastoise", "Shiny Blastoise", "Arcanine", "Shiny Arcanine", "Lugia", "Magmar", "Ursaring", "Electabuzz", "Shiny Electabuzz"}},
["Air Slash"] = {number = 21, level = 1, cd = 20, dist = 2, target = 1, f = 75, t = "flying", pokes = {"Venusaur", "Butterfree", "Arbok", "Golbat", "Vileplume", "Parasect", "Venomoth", "Victreebel", "Tentacruel", "Gengar", "Tangela", "Kabutosp", "Meganium", "Ariados", "Crobat", "Bellosom", "Miltank", "Scyther", "Shiny Scyther", "Alakazam", "Shiny Alakazam", "Jynx", "Shiny Jynx", "Shiny Dragonite", "Dragonite", "Dratini", "Shiny Dratini", "Gyarados", "Shiny Gyarados", "Pikachu", "Raichu", "Shiny Raichu", "Mew", "Shiny Mew", "Mewtwo", "Shiny Mewtwo", "Togetic", "Lapras", "Aerodactyl", "Scizor", "Mantine", "Blissey", "Chasey", "Blastoise", "Shiny Blastoise", "Arcanine", "Shiny Arcanine", "Lugia", "Magmar", "Ursaring", "Electabuzz", "Shiny Electabuzz"}},
["Leaf Blade"] = {number = 22, level = 1, cd = 20, dist = 2, target = 0, f = 50, t = "gass", pokes = {"Venusaur", "Butterfree", "Arbok", "Golbat", "Vileplume", "Parasect", "Venomoth", "Victreebel", "Tentacruel", "Gengar", "Tangela", "Kabutosp", "Meganium", "Ariados", "Crobat", "Bellosom", "Miltank", "Scyther", "Shiny Scyther", "Alakazam", "Shiny Alakazam", "Jynx", "Shiny Jynx", "Shiny Dragonite", "Dragonite", "Dratini", "Shiny Dratini", "Gyarados", "Shiny Gyarados", "Pikachu", "Raichu", "Shiny Raichu", "Mew", "Shiny Mew", "Mewtwo", "Shiny Mewtwo", "Togetic", "Lapras", "Aerodactyl", "Scizor", "Mantine", "Blissey", "Chasey", "Blastoise", "Shiny Blastoise", "Arcanine", "Shiny Arcanine", "Lugia", "Magmar", "Ursaring", "Electabuzz", "Shiny Electabuzz"}},
["Meteor Smash"] = {number = 23, level = 1, cd = 20, dist = 2, target = 0, f = 65, t = "normal", pokes = {"Venusaur", "Butterfree", "Arbok", "Golbat", "Vileplume", "Parasect", "Venomoth", "Victreebel", "Tentacruel", "Gengar", "Tangela", "Kabutosp", "Meganium", "Ariados", "Crobat", "Bellosom", "Miltank", "Scyther", "Shiny Scyther", "Alakazam", "Shiny Alakazam", "Jynx", "Shiny Jynx", "Shiny Dragonite", "Dragonite", "Dratini", "Shiny Dratini", "Gyarados", "Shiny Gyarados", "Pikachu", "Raichu", "Shiny Raichu", "Mew", "Shiny Mew", "Mewtwo", "Shiny Mewtwo", "Togetic", "Lapras", "Aerodactyl", "Scizor", "Mantine", "Blissey", "Chasey", "Blastoise", "Shiny Blastoise", "Arcanine", "Shiny Arcanine", "Lugia", "Magmar", "Ursaring", "Electabuzz", "Shiny Electabuzz"}},
["Thunder Bolt"] = {number = 24, level = 1, cd = 20, dist = 2, target = 1, f = 33, t = "eletric", pokes = {"Venusaur", "Butterfree", "Arbok", "Golbat", "Vileplume", "Parasect", "Venomoth", "Victreebel", "Tentacruel", "Gengar", "Tangela", "Kabutosp", "Meganium", "Ariados", "Crobat", "Bellosom", "Miltank", "Scyther", "Shiny Scyther", "Alakazam", "Shiny Alakazam", "Jynx", "Shiny Jynx", "Shiny Dragonite", "Dragonite", "Dratini", "Shiny Dratini", "Gyarados", "Shiny Gyarados", "Pikachu", "Raichu", "Shiny Raichu", "Mew", "Shiny Mew", "Mewtwo", "Shiny Mewtwo", "Togetic", "Lapras", "Aerodactyl", "Scizor", "Mantine", "Blissey", "Chasey", "Blastoise", "Shiny Blastoise", "Arcanine", "Shiny Arcanine", "Lugia", "Magmar", "Ursaring", "Electabuzz", "Shiny Electabuzz"}},
["Thunder"] = {number = 25, level = 1, cd = 20, dist = 2, target = 0, f = 100, t = "eletric", pokes = {"Venusaur", "Butterfree", "Arbok", "Golbat", "Vileplume", "Parasect", "Venomoth", "Victreebel", "Tentacruel", "Gengar", "Tangela", "Kabutosp", "Meganium", "Ariados", "Crobat", "Bellosom", "Miltank", "Scyther", "Shiny Scyther", "Alakazam", "Shiny Alakazam", "Jynx", "Shiny Jynx", "Shiny Dragonite", "Dragonite", "Dratini", "Shiny Dratini", "Gyarados", "Shiny Gyarados", "Pikachu", "Raichu", "Shiny Raichu", "Mew", "Shiny Mew", "Mewtwo", "Shiny Mewtwo", "Togetic", "Lapras", "Aerodactyl", "Scizor", "Mantine", "Blissey", "Chasey", "Blastoise", "Shiny Blastoise", "Arcanine", "Shiny Arcanine", "Lugia", "Magmar", "Ursaring", "Electabuzz", "Shiny Electabuzz"}},
["Earthquake"] = {number = 26, level = 1, cd = 20, dist = 2, target = 1, f = 10, t = "ground", pokes = {"Venusaur", "Butterfree", "Arbok", "Golbat", "Vileplume", "Parasect", "Venomoth", "Victreebel", "Tentacruel", "Gengar", "Tangela", "Kabutosp", "Meganium", "Ariados", "Crobat", "Bellosom", "Miltank", "Scyther", "Shiny Scyther", "Alakazam", "Shiny Alakazam", "Jynx", "Shiny Jynx", "Shiny Dragonite", "Dragonite", "Dratini", "Shiny Dratini", "Gyarados", "Shiny Gyarados", "Pikachu", "Raichu", "Shiny Raichu", "Mew", "Shiny Mew", "Mewtwo", "Shiny Mewtwo", "Togetic", "Lapras", "Aerodactyl", "Scizor", "Mantine", "Blissey", "Chasey", "Blastoise", "Shiny Blastoise", "Arcanine", "Shiny Arcanine", "Lugia", "Magmar", "Ursaring", "Electabuzz", "Shiny Electabuzz"}},
["Dark Pulse"] = {number = 27, level = 1, cd = 20, dist = 2, target = 1, f = 35, t = "dark", pokes = {"Venusaur", "Butterfree", "Arbok", "Golbat", "Vileplume", "Parasect", "Venomoth", "Victreebel", "Tentacruel", "Gengar", "Tangela", "Kabutosp", "Meganium", "Ariados", "Crobat", "Bellosom", "Miltank", "Scyther", "Shiny Scyther", "Alakazam", "Shiny Alakazam", "Jynx", "Shiny Jynx", "Shiny Dragonite", "Dragonite", "Dratini", "Shiny Dratini", "Gyarados", "Shiny Gyarados", "Pikachu", "Raichu", "Shiny Raichu", "Mew", "Shiny Mew", "Mewtwo", "Shiny Mewtwo", "Togetic", "Lapras", "Aerodactyl", "Scizor", "Mantine", "Blissey", "Chasey", "Blastoise", "Shiny Blastoise", "Arcanine", "Shiny Arcanine", "Lugia", "Magmar", "Ursaring", "Electabuzz", "Shiny Electabuzz"}},
["X-Scissor"] = {number = 28, level = 1, cd = 20, dist = 2, target = 0, f = 65, t = "bug", pokes = {"Venusaur", "Butterfree", "Arbok", "Golbat", "Vileplume", "Parasect", "Venomoth", "Victreebel", "Tentacruel", "Gengar", "Tangela", "Kabutosp", "Meganium", "Ariados", "Crobat", "Bellosom", "Miltank", "Scyther", "Shiny Scyther", "Alakazam", "Shiny Alakazam", "Jynx", "Shiny Jynx", "Shiny Dragonite", "Dragonite", "Dratini", "Shiny Dratini", "Gyarados", "Shiny Gyarados", "Pikachu", "Raichu", "Shiny Raichu", "Mew", "Shiny Mew", "Mewtwo", "Shiny Mewtwo", "Togetic", "Lapras", "Aerodactyl", "Scizor", "Mantine", "Blissey", "Chasey", "Blastoise", "Shiny Blastoise", "Arcanine", "Shiny Arcanine", "Lugia", "Magmar", "Ursaring", "Electabuzz", "Shiny Electabuzz"}},
["Psychic"] = {number = 29, level = 1, cd = 20, dist = 2, target = 0, f = 90, t = "psychic", pokes = {"Venusaur", "Butterfree", "Arbok", "Golbat", "Vileplume", "Parasect", "Venomoth", "Victreebel", "Tentacruel", "Gengar", "Tangela", "Kabutosp", "Meganium", "Ariados", "Crobat", "Bellosom", "Miltank", "Scyther", "Shiny Scyther", "Alakazam", "Shiny Alakazam", "Jynx", "Shiny Jynx", "Shiny Dragonite", "Dragonite", "Dratini", "Shiny Dratini", "Gyarados", "Shiny Gyarados", "Pikachu", "Raichu", "Shiny Raichu", "Mew", "Shiny Mew", "Mewtwo", "Shiny Mewtwo", "Togetic", "Lapras", "Aerodactyl", "Scizor", "Mantine", "Blissey", "Chasey", "Blastoise", "Shiny Blastoise", "Arcanine", "Shiny Arcanine", "Lugia", "Magmar", "Ursaring", "Electabuzz", "Shiny Electabuzz"}},
["Shadow Ball"] = {number = 30, level = 1, cd = 20, dist = 2, target = 1, f = 60, t = "ghost", pokes = {"Venusaur", "Butterfree", "Arbok", "Golbat", "Vileplume", "Parasect", "Venomoth", "Victreebel", "Tentacruel", "Gengar", "Tangela", "Kabutosp", "Meganium", "Ariados", "Crobat", "Bellosom", "Miltank", "Scyther", "Shiny Scyther", "Alakazam", "Shiny Alakazam", "Jynx", "Shiny Jynx", "Shiny Dragonite", "Dragonite", "Dratini", "Shiny Dratini", "Gyarados", "Shiny Gyarados", "Pikachu", "Raichu", "Shiny Raichu", "Mew", "Shiny Mew", "Mewtwo", "Shiny Mewtwo", "Togetic", "Lapras", "Aerodactyl", "Scizor", "Mantine", "Blissey", "Chasey", "Blastoise", "Shiny Blastoise", "Arcanine", "Shiny Arcanine", "Lugia", "Magmar", "Ursaring", "Electabuzz", "Shiny Electabuzz"}},
["Rest"] = {number = 31, level = 1, cd = 20, dist = 2, target = 1, f = 0, t = "normal", pokes = {"Venusaur", "Butterfree", "Arbok", "Golbat", "Vileplume", "Parasect", "Venomoth", "Victreebel", "Tentacruel", "Gengar", "Tangela", "Kabutosp", "Meganium", "Ariados", "Crobat", "Bellosom", "Miltank", "Scyther", "Shiny Scyther", "Alakazam", "Shiny Alakazam", "Jynx", "Shiny Jynx", "Shiny Dragonite", "Dragonite", "Dratini", "Shiny Dratini", "Gyarados", "Shiny Gyarados", "Pikachu", "Raichu", "Shiny Raichu", "Mew", "Shiny Mew", "Mewtwo", "Shiny Mewtwo", "Togetic", "Lapras", "Aerodactyl", "Scizor", "Mantine", "Blissey", "Chasey", "Blastoise", "Shiny Blastoise", "Arcanine", "Shiny Arcanine", "Lugia", "Magmar", "Ursaring", "Electabuzz", "Shiny Electabuzz"}},
["Tri-Attack"] = {number = 32, level = 1, cd = 20, dist = 2, target = 1, f = 25, t = "normal", pokes = {"Venusaur", "Butterfree", "Arbok", "Golbat", "Vileplume", "Parasect", "Venomoth", "Victreebel", "Tentacruel", "Gengar", "Tangela", "Kabutosp", "Meganium", "Ariados", "Crobat", "Bellosom", "Miltank", "Scyther", "Shiny Scyther", "Alakazam", "Shiny Alakazam", "Jynx", "Shiny Jynx", "Shiny Dragonite", "Dragonite", "Dratini", "Shiny Dratini", "Gyarados", "Shiny Gyarados", "Pikachu", "Raichu", "Shiny Raichu", "Mew", "Shiny Mew", "Mewtwo", "Shiny Mewtwo", "Togetic", "Lapras", "Aerodactyl", "Scizor", "Mantine", "Blissey", "Chasey", "Blastoise", "Shiny Blastoise", "Arcanine", "Shiny Arcanine", "Lugia", "Magmar", "Ursaring", "Electabuzz", "Shiny Electabuzz"}},
["Reflect"] = {number = 33, level = 1, cd = 20, dist = 2, target = 0, f = 0, t = "psychic", pokes = {"Venusaur", "Butterfree", "Arbok", "Golbat", "Vileplume", "Parasect", "Venomoth", "Victreebel", "Tentacruel", "Gengar", "Tangela", "Kabutosp", "Meganium", "Ariados", "Crobat", "Bellosom", "Miltank", "Scyther", "Shiny Scyther", "Alakazam", "Shiny Alakazam", "Jynx", "Shiny Jynx", "Shiny Dragonite", "Dragonite", "Dratini", "Shiny Dratini", "Gyarados", "Shiny Gyarados", "Pikachu", "Raichu", "Shiny Raichu", "Mew", "Shiny Mew", "Mewtwo", "Shiny Mewtwo", "Togetic", "Lapras", "Aerodactyl", "Scizor", "Mantine", "Blissey", "Chasey", "Blastoise", "Shiny Blastoise", "Arcanine", "Shiny Arcanine", "Lugia", "Magmar", "Ursaring", "Electabuzz", "Shiny Electabuzz"}},
["Healarea"] = {number = 34, level = 1, cd = 20, dist = 2, target = 1, f = 0, t = "normal", pokes = {"Venusaur", "Butterfree", "Arbok", "Golbat", "Vileplume", "Parasect", "Venomoth", "Victreebel", "Tentacruel", "Gengar", "Tangela", "Kabutosp", "Meganium", "Ariados", "Crobat", "Bellosom", "Miltank", "Scyther", "Shiny Scyther", "Alakazam", "Shiny Alakazam", "Jynx", "Shiny Jynx", "Shiny Dragonite", "Dragonite", "Dratini", "Shiny Dratini", "Gyarados", "Shiny Gyarados", "Pikachu", "Raichu", "Shiny Raichu", "Mew", "Shiny Mew", "Mewtwo", "Shiny Mewtwo", "Togetic", "Lapras", "Aerodactyl", "Scizor", "Mantine", "Blissey", "Chasey", "Blastoise", "Shiny Blastoise", "Arcanine", "Shiny Arcanine", "Lugia", "Magmar", "Ursaring", "Electabuzz", "Shiny Electabuzz"}},
["Magma Storm"] = {number = 35, level = 1, cd = 20, dist = 2, target = 0, f = 95, t = "fire", pokes = {"Venusaur", "Butterfree", "Arbok", "Golbat", "Vileplume", "Parasect", "Venomoth", "Victreebel", "Tentacruel", "Gengar", "Tangela", "Kabutosp", "Meganium", "Ariados", "Crobat", "Bellosom", "Miltank", "Scyther", "Shiny Scyther", "Alakazam", "Shiny Alakazam", "Jynx", "Shiny Jynx", "Shiny Dragonite", "Dragonite", "Dratini", "Shiny Dratini", "Gyarados", "Shiny Gyarados", "Pikachu", "Raichu", "Shiny Raichu", "Mew", "Shiny Mew", "Mewtwo", "Shiny Mewtwo", "Togetic", "Lapras", "Aerodactyl", "Scizor", "Mantine", "Blissey", "Chasey", "Blastoise", "Shiny Blastoise", "Arcanine", "Shiny Arcanine", "Lugia", "Magmar", "Ursaring", "Electabuzz", "Shiny Electabuzz"}},
["Fire Blast"] = {number = 36, level = 1, cd = 20, dist = 2, target = 0, f = 125, t = "fire", pokes = {"Venusaur", "Butterfree", "Arbok", "Golbat", "Vileplume", "Parasect", "Venomoth", "Victreebel", "Tentacruel", "Gengar", "Tangela", "Kabutosp", "Meganium", "Ariados", "Crobat", "Bellosom", "Miltank", "Scyther", "Shiny Scyther", "Alakazam", "Shiny Alakazam", "Jynx", "Shiny Jynx", "Shiny Dragonite", "Dragonite", "Dratini", "Shiny Dratini", "Gyarados", "Shiny Gyarados", "Pikachu", "Raichu", "Shiny Raichu", "Mew", "Shiny Mew", "Mewtwo", "Shiny Mewtwo", "Togetic", "Lapras", "Aerodactyl", "Scizor", "Mantine", "Blissey", "Chasey", "Blastoise", "Shiny Blastoise", "Arcanine", "Shiny Arcanine", "Lugia", "Magmar", "Ursaring", "Electabuzz", "Shiny Electabuzz"}},
["Rock Throw"] = {number = 37, level = 1, cd = 20, dist = 2, target = 1, f = 55, t = "rock", pokes = {"Venusaur", "Butterfree", "Arbok", "Golbat", "Vileplume", "Parasect", "Venomoth", "Victreebel", "Tentacruel", "Gengar", "Tangela", "Kabutosp", "Meganium", "Ariados", "Crobat", "Bellosom", "Miltank", "Scyther", "Shiny Scyther", "Alakazam", "Shiny Alakazam", "Jynx", "Shiny Jynx", "Shiny Dragonite", "Dragonite", "Dratini", "Shiny Dratini", "Gyarados", "Shiny Gyarados", "Pikachu", "Raichu", "Shiny Raichu", "Mew", "Shiny Mew", "Mewtwo", "Shiny Mewtwo", "Togetic", "Lapras", "Aerodactyl", "Scizor", "Mantine", "Blissey", "Chasey", "Blastoise", "Shiny Blastoise", "Arcanine", "Shiny Arcanine", "Lugia", "Magmar", "Ursaring", "Electabuzz", "Shiny Electabuzz"}},
["War Dog"] = {number = 38, level = 1, cd = 20, dist = 2, target = 1, f = 0, t = "normal", pokes = {"Venusaur", "Butterfree", "Arbok", "Golbat", "Vileplume", "Parasect", "Venomoth", "Victreebel", "Tentacruel", "Gengar", "Tangela", "Kabutosp", "Meganium", "Ariados", "Crobat", "Bellosom", "Miltank", "Scyther", "Shiny Scyther", "Alakazam", "Shiny Alakazam", "Jynx", "Shiny Jynx", "Shiny Dragonite", "Dragonite", "Dratini", "Shiny Dratini", "Gyarados", "Shiny Gyarados", "Pikachu", "Raichu", "Shiny Raichu", "Mew", "Shiny Mew", "Mewtwo", "Shiny Mewtwo", "Togetic", "Lapras", "Aerodactyl", "Scizor", "Mantine", "Blissey", "Chasey", "Blastoise", "Shiny Blastoise", "Arcanine", "Shiny Arcanine", "Lugia", "Magmar", "Ursaring", "Electabuzz", "Shiny Electabuzz"}},
["Icy Wind"] = {number = 39, level = 1, cd = 20, dist = 2, target = 1, f = 45, t = "ice", pokes = {"Venusaur", "Butterfree", "Arbok", "Golbat", "Vileplume", "Parasect", "Venomoth", "Victreebel", "Tentacruel", "Gengar", "Tangela", "Kabutosp", "Meganium", "Ariados", "Crobat", "Bellosom", "Miltank", "Scyther", "Shiny Scyther", "Alakazam", "Shiny Alakazam", "Jynx", "Shiny Jynx", "Shiny Dragonite", "Dragonite", "Dratini", "Shiny Dratini", "Gyarados", "Shiny Gyarados", "Pikachu", "Raichu", "Shiny Raichu", "Mew", "Shiny Mew", "Mewtwo", "Shiny Mewtwo", "Togetic", "Lapras", "Aerodactyl", "Scizor", "Mantine", "Blissey", "Chasey", "Blastoise", "Shiny Blastoise", "Arcanine", "Shiny Arcanine", "Lugia", "Magmar", "Ursaring", "Electabuzz", "Shiny Electabuzz"}},
["Hydropump"] = {number = 40, level = 1, cd = 20, dist = 2, target = 0, f = 125, t = "water", pokes = {"Venusaur", "Butterfree", "Arbok", "Golbat", "Vileplume", "Parasect", "Venomoth", "Victreebel", "Tentacruel", "Gengar", "Tangela", "Kabutosp", "Meganium", "Ariados", "Crobat", "Bellosom", "Miltank", "Scyther", "Shiny Scyther", "Alakazam", "Shiny Alakazam", "Jynx", "Shiny Jynx", "Shiny Dragonite", "Dragonite", "Dratini", "Shiny Dratini", "Gyarados", "Shiny Gyarados", "Pikachu", "Raichu", "Shiny Raichu", "Mew", "Shiny Mew", "Mewtwo", "Shiny Mewtwo", "Togetic", "Lapras", "Aerodactyl", "Scizor", "Mantine", "Blissey", "Chasey", "Blastoise", "Shiny Blastoise", "Arcanine", "Shiny Arcanine", "Lugia", "Magmar", "Ursaring", "Electabuzz", "Shiny Electabuzz"}},
["Confusion"] = {number = 41, level = 1, cd = 20, dist = 2, target = 0, f = 50, t = "psychic", pokes = {"Venusaur", "Butterfree", "Arbok", "Golbat", "Vileplume", "Parasect", "Venomoth", "Victreebel", "Tentacruel", "Gengar", "Tangela", "Kabutosp", "Meganium", "Ariados", "Crobat", "Bellosom", "Miltank", "Scyther", "Shiny Scyther", "Alakazam", "Shiny Alakazam", "Jynx", "Shiny Jynx", "Shiny Dragonite", "Dragonite", "Dratini", "Shiny Dratini", "Gyarados", "Shiny Gyarados", "Pikachu", "Raichu", "Shiny Raichu", "Mew", "Shiny Mew", "Mewtwo", "Shiny Mewtwo", "Togetic", "Lapras", "Aerodactyl", "Scizor", "Mantine", "Blissey", "Chasey", "Blastoise", "Shiny Blastoise", "Arcanine", "Shiny Arcanine", "Lugia", "Magmar", "Ursaring", "Electabuzz", "Shiny Electabuzz"}},
["Stomp"] = {number = 42, level = 1, cd = 20, dist = 2, target = 1, f = 90, t = "ground", pokes = {"Venusaur", "Butterfree", "Arbok", "Golbat", "Vileplume", "Parasect", "Venomoth", "Victreebel", "Tentacruel", "Gengar", "Tangela", "Kabutosp", "Meganium", "Ariados", "Crobat", "Bellosom", "Miltank", "Scyther", "Shiny Scyther", "Alakazam", "Shiny Alakazam", "Jynx", "Shiny Jynx", "Shiny Dragonite", "Dragonite", "Dratini", "Shiny Dratini", "Gyarados", "Shiny Gyarados", "Pikachu", "Raichu", "Shiny Raichu", "Mew", "Shiny Mew", "Mewtwo", "Shiny Mewtwo", "Togetic", "Lapras", "Aerodactyl", "Scizor", "Mantine", "Blissey", "Chasey", "Blastoise", "Shiny Blastoise", "Arcanine", "Shiny Arcanine", "Lugia", "Magmar", "Ursaring", "Electabuzz", "Shiny Electabuzz"}},
["Selfheal"] = {number = 43, level = 1, cd = 20, dist = 2, target = 0, f = 0, t = "normal", pokes = {"Venusaur", "Butterfree", "Arbok", "Golbat", "Vileplume", "Parasect", "Venomoth", "Victreebel", "Tentacruel", "Gengar", "Tangela", "Kabutosp", "Meganium", "Ariados", "Crobat", "Bellosom", "Miltank", "Scyther", "Shiny Scyther", "Alakazam", "Shiny Alakazam", "Jynx", "Shiny Jynx", "Shiny Dragonite", "Dragonite", "Dratini", "Shiny Dratini", "Gyarados", "Shiny Gyarados", "Pikachu", "Raichu", "Shiny Raichu", "Mew", "Shiny Mew", "Mewtwo", "Shiny Mewtwo", "Togetic", "Lapras", "Aerodactyl", "Scizor", "Mantine", "Blissey", "Chasey", "Blastoise", "Shiny Blastoise", "Arcanine", "Shiny Arcanine", "Lugia", "Magmar", "Ursaring", "Electabuzz", "Shiny Electabuzz"}},
["Restore"] = {number = 44, level = 1, cd = 20, dist = 2, target = 0, f = 0, t = "normal", pokes = {"Venusaur", "Butterfree", "Arbok", "Golbat", "Vileplume", "Parasect", "Venomoth", "Victreebel", "Tentacruel", "Gengar", "Tangela", "Kabutosp", "Meganium", "Ariados", "Crobat", "Bellosom", "Miltank", "Scyther", "Shiny Scyther", "Alakazam", "Shiny Alakazam", "Jynx", "Shiny Jynx", "Shiny Dragonite", "Dragonite", "Dratini", "Shiny Dratini", "Gyarados", "Shiny Gyarados", "Pikachu", "Raichu", "Shiny Raichu", "Mew", "Shiny Mew", "Mewtwo", "Shiny Mewtwo", "Togetic", "Lapras", "Aerodactyl", "Scizor", "Mantine", "Blissey", "Chasey", "Blastoise", "Shiny Blastoise", "Arcanine", "Shiny Arcanine", "Lugia", "Magmar", "Ursaring", "Electabuzz", "Shiny Electabuzz"}},
["Absorb"] = {number = 45, level = 1, cd = 20, dist = 2, target = 1, f = 40, t = "grass", pokes = {"Venusaur", "Butterfree", "Arbok", "Golbat", "Vileplume", "Parasect", "Venomoth", "Victreebel", "Tentacruel", "Gengar", "Tangela", "Kabutosp", "Meganium", "Ariados", "Crobat", "Bellosom", "Miltank", "Scyther", "Shiny Scyther", "Alakazam", "Shiny Alakazam", "Jynx", "Shiny Jynx", "Shiny Dragonite", "Dragonite", "Dratini", "Shiny Dratini", "Gyarados", "Shiny Gyarados", "Pikachu", "Raichu", "Shiny Raichu", "Mew", "Shiny Mew", "Mewtwo", "Shiny Mewtwo", "Togetic", "Lapras", "Aerodactyl", "Scizor", "Mantine", "Blissey", "Chasey", "Blastoise", "Shiny Blastoise", "Arcanine", "Shiny Arcanine", "Lugia", "Magmar", "Ursaring", "Electabuzz", "Shiny Electabuzz"}},
["Metronome"] = {number = 46, level = 1, cd = 20, dist = 2, target = 0, f = 0, t = "normal", pokes = {"Venusaur", "Butterfree", "Arbok", "Golbat", "Vileplume", "Parasect", "Venomoth", "Victreebel", "Tentacruel", "Gengar", "Tangela", "Kabutosp", "Meganium", "Ariados", "Crobat", "Bellosom", "Miltank", "Scyther", "Shiny Scyther", "Alakazam", "Shiny Alakazam", "Jynx", "Shiny Jynx", "Shiny Dragonite", "Dragonite", "Dratini", "Shiny Dratini", "Gyarados", "Shiny Gyarados", "Pikachu", "Raichu", "Shiny Raichu", "Mew", "Shiny Mew", "Mewtwo", "Shiny Mewtwo", "Togetic", "Lapras", "Aerodactyl", "Scizor", "Mantine", "Blissey", "Chasey", "Blastoise", "Shiny Blastoise", "Arcanine", "Shiny Arcanine", "Lugia", "Magmar", "Ursaring", "Electabuzz", "Shiny Electabuzz"}},
["Leaf Blade"] = {number = 47, level = 1, cd = 20, dist = 2, target = 0, f = 50, t = "grass", pokes = {"Venusaur", "Butterfree", "Arbok", "Golbat", "Vileplume", "Parasect", "Venomoth", "Victreebel", "Tentacruel", "Gengar", "Tangela", "Kabutosp", "Meganium", "Ariados", "Crobat", "Bellosom", "Miltank", "Scyther", "Shiny Scyther", "Alakazam", "Shiny Alakazam", "Jynx", "Shiny Jynx", "Shiny Dragonite", "Dragonite", "Dratini", "Shiny Dratini", "Gyarados", "Shiny Gyarados", "Pikachu", "Raichu", "Shiny Raichu", "Mew", "Shiny Mew", "Mewtwo", "Shiny Mewtwo", "Togetic", "Lapras", "Aerodactyl", "Scizor", "Mantine", "Blissey", "Chasey", "Blastoise", "Shiny Blastoise", "Arcanine", "Shiny Arcanine", "Lugia", "Magmar", "Ursaring", "Electabuzz", "Shiny Electabuzz"}},
["Confuse Ray"] = {number = 48, level = 1, cd = 20, dist = 2, target = 1, f = 65, t = "ghost", pokes = {"Venusaur", "Butterfree", "Arbok", "Golbat", "Vileplume", "Parasect", "Venomoth", "Victreebel", "Tentacruel", "Gengar", "Tangela", "Kabutosp", "Meganium", "Ariados", "Crobat", "Bellosom", "Miltank", "Scyther", "Shiny Scyther", "Alakazam", "Shiny Alakazam", "Jynx", "Shiny Jynx", "Shiny Dragonite", "Dragonite", "Dratini", "Shiny Dratini", "Gyarados", "Shiny Gyarados", "Pikachu", "Raichu", "Shiny Raichu", "Mew", "Shiny Mew", "Mewtwo", "Shiny Mewtwo", "Togetic", "Lapras", "Aerodactyl", "Scizor", "Mantine", "Blissey", "Chasey", "Blastoise", "Shiny Blastoise", "Arcanine", "Shiny Arcanine", "Lugia", "Magmar", "Ursaring", "Electabuzz", "Shiny Electabuzz"}},
["Eruption"] = {number = 49, level = 1, cd = 20, dist = 2, target = 1, f = 75, t = "fire", pokes = {"Venusaur", "Butterfree", "Arbok", "Golbat", "Vileplume", "Parasect", "Venomoth", "Victreebel", "Tentacruel", "Gengar", "Tangela", "Kabutosp", "Meganium", "Ariados", "Crobat", "Bellosom", "Miltank", "Scyther", "Shiny Scyther", "Alakazam", "Shiny Alakazam", "Jynx", "Shiny Jynx", "Shiny Dragonite", "Dragonite", "Dratini", "Shiny Dratini", "Gyarados", "Shiny Gyarados", "Pikachu", "Raichu", "Shiny Raichu", "Mew", "Shiny Mew", "Mewtwo", "Shiny Mewtwo", "Togetic", "Lapras", "Aerodactyl", "Scizor", "Mantine", "Blissey", "Chasey", "Blastoise", "Shiny Blastoise", "Arcanine", "Shiny Arcanine", "Lugia", "Magmar", "Ursaring", "Electabuzz", "Shiny Electabuzz"}},
["Razor Leaf"] = {number = 50, level = 1, cd = 20, dist = 2, target = 0, f = 33, t = "grass", pokes = {"Venusaur", "Butterfree", "Arbok", "Golbat", "Vileplume", "Parasect", "Venomoth", "Victreebel", "Tentacruel", "Gengar", "Tangela", "Kabutosp", "Meganium", "Ariados", "Crobat", "Bellosom", "Miltank", "Scyther", "Shiny Scyther", "Alakazam", "Shiny Alakazam", "Jynx", "Shiny Jynx", "Shiny Dragonite", "Dragonite", "Dratini", "Shiny Dratini", "Gyarados", "Shiny Gyarados", "Pikachu", "Raichu", "Shiny Raichu", "Mew", "Shiny Mew", "Mewtwo", "Shiny Mewtwo", "Togetic", "Lapras", "Aerodactyl", "Scizor", "Mantine", "Blissey", "Chasey", "Blastoise", "Shiny Blastoise", "Arcanine", "Shiny Arcanine", "Lugia", "Magmar", "Ursaring", "Electabuzz", "Shiny Electabuzz"}},
}



function isTM(name)
if tmList[name] then
return true
end
return false
end

function haveFirstTM(item)
if not isPokeball(item.itemid) then return false end
if getItemAttribute(item.uid, "tm1") then
return true
end
return false
end
function getFirstTMName(item)
if haveFirstTM(item) then
return getItemAttribute(item.uid, "tm1")
end
return false
end

function haveSecondTM(item)
if not isPokeball(item.itemid) then return false end
if getItemAttribute(item.uid, "tm2") then
return true
end
return false
end
function getSecondTMName(item)
if haveSecondTM(item) then
return getItemAttribute(item.uid, "tm2")
end
return false
end

function haveThirdTM(item)
if not isPokeball(item.itemid) then return false end
if getItemAttribute(item.uid, "tm3") then
return true
end
return false
end
function getThirdTMName(item)
if haveThirdTM(item) then
return getItemAttribute(item.uid, "tm3")
end
return false
end

function haveAllTMs(item)
count = 0
if haveFirstTM(item) then
count = count + 1
end
if haveSecondTM(item) then
count = count + 1
end
if haveThirdTM(item) then
count = count + 3
end
if count == 3 then
return true
end
return false
end

function addTM(item, nameTM, id)
if not isPokeball(item.itemid) or not isTM(nameTM) then return false end
TM = ""
if id == 1 then
TM = "tm1"
elseif id == 2 then
TM = "tm2"
elseif id == 3 then
TM = "tm3"
end
if TM == "" then return false end
doItemSetAttribute(item.uid, TM, nameTM)
return true
end

 

 

agora vá em data/talkaction/script e abra o script move1.lua e apague tudo que contem lá dentro e cole o seguinte \/

 

local function getTXT(table, number, item)


local result = ""
if not table then return "" end
local cd = "move"..number..""
if getCD(item, cd) == 0 or getCD(item, cd) > table.cd + 1 then
result = "ready."
else
result = getCD(item, cd).." seconds."
end
local txt = "\n-"..table.name.." (m"..number.."): "..result..""
return txt
end

local function writeCD(str, item, mypoke)
local txt = str
local name = getCreatureName(mypoke) == "Ditto" and getPlayerStorageValue(mypoke, 1010) or getCreatureName(mypoke)
local move = movestable[name].move1
txt = txt..""..getTXT(move, 1, item)..""

move = movestable[name].move2
txt = txt..""..getTXT(move, 2, item)..""

move = movestable[name].move3
txt = txt..""..getTXT(move, 3, item)..""

move = movestable[name].move4
txt = txt..""..getTXT(move, 4, item)..""

move = movestable[name].move5
txt = txt..""..getTXT(move, 5, item)..""

move = movestable[name].move6
txt = txt..""..getTXT(move, 6, item)..""

move = movestable[name].move7
txt = txt..""..getTXT(move, 7, item)..""

move = movestable[name].move8
txt = txt..""..getTXT(move, 8, item)..""

move = movestable[name].move9
txt = txt..""..getTXT(move, 9, item)..""

move = movestable[name].move10
txt = txt..""..getTXT(move, 10, item)..""

move = movestable[name].move11
txt = txt..""..getTXT(move, 11, item)..""

move = movestable[name].move12
txt = txt..""..getTXT(move, 12, item)..""

move = movestable[name].move13
txt = txt..""..getTXT(move, 13, item)..""

move = movestable[name].move14
txt = txt..""..getTXT(move, 14, item)..""

move = movestable[name].move15
txt = txt..""..getTXT(move, 15, item)..""

if getItemAttribute(item.uid, "tm1") then
if getCD(item.uid, movem1) == 0 or getCD(item.uid, movem1) > tmList[getItemAttribute(item.uid, "tm1")].cd + 1 then
result = "ready."
else
result = getCD(item.uid, movem1).." seconds."
end
txt = txt.."\n-"..getItemAttribute(item.uid, "tm1").." (tm1): "..result..""
end

if getItemAttribute(item.uid, "tm2") then
if getCD(item.uid, movem2) == 0 or getCD(item.uid, movem2) > tmList[getItemAttribute(item.uid, "tm2")].cd + 1 then
result = "ready."
else
result = getCD(item.uid, movem2).." seconds."
end
txt = txt.."\n-"..getItemAttribute(item.uid, "tm2").." (tm2): "..result..""
end

if getItemAttribute(item.uid, "tm3") then
if getCD(item.uid, movem3) == 0 or getCD(item.uid, movem3) > tmList[getItemAttribute(item.uid, "tm3")].cd + 1 then
result = "ready."
else
result = getCD(item.uid, movem3).." seconds."
end
txt = txt.."\n-"..getItemAttribute(item.uid, "tm3").." (tm3): "..result..""
end
return txt
end

function onSay(cid, words, param, channel)


if param ~= "" then return true end
if string.len(words) > 3 then return true end

if #getCreatureSummons(cid) == 0 then
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "You need a pokemon to check cooldowns.")
return 0
end


local mypoke = getCreatureSummons(cid)[1]

if getCreatureName(mypoke) == "Ditto" then
if not isTransformed(mypoke) then
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Your ditto needs to transform first.")
return true
end
end

local str = getCreatureName(mypoke).." moves:"
local item = getPlayerSlotItem(cid, 8).uid

str = writeCD(str, item, mypoke)

doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, str)
return true

end

 

 

agora em data/talkaction/talkaction.xml adicione o seguinte \/

<talkaction words="tm1" case-sensitive="no" event="script" value="move1.lua"/>
                <talkaction words="tm2" case-sensitive="no" event="script" value="move1.lua"/>
                <talkaction words="tm3" case-sensitive="no" event="script" value="move1.lua"/>

 

Fim do Tutorial <3 Bjão do Txu , espero que gostem vlw flw 

Meu Ultimo projeto em desenvolvimento!

 

http://www.tibiaking.com/forum/topic/47753-show-off-ultimo-projeto-para-download/

 

 

Grupo do facebook para OtServidores! (Divulgação + Criação de Equipe)

 

https://www.facebook.com/groups/otservidores/

 

  • Respostas 7
  • Visualizações 1.3k
  • Created
  • Última resposta

Top Posters In This Topic

Postado

Não sei se entende bem mais com essa scripting adicionaria um novo ataque no pokémon com o cd que no caso seria esses?

http://prntscr.com/45wwat 

 

["Waterball"] = {number = 01, level = 1, cd = 20, dist = 5, target = 1, f = 65, t = "water", pokes = {"Wartortle", "Blastoise", 

Em vermelho id do cd?certo?  :facepalm: 

Postado
  • Autor

Sim então , esse sistema adiciona mais 3 moves ao seu pokemon , agora tendo até o m15 mas ao invés de usar o m13 etc.. você terá que usar o tm1 , tm2 e tm3 para executar a tm adicionada ao seu pokémon. 

 

Não sei se entende bem mais com essa scripting adicionaria um novo ataque no pokémon com o cd que no caso seria esses?

http://prntscr.com/45wwat 

 

["Waterball"] = {number = 01, level = 1, cd = 20, dist = 5, target = 1, f = 65, t = "water", pokes = {"Wartortle", "Blastoise", 

Em vermelho id do cd?certo?  :facepalm: 

 

 

Não sei se entende bem mais com essa scripting adicionaria um novo ataque no pokémon com o cd que no caso seria esses?

http://prntscr.com/45wwat 

 

["Waterball"] = {number = 01, level = 1, cd = 20, dist = 5, target = 1, f = 65, t = "water", pokes = {"Wartortle", "Blastoise", 

Em vermelho id do cd?certo?  :facepalm: 

 

o CD ai seria o tempo até usar novamente o ataque .

Meu Ultimo projeto em desenvolvimento!

 

http://www.tibiaking.com/forum/topic/47753-show-off-ultimo-projeto-para-download/

 

 

Grupo do facebook para OtServidores! (Divulgação + Criação de Equipe)

 

https://www.facebook.com/groups/otservidores/

 

Postado

Sim então , esse sistema adiciona mais 3 moves ao seu pokemon , agora tendo até o m15 mas ao invés de usar o m13 etc.. você terá que usar o tm1 , tm2 e tm3 para executar a tm adicionada ao seu pokémon. 

 

 

 

 

o CD ai seria o tempo até usar novamente o ataque .

Certo vlw irei tentar aqui Reputado / Bem que poderia fazer um vídeo ou ate mesmo explicar melhor no tópico para outras pessoas que nem eu não terem mais duvidas posteriormente 

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