--Edit By Raidou
local fire1 = createCombatArea{
{1, 1, 1},
{1, 2, 1},
{1, 1, 1}
}
local pokeis = {'Abra', 'Aerodactyl', 'Alakazam', 'Arbok', 'Arcanine', 'Articuno', 'Beedrill', 'Bellsprout', --Pokemons,para usar m1
'Blastoise', 'Bulbasaur', 'Butterfree', 'Caterpie', 'Chansey', 'Charizard', 'Charmander', 'Charmeleon',
'Clefable', 'Clefairy', 'Cloyster', 'Crystal Onix', 'Cubone', 'Dewgong', 'Diglett', 'Ditto', 'Dodrio',
'Doduo', 'Dragonair', 'Dragonite', 'Dratini', 'Drowzee', 'Dugtrio', 'Eevee', 'Ekans', 'Elder Charizard',
'Electabuzz', 'Electrode', 'Exeggcute', 'Exeggutor', 'Farfetchd', 'Fearow', 'Flareon', 'Gastly', 'Gengar',
'Geodude', 'Gloom', 'Golbat', 'Goldeen', 'Golduck', 'Golem', 'Graveler', 'Grimer', 'Growlithe', 'Gyarados',
'Haunter', 'Hitmonchan', 'Hitmonlee', 'Horsea', 'Hypno', 'Ivysaur', 'Jigglypuff', 'Jolteon', 'Jynx',
'Kabuto', 'Kabutops', 'Kadabra', 'Kakuna', 'Kangaskhan', 'Kingler', 'Koffing', 'Krabby', 'Lapras',
'Lickitung', 'Machamp', 'Machoke', 'Machop', 'Magikarp', 'Magmar', 'Magnemite', 'Magneton', 'Mankey',
'Marowak', 'Meowth', 'Metapod', 'Mew', 'Mewtwo', 'Moltres', 'Mr Mime', 'Muk', 'Nidoking', 'Nidoqueen',
'Nidoran Female', 'Nidoran Male', 'Nidorina', 'Nidorino', 'Ninetales', 'Oddish', 'Omanyte', 'Omastar',
'Onix', 'Paras', 'Parasect', 'Persian', 'Pidgeot', 'Pidgeotto', 'Pidgey', 'Pikachu', 'Pinsir', 'Poliwag',
'Poliwhirl', 'Poliwrath', 'Ponyta', 'Porygon', 'Primeape', 'Psyduck', 'Raichu', 'Rapidash', 'Raticate',
'Rattata', 'Rhydon', 'Rhyhorn', 'Sandshrew', 'Sandslash', 'Scyther', 'Seadra', 'Seaking', 'Seel', 'Shellder',
'Slowbro', 'Slowpoke', 'Snorlax', 'Spearow', 'Squirtle', 'Starmie', 'Staryu', 'Tangela', 'Tauros', 'Tentacool',
'Tentacruel', 'Vaporeon', 'Venomoth', 'Venonat', 'Venusaur', 'Victreebel', 'Vileplume', 'Voltorb', 'Vulpix',
'Wartortle', 'Weedle', 'Weepinbell', 'Weezing', 'Wigglytuff', 'Zapdos', 'Zubat'}
local c = {
[30] = {x = {
pok = pidgey,
spell = "Quick Attack",
minLv = 5,
ex = 1600001,
base1 = 50,
base2 = 60,
dista = 1,
bonus = 2,
type = "normal",
cd = 10
}
},
[5] = {x = {
pok = pidgeotto,
spell = "Quick Attack",
minLv = 20,
ex = 1700001,
base1 = 100,
base2 = 101,
dista = 1,
bonus = 2.5,
type = "normal",
cd = 10
}
},
[80] = {x = {
pok = pidgeot,
spell = "Quick Attack",
minLv = 65,
ex = 1800001,
base1 = 200,
base2 = 201,
dista = 1,
bonus = 3,
type = "normal",
cd = 10
}
},
[36] = {x = {
pok = rattata,
spell = "Quick Attack",
minLv = 1,
ex = 1900001,
base1 = 20,
base2 = 21,
dista = 1,
bonus = 2,
type = "normal",
cd = 10
}
},
[69] = {x = {
pok = raticate,
spell = "Quick Attack",
minLv = 20,
ex = 2000001,
base1 = 100,
base2 = 101,
dista = 1,
bonus = 3,
type = "normal",
cd = 10
}
},
[44] = {x = {
pok = zubat,
spell = "Super Sonic",
minLv = 10,
ex = 4100001,
base1 = 0,
base2 = 0,
dista = 3,
bonus = 0,
type = "normal",
cd = 15
}
},
[122] = {x = {
pok = golbat,
spell = "Super Sonic",
minLv = 35,
ex = 4200001,
base1 = 0,
base2 = 0,
dista = 3,
bonus = 0,
type = "normal",
cd = 15
}
},
[250] = {x = {
pok = bellsprout,
spell = "Razor Leaf",
minLv = 10,
ex = 6900001,
base1 = 70,
base2 = 76,
dista = 3,
bonus = 2,
type = "grass",
cd = 10
}
},
[37] = {x = {
pok = weepinbell,
spell = "Razor Leaf",
minLv = 25,
ex = 7000001,
base1 = 120,
base2 = 150, -- 150
dista = 3, -- 3
bonus = 2.7, -- 3
type = "grass",
cd = 10
}
},
[240] = {x = {
pok = victreebel,
spell = "Razor Leaf",
minLv = 50,
ex = 7100001,
base1 = 200,
base2 = 220,
dista = 3,
bonus = 4,
type = "grass",
cd = 10
}
},
[19] = {x = {
pok = magikarp,
spell = "Splash",
minLv = 5,
ex = 1290001,
base1 = 40,
base2 = 50,
dista = 1,
bonus = 3,
type = "water",
target = "no",
cd = 10
}
},
[111] = {x = {
pok = poliwag,
spell = "Doubleslap",
minLv = 5,
ex = 6000001,
base1 = 50,
base2 = 70,
dista = 1,
bonus = 1.2,
type = "normal",
cd = 5
}
},
[212] = {x = {
pok = poliwhirl,
spell = "Mud Shot",
minLv = 25,
ex = 6100001,
base1 = 140,
base2 = 160,
dista = 1,
bonus = 2.2,
type = "earth",
cd = 10
}
},
[104] = {x = {
pok = poliwrath,
spell = "Mud Shot",
minLv = 65,
ex = 6200001,
base1 = 200,
base2 = 210,
dista = 1,
bonus = 5.4,
type = "earth",
cd = 10
}
},
[262] = {x = {
pok = abra,
spell = "Restore",
minLv = 20,
ex = 6300001,
base1 = 700,
base2 = 800,
dista = 5,
bonus = 5,
type = "psychic",
target = "no",
cd = 80
}
},
[335] = {x = {
pok = 'Shiny Abra',
spell = "Restore",
minLv = 800,
ex = 1540001,
base1 = 1100,
base2 = 1400,
dista = 5,
bonus = 7,
type = "psychic",
target = "no",
cd = 80
}
},
[56] = {x = {
pok = oddish,
spell = "Absorb",
minLv = 7,
ex = 4300001,
base1 = 25,
base2 = 30,
dista = 2,
bonus = 2,
type = "grass",
cd = 15
}
},
[74] = {x = {
pok = gloom,
spell = "Absorb",
minLv = 25,
ex = 4400001,
base1 = 70,
base2 = 80,
dista = 1,
bonus = 3.5,
type = "grass",
cd = 15
}
},
[86] = {x = {
pok = vileplume,
spell = "Absorb",
minLv = 50,
ex = 4500001,
base1 = 150,
base2 = 200,
dista = 1,
bonus = 5,
type = "grass",
cd = 15
}
},
[33] = {x = {
pok = horsea,
spell = "Mud Shot",
minLv = 10,
ex = 1160001,
base1 = 20,
base2 = 21,
dista = 3,
bonus = 2.4,
type = "earth",
cd = 10
}
},
[276] = {x = {
pok = seadra,
spell = "Mud Shot",
minLv = 45,
ex = 1170001,
base1 = 100,
base2 = 105,
dista = 3,
bonus = 3.4,
type = "earth",
cd = 10
}
},
[214] = {x = {
pok = grimer,
spell = "Mud Shot",
minLv = 15,
ex = 8800001,
base1 = 35,
base2 = 40,
dista = 3,
bonus = 2.9,
type = "earth",
cd = 10
}
},
[47] = {x = {
pok = Muk,
spell = "Mud Shot",
minLv = 35,
ex = 8900001,
base1 = 101,
base2 = 105,
dista = 5,
bonus = 5,
type = "earth",
cd = 10
}
},
[21] = {x = {
pok = weedle,
spell = "Horn Attack",
minLv = 1,
ex = 1300001,
base1 = 30,
base2 = 35,
dista = 1,
bonus = 2.4,
type = "normal",
cd = 10
}
},
[60] = {x = {
nome = Kakuna,
spell = "String Shot",
minLv = 15,
ex = 1400001,
base1 = 50,
base2 = 60,
dista = 3,
bonus = 2,
type = "bug",
cd = 5
}
},
[45] = {x = {
pok = beedrill,
spell = "String Shot",
minLv = 25,
ex = 1500001,
base1 = 70,
base2 = 90,
dista = 3,
bonus = 3,
type = "bug",
cd = 5
}
},
[327] = {x = {
pok = 'Shiny Beedrill',
spell = "String Shot",
minLv = 50,
ex = 1570001,
base1 = 90,
base2 = 150,
dista = 3,
bonus = 3,
type = "bug",
cd = 5
}
},
[26] = {x = {
pok = doduo,
spell = "Sand Attack",
minLv = 15,
ex = 8400001,
base1 = 0,
base2 = 0,
dista = 1,
bonus = 0,
type = "earth",
target="no",
cd = 10
}
},
[120] = {x = {
pok = dodrio,
spell = "Sand Attack",
minLv = 45,
ex = 8500001,
base1 = 0,
base2 = 0,
dista = 1,
bonus = 0,
type = "earth",
target="no",
cd = 10
}
},
[217] = {x = {
pok = magnemite,
spell = "Super Sonic",
minLv = 15,
ex = 8100001,
base1 = 0,
base2 = 0,
dista = 3,
bonus = 0,
type = "normal",
cd = 15
}
},
[223] = {x = {
pok = magneton,
spell = "Super Sonic",
minLv = 40,
ex = 8200001,
base1 = 0,
base2 = 0,
dista = 3,
bonus = 0,
type = "normal",
cd = 15
}
},
[123] = {x = {
pok = voltorb,
spell = "Thunder Shock",
minLv = 10,
ex = 1000001,
base1 = 85,
base2 = 95,
dista = 3,
bonus = 2.2,
type = "eletric",
cd = 10
}
},
[287] = {x = {
pok = voltorbroll,
spell = "Thunder Shock",
minLv = 10,
ex = 1000001,
base1 = 85,
base2 = 95,
dista = 3,
bonus = 2.2,
type = "eletric",
cd = 10
}
},
[125] = {x = {
pok = electrode,
spell = "Thunder Shock",
minLv = 35,
ex = 1010001,
base1 = 185,
base2 = 195,
dista = 3,
bonus = 4,
type = "eletric",
cd = 10
}
},
[286] = {x = {
pok = electroderoll,
spell = "Thunder Shock",
minLv = 35,
ex = 1010001,
base1 = 185,
base2 = 195,
dista = 1,
bonus = 4,
type = "eletric",
cd = 10
}
},
[196] = {x = {
pok = geodude,
spell = "Rock Throw",
minLv = 15,
ex = 7400001,
base1 = 35,
base2 = 40,
dista = 3,
bonus = 2.6,
type = "rock",
cd = 10
}
},
[247] = {x = {
pok = graveler,
spell = "Rock Throw",
minLv = 40,
ex = 7500001,
base1 = 150,
base2 = 160,
dista = 3,
bonus = 3.9,
type = "rock",
cd = 10
}
},
[116] = {x = {
pok = golem,
spell = "Rock Throw",
minLv = 70,
ex = 7600001,
base1 = 250,
base2 = 300,
dista = 3,
bonus = 5,
type = "rock",
cd = 10
}
},
[288] = {x = {
pok = golemroll,
spell = "Rock Throw",
minLv = 70,
ex = 7600001,
base1 = 250,
base2 = 300,
dista = 3,
bonus = 2.5,
type = "rock",
cd = 10
}
},
[43] = {x = {
pok = sandshrew,
spell = "Sand Attack",
minLv = 20,
ex = 2700001,
base1 = 0,
base2 = 0,
dista = 1,
bonus = 0,
type = "earth",
target="no",
cd = 6
}
},
[284] = {x = {
pok = sandshrew,
spell = "Sand Attack",
minLv = 20,
ex = 2700001,
base1 = 0,
base2 = 0,
dista = 1,
bonus = 0,
type = "earth",
target="no",
cd = 12
}
},
[115] = {x = {
pok = sandslash,
spell = "Sand Attack",
minLv = 55,
ex = 2800001,
base1 = 0,
base2 = 0,
dista = 1,
bonus = 0,
type = "normal",
target="no",
cd = 16
}
},
[285] = {x = {
pok = sandslash,
spell = "Sand Attack",
minLv = 55,
ex = 2800001,
base1 = 0,
base2 = 0,
dista = 1,
bonus = 0,
type = "normal",
target="no",
cd = 16
}
},
[25] = {x = {
pok = bulbasaur,
spell = "Quick Attack",
minLv = 20,
ex = 1000001,
base1 = 70,
base2 = 100,
dista = 1,
bonus = 2.8,
type = "normal",
cd = 5
}
},
[24] = {x = {
pok = ivysaur,
spell = "Quick Attack",
minLv = 40,
ex = 2000001,
base1 = 150,
base2 = 160,
dista = 1,
bonus = 3.5,
type = "normal",
cd = 10
}
},
[22] = {x = {
pok = venusaur,
spell = "Quick Attack",
minLv = 85,
ex = 3000001,
base1 = 250,
base2 = 260,
dista = 1,
bonus = 5,
type = "normal",
cd = 10
}
},
[29] = {x = {
pok = charmander,
spell = "Scratch",
minLv = 20,
ex = 4000001,
base1 = 80,
base2 = 90,
dista = 1,
bonus = 2.8,
type = "normal",
cd = 10
}
},
[23] = {x = {
pok = charmeleon,
spell = "Scratch",
minLv = 40,
ex = 5000001,
base1 = 150,
base2 = 160,
dista = 1,
bonus = 3.5,
type = "normal",
cd = 10
}
},
[67] = {x = {
pok = charizard,
spell = "Dragon Claw",
minLv = 85,
ex = 6000001,
base1 = 250,
base2 = 270,
dista = 1,
bonus = 5,
type = "normal",
cd = 20
}
},
[294] = {x = {
pok = 'Elder Charizard',
spell = "Dragon Claw",
minLv = 100,
ex = 1530001,
base1 = 450,
base2 = 470,
dista = 1,
bonus = 7,
type = "normal",
cd = 20
}
},
[2] = {x = {
pok = squirtle,
spell = "Headbutt",
minLv = 20,
ex = 7000001,
base1 = 70,
base2 = 80,
dista = 1,
bonus = 2.8,
type = "normal",
cd = 15
}
},
[6] = {x = {
pok = wartortle,
spell = "Headbutt",
minLv = 40,
ex = 8000001,
base1 = 120,
base2 = 150,
dista = 1,
bonus = 3.5,
type = "normal",
cd = 15
}
},
[55] = {x = {
pok = blastoise,
spell = "Headbutt",
minLv = 85,
ex = 9000001,
base1 = 290,
base2 = 310,
dista = 1,
bonus = 5,
type = "normal",
cd = 15
}
},
[339] = {x = {
pok = 'Shiny Blastoise',
spell = "Headbutt",
minLv = 100,
ex = 1580001,
base1 = 590,
base2 = 610,
dista = 1,
bonus = 6,
type = "normal",
cd = 15
}
},
[32] = {x = {
pok = caterpie,
spell = "Headbutt",
minLv = 1,
ex = 100001,
base1 = 15,
base2 = 20,
dista = 1,
bonus = 1.8,
type = "normal",
cd = 15
}
},
[31] = {x = {
pok = metapod,
spell = "String Shot",
minLv = 15,
ex = 1100001,
base1 = 0,
base2 = 0,
dista = 3,
bonus = 0,
type = "bug",
cd = 5
}
},
[40] = {x = {
pok = butterfree,
spell = "String Shot",
minLv = 30,
ex = 1200001,
base1 = 10,
base2 = 30,
dista = 3,
bonus = 1,
type = "bug",
cd = 5
}
},
[329] = {x = {
pok = 'Shiny Butterfree',
spell = "String Shot",
minLv = 50,
ex = 1590001,
base1 = 20,
base2 = 30,
dista = 3,
bonus = 1,
type = "bug",
cd = 5
}
},
[27] = {x = {
pok = spearow,
spell = "Quick Attack",
minLv = 10,
ex = 2100001,
base1 = 50,
base2 = 60,
dista = 1,
bonus = 2,
type = "normal",
cd = 10
}
},
[17] = {x = {
pok = fearow,
spell = "Quick Attack",
minLv = 50,
ex = 2200001,
base1 = 100,
base2 = 110,
dista = 1,
bonus = 5,
type = "normal",
cd = 10
}
},
[7] = {x = {
pok = ekans,
spell = "Bite", --aqui
minLv = 15,
ex = 2300001,
base1 = 70,
base2 = 80,
dista = 1,
bonus = 2,
type = "normal",
cd = 10
}
},
[39] = {x = {
pok = arbok,
spell = "Bite",
minLv = 35,
ex = 2400001,
base1 = 185,
base2 = 195,
dista = 1,
bonus = 3,
type = "normal",
cd = 10
}
},
[59] = {x = {
pok = pikachu,
spell = "Quick Attack",
minLv = 20,
ex = 2500001,
base1 = 100,
base2 = 110,
dista = 1,
bonus = 3,
type = "normal",
cd = 10
}
},
[50] = {x = {
pok = raichu,
spell = "Mega Kick",
minLv = 50,
ex = 2600001,
base1 = 185,
base2 = 195,
dista = 1,
bonus = 3,
type = "fighting",
cd = 20
}
},
[70] = {x = {
pok = nidoranfemale,
spell = "Quick Attack",
minLv = 10,
ex = 2900001,
base1 = 50,
base2 = 60,
dista = 1,
bonus = 5,
type = "normal",
cd = 10
}
},
[71] = {x = {
pok = nidorina,
spell = "Quick Attack",
minLv = 30,
ex = 3000001,
base1 = 100,
base2 = 110,
dista = 1,
bonus = 3,
type = "normal",
cd = 10
}
},
[79] = {x = {
pok = nidoqueen,
spell = "Quick Attack",
minLv = 65,
ex = 3100001,
base1 = 185,
base2 = 195,
dista = 1,
bonus = 5,
type = "normal",
cd = 10
}
},
[66] = {x = {
pok = nidoranmale,
spell = "Quick Attack",
minLv = 10,
ex = 3200001,
base1 = 50,
base2 = 60,
dista = 1,
bonus = 5,
type = "normal",
cd = 10
}
},
[78] = {x = {
pok = nidorino,
spell = "Quick Attack",
minLv = 30,
ex = 3300001,
base1 = 100,
base2 = 100,
dista = 1,
bonus = 5,
type = "normal",
cd = 10
}
},
[35] = {x = {
pok = nidoking,
spell = "Quick Attack",
minLv = 65,
ex = 3400001,
base1 = 185,
base2 = 195,
dista = 1,
bonus = 5,
type = "normal",
cd = 10
}
},
[73] = {x = {
pok = clefairy,
spell = "Doubleslap",
minLv = 20,
ex = 3500001,
base1 = 100,
base2 = 110,
dista = 1,
bonus = 2,
type = "normal",
cd = 5
}
},
[68] = {x = {
pok = clefable,
spell = "Doubleslap",
minLv = 45,
ex = 3600001,
base1 = 150,
base2 = 160,
dista = 1,
bonus = 5,
type = "normal",
cd = 5
}
},
[62] = {x = {
pok = vulpix,
spell = "Quick Attack",
minLv = 15,
ex = 3700001,
base1 = 60,
base2 = 70,
dista = 1,
bonus = 2,
type = "normal",
cd = 10
}
},
[114] = {x = {
pok = ninetales,
spell = "Quick Attack",
minLv = 70,
ex = 3800001,
base1 = 185,
base2 = 195,
dista = 1,
bonus = 5,
type = "normal",
cd = 10
}
},
[63] = {x = {
pok = jigglypuff,
spell = "Doubleslap",
minLv = 20,
ex = 3900001,
base1 = 70,
base2 = 80,
dista = 1,
bonus = 3,
type = "normal",
cd = 5
}
},
[64] = {x = {
pok = wigglytuff,
spell = "Doubleslap",
minLv = 45,
ex = 4000001,
base1 = 100,
base2 = 120,
dista = 1,
bonus = 3,
type = "normal",
cd = 5
}
},
[81] = {x = {
pok = paras,
spell = "Scratch",
minLv = 5,
ex = 4600001,
base1 = 50,
base2 = 60,
dista = 1,
bonus = 2,
type = "normal",
cd = 10
}
},
[95] = {x = {
pok = parasect,
spell = "Absorb",
minLv = 50,
ex = 4700001,
base1 = 185,
base2 = 195,
dista = 3,
bonus = 5,
type = "grass",
cd = 15
}
},
[52] = {x = {
pok = venonat,
spell = "Absorb",
minLv = 20,
ex = 4800001,
base1 = 100,
base2 = 110,
dista = 3,
bonus = 3,
type = "grass",
cd = 15
}
},
[49] = {x = {
pok = Venomoth,
spell = "Absorb",
minLv = 50,
ex = 4900001,
base1 = 185,
base2 = 195,
dista = 3,
bonus = 3,
type = "grass",
cd = 15
}
},
[82] = {x = {
pok = Diglett,
spell = "Sand Attack",
minLv = 10,
ex = 5000001,
base1 = 185,
base2 = 195,
dista = 1,
bonus = 5,
type = "earth",
target="no",
cd = 10
}
},
[83] = {x = {
pok = Dugtrio,
spell = "Sand Attack",
minLv = 35,
ex = 5100001,
base1 = 185,
base2 = 195,
dista = 1,
bonus = 5,
type = "earth",
target="no",
cd = 10
}
},
[105] = {x = {
pok = Meowth,
spell = "Slash",
minLv = 15,
ex = 5200001,
base1 = 70,
base2 = 80,
dista = 1,
bonus = 2,
type = "normal",
cd = 10
}
},
[3] = {x = {
pok = Persian,
spell = "Slash",
minLv = 30,
ex = 5300001,
base1 = 150,
base2 = 160,
dista = 1,
bonus = 5,
type = "normal",
cd = 10
}
},
[100] = {x = {
pok = Psyduck,
spell = "Water Gun",
minLv = 20,
ex = 5400001,
base1 = 110,
base2 = 130,
dista = 5,
bonus = 2,
type = "water",
target = "no",
cd = 15
}
},
[99] = {x = {
pok = Golduck,
spell = "Doubleslap",
minLv = 55,
ex = 5500001,
base1 = 105,
base2 = 115,
dista = 1,
bonus = 5,
type = "normal",
cd = 5
}
},
[106] = {x = {
pok = Mankey,
spell = "Scratch",
minLv = 15,
ex = 5600001,
base1 = 60,
base2 = 80,
dista = 1,
bonus = 3,
type = "normal",
cd = 10
}
},
[103] = {x = {
pok = Primeape,
spell = "Scratch",
minLv = 50,
ex = 5700001,
base1 = 105,
base2 = 135,
dista = 1,
bonus = 5,
type = "normal",
cd = 10
}
},
[109] = {x = {
pok = Growlithe,
spell = "Bite",
minLv = 25,
ex = 5800001,
base1 = 50,
base2 = 60,
dista = 1,
bonus = 2,
type = "normal",
cd = 10
}
},
[88] = {x = {
pok = Arcanine,
spell = "Roar",
minLv = 80,
ex = 5900001,
base1 = 185,
base2 = 195,
dista = 1,
bonus = 5,
type = "normal",
cd = 10
}
},
[337] = {x = {
pok = 'Shiny Arcanine',
spell = "Bite",
minLv = 100,
ex = 1550001,
base1 = 485,
base2 = 495,
dista = 1,
bonus = 5,
type = "normal",
cd = 10
}
},
[219] = {x = {
pok = Kadabra,
spell = "Psybeam",
minLv = 45,
ex = 6400001,
base1 = 185,
base2 = 195,
dista = 5,
bonus = 5,
type = "psychic",
target = "no",
cd = 15
}
},
[218] = {x = {
pok = Alakazam,
spell = "Psybeam",
minLv = 80,
ex = 6500001,
base1 = 250,
base2 = 270,
dista = 5,
bonus = 5,
type = "psychic",
target = "no",
cd = 15
}
},
[305] = {x = {
pok = 'Shiny Alakazam',
spell = "Psybeam",
minLv = 100,
ex = 1560001,
base1 = 250,
base2 = 270,
dista = 5,
bonus = 10,
type = "psychic",
target = "no",
cd = 15
}
},
[118] = {x = {
pok = Machop,
spell = "Triple Punch",
minLv = 20,
ex = 6600001,
base1 = 50,
base2 = 60,
dista = 1,
bonus = 3,
type = "fighting",
cd = 15
}
},
[113] = {x = {
pok = Machoke,
spell = "Triple Punch",
minLv = 45,
ex = 6700001,
base1 = 100,
base2 = 110,
dista = 1,
bonus = 4,
type = "fighting",
cd = 15
}
},
[121] = {x = {
pok = Machamp,
spell = "Triple Punch",
minLv = 70,
ex = 6800001,
base1 = 185,
base2 = 195,
dista = 1,
bonus = 5,
type = "fighting",
cd = 15
}
},
[96] = {x = {
pok = Tentacool,
spell = "Acid",
minLv = 15,
ex = 7200001,
base1 = 50,
base2 = 60,
dista = 3,
bonus = 3,
type = "poison",
cd = 20
}
},
[108] = {x = {
pok = Tentacruel,
spell = "Super Sonic",
minLv = 75,
ex = 7300001,
base1 = 0,
base2 = 0,
dista = 1,
bonus = 0,
type = "normal",
cd = 15
}
},
[16] = {x = {
pok = Ponyta,
spell = "Quick Attack",
minLv = 20,
ex = 7700001,
base1 = 50,
base2 = 60,
dista = 1,
bonus = 2,
type = "normal",
cd = 10
}
},
[220] = {x = {
pok = Rapidash,
spell = "Quick Attack",
minLv = 55,
ex = 7800001,
base1 = 105,
base2 = 115,
dista = 1,
bonus = 4,
type = "normal",
cd = 10
}
},
[75] = {x = {
pok = Slowpoke,
spell = "Aqua Tail",
minLv = 15,
ex = 7900001,
base1 = 100,
base2 = 115,
dista = 1,
bonus = 3,
type = "water",
cd = 15
}
},
[41] = {x = {
pok = Slowbro,
spell = "Aqua Tail",
minLv = 45,
ex = 8000001,
base1 = 185,
base2 = 195,
dista = 1,
bonus = 3,
type = "water",
cd = 15
}
},
[57] = {x = {
pok = Farfetchd,
spell = "Sand Attack",
minLv = 40,
ex = 8300001,
base1 = 0,
base2 = 0,
dista = 1,
bonus = 0,
type = "earth",
target="no",
cd = 10
}
},
[101] = {x = {
pok = Seel,
spell = "Headbutt",
minLv = 20,
ex = 8600001,
base1 = 100,
base2 = 105,
dista = 1,
bonus = 2,
type = "normal",
cd = 15
}
},
[110] = {x = {
pok = Dewgong,
spell = "Aqua Tail",
minLv = 65,
ex = 8700001,
base1 = 185,
base2 = 195,
dista = 1,
bonus = 3,
type = "water",
cd = 15
}
},
[54] = {x = {
pok = Shellder,
spell = "Lick",
minLv = 10,
ex = 9000001,
base1 = 0,
base2 = 0,
dista = 1,
bonus = 5,
type = "normal",
cd = 10
}
},
[72] = {x = {
pok = Cloyster,
spell = "Lick",
minLv = 60,
ex = 9100001,
base1 = 0,
base2 = 0,
dista = 1,
bonus = 5,
type = "normal",
cd = 10
}
},
[48] = {x = {
pok = Gastly,
spell = "Lick",
minLv = 10,
ex = 9200001,
base1 = 0,
base2 = 0,
dista = 1,
bonus = 0,
type = "normal",
cd = 10
}
},
[65] = {x = {
pok = Haunter,
spell = "Lick",
minLv = 45,
ex = 9300001,
base1 = 0,
base2 = 0,
dista = 1,
bonus = 0,
type = "normal",
cd = 10
}
},
[244] = {x = {
pok = Gengar,
spell = "Lick",
minLv = 80,
ex = 9400001,
base1 = 0,
base2 = 0,
dista = 1,
bonus = 0,
type = "normal",
cd = 10
}
},
[248] = {x = {
pok = Onix,
spell = "Sand Attack",
minLv = 50,
ex = 9500001,
base1 = 0,
base2 = 0,
dista = 6,
bonus = 5,
type = "earth",
target="no",
cd = 10
}
},
[292] = {x = {
pok = 'Crystal Onix',
spell = "Sand Attack",
minLv = 100,
ex = 15200001,
base1 = 0,
base2 = 0,
dista = 6,
bonus = 5,
type = "earth",
target="no",
cd = 10
}
},
[94] = {x = {
pok = Drowzee,
spell = "Headbutt",
minLv = 25,
ex = 9600001,
base1 = 100,
base2 = 105,
dista = 1,
bonus = 3,
type = "normal",
cd = 15
}
},
[119] = {x = {
pok = Hypno,
spell = "Headbutt",
minLv = 55,
ex = 9700001,
base1 = 185,
base2 = 195,
dista = 1,
bonus = 3,
type = "normal",
cd = 15
}
},
[112] = {x = {
pok = Krabby,
spell = "Bubbles",
minLv = 10,
ex = 9800001,
base1 = 50,
base2 = 60,
dista = 5,
bonus = 2,
type = "water",
cd = 5
}
},
[245] = {x = {
pok = Kingler,
spell = "Bubbles",
minLv = 40,
ex = 9900001,
base1 = 100,
base2 = 105,
dista = 5,
bonus = 3,
type = "water",
cd = 10
}
},
[213] = {x = {
pok = Exeggcute,
spell = "Leech Seed",
minLv = 14,
ex = 1020001,
base1 = 50,
base2 = 60,
dista = 1,
bonus = 5,
type = "grass",
cd = 10
}
},
[46] = {x = {
pok = Exeggcutor,
spell = "Leech Seed",
minLv = 55,
ex = 1030001,
base1 = 185,
base2 = 195,
dista = 1,
bonus = 5,
type = "grass",
cd = 10
}
},
[124] = {x = {
pok = Cubone,
spell = "Headbutt",
minLv = 20,
ex = 1040001,
base1 = 100,
base2 = 105,
dista = 1,
bonus = 2,
type = "normal",
cd = 15
}
},
[209] = {x = {
pok = 'Shiny Cubone',
spell = "Headbutt",
minLv = 50,
ex = 1600001,
base1 = 350,
base2 = 400,
dista = 1,
bonus = 2,
type = "normal",
cd = 15
}
},
[197] = {x = {
pok = Marowak,
spell = "Headbutt",
minLv = 45,
ex = 1050001,
base1 = 185,
base2 = 195,
dista = 1,
bonus = 3,
type = "normal",
cd = 15
}
},
[107] = {x = {
pok = 'Shiny Marowak',
spell = "Headbutt",
minLv = 55,
ex = 1050001,
base1 = 450,
base2 = 500,
dista = 1,
bonus = 3,
type = "normal",
cd = 15
}
},
[20] = {x = {
pok = Hitmonlee,
spell = "Triple Kick",
minLv = 60,
ex = 1060001,
base1 = 400,
base2 = 420,
dista = 1,
bonus = 2,
type = "fighting",
cd = 15
}
},
[301] = {x = {
pok = Hitmonlee,
spell = "Triple Kick",
minLv = 60,
ex = 1060001,
base1 = 185,
base2 = 195,
dista = 1,
bonus = 2,
type = "fighting",
cd = 15
}
},
[38] = {x = {
pok = Hitmonchan,
spell = "Triple Punch",
minLv = 60,
ex = 1070001,
base1 = 185,
base2 = 195,
dista = 1,
bonus = 2,
type = "fighting",
cd = 15
}
},
[11] = {x = {
pok = Lickitung,
spell = "Lick",
minLv = 55,
ex = 1080001,
base1 = 0,
base2 = 0,
dista = 1,
bonus = 5,
type = "normal",
cd = 10
}
},
[228] = {x = {
pok = Koffing,
spell = "Mud Shot",
minLv = 15,
ex = 1090001,
base1 = 50,
base2 = 60,
dista = 1,
bonus = 5,
type = "earth",
cd = 10
}
},
[231] = {x = {
pok = Weezing,
spell = "Mud Shot",
minLv = 35,
ex = 1100001,
base1 = 70,
base2 = 80,
dista = 1,
bonus = 5,
type = "earth",
cd = 10
}
},
[77] = {x = {
pok = Rhyhorn,
spell = "Iron Tail",
minLv = 30,
ex = 1110001,
base1 = 80,
base2 = 90,
dista = 1,
bonus = 3,
type = "normal",
cd = 15
}
},
[200] = {x = {
pok = Rhydon,
spell = "Iron Tail",
minLv = 75,
ex = 1120001,
base1 = 185,
base2 = 195,
dista = 1,
bonus = 4,
type = "normal",
cd = 15
}
},
[4] = {x = {
pok = Chansey,
spell = "Doubleslap",
minLv = 60,
ex = 1130001,
base1 = 150,
base2 = 160,
dista = 1,
bonus = 4,
type = "normal",
cd = 5
}
},
[18] = {x = {
pok = Tangela,
spell = "Absorb",
minLv = 50,
ex = 1140001,
base1 = 185,
base2 = 195,
dista = 3,
bonus = 5,
type = "grass",
cd = 15
}
},
[198] = {x = {
pok = Kangaskhan,
spell = "Bite",
minLv = 80,
ex = 1150001,
base1 = 300,
base2 = 450,
dista = 1,
bonus = 5,
type = "normal",
cd = 10
}
},
[274] = {x = {
pok = Goldeen,
spell = "Horn Attack",
minLv = 10,
ex = 1180001,
base1 = 50,
base2 = 60,
dista = 3,
bonus = 3,
type = "normal",
cd = 15
}
},
[272] = {x = {
pok = Seaking,
spell = "Horn Attack",
minLv = 35,
ex = 1190001,
base1 = 120,
base2 = 130,
dista = 3,
bonus = 5,
type = "normal",
cd = 15
}
},
[42] = {x = {
pok = Staryu,
spell = "Swift",
minLv = 15,
ex = 1200001,
base1 = 80,
base2 = 100,
dista = 3,
bonus = 3,
type = "normal",
cd = 15
}
},
[249] = {x = {
pok = Starmie,
spell = "Swift",
minLv = 35,
ex = 1210001,
base1 = 160,
base2 = 180,
dista = 3,
bonus = 4,
type = "normal",
cd = 15
}
},
[246] = {x = {
pok = "Mr Mime",
spell = "Doubleslap",
minLv = 60,
ex = 1220001,
base1 = 185,
base2 = 195,
dista = 1,
bonus = 5,
type = "normal",
cd = 5
}
},
[15] = {x = {
pok = Scyther,
spell = "Quick Attack",
minLv = 80,
ex = 1230001,
base1 = 400,
base2 = 450,
dista = 1,
bonus = 5,
type = "normal",
cd = 10
}
},
[145] = {x = {
pok = Scyther,
spell = "Quick Attack",
minLv = 80,
ex = 1230001,
base1 = 400,
base2 = 450,
dista = 1,
bonus = 5,
type = "normal",
cd = 10
}
},
[282] = {x = {
pok = Jynx,
spell = "Lovely Kiss",
minLv = 75,
ex = 1240001,
base1 = 0,
base2 = 0,
dista = 5,
bonus = 5,
type = "normal",
cd = 5
}
},
[281] = {x = {
pok = Electabuzz,
spell = "Quick Attack",
minLv = 80,
ex = 1250001,
base1 = 400,
base2 = 450,
dista = 1,
bonus = 5,
type = "normal",
cd = 10
}
},
[341] = {x = {
pok = 'Shiny Electabuzz',
spell = "Quick Attack",
minLv = 100,
ex = 1640001,
base1 = 600,
base2 = 950,
dista = 1,
bonus = 5,
type = "normal",
cd = 10
}
},
[76] = {x = {
pok = Magmar,
spell = "Scratch",
minLv = 80,
ex = 1260001,
base1 = 400,
base2 = 450,
dista = 1,
bonus = 5,
type = "normal",
cd = 10
}
},
[53] = {x = {
pok = Pinsir,
spell = "Scratch",
minLv = 45,
ex = 1270001,
base1 = 100,
base2 = 120,
dista = 1,
bonus = 5,
type = "normal",
cd = 10
}
},
[93] = {x = {
pok = Tauros,
spell = "Headbutt",
minLv = 45,
ex = 1280001,
base1 = 100,
base2 = 120,
dista = 1,
bonus = 5,
type = "normal",
cd = 15
}
},
[117] = {x = {
pok = Gyarados,
spell = "Quick Attack",
minLv = 85,
ex = 1300001,
base1 = 185,
base2 = 195,
dista = 1,
bonus = 5,
type = "normal",
cd = 10
}
},
[193] = {x = {
pok = Lapras,
spell = "Horn Attack",
minLv = 80,
ex = 1310001,
base1 = 385,
base2 = 495,
dista = 1,
bonus = 5,
type = "normal",
cd = 20
}
},
[28] = {x = {
pok = Ditto,
spell = "",
minLv = 85,
ex = 1320001,
base1 = 185,
base2 = 195,
dista = 1,
bonus = 5,
type = "normal",
cd = 10
}
},
[102] = {x = {
pok = Eevee,
spell = "Sand Attack",
minLv = 20,
ex = 1330001,
base1 = 0,
base2 = 0,
dista = 1,
bonus = 5,
type = "earth",
target="no",
cd = 10
}
},
[215] = {x = {
pok = Vaporeon,
spell = "Quick Attack",
minLv = 55,
ex = 1340001,
base1 = 185,
base2 = 195,
dista = 1,
bonus = 5,
type = "normal",
cd = 10
}
},
[195] = {x = {
pok = Jolteon,
spell = "Quick Attack",
minLv = 55,
ex = 1350001,
base1 = 185,
base2 = 195,
dista = 1,
bonus = 5,
type = "normal",
cd = 10
}
},
[14] = {x = {
pok = Flareon,
spell = "Quick Attack",
minLv = 55,
ex = 1360001,
base1 = 185,
base2 = 195,
dista = 1,
bonus = 5,
type = "normal",
cd = 10
}
},
[97] = {x = {
pok = Porygon,
spell = "Super Sonic",
minLv = 40,
ex = 1370001,
base1 = 0,
base2 = 0,
dista = 5,
bonus = 0,
type = "normal",
cd = 15
}
},
[92] = {x = {
pok = Omanyte,
spell = "Bite",
minLv = 20,
ex = 1380001,
base1 = 100,
base2 = 120,
dista = 1,
bonus = 5,
type = "normal",
cd = 10
}
},
[192] = {x = {
pok = Omastar,
spell = "Bite",
minLv = 80,
ex = 1390001,
base1 = 220,
base2 = 240,
dista = 5,
bonus = 5,
type = "normal",
cd = 10
}
},
[98] = {x = {
pok = Kabuto,
spell = "Scratch",
minLv = 20,
ex = 1400001,
base1 = 185,
base2 = 195,
dista = 1,
bonus = 5,
type = "normal",
cd = 10
}
},
[13] = {x = {
pok = Kabutops,
spell = "Scratch",
minLv = 80,
ex = 1410001,
base1 = 300,
base2 = 400,
dista = 1,
bonus = 5,
type = "normal",
cd = 10
}
},
[10] = {x = {
pok = Aerodactyl,
spell = "Scratch",
minLv = 100,
ex = 1420001,
base1 = 600,
base2 = 700,
dista = 1,
bonus = 5,
type = "normal",
cd = 10
}
},
[51] = {x = {
pok = Snorlax,
spell = "Scratch",
minLv = 85,
ex = 1430001,
base1 = 500,
base2 = 600,
dista = 1,
bonus = 5,
type = "normal",
cd = 15
}
},
[258] = {x = {
pok = Snorlax,
spell = "",
minLv = 85,
ex = 1430001,
base1 = 500,
base2 = 600,
dista = 1,
bonus = 5,
type = "normal",
cd = 10
}
},
[283] = {x = {
pok = Articuno,
spell = "",
minLv = 120,
ex = 1440001,
base1 = 185,
base2 = 195,
dista = 1,
bonus = 5,
type = "ice",
cd = 10
}
},
[199] = {x = {
pok = Zapdos,
spell = "",
minLv = 120,
ex = 1450001,
base1 = 185,
base2 = 195,
dista = 1,
bonus = 5,
type = "eletric",
cd = 10
}
},
[265] = {x = {
pok = Moltres,
spell = "",
minLv = 120,
ex = 1460001,
base1 = 185,
base2 = 195,
dista = 1,
bonus = 5,
type = "fire",
cd = 10
}
},
[58] = {x = {
pok = Dratini,
spell = "Aqua Tail",
minLv = 20,
ex = 1470001,
base1 = 185,
base2 = 195,
dista = 1,
bonus = 2,
type = "water",
cd = 15
}
},
[350] = {x = {
pok = 'Shiny Dratini',
spell = "Aqua Tail",
minLv = 50,
ex = 1610001,
base1 = 385,
base2 = 395,
dista = 1,
bonus = 2,
type = "water",
cd = 15
}
},
[61] = {x = {
pok = Dragonair,
spell = "Headbutt",
minLv = 60,
ex = 1480001,
base1 = 350,
base2 = 450,
dista = 1,
bonus = 3,
type = "normal",
cd = 15
}
},
[296] = {x = {
pok = 'Shiny Dragonair',
spell = "Headbutt",
minLv = 90,
ex = 1620001,
base1 = 650,
base2 = 850,
dista = 1,
bonus = 4,
type = "normal",
cd = 15
}
},
[210] = {x = {
pok = Dragonite,
spell = "Headbutt",
minLv = 100,
ex = 1490001,
base1 = 600,
base2 = 700,
dista = 1,
bonus = 5,
type = "normal",
cd = 15
}
},
[211] = {x = {
pok = 'Shiny Dragonite',
spell = "Headbutt",
minLv = 150,
ex = 1630001,
base1 = 900,
base2 = 1200,
dista = 1,
bonus = 5,
type = "normal",
cd = 15
}
},
[34] = {x = {
pok = Mewtwo,
spell = "Psy Pulse",
minLv = 120,
ex = 1500001,
base1 = 2500,
base2 = 3000,
dista = 1,
bonus = 5,
type = "psychic",
cd = 15
}
},
[9] = {x = {
pok = Mew,
spell = "Psy Pulse",
minLv = 120,
ex = 1510001,
base1 = 2000,
base2 = 2500,
dista = 1,
bonus = 5,
type = "psychic",
cd = 15
}
},
}
function onSay(cid)
if #getCreatureSummons(cid) == 0 then
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "You need a pokemon to moves.")
return true
elseif getTilePzInfo(getCreaturePosition(cid)) then
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Dont use moves in Protection Zone.")
return true
end
pokemon = c[getCreatureOutfit(getCreatureSummons(cid)[1]).lookType]
if getPlayerLevel(cid) < c[getCreatureOutfit(getCreatureSummons(cid)[1]).lookType].x.minLv then
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "You don\'t have enough level to this move.")
return 0
end
if exhaustion.get(cid, pokemon.x.ex) then
seconds = math.floor(((exhaustion.get(cid, pokemon.x.ex)) + 1))
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "You have to wait "..seconds.." seconds to this move again.")
return 0
end
if getPlayerStorageValue(getCreatureSummons(cid)[1], 3) >= 1 then
doSendAnimatedText(getThingPos(getCreatureSummons(cid)[1]), "MISS", 215)
setPlayerStorageValue(getCreatureSummons(cid)[1], 3, -1)
doCreatureSay(cid, ""..getCreatureName(getCreatureSummons(cid)[1])..", "..c[getCreatureOutfit(getCreatureSummons(cid)[1]).lookType].x.spell.."!", TALKTYPE_SAY)
exhaustion.set(cid, pokemon.x.ex, pokemon.x.cd)
return true
end
if getPlayerStorageValue(getCreatureSummons(cid)[1], 5) >= 1 then
if math.random(1,100) <= 33 then
doSendAnimatedText(getThingPos(getCreatureSummons(cid)[1]), "SELF HIT", 180)
local levels = getPlayerLevel(cid)
doTargetCombatHealth(cid, getCreatureSummons(cid)[1], COMBAT_PHYSICALDAMAGE, -(math.random((levels*3),(levels*5))), -((math.random((levels*3),(levels*5))+10)), 3)
doCreatureSay(cid, ""..getCreatureName(getCreatureSummons(cid)[1])..", "..c[getCreatureOutfit(getCreatureSummons(cid)[1]).lookType].x.spell.."!", TALKTYPE_SAY)
exhaustion.set(cid, pokemon.x.ex, pokemon.x.cd)
doCreatureSay(getCreatureSummons(cid)[1], ""..string.upper(c[getCreatureOutfit(getCreatureSummons(cid)[1]).lookType].x.spell).."!", TALKTYPE_MONSTER)
return true
end
end
if pokemon.x.target ~= "no" then
if not isMonster(getCreatureTarget(cid)) then
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "You don\'t have any targets.")
return 0
end
if getDistanceBetween(getThingPos(getCreatureSummons(cid)[1]), getThingPos(getCreatureTarget(cid))) > pokemon.x.dista then
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Get closer to the target to this move.")
return 0
end
if not isSightClear(getThingPos(getCreatureSummons(cid)[1]), getThingPos(getCreatureTarget(cid)), false) then
return 0
end
end
if pokemon.x.type == "flying" then
elementa = FLYDAMAGE
elseif pokemon.x.type == "ground" then
elementa = GROUNDDAMAGE
elseif pokemon.x.type == "electric" then
elementa = ELECTRICDAMAGE
elseif pokemon.x.type == "ghost" then
elementa = GHOSTDAMAGE
elseif pokemon.x.type == "normal" then
elementa = NORMALDAMAGE
elseif pokemon.x.type == "fighting" then
elementa = FIGHTINGDAMAGE
elseif pokemon.x.type == "poison" then
elementa = POISONDAMAGE
elseif pokemon.x.type == "rock" then
elementa = ROCKDAMAGE
elseif pokemon.x.type == "bug" then
elementa = BUGDAMAGE
elseif pokemon.x.type == "fire" then
elementa = FIREDAMAGE
elseif pokemon.x.type == "water" then
elementa = WATERDAMAGE
elseif pokemon.x.type == "grass" then
elementa = GRASSDAMAGE
elseif pokemon.x.type == "psychic" then
elementa = PSYCHICDAMAGE
elseif pokemon.x.type == "ice" then
elementa = ICEDAMAGE
elseif pokemon.x.type == "dragon" then
elementa = DRAGONDAMAGE
elseif pokemon.x.type == "reflect" then
elementa = COMBAT_PHYSICALDAMAGE
end
local element = elementa
local num1 = (pokemon.x.base1)
local num2 = (pokemon.x.base2)
local num3 = (pokemon.x.bonus)
local voc = getPlayerVocation(cid)
if voc == 2 and elementa == WATERDAMAGE then
num1 = num1 * 1.2
num2 = num2 * 1.2
num3 = num3 * 1.2
elseif voc == 3 and elementa == PSYCHICDAMAGE then
num1 = num1 * 1.2
num2 = num2 * 1.2
num3 = num3 * 1.2
elseif voc == 4 and elementa == FIREDAMAGE then
num1 = num1 * 1.2
num2 = num2 * 1.2
num3 = num3 * 1.2
elseif voc == 5 and elementa == GHOSTDAMAGE then
num1 = num1 * 1.2
num2 = num2 * 1.2
num3 = num3 * 1.2
elseif voc == 6 and elementa == GRASSDAMAGE then
num1 = num1 * 1.2
num2 = num2 * 1.2
num3 = num3 * 1.2
elseif voc == 7 and elementa == DRAGONDAMAGE then
num1 = num1 * 1.2
num2 = num2 * 1.2
num3 = num3 * 1.2
elseif voc == 8 and elementa == NORMALDAMAGE then
num1 = num1 * 1.2
num2 = num2 * 1.2
num3 = num3 * 1.2
elseif voc == 9 and elementa == FIGHTINGDAMAGE then
num1 = num1 * 1.2
num2 = num2 * 1.2
num3 = num3 * 1.2
elseif voc == 10 and elementa == GROUNDDAMAGE then
num1 = num1 * 1.2
num2 = num2 * 1.2
num3 = num3 * 1.2
elseif voc == 11 and elementa == BUGDAMAGE then
num1 = num1 * 1.2
num2 = num2 * 1.2
num3 = num3 * 1.2
elseif voc == 12 and elementa == ROCKDAMAGE then
num1 = num1 * 1.2
num2 = num2 * 1.2
num3 = num3 * 1.2
elseif voc == 13 and elementa == POISONDAMAGE then
num1 = num1 * 1.2
num2 = num2 * 1.2
num3 = num3 * 1.2
elseif voc == 14 and elementa == FLYDAMAGE then
num1 = num1 * 1.2
num2 = num2 * 1.2
num3 = num3 * 1.2
elseif voc == 15 and elementa == ICEDAMAGE then
num1 = num1 * 1.2
num2 = num2 * 1.2
num3 = num3 * 1.2
elseif voc == 16 and elementa == ELECTRICDAMAGE then
num1 = num1 * 1.2
num2 = num2 * 1.2
num3 = num3 * 1.2
else
num1 = num1
num2 = num2
num3 = num3
end
if getPlayerStorageValue(getCreatureSummons(cid)[1], 254) >= 1 then
num3 = num3 * 1.8
setPlayerStorageValue(getCreatureSummons(cid)[1], 254, 0)
end
setPlayerStorageValue(getCreatureSummons(cid)[1], 1000, ((num1)+(getPlayerLevel(cid)*(num3))))
if pokemon.x.spell == "Quick Attack" then
doCreatureSay(getCreatureSummons(cid)[1], ""..string.upper(c[getCreatureOutfit(getCreatureSummons(cid)[1]).lookType].x.spell).."!", TALKTYPE_MONSTER)
doCreatureSay(cid, ""..getCreatureName(getCreatureSummons(cid)[1])..", "..c[getCreatureOutfit(getCreatureSummons(cid)[1]).lookType].x.spell.."!", TALKTYPE_SAY)
exhaustion.set(cid, pokemon.x.ex, pokemon.x.cd)
doAreaCombatHealth(getCreatureSummons(cid)[1], element, getThingPos(getCreatureTarget(cid)), 0, -((num1)+(getPlayerLevel(cid)*(num3))), -((num2)+(getPlayerLevel(cid)*(num3))), 3)
return 0
elseif pokemon.x.spell == "Super Sonic" then
doCreatureSay(getCreatureSummons(cid)[1], ""..string.upper(c[getCreatureOutfit(getCreatureSummons(cid)[1]).lookType].x.spell).."!", TALKTYPE_MONSTER)
doCreatureSay(cid, ""..getCreatureName(getCreatureSummons(cid)[1])..", "..c[getCreatureOutfit(getCreatureSummons(cid)[1]).lookType].x.spell.."!", TALKTYPE_SAY)
exhaustion.set(cid, pokemon.x.ex, pokemon.x.cd)
local t = getCreatureTarget(cid)
setPlayerStorageValue(t, 5, 1)
local function confd(params)
if isCreature(params.t) then
local spdc = getCreatureSpeed(params.t)
if getCreatureLookDir(params.t) == 0 then
confs = math.random(1,3)
elseif getCreatureLookDir(params.t) == 1 then
confurandom = math.random(1,99)
if confurandom <= 33 then
confs = 0
elseif confurandom >= 67 then
confs = 2
else
confs = 3
end
elseif getCreatureLookDir(params.t) == 2 then
confurandom = math.random(1,99)
if confurandom <= 33 then
confs = 3
elseif confurandom >= 67 then
confs = 0
else
confs = 1
end
elseif getCreatureLookDir(params.t) == 3 then
confs = math.random(0,2)
end
doPushCreature(params.t, confs, 1, 0)
doSendMagicEffect(getThingPos(params.t), 31)
end
end
local function nonc(params)
if isCreature(params.t) then
doChangeSpeed(params.t, -getCreatureSpeed(params.t))
doChangeSpeed(params.t, getCreatureBaseSpeed(params.t))
setPlayerStorageValue(params.t, 5, -1)
end
end
doSendDistanceShoot(getThingPos(getCreatureSummons(cid)[1]), getThingPos(getCreatureTarget(cid)), 32)
doChangeSpeed(t, -( getCreatureSpeed(t)/3))
doSendMagicEffect(getThingPos(t), 31)
for i = 1, math.random(6,7) do
addEvent(confd, 1000*i, {cid = cid, t = t})
end
addEvent(nonc, 7100, {cid - cid, t = t})
return 0
elseif pokemon.x.spell == "Roar" then
doCreatureSay(getCreatureSummons(cid)[1], ""..string.upper(c[getCreatureOutfit(getCreatureSummons(cid)[1]).lookType].x.spell).."!", TALKTYPE_MONSTER)
doCreatureSay(cid, ""..getCreatureName(getCreatureSummons(cid)[1])..", "..c[getCreatureOutfit(getCreatureSummons(cid)[1]).lookType].x.spell.."!", TALKTYPE_SAY)
exhaustion.set(cid, pokemon.x.ex, pokemon.x.cd)
doAreaCombatHealth(getCreatureSummons(cid)[1], element, getThingPos(getCreatureTarget(cid)), 0, -((num1)+(getPlayerLevel(cid)*(num3))), -((num2)+(getPlayerLevel(cid)*(num3))), 2)
return 0
elseif pokemon.x.spell == "Razor Leaf" then
doCreatureSay(getCreatureSummons(cid)[1], ""..string.upper(c[getCreatureOutfit(getCreatureSummons(cid)[1]).lookType].x.spell).."!", TALKTYPE_MONSTER)
doCreatureSay(cid, ""..getCreatureName(getCreatureSummons(cid)[1])..", "..c[getCreatureOutfit(getCreatureSummons(cid)[1]).lookType].x.spell.."!", TALKTYPE_SAY)
exhaustion.set(cid, pokemon.x.ex, pokemon.x.cd)
local function throw(params)
if isMonster(getCreatureTarget(params.cid)) then
doSendDistanceShoot(getThingPos(getCreatureSummons(params.cid)[1]), getThingPos(getCreatureTarget(params.cid)), 8)
else
end
end
local function damage(params)
if isMonster(getCreatureTarget(params.cid)) then
doAreaCombatHealth(getCreatureSummons(params.cid)[1], element, getThingPos(getCreatureTarget(cid)), 0, -((num1)+(getPlayerLevel(cid)*(num3))), -((num2)+(getPlayerLevel(cid)*(num3))), 79)
else
end
end
addEvent(damage, 100, {cid = cid})
addEvent(damage, 600, {cid = cid})
addEvent(throw, 0, {cid = cid})
addEvent(throw, 550, {cid = cid})
return 0
elseif pokemon.x.spell == "Splash" then
doCreatureSay(getCreatureSummons(cid)[1], ""..string.upper(c[getCreatureOutfit(getCreatureSummons(cid)[1]).lookType].x.spell).."!", TALKTYPE_MONSTER)
doCreatureSay(cid, ""..getCreatureName(getCreatureSummons(cid)[1])..", "..c[getCreatureOutfit(getCreatureSummons(cid)[1]).lookType].x.spell.."!", TALKTYPE_SAY)
exhaustion.set(cid, pokemon.x.ex, pokemon.x.cd)
doSendMagicEffect(getThingPos(getCreatureSummons(cid)[1]), 53)
return 0
elseif pokemon.x.spell == "Doubleslap" then
doCreatureSay(getCreatureSummons(cid)[1], ""..string.upper(c[getCreatureOutfit(getCreatureSummons(cid)[1]).lookType].x.spell).."!", TALKTYPE_MONSTER)
doCreatureSay(cid, ""..getCreatureName(getCreatureSummons(cid)[1])..", "..c[getCreatureOutfit(getCreatureSummons(cid)[1]).lookType].x.spell.."!", TALKTYPE_SAY)
exhaustion.set(cid, pokemon.x.ex, pokemon.x.cd)
local function slap(params)
if isMonster(getCreatureTarget(params.cid)) then
doAreaCombatHealth(getCreatureSummons(params.cid)[1], element, getThingPos(getCreatureTarget(params.cid)), 0, -((num1)+(getPlayerLevel(cid)*(num3))), -((num2)+(getPlayerLevel(cid)*(num3))), 3)
else
end
end
addEvent(slap, 0, {cid = cid})
addEvent(slap, 600, {cid = cid})
return 0
elseif pokemon.x.spell == "Mud Shot" then
doCreatureSay(getCreatureSummons(cid)[1], ""..string.upper(c[getCreatureOutfit(getCreatureSummons(cid)[1]).lookType].x.spell).."!", TALKTYPE_MONSTER)
doCreatureSay(cid, ""..getCreatureName(getCreatureSummons(cid)[1])..", "..c[getCreatureOutfit(getCreatureSummons(cid)[1]).lookType].x.spell.."!", TALKTYPE_SAY)
exhaustion.set(cid, pokemon.x.ex, pokemon.x.cd)
setPlayerStorageValue(getCreatureTarget(cid), 3, 1)
local mudalvo = getCreatureTarget(cid)
local function ver(params)
if isCreature(params.mudalvo) then
if getPlayerStorageValue(params.mudalvo, 3) >= 1 then
setPlayerStorageValue(params.mudalvo, 3, -1)
end
end
end
local function muds(params)
if isCreature(params.alvo) then
if getPlayerStorageValue(params.alvo, 3) >= 1 then
doSendMagicEffect(getThingPos(params.alvo), 34)
end
end
end
addEvent(muds, 500, {alvo = mudalvo})
addEvent(muds, 1500, {alvo = mudalvo})
addEvent(muds, 2000, {alvo = mudalvo})
addEvent(muds, 3000, {alvo = mudalvo})
addEvent(muds, 4000, {alvo = mudalvo})
addEvent(muds, 5000, {alvo = mudalvo})
addEvent(ver, 5100, {mudalvo = mudalvo})
doSendDistanceShoot(getThingPos(getCreatureSummons(cid)[1]), getThingPos(getCreatureTarget(cid)), 1)
doAreaCombatHealth(getCreatureSummons(cid)[1], element, getThingPos(getCreatureTarget(cid)), earth1, -((num1)+(getPlayerLevel(cid)*(num3))), -((num2)+(getPlayerLevel(cid)*(num3))), 116)
return 0
elseif pokemon.x.spell == "Acid" then
doCreatureSay(getCreatureSummons(cid)[1], ""..string.upper(c[getCreatureOutfit(getCreatureSummons(cid)[1]).lookType].x.spell).."!", TALKTYPE_MONSTER)
doCreatureSay(cid, ""..getCreatureName(getCreatureSummons(cid)[1])..", "..c[getCreatureOutfit(getCreatureSummons(cid)[1]).lookType].x.spell.."!", TALKTYPE_SAY)
exhaustion.set(cid, pokemon.x.ex, pokemon.x.cd)
doSendDistanceShoot(getThingPos(getCreatureSummons(cid)[1]), getThingPos(getCreatureTarget(cid)), 14)
doAreaCombatHealth(getCreatureSummons(cid)[1], element, getThingPos(getCreatureTarget(cid)), 0, -((num1)+(getPlayerLevel(cid)*(num3))), -((num2)+(getPlayerLevel(cid)*(num3))), 20)
return 0
elseif pokemon.x.spell == "Restore" then
doCreatureSay(getCreatureSummons(cid)[1], ""..string.upper(c[getCreatureOutfit(getCreatureSummons(cid)[1]).lookType].x.spell).."!", TALKTYPE_MONSTER)
doCreatureSay(cid, ""..getCreatureName(getCreatureSummons(cid)[1])..", "..c[getCreatureOutfit(getCreatureSummons(cid)[1]).lookType].x.spell.."!", TALKTYPE_SAY)
exhaustion.set(cid, pokemon.x.ex, pokemon.x.cd)
doSendMagicEffect(getThingPos(getCreatureSummons(cid)[1]), 14)
doCreatureAddHealth(getCreatureSummons(cid)[1], ((num2)+((getPlayerLevel(cid))*(num3))))
doSendAnimatedText(getThingPos(getCreatureSummons(cid)[1]), "+"..((num2)+((getPlayerLevel(cid))*(num3))).."", 35)
return 0
elseif pokemon.x.spell == "Slash" then
doCreatureSay(getCreatureSummons(cid)[1], ""..string.upper(c[getCreatureOutfit(getCreatureSummons(cid)[1]).lookType].x.spell).."!", TALKTYPE_MONSTER)
doCreatureSay(cid, ""..getCreatureName(getCreatureSummons(cid)[1])..", "..c[getCreatureOutfit(getCreatureSummons(cid)[1]).lookType].x.spell.."!", TALKTYPE_SAY)
exhaustion.set(cid, pokemon.x.ex, pokemon.x.cd)
doAreaCombatHealth(getCreatureSummons(cid)[1], element, getThingPos(getCreatureTarget(cid)), 0, -((num1)+(getPlayerLevel(cid)*(num3))), -((num2)+(getPlayerLevel(cid)*(num3))), 160)
return 0
elseif pokemon.x.spell == "Absorb" then
doCreatureSay(getCreatureSummons(cid)[1], ""..string.upper(c[getCreatureOutfit(getCreatureSummons(cid)[1]).lookType].x.spell).."!", TALKTYPE_MONSTER)
doCreatureSay(cid, ""..getCreatureName(getCreatureSummons(cid)[1])..", "..c[getCreatureOutfit(getCreatureSummons(cid)[1]).lookType].x.spell.."!", TALKTYPE_SAY)
exhaustion.set(cid, pokemon.x.ex, pokemon.x.cd)
local life = getCreatureHealth(getCreatureTarget(cid))
doAreaCombatHealth(getCreatureSummons(cid)[1], element, getThingPos(getCreatureTarget(cid)), 0, -((num1)+(getPlayerLevel(cid)*(num3))), -((num2)+(getPlayerLevel(cid)*(num3))), 14)
local newlife = life - getCreatureHealth(getCreatureTarget(cid))
doSendMagicEffect(getThingPos(getCreatureSummons(cid)[1]), 14)
doCreatureAddHealth(getCreatureSummons(cid)[1], newlife)
doSendAnimatedText(getThingPos(getCreatureSummons(cid)[1]), "+"..newlife.."", 35)
return 0
elseif pokemon.x.spell == "Horn Attack" then
doCreatureSay(getCreatureSummons(cid)[1], ""..string.upper(c[getCreatureOutfit(getCreatureSummons(cid)[1]).lookType].x.spell).."!", TALKTYPE_MONSTER)
doCreatureSay(cid, ""..getCreatureName(getCreatureSummons(cid)[1])..", "..c[getCreatureOutfit(getCreatureSummons(cid)[1]).lookType].x.spell.."!", TALKTYPE_SAY)
exhaustion.set(cid, pokemon.x.ex, pokemon.x.cd)
doSendDistanceShoot(getThingPos(getCreatureSummons(cid)[1]), getThingPos(getCreatureTarget(cid)), 15)
doAreaCombatHealth(getCreatureSummons(cid)[1], element, getThingPos(getCreatureTarget(cid)), 0, -((num1)+(getPlayerLevel(cid)*(num3))), -((num2)+(getPlayerLevel(cid)*(num3))), 3)
return 0
elseif pokemon.x.spell == "Sand Attack" then
doCreatureSay(getCreatureSummons(cid)[1], ""..string.upper(c[getCreatureOutfit(getCreatureSummons(cid)[1]).lookType].x.spell).."!", TALKTYPE_MONSTER)
doCreatureSay(cid, ""..getCreatureName(getCreatureSummons(cid)[1])..", "..c[getCreatureOutfit(getCreatureSummons(cid)[1]).lookType].x.spell.."!", TALKTYPE_SAY)
exhaustion.set(cid, pokemon.x.ex, pokemon.x.cd)
posit = getThingPos(getCreatureSummons(cid)[1])
local function sandattack(params)
if #getCreatureSummons(params.cid) >= 1 then
doAreaCombatHealth(getCreatureSummons(params.cid)[1], element, params.ar, sand1, -((num1)+(getPlayerLevel(cid)*(num3))), -((num2)+(getPlayerLevel(cid)*(num3))), params.ef)
else
end
end
local posicao = getThingPos(getCreatureSummons(cid)[1])
if getCreatureLookDir(getCreatureSummons(cid)[1]) == 0 then
addEvent(sandattack, 0, {cid = cid, ar = {x=posicao.x, y=posicao.y-1, z=posicao.z}, ef = 120})
addEvent(sandattack, 400, {cid = cid, ar = {x=posicao.x, y=posicao.y-2, z=posicao.z}, ef = 120})
addEvent(sandattack, 800, {cid = cid, ar = {x=posicao.x, y=posicao.y-3, z=posicao.z}, ef = 120})
elseif getCreatureLookDir(getCreatureSummons(cid)[1]) == 2 then
addEvent(sandattack, 0, {cid = cid, ar = {x=posicao.x, y=posicao.y+1, z=posicao.z}, ef = 122})
addEvent(sandattack, 400, {cid = cid, ar = {x=posicao.x, y=posicao.y+2, z=posicao.z}, ef = 122})
addEvent(sandattack, 800, {cid = cid, ar = {x=posicao.x, y=posicao.y+3, z=posicao.z}, ef = 122})
elseif getCreatureLookDir(getCreatureSummons(cid)[1]) == 1 then
addEvent(sandattack, 0, {cid = cid, ar = {x=posicao.x+1, y=posicao.y, z=posicao.z}, ef = 121})
addEvent(sandattack, 400, {cid = cid, ar = {x=posicao.x+2, y=posicao.y, z=posicao.z}, ef = 121})
addEvent(sandattack, 800, {cid = cid, ar = {x=posicao.x+3, y=posicao.y, z=posicao.z}, ef = 121})
elseif getCreatureLookDir(getCreatureSummons(cid)[1]) == 3 then
addEvent(sandattack, 0, {cid = cid, ar = {x=posicao.x-1, y=posicao.y, z=posicao.z}, ef = 119})
addEvent(sandattack, 400, {cid = cid, ar = {x=posicao.x-2, y=posicao.y, z=posicao.z}, ef = 119})
addEvent(sandattack, 800, {cid = cid, ar = {x=posicao.x-3, y=posicao.y, z=posicao.z}, ef = 119})
end
elseif pokemon.x.spell == "Thunder Shock" then
doCreatureSay(getCreatureSummons(cid)[1], ""..string.upper(c[getCreatureOutfit(getCreatureSummons(cid)[1]).lookType].x.spell).."!", TALKTYPE_MONSTER)
doCreatureSay(cid, ""..getCreatureName(getCreatureSummons(cid)[1])..", "..c[getCreatureOutfit(getCreatureSummons(cid)[1]).lookType].x.spell.."!", TALKTYPE_SAY)
exhaustion.set(cid, pokemon.x.ex, pokemon.x.cd)
doSendDistanceShoot(getThingPos(getCreatureSummons(cid)[1]), getThingPos(getCreatureTarget(cid)), 40)
doAreaCombatHealth(getCreatureSummons(cid)[1], element, getThingPos(getCreatureTarget(cid)), 0, -((num1)+(getPlayerLevel(cid)*(num3))), -((num2)+(getPlayerLevel(cid)*(num3))), 48)
return 0
elseif pokemon.x.spell == "Rock Throw" then
doCreatureSay(getCreatureSummons(cid)[1], ""..string.upper(c[getCreatureOutfit(getCreatureSummons(cid)[1]).lookType].x.spell).."!", TALKTYPE_MONSTER)
doCreatureSay(cid, ""..getCreatureName(getCreatureSummons(cid)[1])..", "..c[getCreatureOutfit(getCreatureSummons(cid)[1]).lookType].x.spell.."!", TALKTYPE_SAY)
exhaustion.set(cid, pokemon.x.ex, pokemon.x.cd)
doSendDistanceShoot(getThingPos(getCreatureSummons(cid)[1]), getThingPos(getCreatureTarget(cid)), 11)
doAreaCombatHealth(getCreatureSummons(cid)[1], element, getThingPos(getCreatureTarget(cid)), 0, -((num1)+(getPlayerLevel(cid)*(num3))), -((num2)+(getPlayerLevel(cid)*(num3))), 3)
return 0
elseif pokemon.x.spell == "Scratch" then
doCreatureSay(getCreatureSummons(cid)[1], ""..string.upper(c[getCreatureOutfit(getCreatureSummons(cid)[1]).lookType].x.spell).."!", TALKTYPE_MONSTER)
doCreatureSay(cid, ""..getCreatureName(getCreatureSummons(cid)[1])..", "..c[getCreatureOutfit(getCreatureSummons(cid)[1]).lookType].x.spell.."!", TALKTYPE_SAY)
exhaustion.set(cid, pokemon.x.ex, pokemon.x.cd)
doAreaCombatHealth(getCreatureSummons(cid)[1], element, getThingPos(getCreatureTarget(cid)), 0, -((num1)+(getPlayerLevel(cid)*(num3))), -((num2)+(getPlayerLevel(cid)*(num3))), 142)
return 0
elseif pokemon.x.spell == "Dragon Claw" then
doCreatureSay(getCreatureSummons(cid)[1], ""..string.upper(c[getCreatureOutfit(getCreatureSummons(cid)[1]).lookType].x.spell).."!", TALKTYPE_MONSTER)
doCreatureSay(cid, ""..getCreatureName(getCreatureSummons(cid)[1])..", "..c[getCreatureOutfit(getCreatureSummons(cid)[1]).lookType].x.spell.."!", TALKTYPE_SAY)
exhaustion.set(cid, pokemon.x.ex, pokemon.x.cd)
doAreaCombatHealth(getCreatureSummons(cid)[1], element, getThingPos(getCreatureTarget(cid)), 0, -((num1)+(getPlayerLevel(cid)*(num3))), -((num2)+(getPlayerLevel(cid)*(num3))), 141)
return 0
elseif pokemon.x.spell == "Headbutt" then
doCreatureSay(getCreatureSummons(cid)[1], ""..string.upper(c[getCreatureOutfit(getCreatureSummons(cid)[1]).lookType].x.spell).."!", TALKTYPE_MONSTER)
doCreatureSay(cid, ""..getCreatureName(getCreatureSummons(cid)[1])..", use "..c[getCreatureOutfit(getCreatureSummons(cid)[1]).lookType].x.spell.."!", TALKTYPE_SAY)
exhaustion.set(cid, pokemon.x.ex, pokemon.x.cd)
doAreaCombatHealth(getCreatureSummons(cid)[1], element, getThingPos(getCreatureTarget(cid)), 0, -((num1)+(getPlayerLevel(cid)*(num3))), -((num2)+(getPlayerLevel(cid)*(num3))), 118)
return 0
elseif pokemon.x.spell == "String Shot" then
doCreatureSay(getCreatureSummons(cid)[1], ""..string.upper(c[getCreatureOutfit(getCreatureSummons(cid)[1]).lookType].x.spell).."!", TALKTYPE_MONSTER)
doCreatureSay(cid, ""..getCreatureName(getCreatureSummons(cid)[1])..", "..c[getCreatureOutfit(getCreatureSummons(cid)[1]).lookType].x.spell.."!", TALKTYPE_SAY)
exhaustion.set(cid, pokemon.x.ex, pokemon.x.cd)
setPlayerStorageValue(getCreatureTarget(cid), 3, 1)
local alvo = getCreatureTarget(cid)
doSendDistanceShoot(getThingPos(getCreatureSummons(cid)[1]), getThingPos(getCreatureTarget(cid)), 23)
doAreaCombatHealth(getCreatureSummons(cid)[1], element, getThingPos(getCreatureTarget(cid)), 0, -((num1)+(getPlayerLevel(cid)*(num3))), -((num2)+(getPlayerLevel(cid)*(num3))), 137)
local function string(params)
if isCreature(params.alvo) then
if getPlayerStorageValue(params.alvo, 3) >= 1 then
doSendMagicEffect(getThingPos(params.alvo), 137)
end
end
end
local function normalstr(params)
if isCreature(params.alvo) then
if getPlayerStorageValue(params.alvo, 3) >= 1 then
setPlayerStorageValue(params.alvo, 3, -1)
end
end
end
addEvent(string, 250, {alvo = alvo})
addEvent(string, 500, {alvo = alvo})
addEvent(string, 750, {alvo = alvo})
addEvent(string, 1000, {alvo = alvo})
addEvent(string, 1250, {alvo = alvo})
addEvent(string, 1500, {alvo = alvo})
addEvent(string, 1750, {alvo = alvo})
addEvent(string, 2000, {alvo = alvo})
addEvent(string, 2250, {alvo = alvo})
addEvent(string, 2500, {alvo = alvo})
addEvent(string, 2750, {alvo = alvo})
addEvent(string, 3000, {alvo = alvo})
addEvent(normalstr, 3050, {alvo = alvo})
return 0
elseif pokemon.x.spell == "Bite" then
doCreatureSay(getCreatureSummons(cid)[1], ""..string.upper(c[getCreatureOutfit(getCreatureSummons(cid)[1]).lookType].x.spell).."!", TALKTYPE_MONSTER)
doCreatureSay(cid, ""..getCreatureName(getCreatureSummons(cid)[1])..", "..c[getCreatureOutfit(getCreatureSummons(cid)[1]).lookType].x.spell.."!", TALKTYPE_SAY)
exhaustion.set(cid, pokemon.x.ex, pokemon.x.cd)
doAreaCombatHealth(getCreatureSummons(cid)[1], element, getThingPos(getCreatureTarget(cid)), 0, -((num1)+(getPlayerLevel(cid)*(num3))), -((num2)+(getPlayerLevel(cid)*(num3))), 146)
return 0
elseif pokemon.x.spell == "Mega Kick" then
doCreatureSay(getCreatureSummons(cid)[1], ""..string.upper(c[getCreatureOutfit(getCreatureSummons(cid)[1]).lookType].x.spell).."!", TALKTYPE_MONSTER)
doCreatureSay(cid, ""..getCreatureName(getCreatureSummons(cid)[1])..", "..c[getCreatureOutfit(getCreatureSummons(cid)[1]).lookType].x.spell.."!", TALKTYPE_SAY)
exhaustion.set(cid, pokemon.x.ex, pokemon.x.cd)
doSendDistanceShoot(getThingPos(getCreatureSummons(cid)[1]), getThingPos(getCreatureTarget(cid)), 38)
doAreaCombatHealth(getCreatureSummons(cid)[1], element, getThingPos(getCreatureTarget(cid)), 0, -((num1)+(getPlayerLevel(cid)*(num3))), -((num2)+(getPlayerLevel(cid)*(num3))), 113)
return 0
elseif pokemon.x.spell == "Water Gun" then
--alvo = getCreatureName(getCreatureTarget(cid))
if getCreatureLookDir(getCreatureSummons(cid)[1]) == 0 then
doAreaCombatHealth(getCreatureSummons(cid)[1], element, getThingPos(getCreatureSummons(cid)[1]), wg1n, -((num1)+(getPlayerLevel(cid)*(num3))), -((num2)+(getPlayerLevel(cid)*(num3))), 74)
doAreaCombatHealth(getCreatureSummons(cid)[1], element, getThingPos(getCreatureSummons(cid)[1]), wg2n, -((num1)+(getPlayerLevel(cid)*(num3))), -((num2)+(getPlayerLevel(cid)*(num3))), 75)
doAreaCombatHealth(getCreatureSummons(cid)[1], element, getThingPos(getCreatureSummons(cid)[1]), wg3n, -((num1)+(getPlayerLevel(cid)*(num3))), -((num2)+(getPlayerLevel(cid)*(num3))), 76)
elseif getCreatureLookDir(getCreatureSummons(cid)[1]) == 2 then
doAreaCombatHealth(getCreatureSummons(cid)[1], element, getThingPos(getCreatureSummons(cid)[1]), wg1s, -((num1)+(getPlayerLevel(cid)*(num3))), -((num2)+(getPlayerLevel(cid)*(num3))), 77)
doAreaCombatHealth(getCreatureSummons(cid)[1], element, getThingPos(getCreatureSummons(cid)[1]), wg2s, -((num1)+(getPlayerLevel(cid)*(num3))), -((num2)+(getPlayerLevel(cid)*(num3))), 75)
doAreaCombatHealth(getCreatureSummons(cid)[1], element, getThingPos(getCreatureSummons(cid)[1]), wg3s, -((num1)+(getPlayerLevel(cid)*(num3))), -((num2)+(getPlayerLevel(cid)*(num3))), 78)
elseif getCreatureLookDir(getCreatureSummons(cid)[1]) == 1 then
doAreaCombatHealth(getCreatureSummons(cid)[1], element, getThingPos(getCreatureSummons(cid)[1]), wg1e, -((num1)+(getPlayerLevel(cid)*(num3))), -((num2)+(getPlayerLevel(cid)*(num3))), 69)
doAreaCombatHealth(getCreatureSummons(cid)[1], element, getThingPos(getCreatureSummons(cid)[1]), wg2e, -((num1)+(getPlayerLevel(cid)*(num3))), -((num2)+(getPlayerLevel(cid)*(num3))), 70)
doAreaCombatHealth(getCreatureSummons(cid)[1], element, getThingPos(getCreatureSummons(cid)[1]), wg3e, -((num1)+(getPlayerLevel(cid)*(num3))), -((num2)+(getPlayerLevel(cid)*(num3))), 71)
elseif getCreatureLookDir(getCreatureSummons(cid)[1]) == 3 then
doAreaCombatHealth(getCreatureSummons(cid)[1], element, getThingPos(getCreatureSummons(cid)[1]), wg1w, -((num1)+(getPlayerLevel(cid)*(num3))), -((num2)+(getPlayerLevel(cid)*(num3))), 72)
doAreaCombatHealth(getCreatureSummons(cid)[1], element, getThingPos(getCreatureSummons(cid)[1]), wg2w, -((num1)+(getPlayerLevel(cid)*(num3))), -((num2)+(getPlayerLevel(cid)*(num3))), 70)
doAreaCombatHealth(getCreatureSummons(cid)[1], element, getThingPos(getCreatureSummons(cid)[1]), wg3w, -((num1)+(getPlayerLevel(cid)*(num3))), -((num2)+(getPlayerLevel(cid)*(num3))), 73)
end
doCreatureSay(getCreatureSummons(cid)[1], ""..string.upper(c[getCreatureOutfit(getCreatureSummons(cid)[1]).lookType].x.spell).."!", TALKTYPE_MONSTER)
doCreatureSay(cid, ""..getCreatureName(getCreatureSummons(cid)[1])..", "..c[getCreatureOutfit(getCreatureSummons(cid)[1]).lookType].x.spell.."!", TALKTYPE_SAY)
exhaustion.set(cid, pokemon.x.ex, pokemon.x.cd)
return 0
elseif pokemon.x.spell == "Psybeam" then
if getCreatureLookDir(getCreatureSummons(cid)[1]) == 0 then
doAreaCombatHealth(getCreatureSummons(cid)[1], element, getThingPos(getCreatureSummons(cid)[1]), bmn, -((num1)+(getPlayerLevel(cid)*(num3))), -((num2)+(getPlayerLevel(cid)*(num3))), 108)
elseif getCreatureLookDir(getCreatureSummons(cid)[1]) == 2 then
doAreaCombatHealth(getCreatureSummons(cid)[1], element, getThingPos(getCreatureSummons(cid)[1]), bms, -((num1)+(getPlayerLevel(cid)*(num3))), -((num2)+(getPlayerLevel(cid)*(num3))), 109)
elseif getCreatureLookDir(getCreatureSummons(cid)[1]) == 1 then
doAreaCombatHealth(getCreatureSummons(cid)[1], element, getThingPos(getCreatureSummons(cid)[1]), bme, -((num1)+(getPlayerLevel(cid)*(num3))), -((num2)+(getPlayerLevel(cid)*(num3))), 107)
elseif getCreatureLookDir(getCreatureSummons(cid)[1]) == 3 then
doAreaCombatHealth(getCreatureSummons(cid)[1], element, getThingPos(getCreatureSummons(cid)[1]), bmw, -((num1)+(getPlayerLevel(cid)*(num3))), -((num2)+(getPlayerLevel(cid)*(num3))), 106)
end
doCreatureSay(getCreatureSummons(cid)[1], ""..string.upper(c[getCreatureOutfit(getCreatureSummons(cid)[1]).lookType].x.spell).."!", TALKTYPE_MONSTER)
doCreatureSay(cid, ""..getCreatureName(getCreatureSummons(cid)[1])..", "..c[getCreatureOutfit(getCreatureSummons(cid)[1]).lookType].x.spell.."!", TALKTYPE_SAY)
exhaustion.set(cid, pokemon.x.ex, pokemon.x.cd)
return 0
elseif pokemon.x.spell == "Triple Punch" then
doCreatureSay(getCreatureSummons(cid)[1], ""..string.upper(c[getCreatureOutfit(getCreatureSummons(cid)[1]).lookType].x.spell).."!", TALKTYPE_MONSTER)
doCreatureSay(cid, ""..getCreatureName(getCreatureSummons(cid)[1])..", use "..c[getCreatureOutfit(getCreatureSummons(cid)[1]).lookType].x.spell.."!", TALKTYPE_SAY)
exhaustion.set(cid, pokemon.x.ex, pokemon.x.cd)
local function slap(params)
if isMonster(getCreatureTarget(params.cid)) then
doAreaCombatHealth(getCreatureSummons(params.cid)[1], element, getThingPos(getCreatureTarget(params.cid)), 0, -((num1)+(getPlayerLevel(cid)*(num3))), -((num2)+(getPlayerLevel(cid)*(num3))), 112)
else
end
end
addEvent(slap, 0, {cid = cid})
addEvent(slap, 600, {cid = cid})
return 0
elseif pokemon.x.spell == "Aqua Tail" then
doCreatureSay(getCreatureSummons(cid)[1], ""..string.upper(c[getCreatureOutfit(getCreatureSummons(cid)[1]).lookType].x.spell).."!", TALKTYPE_MONSTER)
doCreatureSay(cid, ""..getCreatureName(getCreatureSummons(cid)[1])..", "..c[getCreatureOutfit(getCreatureSummons(cid)[1]).lookType].x.spell.."!", TALKTYPE_SAY)
exhaustion.set(cid, pokemon.x.ex, pokemon.x.cd)
doAreaCombatHealth(getCreatureSummons(cid)[1], element, getThingPos(getCreatureTarget(cid)), 0, -((num1)+(getPlayerLevel(cid)*(num3))), -((num2)+(getPlayerLevel(cid)*(num3))), 68)
return 0
elseif pokemon.x.spell == "Lick" then
doCreatureSay(getCreatureSummons(cid)[1], ""..string.upper(c[getCreatureOutfit(getCreatureSummons(cid)[1]).lookType].x.spell).."!", TALKTYPE_MONSTER)
doCreatureSay(cid, ""..getCreatureName(getCreatureSummons(cid)[1])..", "..c[getCreatureOutfit(getCreatureSummons(cid)[1]).lookType].x.spell.."!", TALKTYPE_SAY)
exhaustion.set(cid, pokemon.x.ex, pokemon.x.cd)
setPlayerStorageValue(getCreatureTarget(cid), 3, 1)
local mudalvo = getCreatureTarget(cid)
local function ver(params)
if isCreature(params.mudalvo) then
if getPlayerStorageValue(params.mudalvo, 3) >= 1 then
setPlayerStorageValue(params.mudalvo, 3, -1)
end
end
end
local function muds(params)
if isCreature(params.alvo) then
if getPlayerStorageValue(params.alvo, 3) >= 1 then
doSendMagicEffect(getThingPos(params.alvo), 145)
end
end
end
addEvent(muds, 500, {alvo = mudalvo})
addEvent(muds, 2000, {alvo = mudalvo})
addEvent(muds, 3000, {alvo = mudalvo})
addEvent(muds, 4000, {alvo = mudalvo})
addEvent(muds, 5000, {alvo = mudalvo})
addEvent(ver, 5100, {mudalvo = mudalvo})
doSendDistanceShoot(getThingPos(getCreatureSummons(cid)[1]), getThingPos(getCreatureTarget(cid)), 1)
doAreaCombatHealth(getCreatureSummons(cid)[1], element, getThingPos(getCreatureTarget(cid)), 0, -((num1)+(getPlayerLevel(cid)*(num3))), -((num2)+(getPlayerLevel(cid)*(num3))), 145)
return 0
elseif pokemon.x.spell == "Bubbles" then
doCreatureSay(getCreatureSummons(cid)[1], ""..string.upper(c[getCreatureOutfit(getCreatureSummons(cid)[1]).lookType].x.spell).."!", TALKTYPE_MONSTER)
doCreatureSay(cid, ""..getCreatureName(getCreatureSummons(cid)[1])..", "..c[getCreatureOutfit(getCreatureSummons(cid)[1]).lookType].x.spell.."!", TALKTYPE_SAY)
exhaustion.set(cid, pokemon.x.ex, pokemon.x.cd)
local function throw(params)
if isMonster(getCreatureTarget(params.cid)) then
doSendDistanceShoot(getThingPos(getCreatureSummons(params.cid)[1]), getThingPos(getCreatureTarget(params.cid)), 2)
else
end
end
local function damage(params)
if isMonster(getCreatureTarget(params.cid)) then
doAreaCombatHealth(getCreatureSummons(params.cid)[1], element, getThingPos(getCreatureTarget(cid)), 0, -((num1)+(getPlayerLevel(cid)*(num3))), -((num2)+(getPlayerLevel(cid)*(num3))), 25)
else
end
end
addEvent(throw, 0, {cid = cid})
addEvent(damage, 0, {cid = cid})
return 0
elseif pokemon.x.spell == "Leech Seed" then
doCreatureSay(getCreatureSummons(cid)[1], ""..string.upper(c[getCreatureOutfit(getCreatureSummons(cid)[1]).lookType].x.spell).."!", TALKTYPE_MONSTER)
doCreatureSay(cid, ""..getCreatureName(getCreatureSummons(cid)[1])..", "..c[getCreatureOutfit(getCreatureSummons(cid)[1]).lookType].x.spell.."!", TALKTYPE_SAY)
exhaustion.set(cid, pokemon.x.ex, pokemon.x.cd)
doSendDistanceShoot(getThingPos(getCreatureSummons(cid)[1]), getThingPos(getCreatureTarget(cid)), 5)
local alvo = getCreatureTarget(cid)
local leecher = getCreatureSummons(cid)[1]
local function suck(params)
if isCreature(getCreatureSummons(params.cid)[1]) then
if isCreature(params.alvo) then
if getCreatureSummons(cid)[1] == leecher then
doSendMagicEffect(getThingPos(getCreatureSummons(params.cid)[1]), 14)
local life = getCreatureHealth(alvo)
doAreaCombatHealth(getCreatureSummons(params.cid)[1], element, getThingPos(params.alvo), 0, -((num1)+(getPlayerLevel(cid)*(num3))), -((num2)+(getPlayerLevel(cid)*(num3))), 45)
local newlife = life - getCreatureHealth(alvo)
if newlife >= 1 then
doCreatureAddHealth(getCreatureSummons(params.cid)[1], newlife)
doSendAnimatedText(getThingPos(getCreatureSummons(params.cid)[1]), "+"..newlife.."", 35)
end
end
end
end
end
addEvent(suck, 2000, {cid = cid, alvo = alvo})
addEvent(suck, 4000, {cid = cid, alvo = alvo})
addEvent(suck, 6000, {cid = cid, alvo = alvo})
addEvent(suck, 8000, {cid = cid, alvo = alvo})
addEvent(suck, 10000, {cid = cid, alvo = alvo})
return 0
elseif pokemon.x.spell == "Triple Kick" then
doCreatureSay(getCreatureSummons(cid)[1], ""..string.upper(c[getCreatureOutfit(getCreatureSummons(cid)[1]).lookType].x.spell).."!", TALKTYPE_MONSTER)
doCreatureSay(cid, ""..getCreatureName(getCreatureSummons(cid)[1])..", use "..c[getCreatureOutfit(getCreatureSummons(cid)[1]).lookType].x.spell.."!", TALKTYPE_SAY)
exhaustion.set(cid, pokemon.x.ex, pokemon.x.cd)
local function slap(params)
if isMonster(getCreatureTarget(params.cid)) then
doAreaCombatHealth(getCreatureSummons(params.cid)[1], element, getThingPos(getCreatureTarget(params.cid)), 0, -((num1)+(getPlayerLevel(cid)*(num3))), -((num2)+(getPlayerLevel(cid)*(num3))), 113)
else
end
end
addEvent(slap, 0, {cid = cid})
addEvent(slap, 600, {cid = cid})
return 0
elseif pokemon.x.spell == "Triple Punch" then
doCreatureSay(getCreatureSummons(cid)[1], ""..string.upper(c[getCreatureOutfit(getCreatureSummons(cid)[1]).lookType].x.spell).."!", TALKTYPE_MONSTER)
doCreatureSay(cid, ""..getCreatureName(getCreatureSummons(cid)[1])..", use "..c[getCreatureOutfit(getCreatureSummons(cid)[1]).lookType].x.spell.."!", TALKTYPE_SAY)
exhaustion.set(cid, pokemon.x.ex, pokemon.x.cd)
local function slap(params)
if isMonster(getCreatureTarget(params.cid)) then
doAreaCombatHealth(getCreatureSummons(params.cid)[1], element, getThingPos(getCreatureTarget(params.cid)), 0, -((num1)+(getPlayerLevel(cid)*(num3))), -((num2)+(getPlayerLevel(cid)*(num3))), 112)
else
end
end
addEvent(slap, 0, {cid = cid})
addEvent(slap, 600, {cid = cid})
return 0
elseif pokemon.x.spell == "Iron Tail" then
doCreatureSay(getCreatureSummons(cid)[1], ""..string.upper(c[getCreatureOutfit(getCreatureSummons(cid)[1]).lookType].x.spell).."!", TALKTYPE_MONSTER)
doCreatureSay(cid, ""..getCreatureName(getCreatureSummons(cid)[1])..", "..c[getCreatureOutfit(getCreatureSummons(cid)[1]).lookType].x.spell.."!", TALKTYPE_SAY)
exhaustion.set(cid, pokemon.x.ex, pokemon.x.cd)
doAreaCombatHealth(getCreatureSummons(cid)[1], element, getThingPos(getCreatureTarget(cid)), 0, -((num1)+(getPlayerLevel(cid)*(num3))), -((num2)+(getPlayerLevel(cid)*(num3))), 160)
return 0
elseif pokemon.x.spell == "Swift" then
doCreatureSay(getCreatureSummons(cid)[1], ""..string.upper(c[getCreatureOutfit(getCreatureSummons(cid)[1]).lookType].x.spell).."!", TALKTYPE_MONSTER)
doCreatureSay(cid, ""..getCreatureName(getCreatureSummons(cid)[1])..", "..c[getCreatureOutfit(getCreatureSummons(cid)[1]).lookType].x.spell.."!", TALKTYPE_SAY)
exhaustion.set(cid, pokemon.x.ex, pokemon.x.cd)
doSendDistanceShoot(getThingPos(getCreatureSummons(cid)[1]), getThingPos(getCreatureTarget(cid)), 32)
doAreaCombatHealth(getCreatureSummons(cid)[1], element, getThingPos(getCreatureTarget(cid)), 0, -((num1)+(getPlayerLevel(cid)*(num3))), -((num2)+(getPlayerLevel(cid)*(num3))), 3)
return 0
elseif pokemon.x.spell == "Lovely Kiss" then
doCreatureSay(getCreatureSummons(cid)[1], ""..string.upper(c[getCreatureOutfit(getCreatureSummons(cid)[1]).lookType].x.spell).."!", TALKTYPE_MONSTER)
doCreatureSay(cid, ""..getCreatureName(getCreatureSummons(cid)[1])..", "..c[getCreatureOutfit(getCreatureSummons(cid)[1]).lookType].x.spell.."!", TALKTYPE_SAY)
exhaustion.set(cid, pokemon.x.ex, pokemon.x.cd)
setPlayerStorageValue(getCreatureTarget(cid), 3, 1)
local mudalvo = getCreatureTarget(cid)
local function ver(params)
if isCreature(params.mudalvo) then
if getPlayerStorageValue(params.mudalvo, 3) >= 1 then
setPlayerStorageValue(params.mudalvo, 3, -1)
end
end
end
local function muds(params)
if isCreature(params.alvo) then
if getPlayerStorageValue(params.alvo, 3) >= 1 then
doSendMagicEffect(getThingPos(params.alvo), 147)
end
end
end
addEvent(muds, 500, {alvo = mudalvo})
addEvent(muds, 1000, {alvo = mudalvo})
addEvent(muds, 1500, {alvo = mudalvo})
addEvent(muds, 2000, {alvo = mudalvo})
addEvent(muds, 2500, {alvo = mudalvo})
addEvent(muds, 3000, {alvo = mudalvo})
addEvent(muds, 3500, {alvo = mudalvo})
addEvent(muds, 4000, {alvo = mudalvo})
addEvent(ver, 4100, {mudalvo = mudalvo})
doSendDistanceShoot(getThingPos(getCreatureSummons(cid)[1]), getThingPos(getCreatureTarget(cid)), 16)
doAreaCombatHealth(getCreatureSummons(cid)[1], element, getThingPos(getCreatureTarget(cid)), 0, -((num1)+(getPlayerLevel(cid)*(num3))), -((num2)+(getPlayerLevel(cid)*(num3))), 147)
return 0
elseif pokemon.x.spell == "Psy Pulse" then
doCreatureSay(getCreatureSummons(cid)[1], ""..string.upper(c[getCreatureOutfit(getCreatureSummons(cid)[1]).lookType].x.spell).."!", TALKTYPE_MONSTER)
doCreatureSay(cid, ""..getCreatureName(getCreatureSummons(cid)[1])..", "..c[getCreatureOutfit(getCreatureSummons(cid)[1]).lookType].x.spell.."!", TALKTYPE_SAY)
exhaustion.set(cid, pokemon.x.ex, pokemon.x.cd)
doSendDistanceShoot(getThingPos(getCreatureSummons(cid)[1]), getThingPos(getCreatureTarget(cid)), 3)
doAreaCombatHealth(getCreatureSummons(cid)[1], element, getThingPos(getCreatureTarget(cid)), 0, -((num1)+(getPlayerLevel(cid)*(num3))), -((num2)+(getPlayerLevel(cid)*(num3))), 136)
return 0
end
return 0
end
Em talkactions.xml adicione isto.
<talkaction words="m1" case-sensitive="no" event="script" value="move1.lua"/>






info
Grupo: Artesão
Registrado: 06/02/12
Posts: 106
Reputação: +1
Olá amigos,
estou com alguns probleminhas e gostaria de ajuda:
1. Se os pokémons te cercam, você fica impossibilitado de soltar seu pokémon e morre.
2. Se vocÊ cercar um pokémon com aquelas caixas (crate) o Pokémon não consegue se mover (não passa por cima).
3.
move1.lua:
local msgs = {"use ", ""}
function doAlertReady(cid, id, movename, n, cd)
if not isCreature(cid) then return true end
local myball = getPlayerSlotItem(cid, 8)
if myball.itemid > 0 and getItemAttribute(myball.uid, cd) == "cd:"..id.."" then
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, getPokeballName(myball.uid).." - "..movename.." (m"..n..") is ready!")
return true
end
local p = getPokeballsInContainer(getPlayerSlotItem(cid, 3).uid)
if not p or #p <= 0 then return true end
for a = 1, #p do
if getItemAttribute(p[a], cd) == "cd:"..id.."" then
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, getPokeballName(p[a]).." - "..movename.." (m"..n..") is ready!")
return true
end
end
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 use moves.")
return 0
end
if getCreatureCondition(getCreatureSummons(cid)[1], CONDITION_INVISIBLE) and not isGhostPokemon(getCreatureSummons(cid)[1]) then
return 0
end
local mypoke = getCreatureSummons(cid)[1]
if getCreatureCondition(cid, CONDITION_EXHAUST) then return true end
if getCreatureName(mypoke) == "Evolution" then return true end
if getCreatureName(mypoke) == "Ditto" or getCreatureName(mypoke) == "Shiny Ditto" then
name = getPlayerStorageValue(mypoke, 1010) --edited
else
name = getCreatureName(mypoke)
end
--local name = getCreatureName(mypoke) == "Ditto" and getPlayerStorageValue(mypoke, 1010) or getCreatureName(mypoke)
local it = string.sub(words, 2, 3)
local move = movestable[name].move1
local cdzin = "move"..it..""
if it == "2" then
move = movestable[name].move2
elseif it == "3" then
move = movestable[name].move3
elseif it == "4" then
move = movestable[name].move4
elseif it == "5" then
move = movestable[name].move5
elseif it == "6" then
move = movestable[name].move6
elseif it == "7" then
move = movestable[name].move7
elseif it == "8" then
move = movestable[name].move8
elseif it == "9" then
move = movestable[name].move9
elseif it == "10" then
move = movestable[name].move10
elseif it == "11" then
move = movestable[name].move11
elseif it == "12" then
move = movestable[name].move12
elseif it == "13" then
move = movestable[name].move13
end
if not move then
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Your pokemon doesn't recognize this move.")
return true
end
if getPlayerLevel(cid) < move.level then
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "You need be atleast level "..move.level.." to use this move.")
return true
end
if getCD(getPlayerSlotItem(cid, 8).uid, cdzin) > 0 and getCD(getPlayerSlotItem(cid, 8).uid, cdzin) < (move.cd + 2) then
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "You have to wait "..getCD(getPlayerSlotItem(cid, 8).uid, cdzin).." seconds to use "..move.name.." again.")
return 0
end
if getTileInfo(getThingPos(mypoke)).protection then
doPlayerSendCancel(cid, "Your pokemon cannot use moves while in protection zone.")
return 0
end
if getPlayerStorageValue(mypoke, 3894) >= 1 then
return doPlayerSendCancel(cid, "You can't attack because you is with fear") --alterado v1.3
end
if move.name == "Team Slice" and #getCreatureSummons(cid) < 2 then
doPlayerSendCancel(cid, "Your pokemon need be in a team for use this move!")
return 0
end
local tooBad = {"Scyther", "Scizor", "Hitmonlee", "Hitmonchan", "Hitmontop", "Tyrogue", "Shiny Scyther", "Shiny Hitmonchan", "Shiny Hitmonlee"}
if isCreature(getCreatureTarget(cid)) and isInArray(tooBad, getCreatureName(getCreatureTarget(cid))) and math.random(1, 100) <= 10 then
local target = getCreatureTarget(cid) --10 = 10% chance
doSendMagicEffect(getThingPos(target), 211)
doSendAnimatedText(getThingPos(target), "Too Bad", 215) --edited passiva TOO BAD!!
doTeleportThing(target, getClosestFreeTile(target, getThingPos(mypoke)), false)
doSendMagicEffect(getThingPos(target), 211)
doFaceCreature(target, getThingPos(mypoke))
return 0
end
if move.target == 1 then
if not isCreature(getCreatureTarget(cid)) then
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "You don\'t have any targets.")
return 0
end
if getCreatureCondition(getCreatureTarget(cid), CONDITION_INVISIBLE) then
return 0
end
if getCreatureHealth(getCreatureTarget(cid)) <= 0 then
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Your have already defeated your target.")
return 0
end
if not isCreature(getCreatureSummons(cid)[1]) then
return true
end
if getDistanceBetween(getThingPos(getCreatureSummons(cid)[1]), getThingPos(getCreatureTarget(cid))) > move.dist then
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Get closer to the target to use this move.")
return 0
end
if not isSightClear(getThingPos(getCreatureSummons(cid)[1]), getThingPos(getCreatureTarget(cid)), false) then
return 0
end
end
local newid = 0
if isSleeping(mypoke) then
--newid = setCD(getPlayerSlotItem(cid, 8).uid, cdzin, 8)
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Sorry your pokemon cant use cd while sleeping.")
doCreatureSay(mypoke, "zZzZ", TALKTYPE_MONSTER)
return 0
else
newid = setCD(getPlayerSlotItem(cid, 8).uid, cdzin, move.cd)
end
doCreatureSay(cid, ""..getPokeName(mypoke)..", "..msgs[math.random(#msgs)]..""..move.name.."!", TALKTYPE_SAY)
local mypoke22 = getCreatureSummons(cid)[2] or 0 --edited team
local mypoke33 = getCreatureSummons(cid)[3] or 0
--if move.name ~= "Metronome" then
--doCreatureSay(mypoke, ""..string.upper(move.name).."!", TALKTYPE_MONSTER)
--end
addEvent(doAlertReady, move.cd * 1000, cid, newid, move.name, it, cdzin)
if mypoke33 ~= 0 and getPlayerStorageValue(cid, 637501) >= 1 then
if move.name ~= "Team Slice" then
docastspell(mypoke33, move.name)
docastspell(mypoke22, move.name)
end
elseif mypoke22 ~= 0 and getPlayerStorageValue(cid, 637501) >= 1 then --edited team
if move.name ~= "Team Slice" then
docastspell(mypoke22, move.name)
end
end
docastspell(mypoke, move.name)
doCreatureAddCondition(cid, playerexhaust)
if useKpdoDlls then
doUpdateCooldowns(cid)
end
return 0
end
Obrigado pela atenção!
Alguém ajuda pelo menos no 1 e 2?