Ir para conteúdo

[Talkactions]Sistema M1 Do Xotservx


oiacaio

Posts Recomendados

Pessoal venho aqui trazer o sistema de move do xotservx, mas com todos 151 pokes(nao tem os movements dos shinys), tenho o m1 e o m2, que achei em um serve, nao sei quem fez, mas vou postar aqui pra vocês pra facilitar a edição das spells.

M1:

function isSummon(uid) 
return uid ~= getCreatureMaster(uid) or false 
end 

function doSendMagicEffectInArea(pos,effect,area,cid) -- Function by mock 
       local centro = {} 
       centro.y = math.floor(table.getn(area)/2)+1 
       for y = 1, table.getn(area) do 
               for x = 1, table.getn(area[y]) do 
                       if area[y][x] > 0 then 
                               centro.x = math.floor(table.getn(area[y])/2)+1 
                               if type(effect) == 'table' then 
                                       doSendMagicEffect({x=pos.x+x-centro.x,y=pos.y+y-centro.y,z= pos.z},(effect[area[y][x]] or 0),cid) 
                               else 
                                       doSendMagicEffect({x=pos.x+x-centro.x,y=pos.y+y-centro.y,z= pos.z},effect or 0,cid) 
                               end 
                       end 
               end 
       end 
       return true 
end 

function getTime(s) -- by : Mkalo. 
       local n = math.floor(s / 60) 
       s = s - (60 * n) 
       return n, s 
end 

-- AREAS -- 
local arr1 = { 
       {1, 1, 1}, 
       {1, 0, 1}, 
       {1, 1, 1}, 
}


local arr2 = {
       {0, 0, 0, 1, 0, 0, 0},
       {0, 0, 1, 1, 1, 0, 0},
       {0, 1, 1, 1, 1, 1, 0},
       {1, 1, 1, 0, 1, 1, 1},
       {0, 1, 1, 1, 1, 1, 0},
       {0, 0, 1, 1, 1, 0, 0},
       {0, 0, 0, 1, 0, 0, 0},                  
}

local pokes = { 
["Bulbasaur"] = {attackname = "Quick Attack", level = 1, storage = 1900, cd = 2, atkmin = 40, atkmax = 60, range = 1, typeattack = "intarget", effecta = 111, type = COMBAT_PHYSICALDAMAGE},
["Ivysaur"] = {attackname = "Quick Attack", level = 40, storage = 1900, cd = 2, atkmin = 100, atkmax = 150, range = 1, typeattack = "intarget", effecta = 111, type = COMBAT_PHYSICALDAMAGE},
["Venusaur"] = {attackname = "Quick Attack", level = 85, storage = 1900, cd = 2, atkmin = 160, atkmax = 210, range = 1, typeattack = "intarget", effecta = 111, type = COMBAT_PHYSICALDAMAGE},

["Charmander"] = {attackname = "Scratch", level = 1, storage = 1901, cd = 2, atkmin = 30, atkmax = 50, range = 1, typeattack = "intarget", effecta = 142, type = COMBAT_PHYSICALDAMAGE},
["Charmeleon"] = {attackname = "Scratch", level = 40, storage = 1901, cd = 2, atkmin = 90, atkmax = 140, range = 1, typeattack = "intarget", effecta = 142, type = COMBAT_PHYSICALDAMAGE},
["Charizard"] = {attackname = "Scratch", level = 85, storage = 1901, cd = 2, atkmin = 150, atkmax = 200, range = 1, typeattack = "intarget", effecta = 142, type = COMBAT_PHYSICALDAMAGE},

["Squirtle"] = {attackname = "Headbutt", level = 1, storage = 1902, cd = 2, atkmin = 40, atkmax = 60, range = 1, typeattack = "intarget", effecta = 118, type = COMBAT_PHYSICALDAMAGE},
["Wartortle"] = {attackname = "Headbutt", level = 40, storage = 1902, cd = 2, atkmin = 100, atkmax = 150, range = 1, typeattack = "intarget", effecta = 118, type = COMBAT_PHYSICALDAMAGE},
["Blastoise"] = {attackname = "Headbutt", level = 85, storage = 1902, cd = 2, atkmin = 160, atkmax = 210, range = 1, typeattack = "intarget", effecta = 118, type = COMBAT_PHYSICALDAMAGE},

["Caterpie"] = {attackname = "Headbutt", level = 1, storage = 1902, cd = 2, atkmin = 5, atkmax = 15, range = 1, typeattack = "intarget", effecta = 118, type = COMBAT_PHYSICALDAMAGE},
["Metapod"] = {attackname = "String Shot", level = 15, storage = 1903, cd = 2, atkmin = 30, atkmax = 60, range = 1, typeattack = "intarget", effecta = 137, type = COMBAT_PHYSICALDAMAGE},
["Butterfree"] = {attackname = "String Shot", level = 35, storage = 1903, cd = 2, atkmin = 60, atkmax = 80, range = 1, typeattack = "intarget", effecta = 118, type = COMBAT_PHYSICALDAMAGE},

["Weedle"] = {attackname = "Horn Attack", level = 1, storage = 1904, cd = 2, atkmin = 5, atkmax = 15, range = 1, typeattack = "intarget", effecta = 9, type = COMBAT_PHYSICALDAMAGE},
["Kakuna"] = {attackname = "String Shot", level = 15, storage = 1903, cd = 2, atkmin = 30, atkmax = 60, range = 1, typeattack = "intarget", effecta = 137, type = COMBAT_PHYSICALDAMAGE},
["Beedrill"] = {attackname = "String Shot", level = 35, storage = 1903, cd = 2, atkmin = 60, atkmax = 80, range = 1, typeattack = "intarget", effecta = 118, type = COMBAT_PHYSICALDAMAGE},

["Pidgey"] = {attackname = "Quick Attack", level = 1, storage = 1900, cd = 2, atkmin = 5, atkmax = 15, range = 1, typeattack = "intarget", effecta = 111, type = COMBAT_PHYSICALDAMAGE},
["Pidgeotto"] = {attackname = "Quick Attack", level = 20, storage = 1900, cd = 2, atkmin = 30, atkmax = 60, range = 1, typeattack = "intarget", effecta = 111, type = COMBAT_PHYSICALDAMAGE},
["Pidgeot"] = {attackname = "Quick Attack", level = 65, storage = 1900, cd = 2, atkmin = 150, atkmax = 200, range = 1, typeattack = "intarget", effecta = 111, type = COMBAT_PHYSICALDAMAGE},

["Rattata"] = {attackname = "Quick Attack", level = 1, storage = 1900, cd = 2, atkmin = 5, atkmax = 15, range = 1, typeattack = "intarget", effecta = 111, type = COMBAT_PHYSICALDAMAGE},
["Raticate"] = {attackname = "Quick Attack", level = 25, storage = 1900, cd = 2, atkmin = 60, atkmax = 80, range = 1, typeattack = "intarget", effecta = 111, type = COMBAT_PHYSICALDAMAGE},

["Spearow"] = {attackname = "Quick Attack", level = 1, storage = 1900, cd = 2, atkmin = 5, atkmax = 15, range = 1, typeattack = "intarget", effecta = 111, type = COMBAT_PHYSICALDAMAGE},
["Fearow"] = {attackname = "Quick Attack", level = 50, storage = 1900, cd = 2, atkmin = 90, atkmax = 140, range = 1, typeattack = "intarget", effecta = 111, type = COMBAT_PHYSICALDAMAGE},

["Ekans"] = {attackname = "Bite", level = 15, storage = 1905, cd = 2, atkmin = 10, atkmax = 25, range = 1, typeattack = "intarget", effecta = 138, type = COMBAT_PHYSICALDAMAGE},
["Arbok"] = {attackname = "Bite", level = 35, storage = 1905, cd = 2, atkmin = 60, atkmax = 80, range = 1, typeattack = "intarget", effecta = 138, type = COMBAT_PHYSICALDAMAGE},

["Pikachu"] = {attackname = "Thunder Shock", level = 20, storage = 1906, cd = 2, atkmin = 10, atkmax = 25, range = 1, typeattack = "area", arr = arr2, effecta = 207, type = COMBAT_PHYSICALDAMAGE},
["Raichu"] = {attackname = "Thunder Shock", level = 50, storage = 1906, cd = 2, atkmin = 150, atkmax = 200, range = 1, typeattack = "area", arr = arr2, effecta = 207, type = COMBAT_PHYSICALDAMAGE},

["Sandshrew"] = {attackname = "Sand Attack", level = 20, storage = 1907, cd = 2, atkmin = 10, atkmax = 25, range = 1, typeattack = "direcion", effectdir0 = 122, effectdir1 = 121, effectdir2 = 120, effectdir3 = 119, type = COMBAT_PHYSICALDAMAGE},
["Sandslash"] = {attackname = "Sand Attack", level = 55, storage = 1907, cd = 2, atkmin = 150, atkmax = 200, range = 1, typeattack = "direcion", effectdir0 = 122, effectdir1 = 121, effectdir2 = 120, effectdir3 = 119, type = COMBAT_PHYSICALDAMAGE},

["Nidoranfe"] = {attackname = "Quick Attack", level = 10, storage = 1900, cd = 2, atkmin = 10, atkmax = 25, range = 1, typeattack = "intarget", effecta = 111, type = COMBAT_PHYSICALDAMAGE},
["Nidorina"] = {attackname = "Quick Attack", level = 30, storage = 1900, cd = 2, atkmin = 60, atkmax = 80, range = 1, typeattack = "intarget", effecta = 111, type = COMBAT_PHYSICALDAMAGE},
["Nidoqueen"] = {attackname = "Quick Attack", level = 65, storage = 1900, cd = 2, atkmin = 150, atkmax = 200, range = 1, typeattack = "intarget", effecta = 111, type = COMBAT_PHYSICALDAMAGE},
["Nidoranma"] = {attackname = "Quick Attack", level = 10, storage = 1900, cd = 2, atkmin = 10, atkmax = 25, range = 1, typeattack = "intarget", effecta = 111, type = COMBAT_PHYSICALDAMAGE},
["Nidorino"] = {attackname = "Quick Attack", level = 30, storage = 1900, cd = 2, atkmin = 60, atkmax = 80, range = 1, typeattack = "intarget", effecta = 111, type = COMBAT_PHYSICALDAMAGE},
["Nidoking"] = {attackname = "Quick Attack", level = 65, storage = 1900, cd = 2, atkmin = 150, atkmax = 200, range = 1, typeattack = "intarget", effecta = 111, type = COMBAT_PHYSICALDAMAGE},

["Clefairy"] = {attackname = "Doubleslap", level = 20, storage = 1908, cd = 2, atkmin = 30, atkmax = 60, range = 1, typeattack = "intarget", effecta = 148, type = COMBAT_PHYSICALDAMAGE},
["Clefable"] = {attackname = "Doubleslap", level = 45, storage = 1908, cd = 2, atkmin = 90, atkmax = 140, range = 1, typeattack = "intarget", effecta = 148, type = COMBAT_PHYSICALDAMAGE},

["Vulpix"] = {attackname = "Quick Attack", level = 15, storage = 1900, cd = 2, atkmin = 30, atkmax = 60, range = 1, typeattack = "intarget", effecta = 111, type = COMBAT_PHYSICALDAMAGE},
["Ninetales"] = {attackname = "Quick Attack", level = 70, storage = 1900, cd = 2, atkmin = 150, atkmax = 200, range = 1, typeattack = "intarget", effecta = 111, type = COMBAT_PHYSICALDAMAGE},

["Jigglypuff"] = {attackname = "Doubleslap", level = 20, storage = 1908, cd = 2, atkmin = 30, atkmax = 60, range = 1, typeattack = "intarget", effecta = 148, type = COMBAT_PHYSICALDAMAGE},
["Wigglytuff"] = {attackname = "Doubleslap", level = 45, storage = 1908, cd = 2, atkmin = 90, atkmax = 140, range = 1, typeattack = "intarget", effecta = 148, type = COMBAT_PHYSICALDAMAGE},

["Zubat"] = {attackname = "Super Sonic", level = 15, storage = 1909, cd = 2, atkmin = 30, atkmax = 60, range = 1, typeattack = "intarget", effecta = 22, type = COMBAT_PHYSICALDAMAGE},
["Golbat"] = {attackname = "Super Sonic", level = 35, storage = 1909, cd = 2, atkmin = 60, atkmax = 80, range = 1, typeattack = "intarget", effecta = 22, type = COMBAT_PHYSICALDAMAGE},

["Gloom"] = {attackname = "Absorb", level = 25, storage = 1910, cd = 2, atkmin = 30, atkmax = 60, range = 1, typeattack = "intarget", effecta = 8, type = COMBAT_PHYSICALDAMAGE},
["Vileplume"] = {attackname = "Absorb", level = 50, storage = 1910, cd = 2, atkmin = 90, atkmax = 140, range = 1, typeattack = "intarget", effecta = 8, type = COMBAT_PHYSICALDAMAGE},

["Paras"] = {attackname = "Absorb", level = 5, storage = 1910, cd = 2, atkmin = 5, atkmax = 20, range = 1, typeattack = "intarget", effecta = 8, type = COMBAT_PHYSICALDAMAGE},
["Parasect"] = {attackname = "Absorb", level = 50, storage = 1910, cd = 2, atkmin = 90, atkmax = 140, range = 1, typeattack = "intarget", effecta = 8, type = COMBAT_PHYSICALDAMAGE},

["Venonat"] = {attackname = "Absorb", level = 5, storage = 1910, cd = 2, atkmin = 5, atkmax = 20, range = 1, typeattack = "intarget", effecta = 8, type = COMBAT_PHYSICALDAMAGE},
["Venomoth"] = {attackname = "Absorb", level = 50, storage = 1910, cd = 2, atkmin = 90, atkmax = 140, range = 1, typeattack = "intarget", effecta = 8, type = COMBAT_PHYSICALDAMAGE},

["Diglett"] = {attackname = "Sand Attack", level = 10, storage = 1907, cd = 2, atkmin = 10, atkmax = 25, range = 1, typeattack = "direcion", effectdir0 = 122, effectdir1 = 121, effectdir2 = 120, effectdir3 = 119, type = COMBAT_PHYSICALDAMAGE},
["Dugtrio"] = {attackname = "Sand Attack", level = 35, storage = 1907, cd = 2, atkmin = 60, atkmax = 80, range = 1, typeattack = "direcion", effectdir0 = 122, effectdir1 = 121, effectdir2 = 120, effectdir3 = 119, type = COMBAT_PHYSICALDAMAGE},

["Meowth"] = {attackname = "Slash", level = 15, storage = 1912, cd = 2, atkmin = 10, atkmax = 25, range = 1, typeattack = "intarget", effecta = 159, type = COMBAT_PHYSICALDAMAGE},
["Persian"] = {attackname = "Slash", level = 30, storage = 1912, cd = 2, atkmin = 60, atkmax = 80, range = 1, typeattack = "intarget", effecta = 159, type = COMBAT_PHYSICALDAMAGE},

["Psyduck"] = {attackname = "Water Gun", level = 20, storage = 1913, cd = 2, atkmin = 30, atkmax = 60, range = 1, typeattack = "intarget", effecta = 68, type = COMBAT_PHYSICALDAMAGE},
["Golduck"] = {attackname = "Doubleslap", level = 55, storage = 1908, cd = 2, atkmin = 90, atkmax = 140, range = 1, typeattack = "intarget", effecta = 148, type = COMBAT_PHYSICALDAMAGE},

["Mankey"] = {attackname = "Scratch", level = 15, storage = 1901, cd = 2, atkmin = 10, atkmax = 25, range = 1, typeattack = "intarget", effecta = 142, type = COMBAT_PHYSICALDAMAGE},
["Primeape"] = {attackname = "Scratch", level = 35, storage = 1901, cd = 2, atkmin = 60, atkmax = 80, range = 1, typeattack = "intarget", effecta = 142, type = COMBAT_PHYSICALDAMAGE},

["Growlithe"] = {attackname = "Roar", level = 20, storage = 1914, cd = 2, atkmin = 30, atkmax = 60, range = 1, typeattack = "intarget", effecta = 159, type = COMBAT_PHYSICALDAMAGE},
["Arcanine"] = {attackname = "Roar", level = 90, storage = 1914, cd = 2, atkmin = 150, atkmax = 200, range = 1, typeattack = "intarget", effecta = 159, type = COMBAT_PHYSICALDAMAGE},

["Poliwag"] = {attackname = "Doubleslap", level = 5, storage = 1908, cd = 2, atkmin = 5, atkmax = 20, range = 1, typeattack = "intarget", effecta = 148, type = COMBAT_PHYSICALDAMAGE},
["Poliwhirl"] = {attackname = "MudShot", level = 25, storage = 1915, cd = 2, atkmin = 60, atkmax = 80, range = 1, typeattack = "intarget", effecta = 116, type = COMBAT_PHYSICALDAMAGE},
["Poliwrath"] = {attackname = "MudShot", level = 65, storage = 1915, cd = 2, atkmin = 150, atkmax = 200, range = 1, typeattack = "intarget", effecta = 116, type = COMBAT_PHYSICALDAMAGE},

["Abra"] = {attackname = "Psybeam", level = 20, storage = 1916, cd = 2, atkmin = 30, atkmax = 60, range = 1, typeattack = "direcion", effectdir0 = 108, effectdir1 = 109, effectdir2 = 108, effectdir3 = 106, effectdir4 = 107, effectdir5 = 106, effectdir6 = 108, effectdir7 = 109, effectdir8 = 108, effectdir9 = 107, effectdir10 = 106, effectdir11 = 107, type = COMBAT_PHYSICALDAMAGE},
["Kadabra"] = {attackname = "Psybeam", level = 45, storage = 1916, cd = 2, atkmin = 90, atkmax = 140, range = 1, typeattack = "direcion", effectdir0 = 108, effectdir1 = 109, effectdir2 = 108, effectdir3 = 106, effectdir4 = 107, effectdir5 = 106, effectdir6 = 108, effectdir7 = 109, effectdir8 = 108, effectdir9 = 107, effectdir10 = 106, effectdir11 = 107, type = COMBAT_PHYSICALDAMAGE},
["Alakazam"] = {attackname = "Psybeam", level = 80, storage = 1916, cd = 2, atkmin = 150, atkmax = 200, range = 1, typeattack = "direcion", effectdir0 = 108, effectdir1 = 109, effectdir2 = 108, effectdir3 = 106, effectdir4 = 107, effectdir5 = 106, effectdir6 = 108, effectdir7 = 109, effectdir8 = 108, effectdir9 = 107, effectdir10 = 106, effectdir11 = 107, type = COMBAT_PHYSICALDAMAGE},

["Machop"] = {attackname = "Triple Punch", level = 20, storage = 1917, cd = 2, atkmin = 30, atkmax = 60, range = 1, typeattack = "intarget", effecta = 110, type = COMBAT_PHYSICALDAMAGE},
["Machoke"] = {attackname = "Triple Punch", level = 47, storage = 1917, cd = 2, atkmin = 90, atkmax = 140, range = 1, typeattack = "intarget", effecta = 110, type = COMBAT_PHYSICALDAMAGE},
["Machamp"] = {attackname = "Triple Punch", level = 70, storage = 1917, cd = 2, atkmin = 150, atkmax = 200, range = 1, typeattack = "intarget", effecta = 110, type = COMBAT_PHYSICALDAMAGE},

["Bellsprout"] = {attackname = "Razor Leaf", level = 10, storage = 1918, cd = 2, atkmin = 10, atkmax = 25, range = 1, typeattack = "intarget", effecta = 79, type = COMBAT_PHYSICALDAMAGE},
["Weepinbell"] = {attackname = "Razor Leaf", level = 25, storage = 1918, cd = 2, atkmin = 30, atkmax = 60, range = 1, typeattack = "intarget", effecta = 79, type = COMBAT_PHYSICALDAMAGE},
["Victreebel"] = {attackname = "Razor Leaf", level = 50, storage = 1918, cd = 2, atkmin = 90, atkmax = 140, range = 1, typeattack = "intarget", effecta = 79, type = COMBAT_PHYSICALDAMAGE},

["Tentacool"] = {attackname = "Acid", level = 15, storage = 1928, cd = 2, atkmin = 10, atkmax = 30, range = 1, typeattack = "intarget", effecta = 20, type = COMBAT_PHYSICALDAMAGE},
["Tentacruel"] = {attackname = "Super Sonic", level = 75, storage = 1909, cd = 2, atkmin = 150, atkmax = 200, range = 1, typeattack = "intarget", effecta = 22, type = COMBAT_PHYSICALDAMAGE},

["Geodude"] = {attackname = "Rock Throw", level = 15, storage = 1919, cd = 2, atkmin = 10, atkmax = 30, range = 1, typeattack = "intarget", effecta = 34, type = COMBAT_PHYSICALDAMAGE},
["Graveler"] = {attackname = "Rock Throw", level = 40, storage = 1919, cd = 2, atkmin = 90, atkmax = 140, range = 1, typeattack = "intarget", effecta = 34, type = COMBAT_PHYSICALDAMAGE},
["Golem"] = {attackname = "Rock Throw", level = 70, storage = 1919, cd = 2, atkmin = 150, atkmax = 200, range = 1, typeattack = "intarget", effecta = 34, type = COMBAT_PHYSICALDAMAGE},

["Ponyta"] = {attackname = "Quick Attack", level = 20, storage = 1900, cd = 2, atkmin = 30, atkmax = 60, range = 1, typeattack = "intarget", effecta = 111, type = COMBAT_PHYSICALDAMAGE},
["Rapidash"] = {attackname = "Quick Attack", level = 55, storage = 1900, cd = 2, atkmin = 90, atkmax = 140, range = 1, typeattack = "intarget", effecta = 111, type = COMBAT_PHYSICALDAMAGE},

["Slowpoke"] = {attackname = "Aqua Tail", level = 20, storage = 1920, cd = 2, atkmin = 30, atkmax = 60, range = 1, typeattack = "intarget", effecta = 1, type = COMBAT_PHYSICALDAMAGE},
["Slowbro"] = {attackname = "Aqua Tail", level = 45, storage = 1920, cd = 2, atkmin = 90, atkmax = 140, range = 1, typeattack = "intarget", effecta = 1, type = COMBAT_PHYSICALDAMAGE},

["Magnemite"] = {attackname = "Super Sonic", level = 15, storage = 1909, cd = 2, atkmin = 10, atkmax = 25, range = 1, typeattack = "intarget", effecta = 22, type = COMBAT_PHYSICALDAMAGE},
["Magneton"] = {attackname = "Super Sonic", level = 45, storage = 1909, cd = 2, atkmin = 90, atkmax = 140, range = 1, typeattack = "intarget", effecta = 22, type = COMBAT_PHYSICALDAMAGE},

["Farfetch'd"] = {attackname = "Sand Attack", level = 40, storage = 1907, cd = 2, atkmin = 60, atkmax = 80, range = 1, typeattack = "direcion", effectdir0 = 122, effectdir1 = 121, effectdir2 = 120, effectdir3 = 119, type = COMBAT_PHYSICALDAMAGE},

["Doduo"] = {attackname = "Sand Attack", level = 10, storage = 1907, cd = 2, atkmin = 10, atkmax = 25, range = 1, typeattack = "direcion", effectdir0 = 122, effectdir1 = 121, effectdir2 = 120, effectdir3 = 119, type = COMBAT_PHYSICALDAMAGE},
["Dodrio"] = {attackname = "Sand Attack", level = 45, storage = 1907, cd = 2, atkmin = 90, atkmax = 140, range = 1, typeattack = "direcion", effectdir0 = 122, effectdir1 = 121, effectdir2 = 120, effectdir3 = 119, type = COMBAT_PHYSICALDAMAGE},

["Seel"] = {attackname = "Headbutt", level = 20, storage = 1902, cd = 2, atkmin = 30, atkmax = 60, range = 1, typeattack = "intarget", effecta = 118, type = COMBAT_PHYSICALDAMAGE},
["Dewgong"] = {attackname = "Aqua Tail", level = 45, storage = 1920, cd = 2, atkmin = 90, atkmax = 140, range = 1, typeattack = "intarget", effecta = 1, type = COMBAT_PHYSICALDAMAGE},

["Grimer"] = {attackname = "Mud Shot", level = 15, storage = 1915, cd = 2, atkmin = 10, atkmax = 25, range = 1, typeattack = "intarget", effecta = 116, type = COMBAT_PHYSICALDAMAGE},
["Muk"] = {attackname = "Mud Shot ", level = 35, storage = 1915, cd = 2, atkmin = 60, atkmax = 80, range = 1, typeattack = "intarget", effecta = 116, type = COMBAT_PHYSICALDAMAGE},

["Shellder"] = {attackname = "Lick", level = 10, storage = 1921, cd = 2, atkmin = 10, atkmax = 25, range = 1, typeattack = "intarget", effecta = 145, type = COMBAT_PHYSICALDAMAGE},
["Cloyster"] = {attackname = "Lick", level = 60, storage = 1921, cd = 2, atkmin = 90, atkmax = 140, range = 1, typeattack = "intarget", effecta = 145, type = COMBAT_PHYSICALDAMAGE},

["Gastly"] = {attackname = "Lick", level = 20, storage = 1921, cd = 2, atkmin = 30, atkmax = 60, range = 1, typeattack = "intarget", effecta = 145, type = COMBAT_PHYSICALDAMAGE},
["Haunter"] = {attackname = "Lick", level = 45, storage = 1921, cd = 2, atkmin = 90, atkmax = 140, range = 1, typeattack = "intarget", effecta = 145, type = COMBAT_PHYSICALDAMAGE},
["Gengar"] = {attackname = "Lick", level = 80, storage = 1921, cd = 2, atkmin = 150, atkmax = 200, range = 1, typeattack = "intarget", effecta = 145, type = COMBAT_PHYSICALDAMAGE},

["Onix"] = {attackname = "Sand Attack", level = 50, storage = 1907, cd = 2, atkmin = 90, atkmax = 140, range = 1, typeattack = "direcion", effectdir0 = 122, effectdir1 = 121, effectdir2 = 120, effectdir3 = 119, type = COMBAT_PHYSICALDAMAGE},

["Drowzee"] = {attackname = "Headbutt", level = 25, storage = 1902, cd = 2, atkmin = 30, atkmax = 60, range = 1, typeattack = "intarget", effecta = 118, type = COMBAT_PHYSICALDAMAGE},
["Hypno"] = {attackname = "Headbutt", level = 55, storage = 1902, cd = 2, atkmin = 90, atkmax = 140, range = 1, typeattack = "intarget", effecta = 118, type = COMBAT_PHYSICALDAMAGE},

["Krabby"] = {attackname = "Bubbles", level = 10, storage = 1922, cd = 2, atkmin = 10, atkmax = 25, range = 1, typeattack = "intarget", effecta = 68, type = COMBAT_PHYSICALDAMAGE},
["Kingler"] = {attackname = "Bubbles", level = 40, storage = 1922, cd = 2, atkmin = 90, atkmax = 140, range = 1, typeattack = "intarget", effecta = 68, type = COMBAT_PHYSICALDAMAGE},

["Voltorb"] = {attackname = "Thunder Shock", level = 10, storage = 1906, cd = 2, atkmin = 10, atkmax = 25, range = 1, typeattack = "area", arr = arr2, effecta = 207, type = COMBAT_PHYSICALDAMAGE},
["Electrode"] = {attackname = "Thunder Shock", level = 35, storage = 906, cd = 2, atkmin = 60, atkmax = 80, range = 1, typeattack = "area", arr = arr2, effecta = 207, type = COMBAT_PHYSICALDAMAGE},

["Exeggcute"] = {attackname = "Hypnosis", level = 15, storage = 1923, cd = 2, atkmin = 10, atkmax = 25, range = 1, typeattack = "area", arr = arr2, effecta = 136, type = COMBAT_PHYSICALDAMAGE},
["Exeggutor"] = {attackname = "Hypnosis", level = 55, storage = 1923, cd = 2, atkmin = 90, atkmax = 140, range = 1, typeattack = "area", arr = arr2, effecta = 136, type = COMBAT_PHYSICALDAMAGE},

["Cubone"] = {attackname = "Headbutt", level = 10, storage = 1902, cd = 2, atkmin = 30, atkmax = 60, range = 1, typeattack = "intarget", effecta = 118, type = COMBAT_PHYSICALDAMAGE},
["Marowak"] = {attackname = "Headbutt", level = 55, storage = 1902, cd = 2, atkmin = 90, atkmax = 140, range = 1, typeattack = "intarget", effecta = 118, type = COMBAT_PHYSICALDAMAGE},

["Hitmonlee"] = {attackname = "Triple Kick Lee", level = 60, storage = 1924, cd = 2, atkmin = 90, atkmax = 140, range = 1, typeattack = "intarget", effecta = 110, type = COMBAT_PHYSICALDAMAGE},
["Hitmonchan"] = {attackname = "Triple Punch", level = 60, storage = 1924, cd = 2, atkmin = 90, atkmax = 140, range = 1, typeattack = "intarget", effecta = 110, type = COMBAT_PHYSICALDAMAGE},

["Lickitung"] = {attackname = "Lick", level = 55, storage = 1921, cd = 2, atkmin = 90, atkmax = 140, range = 1, typeattack = "intarget", effecta = 145, type = COMBAT_PHYSICALDAMAGE},

["Koffing"] = {attackname = "Mud Shot", level = 15, storage = 1915, cd = 2, atkmin = 10, atkmax = 25, range = 1, typeattack = "intarget", effecta = 116, type = COMBAT_PHYSICALDAMAGE},
["Weezing"] = {attackname = "Mud Shot", level = 35, storage = 1915, cd = 2, atkmin = 60, atkmax = 80, range = 1, typeattack = "intarget", effecta = 116, type = COMBAT_PHYSICALDAMAGE},

["Chansey"] = {attackname = "Doubleslap", level = 60, storage = 1908, cd = 2, atkmin = 150, atkmax = 200, range = 1, typeattack = "intarget", effecta = 148, type = COMBAT_PHYSICALDAMAGE},

["Tangela"] = {attackname = "Absorb", level = 50, storage = 1910, cd = 2, atkmin = 90, atkmax = 140, range = 1, typeattack = "intarget", effecta = 8, type = COMBAT_PHYSICALDAMAGE},

["Kangaskhan"] = {attackname = "Bite", level = 80, storage = 1905, cd = 2, atkmin = 150, atkmax = 200, range = 1, typeattack = "intarget", effecta = 138, type = COMBAT_PHYSICALDAMAGE},

["Horsea"] = {attackname = "Mud Shot", level = 10, storage = 1915, cd = 2, atkmin = 10, atkmax = 25, range = 1, typeattack = "intarget", effecta = 116, type = COMBAT_PHYSICALDAMAGE},
["Seadra"] = {attackname = "Mud Shot", level = 45, storage = 1915, cd = 2, atkmin = 90, atkmax = 140, range = 1, typeattack = "intarget", effecta = 116, type = COMBAT_PHYSICALDAMAGE},

["Goldeen"] = {attackname = "Horn Attack", level = 10, storage = 1904, cd = 2, atkmin = 10, atkmax = 25, range = 1, typeattack = "intarget", effecta = 9, type = COMBAT_PHYSICALDAMAGE},
["Seaking"] = {attackname = "Horn Attack", level = 45, storage = 1904, cd = 2, atkmin = 60, atkmax = 80, range = 1, typeattack = "intarget", effecta = 9, type = COMBAT_PHYSICALDAMAGE},

["Staryu"] = {attackname = "Swift", level = 15, storage = 1925, cd = 2, atkmin = 30, atkmax = 60, range = 1, typeattack = "intarget", effecta = 7, type = COMBAT_PHYSICALDAMAGE},
["Starmie"] = {attackname = "Swift", level = 35, storage = 1925, cd = 2, atkmin = 60, atkmax = 80, range = 1, typeattack = "intarget", effecta = 7, type = COMBAT_PHYSICALDAMAGE},

["Mr.Mime"] = {attackname = "Doubleslap", level = 60, storage = 1908, cd = 2, atkmin = 90, atkmax = 160, range = 1, typeattack = "intarget", effecta = 148, type = COMBAT_PHYSICALDAMAGE},

["Scyther"] = {attackname = "Quick Attack", level = 80, storage = 1900, cd = 2, atkmin = 160, atkmax = 210, range = 1, typeattack = "intarget", effecta = 111, type = COMBAT_PHYSICALDAMAGE},

["Jynx"] = {attackname = "Lovely Kiss", level = 80, storage = 1926, cd = 2, atkmin = 160, atkmax = 210, range = 1, typeattack = "intarget", effecta = 147, type = COMBAT_PHYSICALDAMAGE},

["Electabuzz"] = {attackname = "Quick Attack", level = 80, storage = 1900, cd = 2, atkmin = 160, atkmax = 210, range = 1, typeattack = "intarget", effecta = 111, type = COMBAT_PHYSICALDAMAGE},

["Magmar"] = {attackname = "Scratch", level = 80, storage = 1901, cd = 2, atkmin = 160, atkmax = 210, range = 1, typeattack = "intarget", effecta = 142, type = COMBAT_PHYSICALDAMAGE},

["Pinsir"] = {attackname = "Scratch", level = 45, storage = 1901, cd = 2, atkmin = 90, atkmax = 140, range = 1, typeattack = "intarget", effecta = 142, type = COMBAT_PHYSICALDAMAGE},

["Tauros"] = {attackname = "Headbutt", level = 45, storage = 1902, cd = 2, atkmin = 90, atkmax = 140, range = 1, typeattack = "intarget", effecta = 118, type = COMBAT_PHYSICALDAMAGE},

["Magikarp"] = {attackname = "Splash", level = 5, storage = 1927, cd = 2, atkmin = 5, atkmax = 15, range = 1, typeattack = "intarget", effecta = 53, type = COMBAT_PHYSICALDAMAGE},

["Gyarados"] = {attackname = "Roar", level = 85, storage = 1914, cd = 2, atkmin = 160, atkmax = 215, range = 1, typeattack = "intarget", effecta = 159, type = COMBAT_PHYSICALDAMAGE},

["Lapras"] = {attackname = "Horn Attack", level = 80, storage = 1904, cd = 2, atkmin = 150, atkmax = 200, range = 1, typeattack = "intarget", effecta = 9, type = COMBAT_PHYSICALDAMAGE},

["Eevee"] = {attackname = "Sand Attack", level = 20, storage = 1907, cd = 2, atkmin = 30, atkmax = 60, range = 1, typeattack = "direcion", effectdir0 = 122, effectdir1 = 121, effectdir2 = 120, effectdir3 = 119, type = COMBAT_PHYSICALDAMAGE},

["Vaporeon"] = {attackname = "Quick Attack", level = 55, storage = 1900, cd = 2, atkmin = 90, atkmax = 140, range = 1, typeattack = "intarget", effecta = 111, type = COMBAT_PHYSICALDAMAGE},

["Jolteon"] = {attackname = "Quick Attack", level = 55, storage = 1900, cd = 2, atkmin = 90, atkmax = 140, range = 1, typeattack = "intarget", effecta = 111, type = COMBAT_PHYSICALDAMAGE},

["Flareon"] = {attackname = "Quick Attack", level = 55, storage = 1900, cd = 2, atkmin = 90, atkmax = 140, range = 1, typeattack = "intarget", effecta = 111, type = COMBAT_PHYSICALDAMAGE},

["Porygon"] = {attackname = "Super Sonic", level = 40, storage = 1909, cd = 2, atkmin = 70, atkmax = 130, range = 1, typeattack = "intarget", effecta = 22, type = COMBAT_PHYSICALDAMAGE},

["Omanyte"] = {attackname = "Bite", level = 20, storage = 1905, cd = 2, atkmin = 30, atkmax = 60, range = 1, typeattack = "intarget", effecta = 138, type = COMBAT_PHYSICALDAMAGE},
["Omastar"] = {attackname = "Bite", level = 80, storage = 1905, cd = 2, atkmin = 160, atkmax = 210, range = 1, typeattack = "intarget", effecta = 138, type = COMBAT_PHYSICALDAMAGE},

["Kabuto"] = {attackname = "Scratch", level = 20, storage = 1901, cd = 2, atkmin = 30, atkmax = 60, range = 1, typeattack = "intarget", effecta = 142, type = COMBAT_PHYSICALDAMAGE},
["Kabutops"] = {attackname = "Scratch", level = 80, storage = 1901, cd = 2, atkmin = 160, atkmax = 210, range = 1, typeattack = "intarget", effecta = 142, type = COMBAT_PHYSICALDAMAGE},

["Snorlax"] = {attackname = "Scratch", level = 80, storage = 1901, cd = 2, atkmin = 160, atkmax = 210, range = 1, typeattack = "intarget", effecta = 142, type = COMBAT_PHYSICALDAMAGE},

["Dratini"] = {attackname = "Aqua Tail", level = 20, storage = 1920, cd = 2, atkmin = 30, atkmax = 60, range = 1, typeattack = "intarget", effecta = 1, type = COMBAT_PHYSICALDAMAGE},
["Dragonair"] = {attackname = "Headbutt", level = 60, storage = 1902, cd = 2, atkmin = 100, atkmax = 150, range = 1, typeattack = "intarget", effecta = 118, type = COMBAT_PHYSICALDAMAGE},
["Dragonite"] = {attackname = "Headbutt", level = 100, storage = 1902, cd = 2, atkmin = 170, atkmax = 220, range = 1, typeattack = "intarget", effecta = 118, type = COMBAT_PHYSICALDAMAGE},

["Rhydon"] = {attackname = "Iron Tail", level = 30, storage = 1929, cd = 2, atkmin = 60, atkmax = 80, range = 1, typeattack = "intarget", effecta = 160, type = COMBAT_PHYSICALDAMAGE},
["Rhydon"] = {attackname = "Iron Tail", level = 75, storage = 1929, cd = 2, atkmin = 150, atkmax = 200, range = 1, typeattack = "intarget", effecta = 160, type = COMBAT_PHYSICALDAMAGE},


} 


function onSay(cid, words, param, target) 

               if #getCreatureSummons(cid) == 0 then 
                       return doPlayerSendCancel(cid, "You do not have any pokemon.") 
               end 

               if getPlayerStorageValue(cid, 102032) == 1 then 
                       doPlayerSendCancel(cid, "Your pokemon is exhausted.") 
                       doSendMagicEffect(getCreaturePosition(cid), 2) 
               return true 
               end 

       for i,x in pairs(pokes) do 

            local storage = x.storage 
            local cd = x.cd 


                                                if getCreatureSummons(cid) ~= 0 then 
                                                  if not getTilePzInfo(getPlayerPosition(cid)) then 
                             if getCreatureName(getCreatureSummons(cid)[1]) == i then 
                              if getCreatureTarget(cid) ~= 0 then 
                               if not isSummon(getCreatureTarget(cid)) or not isPlayer(getCreatureTarget(cid)) then 
                                  if getPlayerLevel(cid) >= x.level then 
                                                                                      if os.time()-getPlayerStorageValue(cid, storage) <= cd then 
                                                                                                       minutes,seconds = getTime(cd-(os.time()-getPlayerStorageValue(cid, storage))) 
                                                                                                       return doPlayerSendTextMessage(cid, 26, "You need to wait ".. seconds .. " seconds to use " ..x.attackname..".") 
                                                                                                       end 

                                                                          if x.typeattack == "distance" then 
                                                                                if getDistanceBetween(getCreaturePosition(getCreatureSummons(cid)[1]), getCreaturePosition(getCreatureTarget(cid))) <= x.range then 
                                                                                  doSendDistanceShoot(getCreaturePosition(getCreatureSummons(cid)[1]), getCreaturePosition(getCreatureTarget(cid)), x.effectd) 
                                                                                  doSendMagicEffect(getCreaturePosition(getCreatureTarget(cid)), x.effecta) 
                                                                                  doAreaCombatHealth(getCreatureSummons(cid)[1], x.type, getCreaturePosition(getCreatureTarget(cid)), x.arr, -(x.atkmin+getPlayerLevel(cid)), -(x.atkmax+getPlayerLevel(cid)),  x.effecta) 
                                                                                  doCreatureSay(cid, ""..i..", "..x.attackname..".", 1) 
                                                                                  setPlayerStorageValue(cid, storage, os.time()+cd) 
                                                                                  setPlayerStorageValue(cid, 102032, 1) 
                                                                                  addEvent(setPlayerStorageValue, 1*1000, cid, 102032, -1) 
                                                                        else 
                                                                          doPlayerSendCancel(cid, "Target is far away.") 
                                                                                  doSendMagicEffect(getCreaturePosition(cid), 2) 
                                        end 
                                          return true 
                                      end 

                                      if x.typeattack == "area" then 
                                        if getDistanceBetween(getCreaturePosition(getCreatureSummons(cid)[1]), getCreaturePosition(getCreatureTarget(cid))) <= x.range then 
                                          doSendMagicEffectInArea(getCreaturePosition(getCreatureSummons(cid)[1]),x.effecta,x.arr) 
                                                                                  doAreaCombatHealth(getCreatureSummons(cid)[1], x.type, getCreaturePosition(getCreatureTarget(cid)), x.arr, -(x.atkmin+getPlayerLevel(cid)), -(x.atkmax+getPlayerLevel(cid)),  x.effecta) 
                                                                                  doCreatureSay(cid,""..i..", "..x.attackname..".", 1) 
                                                                                  setPlayerStorageValue(cid, storage, os.time()+cd) 
                                                                                       setPlayerStorageValue(cid, 102032, 1) 
                                                                                  addEvent(setPlayerStorageValue, 1*1000, cid, 102032, -1) 
                                        else 
                                                                          doPlayerSendCancel(cid, "Target is far away.") 
                                                                                  doSendMagicEffect(getCreaturePosition(cid), 2) 
                                        end 
                                      return true 
                                      end 

                                      if x.typeattack == "direcion" then 
                                       if getDistanceBetween(getCreaturePosition(getCreatureSummons(cid)[1]), getCreaturePosition(getCreatureTarget(cid))) <= x.range then 
                                        if getCreatureLookDir(getCreatureSummons(cid)[1]) == 0 then 
                                           doSendMagicEffect(getPositionByDirection(getCreaturePosition(getCreatureSummons(cid)[1]), 0, 1),x.effectdir0) 
                                           doAreaCombatHealth(getCreatureSummons(cid)[1], x.type, getCreaturePosition(getCreatureTarget(cid)), x.arr, -(x.atkmin+getPlayerLevel(cid)), -(x.atkmax+getPlayerLevel(cid)),  x.effecta) 
                                                                                       setPlayerStorageValue(cid, storage, os.time()+cd) 
                                                                                   doCreatureSay(cid,""..i..", "..x.attackname..".", 1) 
                                                                                       setPlayerStorageValue(cid, 102032, 1) 
                                                                                  addEvent(setPlayerStorageValue, 1*1000, cid, 102032, -1) 
                                        elseif getCreatureLookDir(getCreatureSummons(cid)[1]) == 1 then 
                                           doSendMagicEffect(getPositionByDirection(getCreaturePosition(getCreatureSummons(cid)[1]), 1, 1),x.effectdir1) 
                                           doAreaCombatHealth(getCreatureSummons(cid)[1], x.type, getCreaturePosition(getCreatureTarget(cid)), x.arr, -(x.atkmin+getPlayerLevel(cid)), -(x.atkmax+getPlayerLevel(cid)),  x.effecta) 
                                                                                       setPlayerStorageValue(cid, storage, os.time()+cd) 
                                                                                   doCreatureSay(cid,""..i..", "..x.attackname..".", 1) 
                                                                                       setPlayerStorageValue(cid, 102032, 1) 
                                                                                  addEvent(setPlayerStorageValue, 1*1000, cid, 102032, -1) 
                                        elseif getCreatureLookDir(getCreatureSummons(cid)[1]) == 2 then 
                                           doSendMagicEffect(getPositionByDirection(getCreaturePosition(getCreatureSummons(cid)[1]), 2, 1),x.effectdir2) 
                                           doAreaCombatHealth(getCreatureSummons(cid)[1], x.type, getCreaturePosition(getCreatureTarget(cid)), x.arr, -(x.atkmin+getPlayerLevel(cid)), -(x.atkmax+getPlayerLevel(cid)),  x.effecta) 
                                                                                       setPlayerStorageValue(cid, storage, os.time()+cd) 
                                                                                   doCreatureSay(cid,""..i..", "..x.attackname..".", 1) 
                                                                                       setPlayerStorageValue(cid, 102032, 1) 
                                                                                  addEvent(setPlayerStorageValue, 1*1000, cid, 102032, -1) 
                                        elseif getCreatureLookDir(getCreatureSummons(cid)[1]) == 3 then 
                                           doSendMagicEffect(getPositionByDirection(getCreaturePosition(getCreatureSummons(cid)[1]), 3, 1),x.effectdir3) 
                                           doAreaCombatHealth(getCreatureSummons(cid)[1], x.type, getCreaturePosition(getCreatureTarget(cid)), x.arr, -(x.atkmin+getPlayerLevel(cid)), -(x.atkmax+getPlayerLevel(cid)),  x.effecta) 
                                                                                       setPlayerStorageValue(cid, storage, os.time()+cd) 
                                           doCreatureSay(cid,""..i..", "..x.attackname..".", 1) 
                                                                                       setPlayerStorageValue(cid, 102032, 1) 
                                                                                  addEvent(setPlayerStorageValue, 1*1000, cid, 102032, -1) 
                                        end 
                                                else 
                                                                          doPlayerSendCancel(cid, "Target is far away.") 
                                                                                  doSendMagicEffect(getCreaturePosition(cid), 2) 
                                        end 
                                      return true 
                                      end 

                                      if x.typeattack == "intarget" then 
                                         if getDistanceBetween(getCreaturePosition(getCreatureSummons(cid)[1]), getCreaturePosition(getCreatureTarget(cid))) <= x.range then 
                                          doSendMagicEffect(getCreaturePosition(getCreatureTarget(cid)), x.effecta) 
                                                                                  doAreaCombatHealth(getCreatureSummons(cid)[1], x.type, getCreaturePosition(getCreatureTarget(cid)), x.arr, -(x.atkmin+getPlayerLevel(cid)), -(x.atkmax+getPlayerLevel(cid)),  x.effecta) 
                                                                                  doCreatureSay(cid, ""..i..", "..x.attackname..".", 1) 
                                                                                  setPlayerStorageValue(cid, storage, os.time()+cd) 
                                                                                  setPlayerStorageValue(cid, 102032, 1) 
                                                                                  addEvent(setPlayerStorageValue, 1*1000, cid, 102032, -1) 
                                                                        else 
                                                                          doPlayerSendCancel(cid, "Target is far away.") 
                                                                                  doSendMagicEffect(getCreaturePosition(cid), 2) 
                                        end 
                                      return true 
                                      end 



                                   else 
                                               doPlayerSendTextMessage(cid, 27, "You need level "..x.level.." to use " ..x.attackname..".") 
                                                                                           doSendMagicEffect(getCreaturePosition(cid), 2) 
                                               return true 
                                   end 
                               else 
                                           doPlayerSendCancel(cid, "Invalid Target.") 
                                                                                       doSendMagicEffect(getCreaturePosition(cid), 2) 
                                          return true 
                               end 
                              else 
                                           doPlayerSendCancel(cid, "Target not is avalied.") 
                                                                                       doSendMagicEffect(getCreaturePosition(cid), 2) 
                                          return true 
                               end 
                                                         end 
                           else 
                                   doPlayerSendCancel(cid, "Do not Attack in Protection Zone.") 
                                                                       doSendMagicEffect(getCreaturePosition(cid), 2) 
                                    return true 
                           end 
                                               else 
                            doPlayerSendCancel(cid, "You need pokemon to use attacks.") 
                                                        doSendMagicEffect(getCreaturePosition(cid), 2) 
                            return true 
                                           end 

       end 
return true 
end

 

M2

function Poison(cid) -- by miih  
   local arrpoison = {
       {0, 0, 0},
       {0, 1, 0},
       {0, 0, 0},
}

for i = 1, 6 do
        addEvent(doSendMagicEffect, i*1000, getCreaturePosition(getCreatureTarget(cid)), 8)
        addEvent(doAreaCombatHealth, i*1000, getCreatureSummons(cid)[1], COMBAT_EARTHDAMAGE, getCreaturePosition(getCreatureTarget(cid)), arrpoison, -10, -15,  8)
end
return true
end

function isSummon(uid)
return uid ~= getCreatureMaster(uid) or false
end

function doSendMagicEffectInArea(pos,effect,area,cid) -- Function by mock
       local centro = {}
       centro.y = math.floor(table.getn(area)/2)+1
       for y = 1, table.getn(area) do
               for x = 1, table.getn(area[y]) do
                       if area[y][x] > 0 then
                               centro.x = math.floor(table.getn(area[y])/2)+1
                               if type(effect) == 'table' then
                                       doSendMagicEffect({x=pos.x+x-centro.x,y=pos.y+y-centro.y,z= pos.z},(effect[area[y][x]] or 0),cid)
                               else
                                       doSendMagicEffect({x=pos.x+x-centro.x,y=pos.y+y-centro.y,z= pos.z},effect or 0,cid)
                               end
                       end
               end
       end
       return true
end

function getTime(s) -- by : Mkalo.
       local n = math.floor(s / 60)
       s = s - (60 * n)
       return n, s
end

-- AREAS --
local arr1 = {
       {0, 0, 0, 1, 0, 0, 0},
       {0, 0, 1, 1, 1, 0, 0},
       {0, 1, 1, 1, 1, 1, 0},
       {1, 1, 1, 0, 1, 1, 1},
       {0, 1, 1, 1, 1, 1, 0},
       {0, 0, 1, 1, 1, 0, 0},
       {0, 0, 0, 1, 0, 0, 0},
}

-- M1 System, by: XotserX. --


local pokes = {
["Bulbasaur"] = {attackname = "Razor Leaf", level = 20, storage = 2000, cd = 2, atkmin = 100, atkmax = 130, range = 1, typeattack = "intarget", effecta = 79, type = COMBAT_PHYSICALDAMAGE},
["Ivysaur"] = {attackname = "Razor Leaf ", level = 40, storage = 2000, cd = 2, atkmin = 150, atkmax = 170, range = 1, typeattack = "intarget", effecta = 79, type = COMBAT_PHYSICALDAMAGE},
["Venusaur"] = {attackname = "Razor Leaf ", level = 85, storage = 2000, cd = 2, atkmin = 270, atkmax = 310, range = 1, typeattack = "intarget", effecta = 79, type = COMBAT_PHYSICALDAMAGE},

["Charmander"] = {attackname = "Ember", level = 20, storage = 2000, cd = 2, atkmin = 100, atkmax = 130, range = 1, typeattack = "intarget", effecta = 35, type = COMBAT_PHYSICALDAMAGE},
["Charmeleon"] = {attackname = "Ember", level = 40, storage = 2000, cd = 2, atkmin = 150, atkmax = 170, range = 1, typeattack = "intarget", effecta = 35, type = COMBAT_PHYSICALDAMAGE},
["Charizard"] = {attackname = "Ember", level = 85, storage = 2000, cd = 2, atkmin = 270, atkmax = 310, range = 1, typeattack = "intarget", effecta = 35, type = COMBAT_PHYSICALDAMAGE},

["Squirtle"] = {attackname = "Bubbles", level = 20, storage = 2000, cd = 2, atkmin = 100, atkmax = 130, range = 1, typeattack = "intarget", effecta = 68, type = COMBAT_PHYSICALDAMAGE},
["Wartortle"] = {attackname = "Bubbles", level = 40, storage = 2000, cd = 2, atkmin = 150, atkmax = 170, range = 1, typeattack = "intarget", effecta = 68, type = COMBAT_PHYSICALDAMAGE},
["Blastoise"] = {attackname = "Bubbles", level = 85, storage = 2000, cd = 2, atkmin = 270, atkmax = 310, range = 1, typeattack = "intarget", effecta = 68, type = COMBAT_PHYSICALDAMAGE},

["Caterpie"] = {attackname = "String Shot", level = 1, storage = 2000, cd = 2, atkmin = 70, atkmax = 90, range = 1, typeattack = "intarget", effecta = 137, type = COMBAT_PHYSICALDAMAGE},
["Metapod"] = {attackname = "Headbutt", level = 15, storage = 2000, cd = 2, atkmin = 90, atkmax = 100, range = 1, typeattack = "intarget", effecta = 118, type = COMBAT_PHYSICALDAMAGE},
["Butterfree"] = {attackname = "Super Sonic", level = 35, storage = 2000, cd = 2, atkmin = 130, atkmax = 150, range = 1, typeattack = "intarget", effecta = 22, type = COMBAT_PHYSICALDAMAGE},

["Weedle"] = {attackname = "String Shot ", level = 1, storage = 2000, cd = 2, atkmin = 70, atkmax = 90, range = 1, typeattack = "intarget", effecta = 137, type = COMBAT_PHYSICALDAMAGE},
["Kakuna"] = {attackname = "Headbutt", level = 15, storage = 2000, cd = 2, atkmin = 90, atkmax = 100, range = 1, typeattack = "intarget", effecta = 118, type = COMBAT_PHYSICALDAMAGE},
["Beedrill"] = {attackname = "Poison Sting ", level = 35, storage = 2000, cd = 2, atkmin = 130, atkmax = 150, range = 1, typeattack = "intarget", effecta = 9, type = COMBAT_PHYSICALDAMAGE},

["Pidgey"] = {attackname = "Sand Attack", level = 1, storage = 2000, cd = 2, atkmin = 70, atkmax = 90, range = 1, typeattack = " direcion", effectdir0 = 122, effectdir1 = 121, effectdir2 = 120, effectdir3 = 119, type = COMBAT_PHYSICALDAMAGE},
["Pidgeotto"] = {attackname = "Sand Attack ", level = 20, storage = 2000, cd = 2, atkmin = 100, atkmax = 130, range = 1, typeattack = " direcion", effectdir0 = 122, effectdir1 = 121, effectdir2 = 120, effectdir3 = 119, type = COMBAT_PHYSICALDAMAGE}, 
["Pidgeot"] = {attackname = "Sand Attack ", level = 65, storage = 2000, cd = 2, atkmin = 210, atkmax = 230, range = 1, typeattack = " direcion", effectdir0 = 122, effectdir1 = 121, effectdir2 = 120, effectdir3 = 119, type = COMBAT_PHYSICALDAMAGE},

["Rattata"] = {attackname = "Bite", level = 1, storage = 2000, cd = 2, atkmin = 90, atkmax = 100, range = 1, typeattack = "intarget", effecta = 138, type = COMBAT_PHYSICALDAMAGE},
["Raticate"] = {attackname = "Bite", level = 25, storage = 2000, cd = 2, atkmin = 100, atkmax = 130, range = 1, typeattack = "intarget", effecta = 138, type = COMBAT_PHYSICALDAMAGE},

["Spearow"] = {attackname = "Sand Attack", level = 1, storage = 2000, cd = 2, atkmin = 70, atkmax = 90, range = 1, typeattack = "direcion", effectdir0 = 122, effectdir1 = 121, effectdir2 = 120, effectdir3 = 119, type = COMBAT_PHYSICALDAMAGE},
["Fearow"] = {attackname = "Sand Attack", level = 50, storage = 2000, cd = 2, atkmin = 170, atkmax = 210, range = 1, typeattack = "direcion", effectdir0 = 122, effectdir1 = 121, effectdir2 = 120, effectdir3 = 119, type = COMBAT_PHYSICALDAMAGE},

["Ekans"] = {attackname = "Poison Fang", level = 17, storage = 2000, cd = 2, atkmin = 100, atkmax = 130, range = 1, typeattack = "intarget", effecta = 138, type = COMBAT_PHYSICALDAMAGE},
["Arbok"] = {attackname = "Poison Fang", level = 35, storage = 2000, cd = 2, atkmin = 130, atkmax = 150, range = 1, typeattack = "intarget", effecta = 138, type = COMBAT_PHYSICALDAMAGE},

["Pikachu"] = {attackname = "Thunder", level = 20, storage = 2000, cd = 2, atkmin = 100, atkmax = 130, range = 1, typeattack = "area", arr = arr1, effecta = 48, type = COMBAT_PHYSICALDAMAGE},
["Raichu"] = {attackname = "Thunder", level = 50, storage = 2000, cd = 2, atkmin = 170, atkmax = 210, range = 1, typeattack = "area", arr = arr1, effecta = 48, type = COMBAT_PHYSICALDAMAGE},

["Sandshrew"] = {attackname = "Mud Shot", level = 20, storage = 2000, cd = 2, atkmin = 100, atkmax = 130, range = 1, typeattack = " intarget", effecta = 116, type = COMBAT_PHYSICALDAMAGE},
["Sandslash"] = {attackname = "Mud Shot", level = 55, storage = 2000, cd = 2, atkmin = 170, atkmax = 210, range = 1, typeattack = " intarget", effecta = 116, type = COMBAT_PHYSICALDAMAGE},

["Nidoranfe"] = {attackname = "Bite", level = 10, storage = 2000, cd = 2, atkmin = 90, atkmax = 100, range = 1, typeattack = "intarget", effecta = 138, type = COMBAT_PHYSICALDAMAGE},
["Nidorina"] = {attackname = "Bite", level = 30, storage = 2000, cd = 2, atkmin = 130, atkmax = 150, range = 1, typeattack = "intarget", effecta = 138, type = COMBAT_PHYSICALDAMAGE},
["Nidoqueen"] = {attackname = "Bite", level = 65, storage = 2000, cd = 2, atkmin = 210, atkmax = 230, range = 1, typeattack = "intarget", effecta = 138, type = COMBAT_PHYSICALDAMAGE},

["Nidoranma"] = {attackname = "Bite", level = 10, storage = 2000, cd = 2, atkmin = 90, atkmax = 100, range = 1, typeattack = "intarget", effecta = 138, type = COMBAT_PHYSICALDAMAGE},
["Nidorino"] = {attackname = "Bite", level = 30, storage = 2000, cd = 2, atkmin = 130, atkmax = 150, range = 1, typeattack = "intarget", effecta = 138, type = COMBAT_PHYSICALDAMAGE},
["Nidoking"] = {attackname = "Bite", level = 65, storage = 2000, cd = 2, atkmin = 210, atkmax = 230, range = 1, typeattack = "intarget", effecta = 138, type = COMBAT_PHYSICALDAMAGE},

["Clefairy"] = {attackname = "Lovely Kiss", level = 20, storage = 2000, cd = 2, atkmin = 100, atkmax = 130, range = 1, typeattack = "intarget", effecta = 147, type = COMBAT_PHYSICALDAMAGE},
["Clefable"] = {attackname = "Lovely Kiss", level = 45, storage = 2000, cd = 2, atkmin = 150, atkmax = 170, range = 1, typeattack = "intarget", effecta = 147, type = COMBAT_PHYSICALDAMAGE},

["Vulpix"] = {attackname = "Iron Tail", level = 15, storage = 2000, cd = 2, atkmin = 90, atkmax = 100, range = 1, typeattack = "intarget", effecta = 160, type = COMBAT_PHYSICALDAMAGE},
["Ninetales"] = {attackname = "Iron Tail", level = 70, storage = 2000, cd = 2, atkmin = 230, atkmax = 270, range = 1, typeattack = "intarget", effecta = 160, type = COMBAT_PHYSICALDAMAGE},

["Jigglypuff"] = {attackname = "Lovely Kiss", level = 20, storage = 2000, cd = 2, atkmin = 100, atkmax = 130, range = 1, typeattack = "intarget", effecta = 147, type = COMBAT_PHYSICALDAMAGE},
["Wigglytuff"] = {attackname = "Lovely Kiss", level = 45, storage = 2000, cd = 2, atkmin = 150, atkmax = 170, range = 1, typeattack = "intarget", effecta = 147, type = COMBAT_PHYSICALDAMAGE},

["Zubat"] = {attackname = "Bite", level = 15, storage = 2000, cd = 2, atkmin = 100, atkmax = 130, range = 1, typeattack = "intarget", effecta = 138, type = COMBAT_PHYSICALDAMAGE},
["Golbat"] = {attackname = "Bite", level = 35, storage = 2000, cd = 2, atkmin = 130, atkmax = 150, range = 1, typeattack = "intarget", effecta = 138, type = COMBAT_PHYSICALDAMAGE},

["Gloom"] = {attackname = "Acid", level = 25, storage = 2000, cd = 2, atkmin = 100, atkmax = 130, range = 1, typeattack = "intarget", effecta = 20, type = COMBAT_PHYSICALDAMAGE},
["Vileplume"] = {attackname = "Acid", level = 50, storage = 2000, cd = 2, atkmin = 170, atkmax = 210, range = 1, typeattack = "intarget", effecta = 20, type = COMBAT_PHYSICALDAMAGE},

["Paras"] = {attackname = "Poison Sting", level = 5, storage = 2000, cd = 2, atkmin = 70, atkmax = 90, range = 1, typeattack = "intarget", effecta = 9, type = COMBAT_PHYSICALDAMAGE},
["Parasect"] = {attackname = "Poison Sting", level = 50, storage = 2000, cd = 2, atkmin = 170, atkmax = 210, range = 1, typeattack = "intarget", effecta = 9, type = COMBAT_PHYSICALDAMAGE},

["Venonat"] = {attackname = "Super Sonic", level = 5, storage = 2000, cd = 2, atkmin = 70, atkmax = 90, range = 1, typeattack = "intarget", effecta = 22, type = COMBAT_PHYSICALDAMAGE},
["Venomoth"] = {attackname = "Super Sonic", level = 50, storage = 2000, cd = 2, atkmin = 170, atkmax = 210, range = 1, typeattack = "intarget", effecta = 22, type = COMBAT_PHYSICALDAMAGE},

["Diglett"] = {attackname = "Slash", level = 10, storage = 2000, cd = 2, atkmin = 90, atkmax = 100, range = 1, typeattack = " intarget", effecta = 159, type = COMBAT_PHYSICALDAMAGE},
["Dugtrio"] = {attackname = "Sand Attack", level = 35, storage = 2000, cd = 2, atkmin = 130, atkmax = 150, range = 1, typeattack = " intarget", effecta = 159, type = COMBAT_PHYSICALDAMAGE},

["Meowth"] = {attackname = " Scratch", level = 15, storage = 2000, cd = 2, atkmin = 90, atkmax = 100, range = 1, typeattack = "intarget", effecta = 142, type = COMBAT_PHYSICALDAMAGE},
["Persian"] = {attackname = "Scratch", level = 30, storage = 2000, cd = 2, atkmin = 130, atkmax = 150, range = 1, typeattack = "intarget", effecta = 142, type = COMBAT_PHYSICALDAMAGE},

["Psyduck"] = {attackname = "Aqua Tail", level = 20, storage = 2000, cd = 2, atkmin = 100, atkmax = 130, range = 1, typeattack = "intarget", effecta = 1, type = COMBAT_PHYSICALDAMAGE},
["Golduck"] = {attackname = "Water Gun", level = 55, storage = 2000, cd = 2, atkmin = 170, atkmax = 210, range = 1, typeattack = "intarget", effecta = 68, type = COMBAT_PHYSICALDAMAGE},

["Mankey"] = {attackname = "Triple Kick", level = 15, storage = 2000, cd = 2, atkmin = 100, atkmax = 130, range = 1, typeattack = "intarget", effecta = 110, type = COMBAT_PHYSICALDAMAGE},
["Primeape"] = {attackname = "Triple Kick", level = 35, storage = 2000, cd = 2, atkmin = 130, atkmax = 150, range = 1, typeattack = "intarget", effecta = 110, type = COMBAT_PHYSICALDAMAGE},

["Growlithe"] = {attackname = "Bite", level = 20, storage = 2000, cd = 2, atkmin = 100, atkmax = 130, range = 1, typeattack = "intarget", effecta = 138, type = COMBAT_PHYSICALDAMAGE},
["Arcanine"] = {attackname = "Bite", level = 80, storage = 2000, cd = 2, atkmin = 270, atkmax = 310, range = 1, typeattack = "intarget", effecta = 138, type = COMBAT_PHYSICALDAMAGE},

["Poliwag"] = {attackname = "Bubbles", level = 5, storage = 2000, cd = 2, atkmin = 70, atkmax = 90, range = 1, typeattack = "intarget", effecta = 68, type = COMBAT_PHYSICALDAMAGE},
["Poliwhirl"] = {attackname = "Doubleslap", level = 25, storage = 2000, cd = 2, atkmin = 100, atkmax = 130, range = 1, typeattack = "intarget", effecta = 148, type = COMBAT_PHYSICALDAMAGE},
["Poliwrath"] = {attackname = "Doubleslap", level = 65, storage = 2000, cd = 2, atkmin = 210, atkmax = 230, range = 1, typeattack = "intarget", effecta = 148, type = COMBAT_PHYSICALDAMAGE},

["Kadabra"] = {attackname = " Confusion", level = 45, storage = 2000, cd = 2, atkmin = 170, atkmax = 210, range = 1, typeattack = "area", arr = arr1, effecta = 136, type = COMBAT_PHYSICALDAMAGE},
["Alakazam"] = {attackname = " Confusion", level = 80, storage = 2000, cd = 2, atkmin = 270, atkmax = 310, range = 1, typeattack = "area", arr = arr1, effecta = 136, type = COMBAT_PHYSICALDAMAGE},

["Machop"] = {attackname = "Mega Punch", level = 20, storage = 2000, cd = 2, atkmin = 100, atkmax = 130, range = 1, typeattack = "intarget", effecta = 112, type = COMBAT_PHYSICALDAMAGE},
["Machoke"] = {attackname = "Mega Punch", level = 47, storage = 2000, cd = 2, atkmin = 170, atkmax = 210, range = 1, typeattack = "intarget", effecta = 112, type = COMBAT_PHYSICALDAMAGE},
["Machamp"] = {attackname = "Mega Punch", level = 70, storage = 2000, cd = 2, atkmin = 230, atkmax = 270, range = 1, typeattack = "intarget", effecta = 112, type = COMBAT_PHYSICALDAMAGE},

["Bellsprout"] = {attackname = "Vine Whip", level = 10, storage = 2000, cd = 2, atkmin = 90, atkmax = 100, range = 1, typeattack = "direcion", effectdir0 = 80, effectdir1 = 83, effectdir2 = 81, effectdir3 = 82,   type = COMBAT_PHYSICALDAMAGE},
["Weepinbell"] = {attackname = "Vine Whip", level = 25, storage = 2000, cd = 2, atkmin = 100, atkmax = 130, range = 1, typeattack = "direcion", effectdir0 = 80, effectdir1 = 83, effectdir2 = 81, effectdir3 = 82,   type = COMBAT_PHYSICALDAMAGE},
["Victreebel"] = {attackname = "Vine Whip", level = 50, storage = 2000, cd = 2, atkmin = 170, atkmax = 210, range = 1, typeattack = "direcion", effectdir0 = 80, effectdir1 = 83, effectdir2 = 81, effectdir3 = 82,   type = COMBAT_PHYSICALDAMAGE},

["Tentacool"] = {attackname = "Bubbles", level = 15, storage = 2000, cd = 2, atkmin = 100, atkmax = 130, range = 1, typeattack = "intarget", effecta = 68, type = COMBAT_PHYSICALDAMAGE},
["Tentacruel"] = {attackname = "Mud Shot", level = 75, storage = 2000, cd = 2, atkmin = 230, atkmax = 270, range = 1, typeattack = "intarget", effecta = 116, type = COMBAT_PHYSICALDAMAGE},

["Geodude"] = {attackname = "Rock Throw", level = 15, storage = 2000, cd = 2, atkmin = 90, atkmax = 100, range = 1, typeattack = "area", arr = arr1, effecta = 44, type = COMBAT_PHYSICALDAMAGE}, 
["Graveler"] = {attackname = "Rock Throw", level = 40, storage = 2000, cd = 2, atkmin = 150, atkmax = 170, range = 1, typeattack = "area", arr = arr1, effecta = 44, type = COMBAT_PHYSICALDAMAGE}, 
["Golem"] = {attackname = "Rock Throw", level = 70, storage = 2000, cd = 2, atkmin = 230, atkmax = 270, range = 1, typeattack = "area", arr = arr1, effecta = 44, type = COMBAT_PHYSICALDAMAGE},

["Ponyta"] = {attackname = "Quick Attack", level = 20, storage = 2000, cd = 2, atkmin = 30, atkmax = 60, range = 1, typeattack = "intarget", effecta = 111, type = COMBAT_PHYSICALDAMAGE},
["Rapidash"] = {attackname = "Quick Attack", level = 55, storage = 2000, cd = 2, atkmin = 90, atkmax = 140, range = 1, typeattack = "intarget", effecta = 111, type = COMBAT_PHYSICALDAMAGE},

["Slowpoke"] = {attackname = "Aqua Tail", level = 20, storage = 2000, cd = 2, atkmin = 30, atkmax = 60, range = 1, typeattack = "intarget", effecta = 1, type = COMBAT_PHYSICALDAMAGE},
["Slowbro"] = {attackname = "Aqua Tail", level = 45, storage = 2000, cd = 2, atkmin = 90, atkmax = 140, range = 1, typeattack = "intarget", effecta = 1, type = COMBAT_PHYSICALDAMAGE},

["Magnemite"] = {attackname = "Thunder Shock", level = 15, storage = 2000, cd = 2, atkmin = 100, atkmax = 130, range = 1, typeattack = "area", arr = arr1, effecta = 207, type = COMBAT_PHYSICALDAMAGE},
["Magneton"] = {attackname = "Thunder Shock", level = 45, storage = 2000, cd = 2, atkmin = 170, atkmax = 210, range = 1, typeattack = "area", arr = arr1, effecta = 207, type = COMBAT_PHYSICALDAMAGE},

["Farfetch'd"] = {attackname = "Drill Peck", level = 40, storage = 2000, cd = 2, atkmin = 170, atkmax = 210, range = 1, typeattack = "intarget", effecta = 111, type = COMBAT_PHYSICALDAMAGE},

["Doduo"] = {attackname = "Quick Attack", level = 10, storage = 2000, cd = 2, atkmin = 90, atkmax = 100, range = 1, typeattack = " intarget", effecta = 111, type = COMBAT_PHYSICALDAMAGE},
["Dodrio"] = {attackname = "Quick Attack", level = 45, storage = 2000, cd = 2, atkmin = 170, atkmax = 210, range = 1, typeattack = " intarget", effecta = 111, type = COMBAT_PHYSICALDAMAGE},

["Seel"] = {attackname = "Aqua Tail", level = 20, storage = 2000, cd = 2, atkmin = 100, atkmax = 130, range = 1, typeattack = "intarget", effecta = 1, type = COMBAT_PHYSICALDAMAGE},
["Dewgong"] = {attackname = "Headbutt", level = 45, storage = 2000, cd = 2, atkmin = 170, atkmax = 210, range = 1, typeattack = "intarget", effecta = 118, type = COMBAT_PHYSICALDAMAGE},

["Grimer"] = {attackname = "Acid", level = 15, storage = 2000, cd = 2, atkmin = 100, atkmax = 130, range = 1, typeattack = "intarget", effecta = 20, type = COMBAT_PHYSICALDAMAGE},
["Muk"] = {attackname = "Acid", level = 35, storage = 2000, cd = 2, atkmin = 130, atkmax = 160, range = 1, typeattack = "intarget", effecta = 20, type = COMBAT_PHYSICALDAMAGE},

["Shellder"] = {attackname = "Super Sonic", level = 10, storage = 2000, cd = 2, atkmin = 90, atkmax = 100, range = 1, typeattack = "intarget", effecta = 22, type = COMBAT_PHYSICALDAMAGE},
["Cloyster"] = {attackname = "Super Sonic", level = 60, storage = 2000, cd = 2, atkmin = 210, atkmax = 230, range = 1, typeattack = "intarget", effecta = 22, type = COMBAT_PHYSICALDAMAGE},

["Gastly"] = {attackname = "Shadow Ball", level = 20, storage = 2000, cd = 2, atkmin = 100, atkmax = 130, range = 1, typeattack = "intarget", effecta = 140, type = COMBAT_PHYSICALDAMAGE},
["Haunter"] = {attackname = "Shadow Ball", level = 45, storage = 2000, cd = 2, atkmin = 170, atkmax = 210, range = 1, typeattack = "intarget", effecta = 140, type = COMBAT_PHYSICALDAMAGE},
["Gengar"] = {attackname = "Shadow Ball", level = 80, storage = 2000, cd = 2, atkmin = 270, atkmax = 310, range = 1, typeattack = "intarget", effecta = 140, type = COMBAT_PHYSICALDAMAGE},

["Onix"] = {attackname = "Iron Tail", level = 50, storage = 2000, cd = 2, atkmin = 170, atkmax = 210, range = 1, typeattack = "intarget", effecta = 160, type = COMBAT_PHYSICALDAMAGE},

["Drowzee"] = {attackname = "Psybeam", level = 25, storage = 2000, cd = 2, atkmin = 30, atkmax = 60, range = 1, typeattack = " direcion", effectdir0 = 108, effectdir1 = 109, effectdir2 = 108, effectdir3 = 106, effectdir4 = 107, effectdir5 = 106, effectdir6 = 108, effectdir7 = 109, effectdir8 = 108, effectdir9 = 107, effectdir10 = 106, effectdir11 = 107, type = COMBAT_PHYSICALDAMAGE},
["Hypno"] = {attackname = "Psybeam", level = 55, storage = 2000, cd = 2, atkmin = 90, atkmax = 140, range = 1, typeattack = " direcion", effectdir0 = 108, effectdir1 = 109, effectdir2 = 108, effectdir3 = 106, effectdir4 = 107, effectdir5 = 106, effectdir6 = 108, effectdir7 = 109, effectdir8 = 108, effectdir9 = 107, effectdir10 = 106, effectdir11 = 107, type = COMBAT_PHYSICALDAMAGE},

["Krabby"] = {attackname = "Bubblebeam", level = 10, storage = 2000, cd = 2, atkmin = 90, atkmax = 100, range = 1, typeattack = "intarget", effecta = 25, type = COMBAT_PHYSICALDAMAGE},
["Kingler"] = {attackname = "Bubblebeam", level = 40, storage = 2000, cd = 2, atkmin = 150, atkmax = 160, range = 1, typeattack = "intarget", effecta = 25, type = COMBAT_PHYSICALDAMAGE},

["Voltorb"] = {attackname = "Spark", level = 10, storage = 2000, cd = 2, atkmin = 90, atkmax = 100, range = 1, typeattack = "intarget", effecta = 207, type = COMBAT_PHYSICALDAMAGE},
["Electrode"] = {attackname = "Spark", level = 35, storage = 2000, cd = 2, atkmin = 150, atkmax = 170, range = 1, typeattack = "intarget", effecta = 207, type = COMBAT_PHYSICALDAMAGE},

["Exeggcute"] = {attackname = "Confusion", level = 15, storage = 2000, cd = 2, atkmin = 100, atkmax = 130, range = 1, typeattack = "area", arr = arr1, effecta = 136, type = COMBAT_PHYSICALDAMAGE},
["Exeggutor"] = {attackname = "Confusion", level = 55, storage = 2000, cd = 2, atkmin = 210, atkmax = 230, range = 1, typeattack = "area", arr = arr1, effecta = 136, type = COMBAT_PHYSICALDAMAGE},

["Cubone"] = {attackname = "Bonemerang", level = 20, storage = 2000, cd = 2, atkmin = 100, atkmax = 130, range = 1, typeattack = "area", arr = arr2, effecta = 212, type = COMBAT_PHYSICALDAMAGE}, 
["Marowak"] = {attackname = "Bonemerang", level = 55, storage = 2000, cd = 2, atkmin = 170, atkmax = 210, range = 1, typeattack = "area", arr = arr2, effecta = 212, type = COMBAT_PHYSICALDAMAGE},


["Hitmonlee"] = {attackname = "Mega Punch", level = 60, storage = 2000, cd = 2, atkmin = 210, atkmax = 230, range = 1, typeattack = "intarget", effecta = 112, type = COMBAT_PHYSICALDAMAGE},
["Hitmonchan"] = {attackname = "Mega Punch", level = 60, storage = 2000, cd = 2, atkmin = 210, atkmax = 230, range = 1, typeattack = "intarget", effecta = 112, type = COMBAT_PHYSICALDAMAGE},

["Lickitung"] = {attackname = "Headbutt", level = 55, storage = 2000, cd = 2, atkmin = 210, atkmax = 230, range = 1, typeattack = "intarget", effecta = 118, type = COMBAT_PHYSICALDAMAGE},

["Koffing"] = {attackname = "Acid", level = 15, storage = 2000, cd = 2, atkmin = 100, atkmax = 130, range = 1, typeattack = "intarget", effecta = 20, type = COMBAT_PHYSICALDAMAGE},
["Weezing"] = {attackname = "Acid", level = 35, storage = 2000, cd = 2, atkmin = 150, atkmax = 170, range = 1, typeattack = "intarget", effecta = 20, type = COMBAT_PHYSICALDAMAGE},

["Chansey"] = {attackname = "Great Love", level = 60, storage = 2000, cd = 2, atkmin = 210, atkmax = 230, range = 1, typeattack = "area", arr = arr1, effecta = 147, type = COMBAT_PHYSICALDAMAGE},

["Tangela"] = {attackname = "Absorb", level = 50, storage = 2000, cd = 2, atkmin = 170, atkmax = 210, range = 1, typeattack = "direcion", effectdir0 = 80, effectdir1 = 83, effectdir2 = 81, effectdir3 = 82,   type = COMBAT_PHYSICALDAMAGE},

["Kangaskhan"] = {attackname = "Headbutt", level = 80, storage = 2000, cd = 2, atkmin = 270, atkmax = 310, range = 1, typeattack = "intarget", effecta = 118, type = COMBAT_PHYSICALDAMAGE},

["Horsea"] = {attackname = "Bubbles", level = 10, storage = 2000, cd = 2, atkmin = 90, atkmax = 100, range = 1, typeattack = "intarget", effecta = 68, type = COMBAT_PHYSICALDAMAGE},
["Seadra"] = {attackname = "Bubbles", level = 45, storage = 2000, cd = 2, atkmin = 170, atkmax = 210, range = 1, typeattack = "intarget", effecta = 68, type = COMBAT_PHYSICALDAMAGE},

["Goldeen"] = {attackname = "Poison Sting", level = 10, storage = 2000, cd = 2, atkmin = 90, atkmax = 100, range = 1, typeattack = "intarget", effecta = 9, type = COMBAT_PHYSICALDAMAGE},
["Seaking"] = {attackname = "Poison Sting", level = 45, storage = 2000, cd = 2, atkmin = 170, atkmax = 210, range = 1, typeattack = "intarget", effecta = 9, type = COMBAT_PHYSICALDAMAGE},

["Staryu"] = {attackname = "Slash", level = 15, storage = 2000, cd = 2, atkmin = 100, atkmax = 130, range = 1, typeattack = "intarget", effecta = 159, type = COMBAT_PHYSICALDAMAGE},
["Starmie"] = {attackname = "Slash", level = 35, storage = 2000, cd = 2, atkmin = 150, atkmax = 170, range = 1, typeattack = "intarget", effecta = 159, type = COMBAT_PHYSICALDAMAGE},

["Mr.Mime"] = {attackname = "Psychic", level = 60, storage = 2000, cd = 2, atkmin = 210, atkmax = 230, range = 1, typeattack = "intarget", effecta = 134, type = COMBAT_PHYSICALDAMAGE},

["Scyther"] = {attackname = "Slash", level = 80, storage = 2000, cd = 2, atkmin = 270, atkmax = 310, range = 1, typeattack = "intarget", effecta = 159, type = COMBAT_PHYSICALDAMAGE},

["Jynx"] = {attackname = "Doubleslap", level = 80, storage = 2000, cd = 2, atkmin = 270, atkmax = 310, range = 1, typeattack = "intarget", effecta = 148, type = COMBAT_PHYSICALDAMAGE},

["Electabuzz"] = {attackname = "Thunder Punch", level = 80, storage = 2000, cd = 2, atkmin = 270, atkmax = 310, range = 1, typeattack = "area", arr = arr1, effecta = 48, type = COMBAT_PHYSICALDAMAGE},

["Magmar"] = {attackname = "Fire Punch", level = 80, storage = 2000, cd = 2, atkmin = 270, atkmax = 310, range = 1, typeattack = "intarget", effecta = 5, type = COMBAT_PHYSICALDAMAGE},

["Pinsir"] = {attackname = "Slash", level = 45, storage = 2000, cd = 2, atkmin = 170, atkmax = 210, range = 1, typeattack = "intarget", effecta = 159, type = COMBAT_PHYSICALDAMAGE},

["Tauros"] = {attackname = "Quick Attack", level = 45, storage = 2000, cd = 2, atkmin = 170, atkmax = 210, range = 1, typeattack = "intarget", effecta = 111, type = COMBAT_PHYSICALDAMAGE},

["Gyarados"] = {attackname = "Bite", level = 85, storage = 2000, cd = 2, atkmin = 275, atkmax = 325, range = 1, typeattack = "intarget", effecta = 138, type = COMBAT_PHYSICALDAMAGE},

["Lapras"] = {attackname = "Ice Beam", level = 80, storage = 2000, cd = 2, atkmin = 270, atkmax = 310, range = 1, typeattack = "area", arr = arr1, effecta = 147, type = COMBAT_PHYSICALDAMAGE},

["Eevee"] = {attackname = "Quick Attack", level = 20, storage = 2000, cd = 2, atkmin = 100, atkmax = 130, range = 1, typeattack = " intarget", effecta = 111, type = COMBAT_PHYSICALDAMAGE},

["Vaporeon"] = {attackname = "Bite", level = 55, storage = 2000, cd = 2, atkmin = 170, atkmax = 210, range = 1, typeattack = "intarget", effecta = 138, type = COMBAT_PHYSICALDAMAGE},

["Jolteon"] = {attackname = "Bite", level = 55, storage = 2000, cd = 2, atkmin = 210, atkmax = 230, range = 1, typeattack = "intarget", effecta = 138, type = COMBAT_PHYSICALDAMAGE},

["Flareon"] = {attackname = "Bite", level = 55, storage = 2000, cd = 2, atkmin = 210, atkmax = 230, range = 1, typeattack = "intarget", effecta = 138, type = COMBAT_PHYSICALDAMAGE},

["Porygon"] = {attackname = "Psybeam", level = 40, storage = 2000, cd = 2, atkmin = 150, atkmax = 170, range = 1, typeattack = "area", arr = arr1, effecta = 136, type = COMBAT_PHYSICALDAMAGE},

["Omanyte"] = {attackname = " Rock Throw", level = 20, storage = 2000, cd = 2, atkmin = 100, atkmax = 130, range = 1, typeattack = " area", arr = arr1, effecta = 34, type = COMBAT_PHYSICALDAMAGE},
["Omastar"] = {attackname = " Rock Throw", level = 80, storage = 2000, cd = 2, atkmin = 230, atkmax = 270, range = 1, typeattack = "area", arr = arr1, effecta = 34, type = COMBAT_PHYSICALDAMAGE},

["Kabuto"] = {attackname = "Bubbles", level = 20, storage = 2000, cd = 2, atkmin = 130, atkmax = 150, range = 1, typeattack = "intarget", effecta = 68, type = COMBAT_PHYSICALDAMAGE},
["Kabutops"] = {attackname = "Bubbles", level = 80, storage = 2000, cd = 2, atkmin = 270, atkmax = 310, range = 1, typeattack = "intarget", effecta = 68, type = COMBAT_PHYSICALDAMAGE},

["Snorlax"] = {attackname = "Bite", level = 80, storage = 2000, cd = 2, atkmin = 270, atkmax = 310, range = 1, typeattack = "intarget", effecta = 138, type = COMBAT_PHYSICALDAMAGE},

["Dratini"] = {attackname = "Thunder Wave", level = 20, storage = 2000, cd = 2, atkmin = 100, atkmax = 130, range = 1, typeattack = " area", arr = arr1, effecta = 48, type = COMBAT_PHYSICALDAMAGE},
["Dragonair"] = {attackname = "Aqua Tail", level = 60, storage = 2000, cd = 2, atkmin = 210, atkmax = 230, range = 1, typeattack = "intarget", effecta = 1, type = COMBAT_PHYSICALDAMAGE},
["Dragonite"] = {attackname = "Aqua Tail", level = 100, storage = 2000, cd = 2, atkmin = 270, atkmax = 310, range = 1, typeattack = "intarget", effecta = 1, type = COMBAT_PHYSICALDAMAGE},

["Rhydon"] = {attackname = "Horn Attack", level = 30, storage = 2000, cd = 2, atkmin = 130, atkmax = 150, range = 1, typeattack = "intarget", effecta = 9, type = COMBAT_PHYSICALDAMAGE},
["Rhydon"] = {attackname = "Horn Attack", level = 75, storage = 2000, cd = 2, atkmin = 270, atkmax = 310, range = 1, typeattack = "intarget", effecta = 9, type = COMBAT_PHYSICALDAMAGE},
}

function onSay(cid, words, param, target)

               if #getCreatureSummons(cid) == 0 then
                       return doPlayerSendCancel(cid, "You do not have any pokemon.")
               end

               if getPlayerStorageValue(cid, 102032) == 1 then
                       doPlayerSendCancel(cid, "Your pokemon is exhausted.")
                       doSendMagicEffect(getCreaturePosition(cid), 2)
               return true
               end

       for j,x in pairs(pokes) do

            local storage = x.storage
            local cd = math.ceil(x.cd/2)


                                                if getCreatureSummons(cid) ~= 0 then
                                                  if not getTilePzInfo(getPlayerPosition(cid)) then
                             if getCreatureName(getCreatureSummons(cid)[1]) == j then
                              if getCreatureTarget(cid) ~= 0 then
                               if not isSummon(getCreatureTarget(cid)) or not isPlayer(getCreatureTarget(cid)) then
                                  if getPlayerLevel(cid) >= x.level then
                                                                                      if os.time()-getPlayerStorageValue(cid, storage) <= cd then
                                                                                                       minutes,seconds = getTime(cd-(os.time()-getPlayerStorageValue(cid, storage)))
                                                                                                       return doPlayerSendTextMessage(cid, 26, "You need to wait ".. seconds .. " seconds to use " ..x.attackname..".")
                                                                                                       end

                                                                          if x.typeattack == "distance" then
                                                                                if getDistanceBetween(getCreaturePosition(getCreatureSummons(cid)[1]), getCreaturePosition(getCreatureTarget(cid))) <= x.range then
                                                                                  doSendDistanceShoot(getCreaturePosition(getCreatureSummons(cid)[1]), getCreaturePosition(getCreatureTarget(cid)), x.effectd)
                                                                                  doSendMagicEffect(getCreaturePosition(getCreatureTarget(cid)), x.effecta)
                                                                                  doAreaCombatHealth(getCreatureSummons(cid)[1], x.type, getCreaturePosition(getCreatureTarget(cid)), x.arr, -(x.atkmin+getPlayerLevel(cid)), -(x.atkmax+getPlayerLevel(cid)),  x.effecta)
                                                                                  doCreatureSay(cid, ""..j..", "..x.attackname..".", 1)
                                                                                  setPlayerStorageValue(cid, storage, os.time()+cd)
                                                                                  setPlayerStorageValue(cid, 102032, 1)
                                                                                  addEvent(setPlayerStorageValue, 1*1000, cid, 102032, -1)
                                                                                  if x.poison == true then
                                                                                     Poison(cid)
                                                                                  end
                                                                        else
                                                                          doPlayerSendCancel(cid, "Target is far away.")
                                                                                  doSendMagicEffect(getCreaturePosition(cid), 2)
                                        end
                                          return true
                                      end

                                                                                  if x.typeattack == "area" then
                                                                                  if getDistanceBetween(getCreaturePosition(getCreatureSummons(cid)[1]), getCreaturePosition(getCreatureTarget(cid))) <= x.range then
                                                                                  doSendMagicEffectInArea(getCreaturePosition(getCreatureSummons(cid)[1]),x.effecta,x.arr)
                                                                                  if x.poison == "yes" then
                                                                                Poison(cid)
                                                                                end
                                                                                  doAreaCombatHealth(getCreatureSummons(cid)[1], x.type, getCreaturePosition(getCreatureTarget(cid)), x.arr, -(x.atkmin+getPlayerLevel(cid)), -(x.atkmax+getPlayerLevel(cid)),  x.effecta)
                                                                                  doCreatureSay(cid,""..j..", "..x.attackname..".", 1)
                                                                                  setPlayerStorageValue(cid, storage, os.time()+cd)
                                                                                       setPlayerStorageValue(cid, 102032, 1)
                                                                                  addEvent(setPlayerStorageValue, 1*1000, cid, 102032, -1)
                                        else
                                                                          doPlayerSendCancel(cid, "Target is far away.")
                                                                                  doSendMagicEffect(getCreaturePosition(cid), 2)
                                        end
                                      return true
                                      end

                                      if x.typeattack == "direcion" then
                                       if getDistanceBetween(getCreaturePosition(getCreatureSummons(cid)[1]), getCreaturePosition(getCreatureTarget(cid))) <= x.range then
                                       if x.poison == true then
                                           Poison(cid)
                                       end
                                        if getCreatureLookDir(getCreatureSummons(cid)[1]) == 0 then
                                           doSendMagicEffect(getPositionByDirection(getCreaturePosition(getCreatureSummons(cid)[1]), 0, 1),x.effectdir0)
                                           doAreaCombatHealth(getCreatureSummons(cid)[1], x.type, getCreaturePosition(getCreatureTarget(cid)), x.arr, -(x.atkmin+getPlayerLevel(cid)), -(x.atkmax+getPlayerLevel(cid)),  x.effecta)
                                                                                       setPlayerStorageValue(cid, storage, os.time()+cd)
                                                                                   doCreatureSay(cid,""..j..", "..x.attackname..".", 1)
                                                                                       setPlayerStorageValue(cid, 102032, 1)
                                                                                  addEvent(setPlayerStorageValue, 1*1000, cid, 102032, -1)
                                        elseif getCreatureLookDir(getCreatureSummons(cid)[1]) == 1 then
                                           doSendMagicEffect(getPositionByDirection(getCreaturePosition(getCreatureSummons(cid)[1]), 1, 1),x.effectdir1)
                                           doAreaCombatHealth(getCreatureSummons(cid)[1], x.type, getCreaturePosition(getCreatureTarget(cid)), x.arr, -(x.atkmin+getPlayerLevel(cid)), -(x.atkmax+getPlayerLevel(cid)),  x.effecta)
                                                                                       setPlayerStorageValue(cid, storage, os.time()+cd)
                                                                                   doCreatureSay(cid,""..j..", "..x.attackname..".", 1)
                                                                                       setPlayerStorageValue(cid, 102032, 1)
                                                                                  addEvent(setPlayerStorageValue, 1*1000, cid, 102032, -1)
                                        elseif getCreatureLookDir(getCreatureSummons(cid)[1]) == 2 then
                                           doSendMagicEffect(getPositionByDirection(getCreaturePosition(getCreatureSummons(cid)[1]), 2, 1),x.effectdir2)
                                           doAreaCombatHealth(getCreatureSummons(cid)[1], x.type, getCreaturePosition(getCreatureTarget(cid)), x.arr, -(x.atkmin+getPlayerLevel(cid)), -(x.atkmax+getPlayerLevel(cid)),  x.effecta)
                                                                                       setPlayerStorageValue(cid, storage, os.time()+cd)
                                                                                   doCreatureSay(cid,""..j..", "..x.attackname..".", 1)
                                                                                       setPlayerStorageValue(cid, 102032, 1)
                                                                                  addEvent(setPlayerStorageValue, 1*1000, cid, 102032, -1)
                                        elseif getCreatureLookDir(getCreatureSummons(cid)[1]) == 3 then
                                           doSendMagicEffect(getPositionByDirection(getCreaturePosition(getCreatureSummons(cid)[1]), 3, 1),x.effectdir3)
                                           doAreaCombatHealth(getCreatureSummons(cid)[1], x.type, getCreaturePosition(getCreatureTarget(cid)), x.arr, -(x.atkmin+getPlayerLevel(cid)), -(x.atkmax+getPlayerLevel(cid)),  x.effecta)
                                                                                       setPlayerStorageValue(cid, storage, os.time()+cd)
                                           doCreatureSay(cid,""..j..", "..x.attackname..".", 1)
                                                                                       setPlayerStorageValue(cid, 102032, 1)
                                                                                  addEvent(setPlayerStorageValue, 1*1000, cid, 102032, -1)
                                        end
                                                else
                                                                          doPlayerSendCancel(cid, "Target is far away.")
                                                                                  doSendMagicEffect(getCreaturePosition(cid), 2)
                                        end
                                      return true
                                      end

                                      if x.typeattack == "intarget" then
                                         if getDistanceBetween(getCreaturePosition(getCreatureSummons(cid)[1]), getCreaturePosition(getCreatureTarget(cid))) <= x.range then
                                         if x.poison == true then
                                             Poison(cid)
                                            end
                                          doSendMagicEffect(getCreaturePosition(getCreatureTarget(cid)), x.effecta)
                                                                                  doAreaCombatHealth(getCreatureSummons(cid)[1], x.type, getCreaturePosition(getCreatureTarget(cid)), x.arr, -(x.atkmin+getPlayerLevel(cid)), -(x.atkmax+getPlayerLevel(cid)),  x.effecta)
                                                                                  doCreatureSay(cid, ""..j..", "..x.attackname..".", 1)
                                                                                  setPlayerStorageValue(cid, storage, os.time()+cd)
                                                                                  setPlayerStorageValue(cid, 102032, 1)
                                                                                  addEvent(setPlayerStorageValue, 1*1000, cid, 102032, -1)
                                                                        else
                                                                          doPlayerSendCancel(cid, "Target is far away.")
                                                                                  doSendMagicEffect(getCreaturePosition(cid), 2)
                                        end
                                      return true
                                      end



                                   else
                                               doPlayerSendTextMessage(cid, 27, "You need level "..x.level.." to use " ..x.attackname..".")
                                                                                           doSendMagicEffect(getCreaturePosition(cid), 2)
                                               return true
                                   end
                               else
                                           doPlayerSendCancel(cid, "Invalid Target.")
                                                                                       doSendMagicEffect(getCreaturePosition(cid), 2)
                                          return true
                               end
                              else
                                           doPlayerSendCancel(cid, "Target not is avalied.")
                                                                                       doSendMagicEffect(getCreaturePosition(cid), 2)
                                          return true
                               end
                                                         end
                           else
                                   doPlayerSendCancel(cid, "Do not Attack in Protection Zone.")
                                                                       doSendMagicEffect(getCreaturePosition(cid), 2)
                                    return true
                           end
                                               else
                            doPlayerSendCancel(cid, "You need pokemon to use attacks.")
                                                        doSendMagicEffect(getCreaturePosition(cid), 2)
                            return true
                                           end

       end
return true
end

Ainda nao consegui editar as magias em area pois o script é um pouco complicado mas to tentando, quando conseguir eu posto aqui.

O tutorial de edição esta nesse topico:[Talkaction]System M1

Pronto pessoal, é uma ajudinha pra vocês ai, devidos creditos a:XotservX por ter liberado o script, Mock , pela função doSendMagicEffectInArea

MatheusMkalo pela função getTime(s).Dá um REP + AI PESSoAL!!

MEU PRIMEIRO TOPICO

Até mais.

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

Alguns Erros ae , Charizard Ta Charlizard , Falta o Oddish , e tem 2 Rhydon Q Deveria Ter 1 Rhyhorn Ale , Ta Charmelon O Certo e Charmeleon .

 

Mas Vlw ae =D . Rep+

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

×
×
  • Criar Novo...