Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function isSummon(uid)
- return uid ~= getCreatureMaster(uid) or false
- end
- local combat1 = createCombatObject()
- setCombatParam(combat1, COMBAT_PARAM_EFFECT, 111)
- setCombatParam(combat1, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
- setCombatFormula(combat1, COMBAT_FORMULA_LEVELMAGIC, -1, 0, -1, -10, 5, 5, 0.85, 1.95, -20, -40)
- arr1 = {
- {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
- {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
- {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
- {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
- {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
- {0, 0, 0, 0, 0, 3, 0, 0, 0, 0, 0},
- {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
- {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
- {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
- {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
- {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
- }
- local area1 = createCombatArea(arr1)
- setCombatArea(combat1, area1)
- local combat2 = createCombatObject()
- setCombatParam(combat2, COMBAT_PARAM_EFFECT, 42)
- setCombatParam(combat2, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
- setCombatFormula(combat2, COMBAT_FORMULA_LEVELMAGIC, -1, 0, -1, -10, 5, 5, 0.85, 1.95, -20, -40)
- arr2 = {
- {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
- {0, 0, 0, 3, 0, 3, 0, 3, 0, 0, 0},
- {0, 0, 0, 3, 0, 3, 0, 3, 0, 0, 0},
- {0, 0, 0, 0, 3, 3, 3, 0, 0, 0, 0},
- {0, 0, 0, 0, 0, 3, 0, 0, 0, 0, 0},
- {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
- {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
- {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
- {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
- {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
- {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
- }
- local area2 = createCombatArea(arr2)
- setCombatArea(combat2, area2)
- local combat3 = createCombatObject()
- setCombatParam(combat3, COMBAT_PARAM_EFFECT, 142)
- setCombatParam(combat3, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
- setCombatFormula(combat3, COMBAT_FORMULA_LEVELMAGIC, -1, 0, -1, -10, 5, 5, 0.85, 1.95, -20, -40)
- arr3 = {
- {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
- {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
- {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
- {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
- {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
- {0, 0, 0, 0, 0, 3, 0, 0, 0, 0, 0},
- {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
- {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
- {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
- {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
- {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
- }
- local area3 = createCombatArea(arr3)
- setCombatArea(combat3, area3)
- local combat4 = createCombatObject()
- setCombatParam(combat4, COMBAT_PARAM_EFFECT, 141)
- setCombatParam(combat4, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
- setCombatFormula(combat4, COMBAT_FORMULA_LEVELMAGIC, -1, 0, -1, -10, 5, 5, 0.85, 1.95, -20, -40)
- setCombatFormula(combat4, COMBAT_FORMULA_LEVELMAGIC, -1, 0, -1, -10, 5, 5, 0.85, 1.95, -20, -40)
- setCombatFormula(combat4, COMBAT_FORMULA_LEVELMAGIC, -1, 0, -1, -10, 5, 5, 0.85, 1.95, -20, -40)
- arr4 = {
- {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
- {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
- {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
- {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
- {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
- {0, 0, 0, 0, 0, 3, 0, 0, 0, 0, 0},
- {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
- {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
- {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
- {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
- {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
- }
- local area4 = createCombatArea(arr4)
- setCombatArea(combat4, area4)
- local combat5 = createCombatObject()
- setCombatParam(combat5, COMBAT_PARAM_EFFECT, 16)
- setCombatParam(combat5, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
- setCombatFormula(combat5, COMBAT_FORMULA_LEVELMAGIC, -1, 0, -1, -10, 5, 5, 0.85, 1.95, -20, -40)
- arr5 = {
- {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
- {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
- {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
- {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
- {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
- {0, 0, 0, 0, 0, 3, 0, 0, 0, 0, 0},
- {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
- {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
- {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
- {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
- {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
- }
- local area5 = createCombatArea(arr5)
- setCombatArea(combat5, area5)
- local combat6 = createCombatObject()
- setCombatParam(combat6, COMBAT_PARAM_EFFECT, 137)
- setCombatParam(combat6, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
- setCombatFormula(combat6, COMBAT_FORMULA_LEVELMAGIC, -1, 0, -1, -10, 5, 5, 0.85, 1.95, -20, -40)
- arr6 = {
- {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
- {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
- {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
- {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
- {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
- {0, 0, 0, 0, 0, 3, 0, 0, 0, 0, 0},
- {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
- {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
- {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
- {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
- {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
- }
- local area6 = createCombatArea(arr6)
- setCombatArea(combat6, area6)
- local combat7 = createCombatObject()
- setCombatParam(combat7, COMBAT_PARAM_EFFECT, 59)
- setCombatParam(combat3, COMBAT_PARAM_DISTANCEEFFECT, 15)
- setCombatParam(combat7, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
- setCombatFormula(combat7, COMBAT_FORMULA_LEVELMAGIC, -1, 0, -1, -10, 5, 5, 0.85, 1.95, -20, -40)
- arr7 = {
- {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
- {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
- {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
- {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
- {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
- {0, 0, 0, 0, 0, 3, 0, 0, 0, 0, 0},
- {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
- {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
- {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
- {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
- {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
- }
- local area7 = createCombatArea(arr7)
- setCombatArea(combat7, area7)
- local combat8 = createCombatObject()
- setCombatParam(combat8, COMBAT_PARAM_EFFECT, 146)
- setCombatParam(combat8, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
- setCombatFormula(combat8, COMBAT_FORMULA_LEVELMAGIC, -1, 0, -1, -10, 5, 5, 0.85, 1.95, -20, -40)
- arr8 = {
- {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
- {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
- {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
- {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
- {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
- {0, 0, 0, 0, 0, 3, 0, 0, 0, 0, 0},
- {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
- {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
- {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
- {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
- {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
- }
- local area8 = createCombatArea(arr8)
- setCombatArea(combat8, area8)
- local combat9 = createCombatObject()
- setCombatParam(combat9, COMBAT_PARAM_EFFECT, 112)
- setCombatParam(combat9, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
- setCombatFormula(combat9, COMBAT_FORMULA_LEVELMAGIC, -1, 0, -1, -10, 5, 5, 0.85, 1.95, -20, -40)
- arr9 = {
- {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
- {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
- {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
- {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
- {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
- {0, 0, 0, 0, 0, 3, 0, 0, 0, 0, 0},
- {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
- {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
- {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
- {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
- {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
- }
- local area9 = createCombatArea(arr9)
- setCombatArea(combat9, area9)
- local combat10 = createCombatObject()
- setCombatParam(combat10, COMBAT_PARAM_EFFECT, 112)
- setCombatParam(combat10, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
- setCombatFormula(combat10, COMBAT_FORMULA_LEVELMAGIC, -1, 0, -1, -10, 5, 5, 0.85, 1.95, -20, -40)
- arr10 = {
- {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
- {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
- {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
- {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
- {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
- {0, 0, 0, 0, 0, 3, 0, 0, 0, 0, 0},
- {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
- {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
- {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
- {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
- {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
- }
- local area10 = createCombatArea(arr10)
- setCombatArea(combat10, area10)
- local combat11 = createCombatObject()
- setCombatParam(combat11, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
- setCombatParam(combat11, COMBAT_PARAM_EFFECT, 140)
- setCombatParam(combat11, COMBAT_PARAM_DISTANCEEFFECT, 18)
- setCombatFormula(combat11, COMBAT_FORMULA_LEVELMAGIC, -1, -10, -1, -20, 5, 5, 1.4, 2.1)
- local function onCastSpell1(parameters)
- return doCombat(parameters.cid, parameters.combat, parameters.var) and doCreatureSay
- (parameters.cid2, "" .. parameters.name .. ", " .. parameters.spell .. ".")
- end
- local c = {
- ["Bulbasaur"] = {x = {
- m1 = combat11,
- spell = "Shadow Ball",
- minLv = 20,
- distance = 5
- }
- },
- ["Ivysaur"] = {x = {
- m1 = combat1,
- spell = "Quick Attack",
- minLv = 40
- }
- },
- ["Ivysaur"] = {x = {
- m1 = combat1,
- spell = "Quick Attack",
- minLv = 40
- }
- },
- ["Venusaur"] = {x = {
- m1 = combat1,
- spell = "Quick Attack",
- minLv = 85
- }
- },
- ["Pidgey"] = {x = {
- m1 = combat1,
- spell = "Quick Attack",
- minLv = 5
- }
- },
- ["Pidgeotto"] = {x = {
- m1 = combat1,
- spell = "Quick Attack",
- minLv = 20
- }
- },
- ["Pidgeotto"] = {x = {
- m1 = combat1,
- spell = "Quick Attack",
- minLv = 20
- }
- },
- ["Pidgeot"] = {x = {
- m1 = combat1,
- spell = "Quick Attack",
- minLv = 65
- }
- },
- ["Rattata"] = {x = {
- m1 = combat1,
- spell = "Quick Attack",
- minLv = 1
- }
- },
- ["Raticate"] = {x = {
- m1 = combat1,
- spell = "Quick Attack",
- minLv = 25
- }
- },
- ["Spearow"] = {x = {
- m1 = combat1,
- spell = "Quick Attack",
- minLv = 10
- }
- },
- ["Fearow"] = {x = {
- m1 = combat1,
- spell = "Quick Attack",
- minLv = 50
- }
- },
- ["Pikachu"] = {x = {
- m1 = combat1,
- spell = "Quick Attack",
- minLv = 20
- }
- },
- ["Nidoran Femea"] = {x = {
- m1 = combat1,
- spell = "Quick Attack",
- minLv = 10
- }
- },
- ["Nidorina"] = {x = {
- m1 = combat1,
- spell = "Quick Attack",
- minLv = 30
- }
- },
- ["Nidoqueen"] = {x = {
- m1 = combat1,
- spell = "Quick Attack",
- minLv = 65
- }
- },
- ["Nidoran Macho"] = {x = {
- m1 = combat1,
- spell = "Quick Attack",
- minLv = 10
- }
- },
- ["Nidorino"] = {x = {
- m1 = combat1,
- spell = "Quick Attack",
- minLv = 30
- }
- },
- ["Nidoking"] = {x = {
- m1 = combat1,
- spell = "Quick Attack",
- minLv = 65
- }
- },
- ["Vulpix"] = {x = {
- m1 = combat1,
- spell = "Quick Attack",
- minLv = 15
- }
- },
- ["Ninetales"] = {x = {
- m1 = combat1,
- spell = "Quick Attack",
- minLv = 70
- }
- },
- ["Ponyta"] = {x = {
- m1 = combat1,
- spell = "Quick Attack",
- minLv = 20
- }
- },
- ["Rapidash"] = {x = {
- m1 = combat1,
- spell = "Quick Attack",
- minLv = 55
- }
- },
- ["Scyther"] = {x = {
- m1 = combat1,
- spell = "Quick Attack",
- minLv = 80
- }
- },
- ["Electabuzz"] = {x = {
- m1 = combat1,
- spell = "Quick Attack",
- minLv = 80
- }
- },
- ["Vaporeon"] = {x = {
- m1 = combat1,
- spell = "Quick Attack",
- minLv = 55
- }
- },
- ["Jolteon"] = {x = {
- m1 = combat1,
- spell = "Quick Attack",
- minLv = 55
- }
- },
- ["Flareon"] = {x = {
- m1 = combat1,
- spell = "Quick Attack",
- minLv = 55
- }
- },
- ["Shiny Venusaur"] = {x = {
- m1 = combat1,
- spell = "Quick Attack",
- minLv = 100
- }
- },
- ["Shiny Rattata"] = {x = {
- m1 = combat1,
- spell = "Quick Attack",
- minLv = 1
- }
- },
- ["Shiny Raticate"] = {x = {
- m1 = combat1,
- spell = "Quick Attack",
- minLv = 25
- }
- },
- ["Shiny Scyther"] = {x = {
- m1 = combat1,
- spell = "Quick Attack",
- minLv = 100
- }
- },
- ["Shiny Scyther"] = {x = {
- m1 = combat1,
- spell = "Quick Attack",
- minLv = 100
- }
- },
- ["Zapdos"] = {x = {
- m1 = combat2,
- spell = "Whirlwind",
- minLv = 100
- }
- },
- ["Articuno"] = {x = {
- m1 = combat2,
- spell = "Whirlwind",
- minLv = 150
- }
- },
- ["Charmander"] = {x = {
- m1 = combat3,
- spell = "Scratch",
- minLv = 20
- }
- },
- ["Charmeleon"] = {x = {
- m1 = combat3,
- spell = "Scratch",
- minLv = 40
- }
- },
- ["Paras"] = {x = {
- m1 = combat3,
- spell = "Scratch",
- minLv = 5
- }
- },
- ["Mankey"] = {x = {
- m1 = combat3,
- spell = "Scratch",
- minLv = 15
- }
- },
- ["Primeape"] = {x = {
- m1 = combat3,
- spell = "Scratch",
- minLv = 50
- }
- },
- ["Magmar"] = {x = {
- m1 = combat3,
- spell = "Scratch",
- minLv = 80
- }
- },
- ["Pinsir"] = {x = {
- m1 = combat3,
- spell = "Scratch",
- minLv = 45
- }
- },
- ["Kabuto"] = {x = {
- m1 = combat3,
- spell = "Scratch",
- minLv = 20
- }
- },
- ["Kabutops"] = {x = {
- m1 = combat3,
- spell = "Scratch",
- minLv = 80
- }
- },
- ["Snorlax"] = {x = {
- m1 = combat3,
- spell = "Scratch",
- minLv = 85
- }
- },
- ["Shiny Paras"] = {x = {
- m1 = combat3,
- spell = "Scratch",
- minLv = 5
- }
- },
- ["Charizard"] = {x = {
- m1 = combat4,
- spell = "Dragon Claw",
- minLv = 85
- }
- },
- ["Shiny Charizard"] = {x = {
- m1 = combat4,
- spell = "Dragon Claw",
- minLv = 100
- }
- },
- ["Squirtle"] = {x = {
- m1 = combat5,
- spell = "Headbutt",
- minLv = 20
- }
- },
- ["Wartortle"] = {x = {
- m1 = combat5,
- spell = "Headbutt",
- minLv = 40
- }
- },
- ["Blastoise"] = {x = {
- m1 = combat5,
- spell = "Headbutt",
- minLv = 85
- }
- },
- ["Caterpie"] = {x = {
- m1 = combat5,
- spell = "Headbutt",
- minLv = 1
- }
- },
- ["Seel"] = {x = {
- m1 = combat5,
- spell = "Headbutt",
- minLv = 20
- }
- },
- ["Drowzee"] = {x = {
- m1 = combat5,
- spell = "Headbutt",
- minLv = 25
- }
- },
- ["Hypno"] = {x = {
- m1 = combat5,
- spell = "Headbutt",
- minLv = 55
- }
- },
- ["Cubone"] = {x = {
- m1 = combat5,
- spell = "Headbutt",
- minLv = 20
- }
- },
- ["Marowak"] = {x = {
- m1 = combat5,
- spell = "Headbutt",
- minLv = 55
- }
- },
- ["Tauros"] = {x = {
- m1 = combat5,
- spell = "Headbutt",
- minLv = 45
- }
- },
- ["Dragonair"] = {x = {
- m1 = combat5,
- spell = "Headbutt",
- minLv = 60
- }
- },
- ["Dragonite"] = {x = {
- m1 = combat5,
- spell = "Headbutt",
- minLv = 100
- }
- },
- ["Shiny Blastoise"] = {x = {
- m1 = combat5,
- spell = "Headbutt",
- minLv = 100
- }
- },
- ["Shiny Dratini"] = {x = {
- m1 = combat5,
- spell = "Headbutt",
- minLv = 20
- }
- },
- ["Metapod"] = {x = {
- m1 = combat6,
- spell = "String Shot",
- minLv = 15,
- distance = 3
- }
- },
- ["Butterfree"] = {x = {
- m1 = combat6,
- spell = "String Shot",
- minLv = 30,
- distance = 3
- }
- },
- ["Kakuna"] = {x = {
- m1 = combat6,
- spell = "String Shot",
- minLv = 15,
- distance = 3
- }
- },
- ["Beedrill"] = {x = {
- m1 = combat6,
- spell = "String Shot",
- minLv = 25,
- distance = 3
- }
- },
- ["Shiny Beedrill"] = {x = {
- m1 = combat6,
- spell = "String Shot",
- minLv = 25,
- distance = 3
- }
- },
- ["Weedle"] = {x = {
- m1 = combat7,
- spell = "Horn Attack",
- minLv = 1,
- distance = 3
- }
- },
- ["Goldeen"] = {x = {
- m1 = combat7,
- spell = "Horn Attack",
- minLv = 10,
- distance = 3
- }
- },
- ["Seaking"] = {x = {
- m1 = combat7,
- spell = "Horn Attack",
- minLv = 35,
- distance = 3
- }
- },
- ["Lapras"] = {x = {
- m1 = combat7,
- spell = "Horn Attack",
- minLv = 80,
- distance = 3
- }
- },
- ["Ekans"] = {x = {
- m1 = combat8,
- spell = "Bite",
- minLv = 15,
- distance = 3
- }
- },
- ["Ekans"] = {x = {
- m1 = combat8,
- spell = "Bite",
- minLv = 15,
- distance = 3
- }
- },
- ["Arbok"] = {x = {
- m1 = combat8,
- spell = "Bite",
- minLv = 35,
- distance = 3
- }
- },
- ["Kangaskhan"] = {x = {
- m1 = combat8,
- spell = "Bite",
- minLv = 80,
- distance = 3
- }
- },
- ["Omanyte"] = {x = {
- m1 = combat8,
- spell = "Bite",
- minLv = 20,
- distance = 3
- }
- },
- ["Omastar"] = {x = {
- m1 = combat8,
- spell = "Bite",
- minLv = 80,
- distance = 3
- }
- },
- ["Raichu"] = {x = {
- m1 = combat8,
- spell = "Mega Kick",
- minLv = 50
- }
- },
- ["Shiny Raichu"] = {x = {
- m1 = combat8,
- spell = "Mega Kick",
- minLv = 80
- }
- },
- ["Mew"] = {x = {
- m1 = combat1,
- spell = "Test",
- minLv = 1,
- distance = 3
- }
- }
- }
- function onCastSpell(cid, var)
- if #getCreatureSummons(cid) ~= 0 then
- for i = 1, #getCreatureSummons(cid) do
- if c[getCreatureName(getCreatureSummons(cid)[i])] then
- if getPlayerLevel(cid) >= c[getCreatureName(getCreatureSummons(cid)[i])].x.minLv then
- if not c[getCreatureName(getCreatureSummons(cid)[i])].distance then
- distance = 1
- else
- distance = c[getCreatureName(getCreatureSummons(cid)[i])].distance
- end
- if getDistanceBetween(getCreaturePosition(getCreatureSummons(cid)[i]), getCreaturePosition(getCreatureTarget(getCreatureSummons(cid)[i]))) <= distance then
- parameters = {cid = getCreatureSummons(cid)[i], cid2 = cid, combat = c[getCreatureName(getCreatureSummons(cid)[i])].x.m1, var = var, name = getCreatureName(getCreatureSummons(cid)[i]), spell = c[getCreatureName(getCreatureSummons(cid)[i])].x.spell}
- return onCastSpell1(parameters)
- else
- return doPlayerSendCancel(cid, "Sorry, your poke are too far away.")
- end
- else
- return doPlayerSendCancel(cid, "Sorry. You must be level " .. c[getCreatureName(getCreatureSummons(cid)[i])].x.minLv .. " or higher to cast.")
- end
- end
- end
- else
- return doPlayerSendCancel(cid, "Sosrry. You must have an pokemon to cast.")
- end
- return true
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement