Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local thunderwavecondition = createConditionObject(CONDITION_PARALYZE)
- setConditionParam(thunderwavecondition, CONDITION_PARAM_TICKS, 9000)
- setConditionFormula(thunderwavecondition, -0.75, -0.75, -0.75, -0.75)
- local waba = createCombatArea{
- {0, 1, 1, 1, 0},
- {1, 1, 1, 1, 1},
- {1, 1, 3, 1, 1},
- {1, 1, 1, 1, 1},
- {0, 1, 1, 1, 0},
- }
- local snorlax = {lookType = 258}
- dewgong = {lookType = 545}
- bigsnorlax = {lookType = 544}
- local skullb = createCombatArea{
- {0, 1, 1, 1, 0},
- {1, 1, 1, 1, 1},
- {1, 1, 2, 1, 1},
- {1, 1, 1, 1, 1},
- {0, 1, 1, 1, 0}
- }
- local ap1 = createCombatArea{
- {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
- {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
- {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
- {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
- {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
- {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
- {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
- {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
- {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
- {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
- {0, 0, 0, 0, 1, 2, 1, 0, 0, 0, 0}
- }
- local ap2 = createCombatArea{
- {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
- {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
- {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
- {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
- {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
- {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
- {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
- {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
- {0, 0, 0, 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}
- }
- local ap3 = createCombatArea{
- {0, 0, 0, 0, 1, 2, 1, 0, 0, 0, 0},
- {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
- {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
- {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
- {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
- {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
- {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
- {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
- {0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ap4 = createCombatArea{
- {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},
- {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
- {0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ap5 = createCombatArea{
- {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},
- {1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
- {2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
- {1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
- {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
- {0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ap6 = createCombatArea{
- {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},
- {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}
- }
- local ap7 = createCombatArea{
- {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, 1},
- {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2},
- {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1},
- {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
- {0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ap8 = createCombatArea{
- {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, 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}
- }
- local twn = createCombatArea{
- {0, 0, 0, 2, 0, 0, 0},
- {0, 0, 0, 1, 0, 0, 0},
- {0, 0, 0, 0, 0, 0, 0},
- {0, 0, 0, 1, 0, 0, 0},
- {0, 0, 1, 0, 1, 0, 0},
- {0, 0, 0, 1, 0, 0, 0},
- {0, 0, 0, 0, 0, 0, 0},
- }
- local tws = createCombatArea{
- {0, 0, 0, 0, 0, 0, 0},
- {0, 0, 0, 1, 0, 0, 0},
- {0, 0, 1, 0, 1, 0, 0},
- {0, 0, 0, 1, 0, 0, 0},
- {0, 0, 0, 0, 0, 0, 0},
- {0, 0, 0, 1, 0, 0, 0},
- {0, 0, 0, 2, 0, 0, 0},
- }
- local tww = createCombatArea{
- {0, 0, 0, 0, 0, 0, 0},
- {0, 0, 0, 0, 0, 0, 0},
- {0, 0, 0, 0, 1, 0, 0},
- {2, 1, 0, 1, 0, 1, 0},
- {0, 0, 0, 0, 1, 0, 0},
- {0, 0, 0, 0, 0, 0, 0},
- {0, 0, 0, 0, 0, 0, 0},
- }
- local twe = createCombatArea{
- {0, 0, 0, 0, 0, 0, 0},
- {0, 0, 0, 0, 0, 0, 0},
- {0, 0, 1, 0, 0, 0, 0},
- {0, 1, 0, 1, 0, 1, 2},
- {0, 0, 1, 0, 0, 0, 0},
- {0, 0, 0, 0, 0, 0, 0},
- {0, 0, 0, 0, 0, 0, 0},
- }
- local thunder = createCombatArea{
- {1, 0, 0, 1, 0, 0, 1},
- {0, 1, 0, 1, 0, 1, 0},
- {0, 0, 1, 1, 1, 0, 0},
- {1, 1, 1, 2, 1, 1, 1},
- {0, 0, 1, 1, 1, 0, 0},
- {0, 1, 0, 1, 0, 1, 0},
- {1, 0, 0, 1, 0, 0, 1},
- }
- local destruct1 = createCombatArea{
- {0, 0, 1, 0, 0},
- {0, 1, 1, 1, 0},
- {1, 1, 3, 1, 1},
- {0, 1, 1, 1, 0},
- {0, 0, 1, 0, 0}
- }
- local destruct2 = createCombatArea{
- {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
- {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
- {0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0},
- {0, 0, 0, 1, 1, 0, 1, 1, 0, 0, 0},
- {0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0},
- {0, 0, 1, 0, 0, 3, 0, 0, 1, 0, 0},
- {0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0},
- {0, 0, 0, 1, 1, 0, 1, 1, 0, 0, 0},
- {0, 0, 0, 0, 0, 1, 0, 0, 0, 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 destruct3 = createCombatArea{
- {0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0},
- {0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0},
- {0, 0, 0, 1, 1, 0, 1, 1, 0, 0, 0},
- {0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0},
- {0, 1, 1, 0, 0, 0, 0, 0, 1, 1, 0},
- {1, 1, 0, 0, 0, 3, 0, 0, 0, 1, 1},
- {0, 1, 1, 0, 0, 0, 0, 0, 1, 1, 0},
- {0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0},
- {0, 0, 0, 1, 1, 0, 1, 1, 0, 0, 0},
- {0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0},
- {0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0}
- }
- local confusion = createCombatArea{
- {0, 1, 1, 1, 0},
- {1, 1, 1, 1, 1},
- {1, 1, 2, 1, 1},
- {1, 1, 1, 1, 1},
- {0, 1, 1, 1, 0},
- }
- local stomp = createCombatArea{
- {1, 0, 1, 0, 1},
- {0, 1, 1, 1, 0},
- {1, 1, 2, 1, 1},
- {0, 1, 1, 1, 0},
- {1, 0, 1, 0, 1}
- }
- -- WATER GUN
- local bomb = createCombatArea{
- {0, 1, 0},
- {1, 3, 1},
- {0, 1, 0},
- }
- local wg1n = createCombatArea{
- {0, 0, 0},
- {0, 2, 0},
- {0, 1, 0},
- }
- local wg2n = createCombatArea{
- {0, 2, 0},
- {0, 0, 0},
- {0, 1, 0},
- {0, 1, 0},
- {0, 1, 0},
- }
- local wg3n = createCombatArea{
- {0, 2, 0},
- {0, 0, 0},
- {0, 0, 0},
- {0, 0, 0},
- {0, 0, 0},
- {0, 1, 0},
- }
- local wg1s = createCombatArea{
- {0, 1, 0},
- {0, 2, 0},
- {0, 0, 0},
- }
- local wg2s = createCombatArea{
- {0, 1, 0},
- {0, 1, 0},
- {0, 1, 0},
- {0, 0, 0},
- {0, 2, 0},
- }
- local wg3s = createCombatArea{
- {0, 1, 0},
- {0, 0, 0},
- {0, 0, 0},
- {0, 0, 0},
- {0, 0, 0},
- {0, 2, 0},
- }
- local wg1e = createCombatArea{
- {0, 0, 0},
- {1, 2, 0},
- {0, 0, 0},
- }
- local wg2e = createCombatArea{
- {1, 1, 1, 0, 2},
- }
- local wg3e = createCombatArea{
- {1, 0, 0, 0, 0, 2},
- }
- local wg1w = createCombatArea{
- {0, 0, 0},
- {0, 2, 1},
- {0, 0, 0},
- }
- local wg2w = createCombatArea{
- {2, 0, 1, 1, 1},
- }
- local wg3w = createCombatArea{
- {2, 0, 0, 0, 0, 1},
- }
- -- WATER GUN END
- local pump1 = createCombatArea{
- {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
- {0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0},
- {0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0},
- {0, 0, 0, 0, 1, 0, 1, 0, 0, 0, 0},
- {0, 0, 0, 1, 0, 1, 0, 1, 0, 0, 0},
- {0, 0, 1, 0, 1, 3, 1, 0, 1, 0, 0},
- {0, 0, 0, 1, 0, 1, 0, 1, 0, 0, 0},
- {0, 0, 0, 0, 1, 0, 1, 0, 0, 0, 0},
- {0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0},
- {0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0},
- {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
- }
- local pump2 = createCombatArea{
- {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
- {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
- {0, 0, 0, 0, 1, 0, 1, 0, 0, 0, 0},
- {0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0},
- {0, 0, 1, 0, 1, 0, 1, 0, 1, 0, 0},
- {0, 0, 0, 1, 0, 3, 0, 1, 0, 0, 0},
- {0, 0, 1, 0, 1, 0, 1, 0, 1, 0, 0},
- {0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0},
- {0, 0, 0, 0, 1, 0, 1, 0, 0, 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 tor1 = createCombatArea{
- {0, 1, 0},
- {1, 2, 1},
- {0, 1, 0},
- }
- local tor2 = createCombatArea{
- {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
- {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
- {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
- {0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0},
- {0, 0, 0, 0, 1, 0, 1, 0, 0, 0, 0},
- {0, 0, 0, 1, 0, 2, 0, 1, 0, 0, 0},
- {0, 0, 0, 0, 1, 0, 1, 0, 0, 0, 0},
- {0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0},
- {0, 0, 0, 0, 0, 0, 0, 0, 0, 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 tor3 = createCombatArea{
- {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
- {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
- {0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0},
- {0, 0, 0, 0, 1, 0, 1, 0, 0, 0, 0},
- {0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0},
- {0, 0, 1, 0, 0, 2, 0, 0, 1, 0, 0},
- {0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0},
- {0, 0, 0, 0, 1, 0, 1, 0, 0, 0, 0},
- {0, 0, 0, 0, 0, 1, 0, 0, 0, 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 earthquake = createCombatArea{
- {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
- {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
- {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
- {0, 0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0, 0},
- {0, 0, 0, 0, 1, 1, 1, 1, 1, 0, 0, 0, 0},
- {0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0},
- {0, 0, 1, 1, 1, 1, 2, 1, 1, 1, 1, 0, 0},
- {0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0},
- {0, 0, 0, 0, 1, 1, 1, 1, 1, 0, 0, 0, 0},
- {0, 0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0, 0},
- {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
- {0, 0, 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 sand1 = createCombatArea{
- {0, 0, 0},
- {0, 3, 0},
- {0, 0, 0},
- }
- local whirl3 = createCombatArea{
- {0, 0, 0},
- {1, 3, 1},
- {0, 0, 0},
- }
- local whirl5 = createCombatArea{
- {0, 0, 0, 0, 0},
- {1, 1, 3, 1, 1},
- {0, 0, 0, 0, 0},
- }
- local whirl32 = createCombatArea{
- {0, 0, 0},
- {1, 3, 1},
- {0, 0, 0},
- }
- local whirl52 = createCombatArea{
- {0, 0, 0, 0, 0},
- {1, 1, 3, 1, 1},
- {0, 0, 0, 0, 0},
- }
- --WING ATTACK
- local wingn = createCombatArea{
- {0, 0, 0},
- {1, 2, 0},
- {0, 0, 0},
- }
- local wings = createCombatArea{
- {1, 0, 0},
- {0, 2, 0},
- {0, 0, 0},
- }
- local winge = createCombatArea{
- {1, 0, 0},
- {0, 2, 0},
- {0, 0, 0},
- }
- local wingw = createCombatArea{
- {0, 2, 3},
- {0, 2, 2},
- {0, 0, 0},
- }
- local wingds = createCombatArea{
- {1, 1, 1},
- {0, 2, 0},
- {0, 0, 0},
- }
- local wingdn = createCombatArea{
- {0, 0, 0},
- {0, 2, 0},
- {1, 1, 1},
- }
- local wingde = createCombatArea{
- {1, 0, 0},
- {1, 2, 0},
- {1, 0, 0},
- }
- local wingdw = createCombatArea{
- {0, 0, 1},
- {0, 2, 1},
- {0, 0, 1},
- }
- local tsn = createCombatArea{
- {0, 0, 0, 2, 0, 0, 0},
- {0, 0, 0, 1, 0, 0, 0},
- {0, 0, 1, 1, 1, 0, 0},
- {0, 0, 1, 1, 1, 0, 0},
- {0, 1, 1, 1, 1, 1, 0},
- }
- local tss = createCombatArea{
- {0, 1, 1, 1, 1, 1, 0},
- {0, 0, 1, 1, 1, 0, 0},
- {0, 0, 1, 1, 1, 0, 0},
- {0, 0, 0, 1, 0, 0, 0},
- {0, 0, 0, 2, 0, 0, 0},
- }
- local tse = createCombatArea{
- {0, 0, 1, 0, 0, 0, 0},
- {0, 0, 1, 1, 1, 0, 0},
- {0, 0, 1, 1, 1, 1, 2},
- {0, 0, 1, 1, 1, 0, 0},
- {0, 0, 1, 0, 0, 0, 0},
- }
- local tsw = createCombatArea{
- {0, 0, 0, 0, 0, 0, 1},
- {0, 0, 0, 0, 1, 1, 1},
- {0, 0, 2, 1, 1, 1, 1},
- {0, 0, 0, 0, 1, 1, 1},
- {0, 0, 0, 0, 0, 0, 1},
- }
- local pokeis = {'Bulbasaur', 'Ivysaur', 'Venusaur', 'Charmeleon', 'Charizard', 'Wartortle', 'Blastoise',
- 'Butterfree', 'Fearow', 'Arbok', 'Raichu', 'Nidoqueen', 'Nidoking', 'Clefable', 'Ninetales', 'Wigglytuff',
- 'Vileplume', 'Parasect', 'Venonat', 'Venomoth', 'Dugtrio', 'Golduck', 'Primeape', 'Arcanine', 'Poliwrath',
- 'Kadabra', 'Alakazam', 'Machamp', 'Victreebel', 'Tentacruel', 'Slowbro', 'Dewgong', 'Cloyster', 'Gengar', 'Onix', 'Hypno', 'Exeggutor', 'Marowak', 'Hitmonchan', 'Lickitung', 'Weezing', 'Rhydon',
- 'Kangaskhan', 'Seadra', 'Golem', 'Sandslash', 'Starmie', 'Jinx', 'Pinsir', 'Gyarados', 'Lapras', 'Ditto',
- 'Vaporeon', 'Jolteon', 'Flareon', 'Porygon', 'Omastar', 'Aerodactyl', 'Snorlax', 'Zapdos', 'Dragonite',
- 'Elder Charizard', 'Crystal Onix', 'Jynx', 'Electrode', 'Shiny Venonat', 'Shiny Butterfree', 'Shiny Seadra', 'Shiny Parasect', 'Shiny Raichu', 'Shiny Venomoth', 'Shiny Arcanine', 'Shiny Tentacruel', 'Shiny Jynx',
- 'Shiny Venusaur', 'Shiny Blastoise', 'Red Gyarados', 'Shiny Gengar', 'Shiny Alakazam', 'Shiny Dragonite', 'Shiny Ninetales', 'Big Snorlax'}
- local c = {
- [25] = {x = {
- pok = bulbasaur,
- spell = "Stun Spore",
- minLv = 28,
- ex = 1000008,
- base1 = 0,
- base2 = 0,
- dista = 5,
- target = "no",
- bonus = 0,
- type = "grass",
- cd = 25
- }
- },
- [24] = {x = {
- pok = ivysaur,
- spell = "Sleep Powder",
- minLv = 44,
- ex = 2000008,
- base1 = 0,
- base2 = 0,
- dista = 5,
- target = "no",
- bonus = 0,
- type = "grass",
- cd = 30
- }
- },
- [22] = {x = {
- pok = venusaur,
- spell = "Sleep Powder",
- minLv = 85,
- ex = 3000008,
- base1 = 0,
- base2 = 0,
- dista = 5,
- target = "no",
- bonus = 0,
- type = "grass",
- cd = 30
- }
- },
- [496] = {x = {
- pok = shinyvenusaur,
- spell = "Sleep Powder",
- minLv = 85,
- ex = 3000008,
- base1 = 0,
- base2 = 0,
- dista = 5,
- target = "no",
- bonus = 0,
- type = "grass",
- cd = 30
- }
- },
- [23] = {x = {
- pok = charmeleon,
- spell = "Rage",
- minLv = 40,
- ex = 5000008,
- base1 = 100,
- base2 = 110,
- dista = 3,
- target = "yes",
- bonus = 4,
- type = "dragon",
- cd = 22
- }
- },
- [67] = {x = {
- pok = charizard,
- spell = "Wing Attack",
- minLv = 90,
- ex = 5000008,
- base1 = 150,
- base2 = 200,
- dista = 1,
- bonus = 6,
- target = "no",
- type = "flying",
- cd = 20
- }
- },
- [6] = {x = {
- pok = wartortle,
- spell = "Harden",
- minLv = 40,
- ex = 1100008,
- lpl = 93,
- life = 2800,
- base1 = 0,
- base2 = 0,
- dista = 1,
- target = "no",
- bonus = 0,
- type = "normal",
- cd = 14
- }
- },
- [55] = {x = {
- pok = blastoise,
- spell = "Skull Bash",
- minLv = 90,
- ex = 1100008,
- base1 = 190,
- base2 = 225,
- dista = 5,
- target = "no",
- bonus = 10,
- type = "normal",
- cd = 18
- }
- },
- [495] = {x = {
- pok = shinyblastoise,
- spell = "Skull Bash",
- minLv = 90,
- ex = 1100008,
- base1 = 190,
- base2 = 225,
- dista = 5,
- target = "no",
- bonus = 10,
- type = "normal",
- cd = 18
- }
- },
- [40] = {x = {
- pok = butterfree,
- spell = "Stun Spore",
- minLv = 30,
- ex = 1300008,
- base1 = 0,
- base2 = 0,
- dista = 5,
- target = "no",
- bonus = 0,
- type = "grass",
- cd = 25
- }
- },
- [485] = {x = {
- pok = shinybutterfree,
- spell = "Stun Spore",
- minLv = 30,
- ex = 1300008,
- base1 = 0,
- base2 = 0,
- dista = 5,
- target = "no",
- bonus = 0,
- type = "grass",
- cd = 25
- }
- },
- [17] = {x = {
- pok = fearow,
- spell = "Rage",
- minLv = 55,
- ex = 2600005,
- base1 = 120,
- base2 = 130,
- dista = 4,
- target = "yes",
- bonus = 3.5,
- type = "dragon",
- cd = 20
- }
- },
- [39] = {x = {
- pok = arbok,
- spell = "Rage",
- minLv = 40,
- ex = 2700008,
- base1 = 140,
- base2 = 176,
- dista = 5,
- target = "yes",
- bonus = 4,
- type = "dragon",
- cd = 15
- }
- },
- [50] = {x = {
- pok = raichu,
- spell = "Electric Storm",
- minLv = 65,
- ex = 2900008,
- base1 = 100,
- base2 = 200,
- dista = 5,
- target = "no",
- bonus = 5,
- type = "electric",
- cd = 19
- }
- },
- [511] = {x = {
- pok = shinyraichu,
- spell = "Electric Storm",
- minLv = 65,
- ex = 2900008,
- base1 = 100,
- base2 = 200,
- dista = 5,
- target = "no",
- bonus = 5,
- type = "electric",
- cd = 19
- }
- },
- [79] = {x = {
- pok = nidoqueen,
- spell = "Stomp",
- minLv = 69,
- ex = 3100008,
- base1 = 110,
- base2 = 170,
- dista = 1,
- bonus = 4.5,
- target = "no",
- type = "ground",
- cd = 10
- }
- },
- [35] = {x = {
- pok = nidoking,
- spell = "Stomp",
- minLv = 69,
- ex = 3400008,
- base1 = 170,
- base2 = 200,
- dista = 1,
- bonus = 5,
- target = "no",
- type = "ground",
- cd = 9
- }
- },
- [68] = {x = {
- pok = clefable,
- spell = "Focus",
- minLv = 52,
- ex = 3600008,
- base1 = 0,
- base2 = 0,
- dista = 5,
- Target = "no",
- bonus = 3,
- type = "normal",
- cd = 50
- }
- },
- [114] = {x = {
- pok = Ninetales,
- spell = "Magma Storm",
- minLv = 85,
- ex = 3800008,
- base1 = 240,
- base2 = 390,
- dista = 5,
- target = "no",
- bonus = 4,
- type = "fire",
- cd = 18
- }
- },
- [541] = {x = {
- pok = shinyninetales,
- spell = "Magma Storm",
- minLv = 85,
- ex = 3800008,
- base1 = 240,
- base2 = 390,
- dista = 5,
- target = "no",
- bonus = 4,
- type = "fire",
- cd = 18
- }
- },
- [64] = {x = {
- pok = Wigglytuff,
- spell = "Melody",
- minLv = 50,
- ex = 4000008,
- base1 = 200,
- base2 = 300,
- dista = 5,
- target = "no",
- bonus = 8.5,
- type = "Normal",
- cd = 60
- }
- },
- [86] = {x = {
- pok = vileplume,
- spell = "Sleep Powder",
- minLv = 50,
- ex = 4500008,
- base1 = 0,
- base2 = 0,
- dista = 4,
- target = "no",
- bonus = 0,
- type = "grass",
- cd = 46
- }
- },
- [95] = {x = {
- pok = parasect,
- spell = "Sleep Powder",
- minLv = 50,
- ex = 4700008,
- base1 = 20,
- base2 = 40,
- dista = 4,
- target = "no",
- bonus = 3,
- target = "no",
- type = "grass",
- cd = 17
- }
- },
- [501] = {x = {
- pok = shinyparasect,
- spell = "Sleep Powder",
- minLv = 50,
- ex = 4700008,
- base1 = 20,
- base2 = 40,
- dista = 4,
- target = "no",
- bonus = 3,
- target = "no",
- type = "grass",
- cd = 17
- }
- },
- [52] = {x = {
- pok = venonat,
- spell = "Stun Spore",
- minLv = 20,
- ex = 4800008,
- base1 = 0,
- base2 = 0,
- dista = 1,
- bonus = 0,
- target = "no",
- type = "grass",
- cd = 20
- }
- },
- [517] = {x = {
- pok = shinyvenonat,
- spell = "Stun Spore",
- minLv = 20,
- ex = 4800008,
- base1 = 0,
- base2 = 0,
- dista = 1,
- bonus = 0,
- target = "no",
- type = "grass",
- cd = 20
- }
- },
- [49] = {x = {
- pok = venomoth,
- spell = "Poison Powder",
- minLv = 50,
- ex = 4900008,
- base1 = 50,
- base2 = 80,
- dista = 5,
- target = "no",
- bonus = 4,
- type = "poison",
- cd = 43
- }
- },
- [484] = {x = {
- pok = shinyvenomoth,
- spell = "Poison Powder",
- minLv = 50,
- ex = 4900008,
- base1 = 50,
- base2 = 80,
- dista = 5,
- target = "no",
- bonus = 4,
- type = "poison",
- cd = 43
- }
- },
- [83] = {x = {
- pok = dugtrio,
- spell = "Rage",
- minLv = 45,
- ex = 5100008,
- base1 = 110,
- base2 = 132,
- dista = 3,
- bonus = 4.9,
- type = "dragon",
- cd = 43
- }
- },
- [99] = {x = {
- pok = golduck,
- spell = "Mega Kick",
- minLv = 55,
- ex = 5500008,
- base1 = 110,
- base2 = 140,
- dista = 1,
- bonus = 4,
- type = "fighting",
- cd = 35
- }
- },
- [103] = {x = {
- pok = primeape,
- spell = "Fear",
- minLv = 60,
- ex = 5700008,
- base1 = 110,
- base2 = 160,
- dista = 3,
- target = "no",
- bonus = 4,
- type = "ghost",
- cd = 12
- }
- },
- [88] = {x = {
- pok = arcanine,
- spell = "Fire Blast",
- minLv = 82,
- ex = 5900008,
- base1 = 120,
- base2 = 210,
- dista = 5,
- target = "no",
- bonus = 8,
- type = "fire",
- cd = 19
- }
- },
- [493] = {x = {
- pok = shinyarcanine,
- spell = "Fire Blast",
- minLv = 82,
- ex = 5900008,
- base1 = 120,
- base2 = 210,
- dista = 5,
- target = "no",
- bonus = 8,
- type = "fire",
- cd = 19
- }
- },
- [104] = {x = {
- pok = poliwrath,
- spell = "Ice Beam",
- minLv = 73,
- ex = 6200008,
- base1 = 100,
- base2 = 187,
- dista = 5,
- target = "no",
- bonus = 10,
- type = "ice",
- cd = 17
- }
- },
- [219] = {x = {
- pok = kadabra,
- spell = "Reflect",
- minLv = 60,
- ex = 6400008,
- base1 = 190,
- base2 = 225,
- dista = 5,
- target = "no",
- bonus = 4,
- type = "psychic",
- cd = 30
- }
- },
- [218] = {x = {
- pok = alakazam,
- spell = "Hypnosis",
- minLv = 80,
- ex = 6500008,
- base1 = 0,
- base2 = 0,
- dista = 3,
- bonus = 5,
- type = "psychic",
- cd = 30
- }
- },
- [535] = {x = {
- pok = shinyalakazam,
- spell = "Hypnosis",
- minLv = 80,
- ex = 6500008,
- base1 = 0,
- base2 = 0,
- dista = 3,
- bonus = 5,
- type = "psychic",
- cd = 30
- }
- },
- [121] = {x = {
- pok = machamp,
- spell = "Strafe",
- minLv = 70,
- ex = 6800008,
- base1 = 120,
- base2 = 180,
- dista = 4,
- target = "no",
- bonus = 5,
- type = "normal",
- cd = 27
- }
- },
- [240] = {x = {
- pok = victreebel,
- spell = "Sleep Powder",
- minLv = 55,
- ex = 7100008,
- base1 = 0,
- base2 = 0,
- dista = 1,
- bonus = 0,
- type = "grass",
- cd = 20
- }
- },
- [108] = {x = {
- pok = tentacruel,
- spell = "Psywave",
- minLv = 80,
- ex = 7300008,
- base1 = 125,
- base2 = 150,
- dista = 5,
- target = "no",
- bonus = 3.5,
- type = "psychic",
- cd = 15
- }
- },
- [489] = {x = {
- pok = shinytentacruel,
- spell = "Psywave",
- minLv = 80,
- ex = 7300008,
- base1 = 125,
- base2 = 150,
- dista = 5,
- target = "no",
- bonus = 3.5,
- type = "psychic",
- cd = 15
- }
- },
- [41] = {x = {
- pok = slowbro,
- spell = "Psychic",
- minLv = 55,
- ex = 8000008,
- base1 = 70,
- base2 = 120,
- dista = 5,
- target = "no",
- bonus = 4,
- type = "psychic",
- cd = 7
- }
- },
- [110] = {x = {
- pok = dewgong,
- spell = "Rest",
- minLv = 71,
- ex = 8700008,
- base1 = 560,
- base2 = 1180,
- dista = 5,
- target = "no",
- bonus = 4.1,
- type = "normal",
- cd = 122
- }
- },
- [545] = {x = {
- pok = dewgongrest,
- spell = "Rest",
- minLv = 71,
- ex = 8700008,
- base1 = 560,
- base2 = 1180,
- dista = 5,
- target = "no",
- bonus = 4.1,
- type = "normal",
- cd = 122
- }
- },
- [72] = {x = {
- pok = cloyster,
- spell = "Harden",
- minLv = 62,
- ex = 9100008,
- lpl = 155,
- life = 5000,
- base1 = 0,
- base2 = 0,
- dista = 5,
- bonus = 0,
- target = "no",
- type = "normal",
- cd = 8
- }
- },
- [244] = {x = {
- pok = gengar,
- spell = "Hypnosis",
- minLv = 80,
- ex = 9400008,
- base1 = 0,
- base2 = 0,
- dista = 3,
- bonus = 4.5,
- type = "ghost",
- cd = 40
- }
- },
- [534] = {x = {
- pok = shinygengar,
- spell = "Hypnosis",
- minLv = 80,
- ex = 9400008,
- base1 = 0,
- base2 = 0,
- dista = 3,
- bonus = 4.5,
- type = "ghost",
- cd = 40
- }
- },
- [248] = {x = {
- pok = onix,
- spell = "Harden",
- minLv = 50,
- ex = 9500008,
- lpl = 150,
- life = 5300,
- base1 = 0,
- base2 = 0,
- dista = 4,
- target = "no",
- bonus = 0,
- type = "normal",
- cd = 25
- }
- },
- [119] = {x = {
- pok = hypno,
- spell = "Focus",
- minLv = 70,
- ex = 9700008,
- base1 = 0,
- base2 = 0,
- Target = "no",
- dista = 5,
- bonus = 4.8,
- type = "normal",
- cd = 20
- }
- },
- [46] = {x = {
- pok = exeggutor,
- spell = "Poison Powder",
- minLv = 55,
- ex = 1030008,
- base1 = 30,
- base2 = 50,
- dista = 5,
- target = "no",
- bonus = 4,
- type = "poison",
- cd = 32
- }
- },
- [197] = {x = {
- pok = marowak,
- spell = "Rage",
- minLv = 65,
- ex = 1050008,
- base1 = 100,
- base2 = 130,
- dista = 3,
- bonus = 4.5,
- type = "dragon",
- cd = 12
- }
- },
- [38] = {x = {
- pok = hitmonchan,
- spell = "Fist Machine",
- minLv = 60,
- ex = 1070008,
- base1 = 196,
- base2 = 219,
- target = "no",
- bonus = 7,
- type = "fighting",
- cd = 35
- }
- },
- [11] = {x = {
- pok = lickitung,
- spell = "Strafe",
- minLv = 55,
- ex = 1080008,
- base1 = 100,
- base2 = 140,
- dista = 1,
- bonus = 3.5,
- type = "normal",
- cd = 25
- }
- },
- [231] = {x = {
- pok = weezing,
- spell = "Selfdestruct",
- minLv = 50,
- ex = 1100008,
- base1 = 350,
- base2 = 580,
- dista = 5,
- target = "no",
- bonus = 3.5,
- type = "normal",
- cd = 13
- }
- },
- [200] = {x = {
- pok = rhydon,
- spell = "Mega Horn",
- minLv = 82,
- ex = 1120008,
- base1 = 110,
- base2 = 300,
- dista = 3,
- bonus = 9,
- type = "rock",
- cd = 15
- }
- },
- [198] = {x = {
- pok = kangaskhan,
- spell = "Rage",
- minLv = 80,
- ex = 1150008,
- base1 = 136,
- base2 = 149,
- dista = 1,
- target = "yes",
- bonus = 4,
- type = "dragon",
- cd = 25
- }
- },
- [276] = {x = {
- pok = seadra,
- spell = "Hydro Cannon",
- minLv = 55,
- ex = 1170008,
- base1 = 190,
- base2 = 245,
- dista = 1,
- bonus = 13,
- target = "no",
- type = "water",
- cd = 30
- }
- },
- [515] = {x = {
- pok = shinyseadra,
- spell = "Hydro Cannon",
- minLv = 55,
- ex = 1170008,
- base1 = 190,
- base2 = 245,
- dista = 1,
- bonus = 13,
- target = "no",
- type = "water",
- cd = 30
- }
- },
- [116] = {x = {
- pok = golem,
- spell = "Selfdestruct",
- minLv = 75,
- ex = 7600008,
- base1 = 480,
- base2 = 790,
- dista = 5,
- target = "no",
- bonus = 6,
- type = "normal",
- cd = 100
- }
- },
- [288] = {x = {
- pok = golemroll,
- spell = "Selfdestruct",
- minLv = 75,
- ex = 7600008,
- base1 = 480,
- base2 = 790,
- dista = 5,
- target = "no",
- bonus = 6,
- type = "normal",
- cd = 100
- }
- },
- [115] = {x = {
- pok = sandslash,
- spell = "Earthquake",
- minLv = 70,
- ex = 2800008,
- base1 = 70,
- base2 = 100,
- dista = 3,
- target = "no",
- bonus = 1.6,
- type = "ground",
- cd = 45
- }
- },
- [285] = {x = {
- pok = sandslashroll,
- spell = "Earthquake",
- minLv = 70,
- ex = 2800008,
- base1 = 70,
- base2 = 100,
- dista = 3,
- target = "no",
- bonus = 1.6,
- type = "rock",
- cd = 28
- }
- },
- [249] = {x = {
- pok = starmie,
- spell = "Restore",
- minLv = 35,
- ex = 1210008,
- base1 = 180,
- base2 = 240,
- dista = 5,
- target = "no",
- bonus = 2.9,
- type = "psychic",
- cd = 10
- }
- },
- [282] = {x = {
- pok = jynx,
- spell = "Blizzard",
- minLv = 81,
- ex = 1240008,
- base1 = 115,
- base2 = 150,
- dista = 5,
- target = "no",
- bonus = 10,
- type = "ice",
- cd = 30
- }
- },
- [499] = {x = {
- pok = shinyjynx,
- spell = "Blizzard",
- minLv = 81,
- ex = 1240008,
- base1 = 115,
- base2 = 150,
- dista = 5,
- target = "no",
- bonus = 10,
- type = "ice",
- cd = 30
- }
- },
- [53] = {x = {
- pok = pinsir,
- spell = "Rage",
- minLv = 60,
- ex = 1270008,
- base1 = 110,
- base2 = 130,
- dista = 1,
- bonus = 3.5,
- type = "dragon",
- cd = 17
- }
- },
- [117] = {x = {
- pok = gyarados,
- spell = "Hydropump",
- minLv = 93,
- ex = 1300005,
- base1 = 160,
- base2 = 320,
- dista = 5,
- target = "no",
- bonus = 3.5,
- type = "water",
- cd = 23
- }
- },
- [528] = {x = {
- pok = redgyarados,
- spell = "Hydropump",
- minLv = 93,
- ex = 1300005,
- base1 = 160,
- base2 = 320,
- dista = 5,
- target = "no",
- bonus = 3.5,
- type = "water",
- cd = 23
- }
- },
- [193] = {x = {
- pok = lapras,
- spell = "Hydropump",
- minLv = 90,
- ex = 1310008,
- base1 = 123,
- base2 = 287,
- dista = 5,
- target = "no",
- bonus = 4,
- type = "water",
- cd = 12
- }
- },
- [28] = {x = {
- pok = ditto,
- spell = "",
- minLv = 40,
- ex = 1320008,
- base1 = 125,
- base2 = 130,
- dista = 5,
- bonus = 3,
- target = "no",
- type = "normal",
- cd = 20
- }
- },
- [215] = {x = {
- pok = vaporeon,
- spell = "Hydro Cannon",
- minLv = 65,
- ex = 1340008,
- base1 = 109,
- base2 = 189,
- dista = 1,
- bonus = 3,
- target = "no",
- type = "water",
- cd = 20
- }
- },
- [195] = {x = {
- pok = jolteon,
- spell = "Thunder",
- minLv = 65,
- ex = 1350008,
- base1 = 110,
- base2 = 189,
- dista = 5,
- target = "no",
- bonus = 3,
- type = "electric",
- cd = 13
- }
- },
- [14] = {x = {
- pok = flareon,
- spell = "Fire Blast",
- minLv = 65,
- ex = 1360008,
- base1 = 110,
- base2 = 189,
- dista = 1,
- target = "no",
- bonus = 3,
- type = "fire",
- cd = 20
- }
- },
- [97] = {x = {
- pok = porygon,
- spell = "Restore",
- minLv = 40,
- ex = 1370008,
- base1 = 165,
- base2 = 215,
- dista = 5,
- bonus = 3.5,
- target = "no",
- type = "psychic",
- cd = 30
- }
- },
- [192] = {x = {
- pok = omastar,
- spell = "Ancient Power",
- minLv = 95,
- ex = 1390008,
- base1 = 240,
- base2 = 380,
- dista = 5,
- target = "no",
- bonus = 5,
- type = "rock",
- cd = 34
- }
- },
- [10] = {x = {
- pok = aerodactyl,
- spell = "Wing Attack",
- minLv = 100,
- ex = 1420008,
- base1 = 150,
- base2 = 345,
- dista = 1,
- bonus = 6.5,
- target = "no",
- type = "flying",
- cd = 12
- }
- },
- [51] = {x = {
- pok = snorlax,
- spell = "Rest",
- minLv = 85,
- ex = 1430008,
- base1 = 100,
- base2 = 150,
- dista = 5,
- target = "no",
- bonus = 0,
- type = "normal",
- cd = 64
- }
- },
- [258] = {x = {
- pok = snorlaxrest,
- spell = "Rest",
- minLv = 85,
- ex = 1430008,
- base1 = 100,
- base2 = 150,
- dista = 5,
- bonus = 0,
- type = "normal",
- cd = 64
- }
- },
- [543] = {x = {
- pok = bigsnorlax,
- spell = "Rest",
- minLv = 85,
- ex = 1430008,
- base1 = 100,
- base2 = 150,
- dista = 5,
- target = "no",
- bonus = 0,
- type = "normal",
- cd = 64
- }
- },
- [544] = {x = {
- pok = bigsnorlaxrest,
- spell = "Rest",
- minLv = 85,
- ex = 1430008,
- base1 = 100,
- base2 = 150,
- dista = 5,
- bonus = 0,
- type = "normal",
- cd = 64
- }
- },
- [199] = {x = {
- pok = Zapdos,
- spell = "Tornado",
- minLv = 100,
- ex = 1450008,
- base1 = 390,
- base2 = 678,
- dista = 5,
- target = "no",
- bonus = 9,
- type = "flying",
- cd = 11
- }
- },
- [210] = {x = {
- pok = dragonite,
- spell = "Twister",
- minLv = 104,
- ex = 1490008,
- base1 = 278,
- base2 = 300,
- dista = 1,
- bonus = 6.5,
- target = "no",
- type = "dragon",
- cd = 20
- }
- },
- [537] = {x = {
- pok = shinydragonite,
- spell = "Twister",
- minLv = 104,
- ex = 1490008,
- base1 = 278,
- base2 = 300,
- dista = 1,
- bonus = 6.5,
- target = "no",
- type = "dragon",
- cd = 20
- }
- },
- [294] = {x = {
- pok = eldercharizard,
- spell = "Wing Attack",
- minLv = 100,
- ex = 1500008,
- base1 = 390,
- base2 = 410,
- dista = 1,
- bonus = 6.8,
- target = "no",
- type = "flying",
- cd = 17
- }
- },
- [292] = {x = {
- pok = crystalOnix,
- spell = "Harden",
- minLv = 100,
- ex = 1510008,
- lpl = 155,
- life = 5000,
- base1 = 0,
- base2 = 0,
- dista = 1,
- bonus = 0,
- type = "normal",
- cd = 25
- }
- },
- [125] = {x = {
- pok = electrode,
- spell = "Charge Beam",
- minLv = 40,
- ex = 1010008,
- base1 = 100,
- base2 = 187,
- dista = 5,
- target = "no",
- bonus = 10,
- type = "electric",
- cd = 19
- }
- },
- [286] = {x = {
- pok = electroderoll,
- spell = "Charge Beam",
- minLv = 40,
- ex = 1010008,
- base1 = 100,
- base2 = 187,
- dista = 5,
- target = "no",
- bonus = 10,
- type = "electric",
- cd = 19
- }
- },
- }
- function onSay(cid)
- if #getCreatureSummons(cid) == 0 then
- doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "You need a pokemon to use moves.")
- return 0
- end
- if getTilePzInfo(getPlayerPosition(cid)) then
- doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Can't use Moves on protect zone.")
- return true
- end
- if not isInArray(pokeis, getCreatureName(getCreatureSummons(cid)[1])) then
- doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Your pokemon doesn\'t recognize this move.")
- return 0
- end
- pokemon = c[getCreatureOutfit(getCreatureSummons(cid)[1]).lookType]
- if getPlayerLevel(cid) < c[getCreatureOutfit(getCreatureSummons(cid)[1]).lookType].x.minLv then
- doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "You don\'t have enough level to use this move.")
- return 0
- end
- if exhaustion.get(cid, pokemon.x.ex) then
- seconds = math.floor(((exhaustion.get(cid, pokemon.x.ex)) + 1))
- doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "You have to wait "..seconds.." seconds to use this move again.")
- return 0
- end
- if getPlayerStorageValue(getCreatureSummons(cid)[1], 3) >= 1 then
- doSendAnimatedText(getThingPos(getCreatureSummons(cid)[1]), "MISS", 215)
- setPlayerStorageValue(getCreatureSummons(cid)[1], 3, -1)
- doCreatureSay(cid, ""..getCreatureName(getCreatureSummons(cid)[1])..", use "..c[getCreatureOutfit(getCreatureSummons(cid)[1]).lookType].x.spell.."!", TALKTYPE_SAY)
- exhaustion.set(cid, pokemon.x.ex, pokemon.x.cd)
- return true
- end
- if getPlayerStorageValue(getCreatureSummons(cid)[1], 5) >= 1 then
- if math.random(1,100) <= 33 then
- doSendAnimatedText(getThingPos(getCreatureSummons(cid)[1]), "SELF HIT", 180)
- local levels = getPlayerLevel(cid)
- doTargetCombatHealth(cid, getCreatureSummons(cid)[1], COMBAT_PHYSICALDAMAGE, -(math.random((levels*3),(levels*5))), -((math.random((levels*3),(levels*5))+10)), 3)
- doCreatureSay(cid, ""..getCreatureName(getCreatureSummons(cid)[1])..", use "..c[getCreatureOutfit(getCreatureSummons(cid)[1]).lookType].x.spell.."!", TALKTYPE_SAY)
- exhaustion.set(cid, pokemon.x.ex, pokemon.x.cd)
- doCreatureSay(getCreatureSummons(cid)[1], ""..string.upper(c[getCreatureOutfit(getCreatureSummons(cid)[1]).lookType].x.spell).."!", TALKTYPE_MONSTER)
- return true
- end
- end
- if pokemon.x.target ~= "no" then
- if not isCreature(getCreatureTarget(cid)) then
- doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "You don\'t have any targets.")
- return 0
- end
- if getCreatureCondition(getCreatureTarget(cid), CONDITION_INVISIBLE) then
- return 0
- end
- if getCreatureHealth(getCreatureTarget(cid)) <= 0 then
- doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Your have already defeated your target.")
- return 0
- end
- if not isCreature(getCreatureSummons(cid)[1]) then
- return true
- end
- if getDistanceBetween(getThingPos(getCreatureSummons(cid)[1]), getThingPos(getCreatureTarget(cid))) > pokemon.x.dista then
- doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Get closer to the target to use this move.")
- return 0
- end
- if not isSightClear(getThingPos(getCreatureSummons(cid)[1]), getThingPos(getCreatureTarget(cid)), false) then
- return 0
- end
- end
- if pokemon.x.type == "flying" then
- elementa = FLYDAMAGE
- elseif pokemon.x.type == "ground" then
- elementa = GROUNDDAMAGE
- elseif pokemon.x.type == "electric" then
- elementa = ELECTRICDAMAGE
- elseif pokemon.x.type == "ghost" then
- elementa = GHOSTDAMAGE
- elseif pokemon.x.type == "normal" then
- elementa = NORMALDAMAGE
- elseif pokemon.x.type == "fighting" then
- elementa = FIGHTINGDAMAGE
- elseif pokemon.x.type == "poison" then
- elementa = POISONDAMAGE
- elseif pokemon.x.type == "rock" then
- elementa = ROCKDAMAGE
- elseif pokemon.x.type == "bug" then
- elementa = BUGDAMAGE
- elseif pokemon.x.type == "fire" then
- elementa = FIREDAMAGE
- elseif pokemon.x.type == "water" then
- elementa = WATERDAMAGE
- elseif pokemon.x.type == "grass" then
- elementa = GRASSDAMAGE
- elseif pokemon.x.type == "psychic" then
- elementa = PSYCHICDAMAGE
- elseif pokemon.x.type == "ice" then
- elementa = ICEDAMAGE
- elseif pokemon.x.type == "dragon" then
- elementa = DRAGONDAMAGE
- end
- local element = elementa
- local num1 = (pokemon.x.base1)
- local num2 = (pokemon.x.base2)
- local num3 = (pokemon.x.bonus)
- setPlayerStorageValue(getCreatureSummons(cid)[1], 1000, ((num1)+(getPlayerLevel(cid)*(num3))))
- if pokemon.x.spell == "Water Gun" then
- if getCreatureLookDir(getCreatureSummons(cid)[1]) == 0 then
- doAreaCombatHealth(getCreatureSummons(cid)[1], element, getThingPos(getCreatureSummons(cid)[1]), wg1n, -((num1)+(getPlayerLevel(cid)*(num3))), -((num2)+(getPlayerLevel(cid)*(num3))), 74)
- doAreaCombatHealth(getCreatureSummons(cid)[1], element, getThingPos(getCreatureSummons(cid)[1]), wg2n, -((num1)+(getPlayerLevel(cid)*(num3))), -((num2)+(getPlayerLevel(cid)*(num3))), 75)
- doAreaCombatHealth(getCreatureSummons(cid)[1], element, getThingPos(getCreatureSummons(cid)[1]), wg3n, -((num1)+(getPlayerLevel(cid)*(num3))), -((num2)+(getPlayerLevel(cid)*(num3))), 76)
- elseif getCreatureLookDir(getCreatureSummons(cid)[1]) == 2 then
- doAreaCombatHealth(getCreatureSummons(cid)[1], element, getThingPos(getCreatureSummons(cid)[1]), wg1s, -((num1)+(getPlayerLevel(cid)*(num3))), -((num2)+(getPlayerLevel(cid)*(num3))), 77)
- doAreaCombatHealth(getCreatureSummons(cid)[1], element, getThingPos(getCreatureSummons(cid)[1]), wg2s, -((num1)+(getPlayerLevel(cid)*(num3))), -((num2)+(getPlayerLevel(cid)*(num3))), 75)
- doAreaCombatHealth(getCreatureSummons(cid)[1], element, getThingPos(getCreatureSummons(cid)[1]), wg3s, -((num1)+(getPlayerLevel(cid)*(num3))), -((num2)+(getPlayerLevel(cid)*(num3))), 78)
- elseif getCreatureLookDir(getCreatureSummons(cid)[1]) == 1 then
- doAreaCombatHealth(getCreatureSummons(cid)[1], element, getThingPos(getCreatureSummons(cid)[1]), wg1e, -((num1)+(getPlayerLevel(cid)*(num3))), -((num2)+(getPlayerLevel(cid)*(num3))), 69)
- doAreaCombatHealth(getCreatureSummons(cid)[1], element, getThingPos(getCreatureSummons(cid)[1]), wg2e, -((num1)+(getPlayerLevel(cid)*(num3))), -((num2)+(getPlayerLevel(cid)*(num3))), 70)
- doAreaCombatHealth(getCreatureSummons(cid)[1], element, getThingPos(getCreatureSummons(cid)[1]), wg3e, -((num1)+(getPlayerLevel(cid)*(num3))), -((num2)+(getPlayerLevel(cid)*(num3))), 71)
- elseif getCreatureLookDir(getCreatureSummons(cid)[1]) == 3 then
- doAreaCombatHealth(getCreatureSummons(cid)[1], element, getThingPos(getCreatureSummons(cid)[1]), wg1w, -((num1)+(getPlayerLevel(cid)*(num3))), -((num2)+(getPlayerLevel(cid)*(num3))), 72)
- doAreaCombatHealth(getCreatureSummons(cid)[1], element, getThingPos(getCreatureSummons(cid)[1]), wg2w, -((num1)+(getPlayerLevel(cid)*(num3))), -((num2)+(getPlayerLevel(cid)*(num3))), 70)
- doAreaCombatHealth(getCreatureSummons(cid)[1], element, getThingPos(getCreatureSummons(cid)[1]), wg3w, -((num1)+(getPlayerLevel(cid)*(num3))), -((num2)+(getPlayerLevel(cid)*(num3))), 73)
- end
- doCreatureSay(getCreatureSummons(cid)[1], ""..string.upper(c[getCreatureOutfit(getCreatureSummons(cid)[1]).lookType].x.spell).."!", TALKTYPE_MONSTER)
- doCreatureSay(cid, ""..getCreatureName(getCreatureSummons(cid)[1])..", use "..c[getCreatureOutfit(getCreatureSummons(cid)[1]).lookType].x.spell.."!", TALKTYPE_SAY)
- exhaustion.set(cid, pokemon.x.ex, pokemon.x.cd)
- return 0
- elseif pokemon.x.spell == "Gust" then
- doCreatureSay(getCreatureSummons(cid)[1], ""..string.upper(c[getCreatureOutfit(getCreatureSummons(cid)[1]).lookType].x.spell).."!", TALKTYPE_MONSTER)
- doCreatureSay(cid, ""..getCreatureName(getCreatureSummons(cid)[1])..", use "..c[getCreatureOutfit(getCreatureSummons(cid)[1]).lookType].x.spell.."!", TALKTYPE_SAY)
- exhaustion.set(cid, pokemon.x.ex, pokemon.x.cd)
- posit = getThingPos(getCreatureSummons(cid)[1])
- local function gust(params)
- if #getCreatureSummons(params.cid) >= 1 then
- doAreaCombatHealth(getCreatureSummons(params.cid)[1], element, params.ar, sand1, -((num1)+(getPlayerLevel(cid)*(num3))), -((num2)+(getPlayerLevel(cid)*(num3))), 42)
- else
- end
- end
- local posicao = getThingPos(getCreatureSummons(cid)[1])
- if getCreatureLookDir(getCreatureSummons(cid)[1]) == 0 then
- addEvent(gust, 0, {cid = cid, ar = {x=posicao.x, y=posicao.y-1, z=posicao.z}})
- addEvent(gust, 500, {cid = cid, ar = {x=posicao.x, y=posicao.y-2, z=posicao.z}})
- addEvent(gust, 1000, {cid = cid, ar = {x=posicao.x, y=posicao.y-3, z=posicao.z}})
- addEvent(gust, 1500, {cid = cid, ar = {x=posicao.x, y=posicao.y-4, z=posicao.z}})
- elseif getCreatureLookDir(getCreatureSummons(cid)[1]) == 2 then
- addEvent(gust, 0, {cid = cid, ar = {x=posicao.x, y=posicao.y+1, z=posicao.z}})
- addEvent(gust, 500, {cid = cid, ar = {x=posicao.x, y=posicao.y+2, z=posicao.z}})
- addEvent(gust, 1000, {cid = cid, ar = {x=posicao.x, y=posicao.y+3, z=posicao.z}})
- addEvent(gust, 1500, {cid = cid, ar = {x=posicao.x, y=posicao.y+4, z=posicao.z}})
- elseif getCreatureLookDir(getCreatureSummons(cid)[1]) == 1 then
- addEvent(gust, 0, {cid = cid, ar = {x=posicao.x+1, y=posicao.y, z=posicao.z}})
- addEvent(gust, 500, {cid = cid, ar = {x=posicao.x+2, y=posicao.y, z=posicao.z}})
- addEvent(gust, 1000, {cid = cid, ar = {x=posicao.x+3, y=posicao.y, z=posicao.z}})
- addEvent(gust, 1500, {cid = cid, ar = {x=posicao.x+4, y=posicao.y, z=posicao.z}})
- elseif getCreatureLookDir(getCreatureSummons(cid)[1]) == 3 then
- addEvent(gust, 0, {cid = cid, ar = {x=posicao.x-1, y=posicao.y, z=posicao.z}})
- addEvent(gust, 500, {cid = cid, ar = {x=posicao.x-2, y=posicao.y, z=posicao.z}})
- addEvent(gust, 1000, {cid = cid, ar = {x=posicao.x-3, y=posicao.y, z=posicao.z}})
- addEvent(gust, 1500, {cid = cid, ar = {x=posicao.x-4, y=posicao.y, z=posicao.z}})
- end
- return 0
- ---------------------ADICIONADAS---------------------------------------------------------------------------
- ------------------------------------------------------------------------------------------------------------
- elseif pokemon.x.spell == "Hypnosis" then
- doCreatureSay(getCreatureSummons(cid)[1], ""..string.upper(c[getCreatureOutfit(getCreatureSummons(cid)[1]).lookType].x.spell).."!", TALKTYPE_MONSTER)
- doCreatureSay(cid, ""..getCreatureName(getCreatureSummons(cid)[1])..", "..c[getCreatureOutfit(getCreatureSummons(cid)[1]).lookType].x.spell.."!", TALKTYPE_SAY)
- exhaustion.set(cid, pokemon.x.ex, pokemon.x.cd)
- setPlayerStorageValue(getCreatureTarget(cid), 3, 1)
- local alvo = getCreatureTarget(cid)
- doSendDistanceShoot(getThingPos(getCreatureSummons(cid)[1]), getThingPos(getCreatureTarget(cid)), 24)
- doAreaCombatHealth(getCreatureSummons(cid)[1], element, getThingPos(getCreatureTarget(cid)), 0, -((num1)+(getPlayerLevel(cid)*(num3))), -((num2)+(getPlayerLevel(cid)*(num3))), 136)
- local function string(params)
- if isCreature(params.alvo) then
- if getPlayerStorageValue(params.alvo, 3) >= 1 then
- doSendMagicEffect(getThingPos(params.alvo), 136)
- end
- end
- end
- local function normalstr(params)
- if isCreature(params.alvo) then
- if getPlayerStorageValue(params.alvo, 3) >= 1 then
- setPlayerStorageValue(params.alvo, 3, -1)
- end
- end
- end
- addEvent(string, 250, {alvo = alvo})
- addEvent(string, 500, {alvo = alvo})
- addEvent(string, 750, {alvo = alvo})
- addEvent(string, 1000, {alvo = alvo})
- addEvent(string, 1250, {alvo = alvo})
- addEvent(string, 1500, {alvo = alvo})
- addEvent(string, 1750, {alvo = alvo})
- addEvent(string, 2000, {alvo = alvo})
- addEvent(string, 2250, {alvo = alvo})
- addEvent(string, 2500, {alvo = alvo})
- addEvent(string, 2750, {alvo = alvo})
- addEvent(string, 3000, {alvo = alvo})
- addEvent(normalstr, 3050, {alvo = alvo})
- return 0
- ---------------------ADICIONADAS---------------------------------------------------------------------------
- ---------------------------------------------------------------------------------------------------------------
- elseif pokemon.x.spell == "Rage" then
- doCreatureSay(getCreatureSummons(cid)[1], ""..string.upper(c[getCreatureOutfit(getCreatureSummons(cid)[1]).lookType].x.spell).."!", TALKTYPE_MONSTER)
- doCreatureSay(cid, ""..getCreatureName(getCreatureSummons(cid)[1])..", use "..c[getCreatureOutfit(getCreatureSummons(cid)[1]).lookType].x.spell.."!", TALKTYPE_SAY)
- exhaustion.set(cid, pokemon.x.ex, pokemon.x.cd)
- doAreaCombatHealth(getCreatureSummons(cid)[1], element, getThingPos(getCreatureTarget(cid)), 0, -((num1)+(getPlayerLevel(cid)*(num3))), -((num2)+(getPlayerLevel(cid)*(num3))), 110)
- local hitalvo = getCreatureTarget(cid)
- local function hit(params)
- if isCreature(getCreatureSummons(params.cid)[1]) then
- if isCreature(getCreatureTarget(params.cid)) then
- if getCreatureTarget(params.cid) == params.hitalvo then
- doAreaCombatHealth(getCreatureSummons(params.cid)[1], FLYDAMAGE, getThingPos(getCreatureTarget(params.cid)), 0, -((num1)+(getPlayerLevel(cid)*(num3))), -((num2)+(getPlayerLevel(cid)*(num3))), 110)
- doSendMagicEffect(getThingPos(getCreatureSummons(cid)[1]), CONST_ME_MAGIC_RED)
- end
- end
- end
- end
- addEvent(hit, 1000, {cid = cid, hitalvo = hitalvo})
- addEvent(hit, 2000, {cid = cid, hitalvo = hitalvo})
- addEvent(hit, 3000, {cid = cid, hitalvo = hitalvo})
- addEvent(hit, 4000, {cid = cid, hitalvo = hitalvo})
- addEvent(hit, 5000, {cid = cid, hitalvo = hitalvo})
- addEvent(hit, 6000, {cid = cid, hitalvo = hitalvo})
- return 0
- elseif pokemon.x.spell == "Charge Beam" then
- if getCreatureLookDir(getCreatureSummons(cid)[1]) == 0 then
- doAreaCombatHealth(getCreatureSummons(cid)[1], element, getThingPos(getCreatureSummons(cid)[1]), wg1n, -((num1)+(getPlayerLevel(cid)*(num3))), -((num2)+(getPlayerLevel(cid)*(num3))), 94)
- doAreaCombatHealth(getCreatureSummons(cid)[1], element, getThingPos(getCreatureSummons(cid)[1]), wg2n, -((num1)+(getPlayerLevel(cid)*(num3))), -((num2)+(getPlayerLevel(cid)*(num3))), 93)
- doAreaCombatHealth(getCreatureSummons(cid)[1], element, getThingPos(getCreatureSummons(cid)[1]), wg3n, -((num1)+(getPlayerLevel(cid)*(num3))), -((num2)+(getPlayerLevel(cid)*(num3))), 95)
- elseif getCreatureLookDir(getCreatureSummons(cid)[1]) == 2 then
- doAreaCombatHealth(getCreatureSummons(cid)[1], element, getThingPos(getCreatureSummons(cid)[1]), wg1s, -((num1)+(getPlayerLevel(cid)*(num3))), -((num2)+(getPlayerLevel(cid)*(num3))), 91)
- doAreaCombatHealth(getCreatureSummons(cid)[1], element, getThingPos(getCreatureSummons(cid)[1]), wg2s, -((num1)+(getPlayerLevel(cid)*(num3))), -((num2)+(getPlayerLevel(cid)*(num3))), 93)
- doAreaCombatHealth(getCreatureSummons(cid)[1], element, getThingPos(getCreatureSummons(cid)[1]), wg3s, -((num1)+(getPlayerLevel(cid)*(num3))), -((num2)+(getPlayerLevel(cid)*(num3))), 92)
- elseif getCreatureLookDir(getCreatureSummons(cid)[1]) == 1 then
- doAreaCombatHealth(getCreatureSummons(cid)[1], element, getThingPos(getCreatureSummons(cid)[1]), wg1e, -((num1)+(getPlayerLevel(cid)*(num3))), -((num2)+(getPlayerLevel(cid)*(num3))), 86)
- doAreaCombatHealth(getCreatureSummons(cid)[1], element, getThingPos(getCreatureSummons(cid)[1]), wg2e, -((num1)+(getPlayerLevel(cid)*(num3))), -((num2)+(getPlayerLevel(cid)*(num3))), 88)
- doAreaCombatHealth(getCreatureSummons(cid)[1], element, getThingPos(getCreatureSummons(cid)[1]), wg3e, -((num1)+(getPlayerLevel(cid)*(num3))), -((num2)+(getPlayerLevel(cid)*(num3))), 87)
- elseif getCreatureLookDir(getCreatureSummons(cid)[1]) == 3 then
- doAreaCombatHealth(getCreatureSummons(cid)[1], element, getThingPos(getCreatureSummons(cid)[1]), wg1w, -((num1)+(getPlayerLevel(cid)*(num3))), -((num2)+(getPlayerLevel(cid)*(num3))), 89)
- doAreaCombatHealth(getCreatureSummons(cid)[1], element, getThingPos(getCreatureSummons(cid)[1]), wg2w, -((num1)+(getPlayerLevel(cid)*(num3))), -((num2)+(getPlayerLevel(cid)*(num3))), 88)
- doAreaCombatHealth(getCreatureSummons(cid)[1], element, getThingPos(getCreatureSummons(cid)[1]), wg3w, -((num1)+(getPlayerLevel(cid)*(num3))), -((num2)+(getPlayerLevel(cid)*(num3))), 90)
- end
- doCreatureSay(getCreatureSummons(cid)[1], ""..string.upper(c[getCreatureOutfit(getCreatureSummons(cid)[1]).lookType].x.spell).."!", TALKTYPE_MONSTER)
- doCreatureSay(cid, ""..getCreatureName(getCreatureSummons(cid)[1])..", use "..c[getCreatureOutfit(getCreatureSummons(cid)[1]).lookType].x.spell.."!", TALKTYPE_SAY)
- exhaustion.set(cid, pokemon.x.ex, pokemon.x.cd)
- return 0
- elseif pokemon.x.spell == "Melody" then
- doCreatureSay(getCreatureSummons(cid)[1], ""..string.upper(c[getCreatureOutfit(getCreatureSummons(cid)[1]).lookType].x.spell).."!", TALKTYPE_MONSTER)
- doCreatureSay(cid, ""..getCreatureName(getCreatureSummons(cid)[1])..", use "..c[getCreatureOutfit(getCreatureSummons(cid)[1]).lookType].x.spell.."!", TALKTYPE_SAY)
- exhaustion.set(cid, pokemon.x.ex, pokemon.x.cd)
- posit = getThingPos(getCreatureSummons(cid)[1])
- local function storm(params)
- if #getCreatureSummons(params.cid) >= 1 then
- doAreaCombatHealth(getCreatureSummons(params.cid)[1], params.el, posit, params.ar, -((num1)+(getPlayerLevel(cid)*(num3))), -((num2)+(getPlayerLevel(cid)*(num3))), params.ef)
- doAreaCombatCondition(getCreatureSummons(cid)[1], getThingPos(getCreatureSummons(cid)[1]), earthquake, thunderwavecondition, 255)
- else
- end
- end
- addEvent(storm, 0, {cid = cid, el = element, ar = earthquake, ef = 19})
- addEvent(storm, 1000, {cid = cid, el = element, ar = earthquake, ef = 19})
- addEvent(storm, 2000, {cid = cid, el = element, ar = earthquake, ef = 19})
- addEvent(storm, 3000, {cid = cid, el = element, ar = earthquake, ef = 19})
- addEvent(storm, 4000, {cid = cid, el = element, ar = earthquake, ef = 19})
- addEvent(storm, 5000, {cid = cid, el = element, ar = earthquake, ef = 19})
- return 0
- elseif pokemon.x.spell == "Fist Machine" then
- doCreatureSay(getCreatureSummons(cid)[1], ""..string.upper(c[getCreatureOutfit(getCreatureSummons(cid)[1]).lookType].x.spell).."!", TALKTYPE_MONSTER)
- doCreatureSay(cid, ""..getCreatureName(getCreatureSummons(cid)[1])..", "..c[getCreatureOutfit(getCreatureSummons(cid)[1]).lookType].x.spell.."!", TALKTYPE_SAY)
- exhaustion.set(cid, pokemon.x.ex, pokemon.x.cd)
- if getCreatureLookDir(getCreatureSummons(cid)[1]) == 0 then
- local flamepos = getThingPos(getCreatureSummons(cid)[1])
- flamepos.x = flamepos.x+0
- flamepos.y = flamepos.y-1
- doSendMagicEffect(flamepos, 217)
- doAreaCombatHealth(getCreatureSummons(cid)[1], element, getThingPos(getCreatureSummons(cid)[1]), wingdn, -((num1)+(getPlayerLevel(cid)*(num3))), -((num2)+(getPlayerLevel(cid)*(num3))), 255)
- elseif getCreatureLookDir(getCreatureSummons(cid)[1]) == 1 then
- local flamepos = getThingPos(getCreatureSummons(cid)[1])
- flamepos.x = flamepos.x+2
- flamepos.y = flamepos.y+0
- doSendMagicEffect(flamepos, 215)
- doAreaCombatHealth(getCreatureSummons(cid)[1], element, getThingPos(getCreatureSummons(cid)[1]), wingde, -((num1)+(getPlayerLevel(cid)*(num3))), -((num2)+(getPlayerLevel(cid)*(num3))), 255)
- elseif getCreatureLookDir(getCreatureSummons(cid)[1]) == 2 then
- local flamepos = getThingPos(getCreatureSummons(cid)[1])
- flamepos.x = flamepos.x-0
- flamepos.y = flamepos.y+2
- doSendMagicEffect(flamepos, 218)
- doAreaCombatHealth(getCreatureSummons(cid)[1], element, getThingPos(getCreatureSummons(cid)[1]), wingds, -((num1)+(getPlayerLevel(cid)*(num3))), -((num2)+(getPlayerLevel(cid)*(num3))), 255)
- elseif getCreatureLookDir(getCreatureSummons(cid)[1]) == 3 then
- local flamepos = getThingPos(getCreatureSummons(cid)[1])
- flamepos.x = flamepos.x-1
- flamepos.y = flamepos.y+0
- doSendMagicEffect(flamepos, 216)
- doAreaCombatHealth(getCreatureSummons(cid)[1], element, getThingPos(getCreatureSummons(cid)[1]), wingdw, -((num1)+(getPlayerLevel(cid)*(num3))), -((num2)+(getPlayerLevel(cid)*(num3))), 255)
- end
- return 0
- elseif pokemon.x.spell == "Mega Horn" then
- doCreatureSay(getCreatureSummons(cid)[1], ""..string.upper(c[getCreatureOutfit(getCreatureSummons(cid)[1]).lookType].x.spell).."!", TALKTYPE_MONSTER)
- doCreatureSay(cid, ""..getCreatureName(getCreatureSummons(cid)[1])..", use "..c[getCreatureOutfit(getCreatureSummons(cid)[1]).lookType].x.spell.."!", TALKTYPE_SAY)
- exhaustion.set(cid, pokemon.x.ex, pokemon.x.cd)
- local function throw(params)
- if isCreature(getCreatureTarget(params.cid)) then
- doSendDistanceShoot(getThingPos(getCreatureSummons(params.cid)[1]), getThingPos(getCreatureTarget(params.cid)), 25)
- else
- end
- end
- local function damage(params)
- if isCreature(getCreatureTarget(params.cid)) then
- doAreaCombatHealth(getCreatureSummons(params.cid)[1], element, getThingPos(getCreatureTarget(cid)), 0, -((num1)+(getPlayerLevel(cid)*(num3))), -((num2)+(getPlayerLevel(cid)*(num3))), 15)
- else
- end
- end
- addEvent(damage, 0, {cid = cid})
- addEvent(throw, 0, {cid = cid})
- return 0
- elseif pokemon.x.spell == "Skull Bash" then
- doCreatureSay(getCreatureSummons(cid)[1], ""..string.upper(c[getCreatureOutfit(getCreatureSummons(cid)[1]).lookType].x.spell).."!", TALKTYPE_MONSTER)
- doCreatureSay(cid, ""..getCreatureName(getCreatureSummons(cid)[1])..", use "..c[getCreatureOutfit(getCreatureSummons(cid)[1]).lookType].x.spell.."!", TALKTYPE_SAY)
- exhaustion.set(cid, pokemon.x.ex, pokemon.x.cd)
- doAreaCombatHealth(getCreatureSummons(cid)[1], element, getThingPos(getCreatureSummons(cid)[1]), skullb, -((num1)+(getPlayerLevel(cid)*(num3))), -((num2)+(getPlayerLevel(cid)*(num3))), 208)
- return 0
- elseif pokemon.x.spell == "Whirlwind" then
- doCreatureSay(getCreatureSummons(cid)[1], ""..string.upper(c[getCreatureOutfit(getCreatureSummons(cid)[1]).lookType].x.spell).."!", TALKTYPE_MONSTER)
- doCreatureSay(cid, ""..getCreatureName(getCreatureSummons(cid)[1])..", use "..c[getCreatureOutfit(getCreatureSummons(cid)[1]).lookType].x.spell.."!", TALKTYPE_SAY)
- exhaustion.set(cid, pokemon.x.ex, pokemon.x.cd)
- posit = getThingPos(getCreatureSummons(cid)[1])
- local function gust(params)
- if #getCreatureSummons(params.cid) >= 1 then
- doAreaCombatHealth(getCreatureSummons(params.cid)[1], element, params.ar, params.br, -((num1)+(getPlayerLevel(cid)*(num3))), -((num2)+(getPlayerLevel(cid)*(num3))), 42)
- else
- end
- end
- local posicao = getThingPos(getCreatureSummons(cid)[1])
- if getCreatureLookDir(getCreatureSummons(cid)[1]) == 0 then
- addEvent(gust, 0, {cid = cid, ar = {x=posicao.x, y=posicao.y-1, z=posicao.z}, br = sand1})
- addEvent(gust, 500, {cid = cid, ar = {x=posicao.x, y=posicao.y-2, z=posicao.z}, br = whirl3})
- addEvent(gust, 1000, {cid = cid, ar = {x=posicao.x, y=posicao.y-3, z=posicao.z}, br = whirl5})
- addEvent(gust, 1500, {cid = cid, ar = {x=posicao.x, y=posicao.y-4, z=posicao.z}, br = whirl5})
- elseif getCreatureLookDir(getCreatureSummons(cid)[1]) == 2 then
- addEvent(gust, 0, {cid = cid, ar = {x=posicao.x, y=posicao.y+1, z=posicao.z}, br = sand1})
- addEvent(gust, 500, {cid = cid, ar = {x=posicao.x, y=posicao.y+2, z=posicao.z}, br = whirl3})
- addEvent(gust, 1000, {cid = cid, ar = {x=posicao.x, y=posicao.y+3, z=posicao.z}, br = whirl5})
- addEvent(gust, 1500, {cid = cid, ar = {x=posicao.x, y=posicao.y+4, z=posicao.z}, br = whirl5})
- elseif getCreatureLookDir(getCreatureSummons(cid)[1]) == 1 then
- addEvent(gust, 0, {cid = cid, ar = {x=posicao.x+1, y=posicao.y, z=posicao.z}, br = sand1})
- addEvent(gust, 500, {cid = cid, ar = {x=posicao.x+2, y=posicao.y, z=posicao.z}, br = whirl32})
- addEvent(gust, 1000, {cid = cid, ar = {x=posicao.x+3, y=posicao.y, z=posicao.z}, br = whirl52})
- addEvent(gust, 1500, {cid = cid, ar = {x=posicao.x+4, y=posicao.y, z=posicao.z}, br = whirl52})
- elseif getCreatureLookDir(getCreatureSummons(cid)[1]) == 3 then
- addEvent(gust, 0, {cid = cid, ar = {x=posicao.x-1, y=posicao.y, z=posicao.z}, br = sand1})
- addEvent(gust, 500, {cid = cid, ar = {x=posicao.x-2, y=posicao.y, z=posicao.z}, br = whirl32})
- addEvent(gust, 1000, {cid = cid, ar = {x=posicao.x-3, y=posicao.y, z=posicao.z}, br = whirl52})
- addEvent(gust, 1500, {cid = cid, ar = {x=posicao.x-4, y=posicao.y, z=posicao.z}, br = whirl52})
- end
- return 0
- elseif pokemon.x.spell == "Sleep Powder" then
- doCreatureSay(getCreatureSummons(cid)[1], ""..string.upper(c[getCreatureOutfit(getCreatureSummons(cid)[1]).lookType].x.spell).."!", TALKTYPE_MONSTER)
- doCreatureSay(cid, ""..getCreatureName(getCreatureSummons(cid)[1])..", use "..c[getCreatureOutfit(getCreatureSummons(cid)[1]).lookType].x.spell.."!", TALKTYPE_SAY)
- exhaustion.set(cid, pokemon.x.ex, pokemon.x.cd)
- doAreaCombatHealth(getCreatureSummons(cid)[1], element, getThingPos(getCreatureSummons(cid)[1]), confusion, -((num1)+(getPlayerLevel(cid)*(num3))), -((num2)+(getPlayerLevel(cid)*(num3))), 27)
- doAreaCombatCondition(getCreatureSummons(cid)[1], getThingPos(getCreatureSummons(cid)[1]), confusion, thunderwavecondition, 255)
- return 0
- elseif pokemon.x.spell == "Twister" then
- doCreatureSay(getCreatureSummons(cid)[1], ""..string.upper(c[getCreatureOutfit(getCreatureSummons(cid)[1]).lookType].x.spell).."!", TALKTYPE_MONSTER)
- doCreatureSay(cid, ""..getCreatureName(getCreatureSummons(cid)[1])..", use "..c[getCreatureOutfit(getCreatureSummons(cid)[1]).lookType].x.spell.."!", TALKTYPE_SAY)
- exhaustion.set(cid, pokemon.x.ex, pokemon.x.cd)
- if getCreatureLookDir(getCreatureSummons(cid)[1]) == 0 then
- doAreaCombatHealth(getCreatureSummons(cid)[1], element, getThingPos(getCreatureSummons(cid)[1]), twn, -((num1)+(getPlayerLevel(cid)*(num3))), -((num2)+(getPlayerLevel(cid)*(num3))), 42)
- elseif getCreatureLookDir(getCreatureSummons(cid)[1]) == 1 then
- doAreaCombatHealth(getCreatureSummons(cid)[1], element, getThingPos(getCreatureSummons(cid)[1]), twe, -((num1)+(getPlayerLevel(cid)*(num3))), -((num2)+(getPlayerLevel(cid)*(num3))), 42)
- elseif getCreatureLookDir(getCreatureSummons(cid)[1]) == 2 then
- doAreaCombatHealth(getCreatureSummons(cid)[1], element, getThingPos(getCreatureSummons(cid)[1]), tws, -((num1)+(getPlayerLevel(cid)*(num3))), -((num2)+(getPlayerLevel(cid)*(num3))), 42)
- elseif getCreatureLookDir(getCreatureSummons(cid)[1]) == 3 then
- doAreaCombatHealth(getCreatureSummons(cid)[1], element, getThingPos(getCreatureSummons(cid)[1]), tww, -((num1)+(getPlayerLevel(cid)*(num3))), -((num2)+(getPlayerLevel(cid)*(num3))), 42)
- end
- return 0
- elseif pokemon.x.spell == "Stun Spore" then
- doCreatureSay(getCreatureSummons(cid)[1], ""..string.upper(c[getCreatureOutfit(getCreatureSummons(cid)[1]).lookType].x.spell).."!", TALKTYPE_MONSTER)
- doCreatureSay(cid, ""..getCreatureName(getCreatureSummons(cid)[1])..", "..c[getCreatureOutfit(getCreatureSummons(cid)[1]).lookType].x.spell.."!", TALKTYPE_SAY)
- exhaustion.set(cid, pokemon.x.ex, pokemon.x.cd)
- if getCreatureLookDir(getCreatureSummons(cid)[1]) == 0 then
- doAreaCombatCondition(getCreatureSummons(cid)[1], getThingPos(getCreatureSummons(cid)[1]), confusion, thunderwavecondition, 255)
- doAreaCombatHealth(getCreatureSummons(cid)[1], element, getThingPos(getCreatureSummons(cid)[1]), confusion, -((num1)+(getPlayerLevel(cid)*(num3))), -((num2)+(getPlayerLevel(cid)*(num3))), 85)
- elseif getCreatureLookDir(getCreatureSummons(cid)[1]) == 1 then
- doAreaCombatCondition(getCreatureSummons(cid)[1], getThingPos(getCreatureSummons(cid)[1]), confusion, thunderwavecondition, 255)
- doAreaCombatHealth(getCreatureSummons(cid)[1], element, getThingPos(getCreatureSummons(cid)[1]), confusion, -((num1)+(getPlayerLevel(cid)*(num3))), -((num2)+(getPlayerLevel(cid)*(num3))), 85)
- elseif getCreatureLookDir(getCreatureSummons(cid)[1]) == 2 then
- doAreaCombatCondition(getCreatureSummons(cid)[1], getThingPos(getCreatureSummons(cid)[1]), confusion, thunderwavecondition, 255)
- doAreaCombatHealth(getCreatureSummons(cid)[1], element, getThingPos(getCreatureSummons(cid)[1]), confusion, -((num1)+(getPlayerLevel(cid)*(num3))), -((num2)+(getPlayerLevel(cid)*(num3))), 85)
- elseif getCreatureLookDir(getCreatureSummons(cid)[1]) == 3 then
- doAreaCombatCondition(getCreatureSummons(cid)[1], getThingPos(getCreatureSummons(cid)[1]), confusion, thunderwavecondition, 255)
- doAreaCombatHealth(getCreatureSummons(cid)[1], element, getThingPos(getCreatureSummons(cid)[1]), confusion, -((num1)+(getPlayerLevel(cid)*(num3))), -((num2)+(getPlayerLevel(cid)*(num3))), 85)
- end
- return 0
- elseif pokemon.x.spell == "Hyper Fang" then
- doCreatureSay(getCreatureSummons(cid)[1], ""..string.upper(c[getCreatureOutfit(getCreatureSummons(cid)[1]).lookType].x.spell).."!", TALKTYPE_MONSTER)
- doCreatureSay(cid, ""..getCreatureName(getCreatureSummons(cid)[1])..", use "..c[getCreatureOutfit(getCreatureSummons(cid)[1]).lookType].x.spell.."!", TALKTYPE_SAY)
- exhaustion.set(cid, pokemon.x.ex, pokemon.x.cd)
- doAreaCombatHealth(getCreatureSummons(cid)[1], element, getThingPos(getCreatureTarget(cid)), 0, -((num1)+(getPlayerLevel(cid)*(num3))), -((num1)+(getPlayerLevel(cid)*(num3))), 159)
- return 0
- elseif pokemon.x.spell == "Tornado" then
- doCreatureSay(getCreatureSummons(cid)[1], ""..string.upper(c[getCreatureOutfit(getCreatureSummons(cid)[1]).lookType].x.spell).."!", TALKTYPE_MONSTER)
- doCreatureSay(cid, ""..getCreatureName(getCreatureSummons(cid)[1])..", use "..c[getCreatureOutfit(getCreatureSummons(cid)[1]).lookType].x.spell.."!", TALKTYPE_SAY)
- exhaustion.set(cid, pokemon.x.ex, pokemon.x.cd)
- posit = getThingPos(getCreatureSummons(cid)[1])
- local function tornado(params)
- if #getCreatureSummons(params.cid) >= 1 then
- doAreaCombatHealth(getCreatureSummons(params.cid)[1], params.el, posit, params.ar, -((num1)+(getPlayerLevel(cid)*(num3))), -((num2)+(getPlayerLevel(cid)*(num3))), params.ef)
- else
- end
- end
- addEvent(tornado, 0, {cid = cid, ef = 42, ar = tor1, el = element})
- addEvent(tornado, 500, {cid = cid, ef = 42, ar = tor2, el = element})
- addEvent(tornado, 1000, {cid = cid, ef = 42, ar = tor3, el = element})
- addEvent(tornado, 500, {cid = cid, ef = CONST_ME_POFF, ar = tor1, el = null})
- addEvent(tornado, 1200, {cid = cid, ef = CONST_ME_POFF, ar = tor2, el = null})
- addEvent(tornado, 1900, {cid = cid, ef = CONST_ME_POFF, ar = tor2, el = null})
- addEvent(tornado, 1900, {cid = cid, ef = CONST_ME_POFF, ar = tor3, el = null})
- return 0
- elseif pokemon.x.spell == "Hydropump" then
- doCreatureSay(getCreatureSummons(cid)[1], ""..string.upper(c[getCreatureOutfit(getCreatureSummons(cid)[1]).lookType].x.spell).."!", TALKTYPE_MONSTER)
- doCreatureSay(cid, ""..getCreatureName(getCreatureSummons(cid)[1])..", use "..c[getCreatureOutfit(getCreatureSummons(cid)[1]).lookType].x.spell.."!", TALKTYPE_SAY)
- exhaustion.set(cid, pokemon.x.ex, pokemon.x.cd)
- posit = getThingPos(getCreatureSummons(cid)[1])
- local function tornado(params)
- if #getCreatureSummons(params.cid) >= 1 then
- doAreaCombatHealth(getCreatureSummons(params.cid)[1], params.el, posit, params.ar, -((num1)+(getPlayerLevel(cid)*(num3))), -((num2)+(getPlayerLevel(cid)*(num3))), params.ef)
- else
- end
- end
- addEvent(tornado, 0, {cid = cid, ef = 53, ar = pump1, el = element})
- addEvent(tornado, 500, {cid = cid, ef = 53, ar = pump2, el = element})
- return 0
- elseif pokemon.x.spell == "Rest" then
- doCreatureSay(getCreatureSummons(cid)[1], ""..string.upper(c[getCreatureOutfit(getCreatureSummons(cid)[1]).lookType].x.spell).."!", TALKTYPE_MONSTER)
- doCreatureSay(cid, ""..getCreatureName(getCreatureSummons(cid)[1])..", use "..c[getCreatureOutfit(getCreatureSummons(cid)[1]).lookType].x.spell.."!", TALKTYPE_SAY)
- exhaustion.set(cid, pokemon.x.ex, pokemon.x.cd)
- if getCreatureName(getCreatureSummons(cid)[1]) == "Snorlax" then
- doSetCreatureOutfit(getCreatureSummons(cid)[1], snorlax, 5000)
- doChangeSpeed(getCreatureSummons(cid)[1], -getCreatureSpeed(getCreatureSummons(cid)[1]))
- elseif getCreatureName(getCreatureSummons(cid)[1]) == "Dewgong" then
- doSetCreatureOutfit(getCreatureSummons(cid)[1], dewgong, 5000)
- doChangeSpeed(getCreatureSummons(cid)[1], -getCreatureSpeed(getCreatureSummons(cid)[1]))
- elseif getCreatureName(getCreatureSummons(cid)[1]) == "Big Snorlax" then
- doSetCreatureOutfit(getCreatureSummons(cid)[1], bigsnorlax, 5000)
- doChangeSpeed(getCreatureSummons(cid)[1], -getCreatureSpeed(getCreatureSummons(cid)[1]))
- end
- setPlayerStorageValue(getCreatureSummons(cid)[1], 4, 1)
- local function rest(params)
- if isCreature(params.cid) then
- if isCreature(getCreatureSummons(params.cid)[1]) then
- if getCreatureCondition(getCreatureSummons(params.cid)[1], CONDITION_OUTFIT) == true then
- doCreatureAddHealth(getCreatureSummons(cid)[1], ((num2)+((getPlayerLevel(cid))*(num3))))
- doSendAnimatedText(getThingPos(getCreatureSummons(cid)[1]), "+"..((num2)+((getPlayerLevel(cid))*(num3))).."", 32)
- doChangeSpeed(getCreatureSummons(cid)[1], -getCreatureSpeed(getCreatureSummons(cid)[1]))
- end
- end
- end
- end
- for r = 1, 4 do
- addEvent(rest, 1000*r, {cid = cid})
- end
- local function stoprest(params)
- if isCreature(params.cid) then
- if isCreature(getCreatureSummons(params.cid)[1]) then
- doChangeSpeed(getCreatureSummons(params.cid)[1], getCreatureBaseSpeed(getCreatureSummons(cid)[1]))
- if getPlayerStorageValue(getCreatureSummons(params.cid)[1], 4) >= 1 then
- setPlayerStorageValue(getCreatureSummons(params.cid)[1], 4, 0)
- end
- end
- end
- end
- addEvent(stoprest, 4300, {cid = cid})
- return 0
- elseif pokemon.x.spell == "Poison Powder" then
- doCreatureSay(getCreatureSummons(cid)[1], ""..string.upper(c[getCreatureOutfit(getCreatureSummons(cid)[1]).lookType].x.spell).."!", TALKTYPE_MONSTER)
- doCreatureSay(cid, ""..getCreatureName(getCreatureSummons(cid)[1])..", use "..c[getCreatureOutfit(getCreatureSummons(cid)[1]).lookType].x.spell.."!", TALKTYPE_SAY)
- exhaustion.set(cid, pokemon.x.ex, pokemon.x.cd)
- doAreaCombatHealth(getCreatureSummons(cid)[1], element, getThingPos(getCreatureSummons(cid)[1]), confusion, -((num1)+(getPlayerLevel(cid)*(num3))), -((num2)+(getPlayerLevel(cid)*(num3))), 84)
- return 0
- elseif pokemon.x.spell == "Psychic" then
- doCreatureSay(getCreatureSummons(cid)[1], ""..string.upper(c[getCreatureOutfit(getCreatureSummons(cid)[1]).lookType].x.spell).."!", TALKTYPE_MONSTER)
- doCreatureSay(cid, ""..getCreatureName(getCreatureSummons(cid)[1])..", use "..c[getCreatureOutfit(getCreatureSummons(cid)[1]).lookType].x.spell.."!", TALKTYPE_SAY)
- exhaustion.set(cid, pokemon.x.ex, pokemon.x.cd)
- doAreaCombatHealth(getCreatureSummons(cid)[1], element, getThingPos(getCreatureSummons(cid)[1]), confusion, -((num1)+(getPlayerLevel(cid)*(num3))), -((num2)+(getPlayerLevel(cid)*(num3))), 133)
- return 0
- elseif pokemon.x.spell == "Water Gun" then
- if getCreatureLookDir(getCreatureSummons(cid)[1]) == 0 then
- doAreaCombatHealth(getCreatureSummons(cid)[1], element, getThingPos(getCreatureSummons(cid)[1]), wg1n, -((num1)+(getPlayerLevel(cid)*(num3))), -((num2)+(getPlayerLevel(cid)*(num3))), 74)
- doAreaCombatHealth(getCreatureSummons(cid)[1], element, getThingPos(getCreatureSummons(cid)[1]), wg2n, -((num1)+(getPlayerLevel(cid)*(num3))), -((num2)+(getPlayerLevel(cid)*(num3))), 75)
- doAreaCombatHealth(getCreatureSummons(cid)[1], element, getThingPos(getCreatureSummons(cid)[1]), wg3n, -((num1)+(getPlayerLevel(cid)*(num3))), -((num2)+(getPlayerLevel(cid)*(num3))), 76)
- elseif getCreatureLookDir(getCreatureSummons(cid)[1]) == 2 then
- doAreaCombatHealth(getCreatureSummons(cid)[1], element, getThingPos(getCreatureSummons(cid)[1]), wg1s, -((num1)+(getPlayerLevel(cid)*(num3))), -((num2)+(getPlayerLevel(cid)*(num3))), 77)
- doAreaCombatHealth(getCreatureSummons(cid)[1], element, getThingPos(getCreatureSummons(cid)[1]), wg2s, -((num1)+(getPlayerLevel(cid)*(num3))), -((num2)+(getPlayerLevel(cid)*(num3))), 75)
- doAreaCombatHealth(getCreatureSummons(cid)[1], element, getThingPos(getCreatureSummons(cid)[1]), wg3s, -((num1)+(getPlayerLevel(cid)*(num3))), -((num2)+(getPlayerLevel(cid)*(num3))), 78)
- elseif getCreatureLookDir(getCreatureSummons(cid)[1]) == 1 then
- doAreaCombatHealth(getCreatureSummons(cid)[1], element, getThingPos(getCreatureSummons(cid)[1]), wg1e, -((num1)+(getPlayerLevel(cid)*(num3))), -((num2)+(getPlayerLevel(cid)*(num3))), 69)
- doAreaCombatHealth(getCreatureSummons(cid)[1], element, getThingPos(getCreatureSummons(cid)[1]), wg2e, -((num1)+(getPlayerLevel(cid)*(num3))), -((num2)+(getPlayerLevel(cid)*(num3))), 70)
- doAreaCombatHealth(getCreatureSummons(cid)[1], element, getThingPos(getCreatureSummons(cid)[1]), wg3e, -((num1)+(getPlayerLevel(cid)*(num3))), -((num2)+(getPlayerLevel(cid)*(num3))), 71)
- elseif getCreatureLookDir(getCreatureSummons(cid)[1]) == 3 then
- doAreaCombatHealth(getCreatureSummons(cid)[1], element, getThingPos(getCreatureSummons(cid)[1]), wg1w, -((num1)+(getPlayerLevel(cid)*(num3))), -((num2)+(getPlayerLevel(cid)*(num3))), 72)
- doAreaCombatHealth(getCreatureSummons(cid)[1], element, getThingPos(getCreatureSummons(cid)[1]), wg2w, -((num1)+(getPlayerLevel(cid)*(num3))), -((num2)+(getPlayerLevel(cid)*(num3))), 70)
- doAreaCombatHealth(getCreatureSummons(cid)[1], element, getThingPos(getCreatureSummons(cid)[1]), wg3w, -((num1)+(getPlayerLevel(cid)*(num3))), -((num2)+(getPlayerLevel(cid)*(num3))), 73)
- end
- doCreatureSay(getCreatureSummons(cid)[1], ""..string.upper(c[getCreatureOutfit(getCreatureSummons(cid)[1]).lookType].x.spell).."!", TALKTYPE_MONSTER)
- doCreatureSay(cid, ""..getCreatureName(getCreatureSummons(cid)[1])..", use "..c[getCreatureOutfit(getCreatureSummons(cid)[1]).lookType].x.spell.."!", TALKTYPE_SAY)
- exhaustion.set(cid, pokemon.x.ex, pokemon.x.cd)
- return 0
- elseif pokemon.x.spell == "Reflect" then
- doCreatureSay(getCreatureSummons(cid)[1], ""..string.upper(c[getCreatureOutfit(getCreatureSummons(cid)[1]).lookType].x.spell).."!", TALKTYPE_MONSTER)
- doCreatureSay(cid, ""..getCreatureName(getCreatureSummons(cid)[1])..", "..c[getCreatureOutfit(getCreatureSummons(cid)[1]).lookType].x.spell.."!", TALKTYPE_SAY)
- exhaustion.set(cid, pokemon.x.ex, pokemon.x.cd)
- doSendMagicEffect(getThingPos(getCreatureSummons(cid)[1]), 135)
- setPlayerStorageValue(getCreatureSummons(cid)[1], 34, 1)
- return 0
- elseif pokemon.x.spell == "Fire Blast" then
- doCreatureSay(getCreatureSummons(cid)[1], ""..string.upper(c[getCreatureOutfit(getCreatureSummons(cid)[1]).lookType].x.spell).."!", TALKTYPE_MONSTER)
- doCreatureSay(cid, ""..getCreatureName(getCreatureSummons(cid)[1])..", "..c[getCreatureOutfit(getCreatureSummons(cid)[1]).lookType].x.spell.."!", TALKTYPE_SAY)
- exhaustion.set(cid, pokemon.x.ex, pokemon.x.cd)
- posit = getThingPos(getCreatureSummons(cid)[1])
- local function gust(params)
- if #getCreatureSummons(params.cid) >= 1 then
- doAreaCombatHealth(getCreatureSummons(params.cid)[1], null, params.ar, sand1, -((num1)+(getPlayerLevel(cid)*(num3))), -((num2)+(getPlayerLevel(cid)*(num3))), params.eee)
- doAreaCombatHealth(getCreatureSummons(params.cid)[1], element, params.ar, whirl3, -((num1)+(getPlayerLevel(cid)*(num3))), -((num2)+(getPlayerLevel(cid)*(num3))), 35)
- doAreaCombatHealth(getCreatureSummons(params.cid)[1], null, params.arr, whirl3, -((num1)+(getPlayerLevel(cid)*(num3))), -((num2)+(getPlayerLevel(cid)*(num3))), 35)
- else
- end
- end
- local posicao = getThingPos(getCreatureSummons(cid)[1])
- if getCreatureLookDir(getCreatureSummons(cid)[1]) == 0 then
- addEvent(gust, 0, {cid = cid, eee = 60, ar = {x=posicao.x, y=posicao.y-1, z=posicao.z}, arr = posicao})
- addEvent(gust, 300, {cid = cid, eee = 60, ar = {x=posicao.x, y=posicao.y-2, z=posicao.z}, arr = {x=posicao.x, y=posicao.y-1, z=posicao.z}})
- addEvent(gust, 600, {cid = cid, eee = 60, ar = {x=posicao.x, y=posicao.y-3, z=posicao.z}, arr = {x=posicao.x, y=posicao.y-2, z=posicao.z}})
- addEvent(gust, 900, {cid = cid, eee = 60, ar = {x=posicao.x, y=posicao.y-4, z=posicao.z}, arr = {x=posicao.x, y=posicao.y-3, z=posicao.z}})
- addEvent(gust, 1200, {cid = cid, eee = 60, ar = {x=posicao.x, y=posicao.y-5, z=posicao.z}, arr = {x=posicao.x, y=posicao.y-4, z=posicao.z}})
- addEvent(gust, 1500, {cid = cid, eee = 60, ar = {x=posicao.x, y=posicao.y-6, z=posicao.z}, arr = {x=posicao.x, y=posicao.y-5, z=posicao.z}})
- elseif getCreatureLookDir(getCreatureSummons(cid)[1]) == 2 then
- addEvent(gust, 0, {cid = cid, eee = 62, ar = {x=posicao.x, y=posicao.y+1, z=posicao.z}, arr = posicao})
- addEvent(gust, 300, {cid = cid, eee = 62, ar = {x=posicao.x, y=posicao.y+2, z=posicao.z}, arr = {x=posicao.x, y=posicao.y+1, z=posicao.z}})
- addEvent(gust, 600, {cid = cid, eee = 62, ar = {x=posicao.x, y=posicao.y+3, z=posicao.z}, arr = {x=posicao.x, y=posicao.y+2, z=posicao.z}})
- addEvent(gust, 900, {cid = cid, eee = 62, ar = {x=posicao.x, y=posicao.y+4, z=posicao.z}, arr = {x=posicao.x, y=posicao.y+3, z=posicao.z}})
- addEvent(gust, 1200, {cid = cid, eee = 62, ar = {x=posicao.x, y=posicao.y+5, z=posicao.z}, arr = {x=posicao.x, y=posicao.y+4, z=posicao.z}})
- addEvent(gust, 1500, {cid = cid, eee = 62, ar = {x=posicao.x, y=posicao.y+6, z=posicao.z}, arr = {x=posicao.x, y=posicao.y+5, z=posicao.z}})
- elseif getCreatureLookDir(getCreatureSummons(cid)[1]) == 1 then
- addEvent(gust, 0, {cid = cid, eee = 61, ar = {x=posicao.x+1, y=posicao.y, z=posicao.z}, arr = posicao})
- addEvent(gust, 300, {cid = cid, eee = 61, ar = {x=posicao.x+2, y=posicao.y, z=posicao.z}, arr = {x=posicao.x+1, y=posicao.y, z=posicao.z}})
- addEvent(gust, 600, {cid = cid, eee = 61, ar = {x=posicao.x+3, y=posicao.y, z=posicao.z}, arr = {x=posicao.x+2, y=posicao.y, z=posicao.z}})
- addEvent(gust, 900, {cid = cid, eee = 61, ar = {x=posicao.x+4, y=posicao.y, z=posicao.z}, arr = {x=posicao.x+3, y=posicao.y, z=posicao.z}})
- addEvent(gust, 1200, {cid = cid, eee = 61, ar = {x=posicao.x+5, y=posicao.y, z=posicao.z}, arr = {x=posicao.x+4, y=posicao.y, z=posicao.z}})
- addEvent(gust, 1500, {cid = cid, eee = 61, ar = {x=posicao.x+6, y=posicao.y, z=posicao.z}, arr = {x=posicao.x+5, y=posicao.y, z=posicao.z}})
- elseif getCreatureLookDir(getCreatureSummons(cid)[1]) == 3 then
- addEvent(gust, 0, {cid = cid, eee = 63, ar = {x=posicao.x-1, y=posicao.y, z=posicao.z}, arr = posicao})
- addEvent(gust, 300, {cid = cid, eee = 63, ar = {x=posicao.x-2, y=posicao.y, z=posicao.z}, arr = {x=posicao.x-1, y=posicao.y, z=posicao.z}})
- addEvent(gust, 600, {cid = cid, eee = 63, ar = {x=posicao.x-3, y=posicao.y, z=posicao.z}, arr = {x=posicao.x-2, y=posicao.y, z=posicao.z}})
- addEvent(gust, 900, {cid = cid, eee = 63, ar = {x=posicao.x-4, y=posicao.y, z=posicao.z}, arr = {x=posicao.x-3, y=posicao.y, z=posicao.z}})
- addEvent(gust, 1200, {cid = cid, eee = 63, ar = {x=posicao.x-5, y=posicao.y, z=posicao.z}, arr = {x=posicao.x-4, y=posicao.y, z=posicao.z}})
- addEvent(gust, 1500, {cid = cid, eee = 63, ar = {x=posicao.x-6, y=posicao.y, z=posicao.z}, arr = {x=posicao.x-5, y=posicao.y, z=posicao.z}})
- end
- return 0
- elseif pokemon.x.spell == "Ice Beam" then
- if getCreatureLookDir(getCreatureSummons(cid)[1]) == 0 then
- doAreaCombatHealth(getCreatureSummons(cid)[1], element, getThingPos(getCreatureSummons(cid)[1]), wg1n, -((num1)+(getPlayerLevel(cid)*(num3))), -((num2)+(getPlayerLevel(cid)*(num3))), 99)
- doAreaCombatHealth(getCreatureSummons(cid)[1], element, getThingPos(getCreatureSummons(cid)[1]), wg2n, -((num1)+(getPlayerLevel(cid)*(num3))), -((num2)+(getPlayerLevel(cid)*(num3))), 105)
- doAreaCombatHealth(getCreatureSummons(cid)[1], element, getThingPos(getCreatureSummons(cid)[1]), wg3n, -((num1)+(getPlayerLevel(cid)*(num3))), -((num2)+(getPlayerLevel(cid)*(num3))), 103)
- elseif getCreatureLookDir(getCreatureSummons(cid)[1]) == 2 then
- doAreaCombatHealth(getCreatureSummons(cid)[1], element, getThingPos(getCreatureSummons(cid)[1]), wg1s, -((num1)+(getPlayerLevel(cid)*(num3))), -((num2)+(getPlayerLevel(cid)*(num3))), 98)
- doAreaCombatHealth(getCreatureSummons(cid)[1], element, getThingPos(getCreatureSummons(cid)[1]), wg2s, -((num1)+(getPlayerLevel(cid)*(num3))), -((num2)+(getPlayerLevel(cid)*(num3))), 105)
- doAreaCombatHealth(getCreatureSummons(cid)[1], element, getThingPos(getCreatureSummons(cid)[1]), wg3s, -((num1)+(getPlayerLevel(cid)*(num3))), -((num2)+(getPlayerLevel(cid)*(num3))), 102)
- elseif getCreatureLookDir(getCreatureSummons(cid)[1]) == 1 then
- doAreaCombatHealth(getCreatureSummons(cid)[1], element, getThingPos(getCreatureSummons(cid)[1]), wg1e, -((num1)+(getPlayerLevel(cid)*(num3))), -((num2)+(getPlayerLevel(cid)*(num3))), 96)
- doAreaCombatHealth(getCreatureSummons(cid)[1], element, getThingPos(getCreatureSummons(cid)[1]), wg2e, -((num1)+(getPlayerLevel(cid)*(num3))), -((num2)+(getPlayerLevel(cid)*(num3))), 104)
- doAreaCombatHealth(getCreatureSummons(cid)[1], element, getThingPos(getCreatureSummons(cid)[1]), wg3e, -((num1)+(getPlayerLevel(cid)*(num3))), -((num2)+(getPlayerLevel(cid)*(num3))), 100)
- elseif getCreatureLookDir(getCreatureSummons(cid)[1]) == 3 then
- doAreaCombatHealth(getCreatureSummons(cid)[1], element, getThingPos(getCreatureSummons(cid)[1]), wg1w, -((num1)+(getPlayerLevel(cid)*(num3))), -((num2)+(getPlayerLevel(cid)*(num3))), 97)
- doAreaCombatHealth(getCreatureSummons(cid)[1], element, getThingPos(getCreatureSummons(cid)[1]), wg2w, -((num1)+(getPlayerLevel(cid)*(num3))), -((num2)+(getPlayerLevel(cid)*(num3))), 104)
- doAreaCombatHealth(getCreatureSummons(cid)[1], element, getThingPos(getCreatureSummons(cid)[1]), wg3w, -((num1)+(getPlayerLevel(cid)*(num3))), -((num2)+(getPlayerLevel(cid)*(num3))), 101)
- end
- doCreatureSay(getCreatureSummons(cid)[1], ""..string.upper(c[getCreatureOutfit(getCreatureSummons(cid)[1]).lookType].x.spell).."!", TALKTYPE_MONSTER)
- doCreatureSay(cid, ""..getCreatureName(getCreatureSummons(cid)[1])..", use "..c[getCreatureOutfit(getCreatureSummons(cid)[1]).lookType].x.spell.."!", TALKTYPE_SAY)
- exhaustion.set(cid, pokemon.x.ex, pokemon.x.cd)
- return 0
- elseif pokemon.x.spell == "Selfdestruct" then
- doCreatureSay(getCreatureSummons(cid)[1], ""..string.upper(c[getCreatureOutfit(getCreatureSummons(cid)[1]).lookType].x.spell).."!", TALKTYPE_MONSTER)
- doCreatureSay(cid, ""..getCreatureName(getCreatureSummons(cid)[1])..", use "..c[getCreatureOutfit(getCreatureSummons(cid)[1]).lookType].x.spell.."!", TALKTYPE_SAY)
- exhaustion.set(cid, pokemon.x.ex, pokemon.x.cd)
- addEvent(doCreatureAddHealth, 250, getCreatureSummons(cid)[1], -getCreatureHealth(getCreatureSummons(cid)[1]))
- doAreaCombatHealth(getCreatureSummons(cid)[1], NORMALDAMAGE, getThingPos(getCreatureSummons(cid)[1]), destruct1, -((num1)+(getPlayerLevel(cid)*(num3))), -((num2)+(getPlayerLevel(cid)*(num3))), 5)
- addEvent(doAreaCombatHealth, 150, getCreatureSummons(cid)[1], NORMALDAMAGE, getThingPos(getCreatureSummons(cid)[1]), destruct2, -(((num1)+(getPlayerLevel(cid)*(num3)))*0.7), -(((num2)+(getPlayerLevel(cid)*(num3)))*0.8), 5)
- addEvent(doAreaCombatHealth, 250, getCreatureSummons(cid)[1], NORMALDAMAGE, getThingPos(getCreatureSummons(cid)[1]), destruct3, -(((num1)+(getPlayerLevel(cid)*(num3)))*0.4), -(((num2)+(getPlayerLevel(cid)*(num3)))*0.5), 5)
- setPlayerStorageValue(getCreatureSummons(cid)[1], 33, 1)
- return 0
- elseif pokemon.x.spell == "Psycho Shift" then
- targetpos = getThingPos(getCreatureTarget(cid))
- targetposss = getThingPos(getCreatureTarget(cid))
- if math.random(1,100) >= 51 then
- targetpos.x = targetpos.x+2
- else
- targetpos.x = targetpos.x-2
- end
- if math.random(1,100) >= 51 then
- targetpos.y = targetpos.y-2
- else
- targetpos.y = targetpos.y+2
- end
- tile = getTileItemByType(targetpos, ground).itemid
- if getThingPos(cid).z > 7 then
- if isWalkable(targetpos, cid, 0, 0) then
- doTeleportThing(getCreatureTarget(cid), targetpos)
- doAreaCombatHealth(getCreatureSummons(cid)[1], element, targetpos, 0, -((num1)+(getPlayerLevel(cid)*(num3))), -((num2)+(getPlayerLevel(cid)*(num3))), 134)
- doSendMagicEffect(targetpos, 12)
- else
- doAreaCombatHealth(getCreatureSummons(cid)[1], element, targetposss, 0, -((num1)+(getPlayerLevel(cid)*(num3))), -((num2)+(getPlayerLevel(cid)*(num3))), 134)
- doSendMagicEffect(targetposss, 12)
- end
- else
- if not isInArray(imp, tile) then
- if not isInArray(imp, getTileThingByPos(targetpos).itemid) then
- doTeleportThing(getCreatureTarget(cid), targetpos)
- doAreaCombatHealth(getCreatureSummons(cid)[1], element, targetpos, 0, -((num1)+(getPlayerLevel(cid)*(num3))), -((num2)+(getPlayerLevel(cid)*(num3))), 134)
- doSendMagicEffect(targetpos, 12)
- else
- doAreaCombatHealth(getCreatureSummons(cid)[1], element, targetposss, 0, -((num1)+(getPlayerLevel(cid)*(num3))), -((num2)+(getPlayerLevel(cid)*(num3))), 134)
- doSendMagicEffect(targetposss, 12)
- end
- else
- doAreaCombatHealth(getCreatureSummons(cid)[1], element, getThingPos(getCreatureTarget(cid)), 0, -((num1)+(getPlayerLevel(cid)*(num3))), -((num2)+(getPlayerLevel(cid)*(num3))), 134)
- doSendMagicEffect(targetposss, 12)
- end
- end
- doCreatureSay(getCreatureSummons(cid)[1], ""..string.upper(c[getCreatureOutfit(getCreatureSummons(cid)[1]).lookType].x.spell).."!", TALKTYPE_MONSTER)
- doCreatureSay(cid, ""..getCreatureName(getCreatureSummons(cid)[1])..", use "..c[getCreatureOutfit(getCreatureSummons(cid)[1]).lookType].x.spell.."!", TALKTYPE_SAY)
- exhaustion.set(cid, pokemon.x.ex, pokemon.x.cd)
- return 0
- elseif pokemon.x.spell == "Restore" then
- doCreatureSay(getCreatureSummons(cid)[1], ""..string.upper(c[getCreatureOutfit(getCreatureSummons(cid)[1]).lookType].x.spell).."!", TALKTYPE_MONSTER)
- doCreatureSay(cid, ""..getCreatureName(getCreatureSummons(cid)[1])..", use "..c[getCreatureOutfit(getCreatureSummons(cid)[1]).lookType].x.spell.."!", TALKTYPE_SAY)
- exhaustion.set(cid, pokemon.x.ex, pokemon.x.cd)
- doSendMagicEffect(getThingPos(getCreatureSummons(cid)[1]), 14)
- doCreatureAddHealth(getCreatureSummons(cid)[1], ((num2)+((getPlayerLevel(cid))*(num3))))
- doSendAnimatedText(getThingPos(getCreatureSummons(cid)[1]), "+"..((num2)+((getPlayerLevel(cid))*(num3))).."", 35)
- return 0
- elseif pokemon.x.spell == "Psywave" then
- doCreatureSay(getCreatureSummons(cid)[1], ""..string.upper(c[getCreatureOutfit(getCreatureSummons(cid)[1]).lookType].x.spell).."!", TALKTYPE_MONSTER)
- doCreatureSay(cid, ""..getCreatureName(getCreatureSummons(cid)[1])..", use "..c[getCreatureOutfit(getCreatureSummons(cid)[1]).lookType].x.spell.."!", TALKTYPE_SAY)
- exhaustion.set(cid, pokemon.x.ex, pokemon.x.cd)
- if getCreatureLookDir(getCreatureSummons(cid)[1]) == 0 then
- doAreaCombatHealth(getCreatureSummons(cid)[1], element, getThingPos(getCreatureSummons(cid)[1]), tsn, -((num1)+(getPlayerLevel(cid)*(num3))), -((num2)+(getPlayerLevel(cid)*(num3))), 133)
- elseif getCreatureLookDir(getCreatureSummons(cid)[1]) == 1 then
- doAreaCombatHealth(getCreatureSummons(cid)[1], element, getThingPos(getCreatureSummons(cid)[1]), tse, -((num1)+(getPlayerLevel(cid)*(num3))), -((num2)+(getPlayerLevel(cid)*(num3))), 133)
- elseif getCreatureLookDir(getCreatureSummons(cid)[1]) == 2 then
- doAreaCombatHealth(getCreatureSummons(cid)[1], element, getThingPos(getCreatureSummons(cid)[1]), tss, -((num1)+(getPlayerLevel(cid)*(num3))), -((num2)+(getPlayerLevel(cid)*(num3))), 133)
- elseif getCreatureLookDir(getCreatureSummons(cid)[1]) == 3 then
- doAreaCombatHealth(getCreatureSummons(cid)[1], element, getThingPos(getCreatureSummons(cid)[1]), tsw, -((num1)+(getPlayerLevel(cid)*(num3))), -((num2)+(getPlayerLevel(cid)*(num3))), 133)
- end
- return 0
- elseif pokemon.x.spell == "Poison Bomb" then
- doCreatureSay(getCreatureSummons(cid)[1], ""..string.upper(c[getCreatureOutfit(getCreatureSummons(cid)[1]).lookType].x.spell).."!", TALKTYPE_MONSTER)
- doCreatureSay(cid, ""..getCreatureName(getCreatureSummons(cid)[1])..", use "..c[getCreatureOutfit(getCreatureSummons(cid)[1]).lookType].x.spell.."!", TALKTYPE_SAY)
- exhaustion.set(cid, pokemon.x.ex, pokemon.x.cd)
- addEvent(doAreaCombatHealth, 100, getCreatureSummons(cid)[1], element, getThingPos(getCreatureTarget(cid)), bomb, -((num1)+(getPlayerLevel(cid)*(num3))), -((num2)+(getPlayerLevel(cid)*(num3))), 114)
- doSendDistanceShoot(getThingPos(getCreatureSummons(cid)[1]), getThingPos(getCreatureTarget(cid)), 14)
- return 0
- elseif pokemon.x.spell == "Psywave" then
- doCreatureSay(getCreatureSummons(cid)[1], ""..string.upper(c[getCreatureOutfit(getCreatureSummons(cid)[1]).lookType].x.spell).."!", TALKTYPE_MONSTER)
- doCreatureSay(cid, ""..getCreatureName(getCreatureSummons(cid)[1])..", use "..c[getCreatureOutfit(getCreatureSummons(cid)[1]).lookType].x.spell.."!", TALKTYPE_SAY)
- exhaustion.set(cid, pokemon.x.ex, pokemon.x.cd)
- if getCreatureLookDir(getCreatureSummons(cid)[1]) == 0 then
- doAreaCombatHealth(getCreatureSummons(cid)[1], element, getThingPos(getCreatureSummons(cid)[1]), tsn, -((num1)+(getPlayerLevel(cid)*(num3))), -((num2)+(getPlayerLevel(cid)*(num3))), 133)
- elseif getCreatureLookDir(getCreatureSummons(cid)[1]) == 1 then
- doAreaCombatHealth(getCreatureSummons(cid)[1], element, getThingPos(getCreatureSummons(cid)[1]), tse, -((num1)+(getPlayerLevel(cid)*(num3))), -((num2)+(getPlayerLevel(cid)*(num3))), 133)
- elseif getCreatureLookDir(getCreatureSummons(cid)[1]) == 2 then
- doAreaCombatHealth(getCreatureSummons(cid)[1], element, getThingPos(getCreatureSummons(cid)[1]), tss, -((num1)+(getPlayerLevel(cid)*(num3))), -((num2)+(getPlayerLevel(cid)*(num3))), 133)
- elseif getCreatureLookDir(getCreatureSummons(cid)[1]) == 3 then
- doAreaCombatHealth(getCreatureSummons(cid)[1], element, getThingPos(getCreatureSummons(cid)[1]), tsw, -((num1)+(getPlayerLevel(cid)*(num3))), -((num2)+(getPlayerLevel(cid)*(num3))), 133)
- end
- return 0
- elseif pokemon.x.spell == "Blizzard" then
- doCreatureSay(getCreatureSummons(cid)[1], ""..string.upper(c[getCreatureOutfit(getCreatureSummons(cid)[1]).lookType].x.spell).."!", TALKTYPE_MONSTER)
- doCreatureSay(cid, ""..getCreatureName(getCreatureSummons(cid)[1])..", use "..c[getCreatureOutfit(getCreatureSummons(cid)[1]).lookType].x.spell.."!", TALKTYPE_SAY)
- exhaustion.set(cid, pokemon.x.ex, pokemon.x.cd)
- local function fall(params)
- if isCreature(params.cid) then
- if isCreature(getCreatureSummons(params.cid)[1]) then
- local pos = getThingPos(getCreatureSummons(cid)[1])
- pos.x = pos.x + math.random(-4,4)
- pos.y = pos.y + math.random(-4,4)
- local frompos = getThingPos(getCreatureSummons(cid)[1])
- frompos.x = pos.x - 7
- frompos.y = pos.y - 6
- doSendDistanceShoot(frompos, pos, 35)
- doAreaCombatHealth(getCreatureSummons(cid)[1], element, pos, 0, -((num1)+(getPlayerLevel(cid)*(num3))), -((num2)+(getPlayerLevel(cid)*(num3))), 52)
- end
- end
- end
- for rocks = 1, 72 do
- addEvent(fall, rocks*35, {cid = cid})
- end
- return 0
- elseif pokemon.x.spell == "Ancient Power" then
- doCreatureSay(getCreatureSummons(cid)[1], ""..string.upper(c[getCreatureOutfit(getCreatureSummons(cid)[1]).lookType].x.spell).."!", TALKTYPE_MONSTER)
- doCreatureSay(cid, ""..getCreatureName(getCreatureSummons(cid)[1])..", use "..c[getCreatureOutfit(getCreatureSummons(cid)[1]).lookType].x.spell.."!", TALKTYPE_SAY)
- exhaustion.set(cid, pokemon.x.ex, pokemon.x.cd)
- posit = getThingPos(getCreatureSummons(cid)[1])
- local function sandattack(params)
- if #getCreatureSummons(params.cid) >= 1 then
- doAreaCombatHealth(getCreatureSummons(params.cid)[1], null, params.ar, 0, -((num1)+(getPlayerLevel(cid)*(num3))), -((num2)+(getPlayerLevel(cid)*(num3))), params.ef)
- doAreaCombatHealth(getCreatureSummons(params.cid)[1], element, params.ar, params.wave, -((num1)+(getPlayerLevel(cid)*(num3))), -((num2)+(getPlayerLevel(cid)*(num3))), 255)
- else
- end
- end
- local posicao = getThingPos(getCreatureSummons(cid)[1])
- if getCreatureLookDir(getCreatureSummons(cid)[1]) == 0 then
- addEvent(sandattack, 0, {cid = cid, ar = {x=posicao.x+1, y=posicao.y-1, z=posicao.z}, ef = 137, wave = ap1})
- addEvent(sandattack, 400, {cid = cid, ar = {x=posicao.x+1, y=posicao.y-2, z=posicao.z}, ef = 137, wave = ap1})
- addEvent(sandattack, 800, {cid = cid, ar = {x=posicao.x+1, y=posicao.y-3, z=posicao.z}, ef = 137, wave = ap1})
- addEvent(sandattack, 1200, {cid = cid, ar = {x=posicao.x+1, y=posicao.y-4, z=posicao.z}, ef = 137, wave = ap1})
- addEvent(sandattack, 1600, {cid = cid, ar = {x=posicao.x+1, y=posicao.y-5, z=posicao.z}, ef = 137, wave = ap1})
- addEvent(sandattack, 0, {cid = cid, ar = {x=posicao.x-1, y=posicao.y-1, z=posicao.z}, ef = 137, wave = ap1})
- addEvent(sandattack, 400, {cid = cid, ar = {x=posicao.x-1, y=posicao.y-2, z=posicao.z}, ef = 137, wave = ap1})
- addEvent(sandattack, 800, {cid = cid, ar = {x=posicao.x-1, y=posicao.y-3, z=posicao.z}, ef = 137, wave = ap1})
- addEvent(sandattack, 1200, {cid = cid, ar = {x=posicao.x-1, y=posicao.y-4, z=posicao.z}, ef = 137, wave = ap1})
- addEvent(sandattack, 1600, {cid = cid, ar = {x=posicao.x-1, y=posicao.y-5, z=posicao.z}, ef = 137, wave = ap1})
- addEvent(sandattack, 0, {cid = cid, ar = {x=posicao.x+0, y=posicao.y-1, z=posicao.z}, ef = 18, wave = ap2})
- addEvent(sandattack, 400, {cid = cid, ar = {x=posicao.x+0, y=posicao.y-2, z=posicao.z}, ef = 18, wave = ap2})
- addEvent(sandattack, 800, {cid = cid, ar = {x=posicao.x+0, y=posicao.y-3, z=posicao.z}, ef = 18, wave = ap2})
- addEvent(sandattack, 1200, {cid = cid, ar = {x=posicao.x+0, y=posicao.y-4, z=posicao.z}, ef = 18, wave = ap2})
- addEvent(sandattack, 1600, {cid = cid, ar = {x=posicao.x+0, y=posicao.y-5, z=posicao.z}, ef = 18, wave = ap2})
- elseif getCreatureLookDir(getCreatureSummons(cid)[1]) == 2 then
- addEvent(sandattack, 0, {cid = cid, ar = {x=posicao.x+1, y=posicao.y+1, z=posicao.z}, ef = 137, wave = ap3})
- addEvent(sandattack, 400, {cid = cid, ar = {x=posicao.x+1, y=posicao.y+2, z=posicao.z}, ef = 137, wave = ap3})
- addEvent(sandattack, 800, {cid = cid, ar = {x=posicao.x+1, y=posicao.y+3, z=posicao.z}, ef = 137, wave = ap3})
- addEvent(sandattack, 1200, {cid = cid, ar = {x=posicao.x+1, y=posicao.y+4, z=posicao.z}, ef = 137, wave = ap3})
- addEvent(sandattack, 1600, {cid = cid, ar = {x=posicao.x+1, y=posicao.y+5, z=posicao.z}, ef = 137, wave = ap3})
- addEvent(sandattack, 0, {cid = cid, ar = {x=posicao.x-1, y=posicao.y+1, z=posicao.z}, ef = 137, wave = ap3})
- addEvent(sandattack, 400, {cid = cid, ar = {x=posicao.x-1, y=posicao.y+2, z=posicao.z}, ef = 137, wave = ap3})
- addEvent(sandattack, 800, {cid = cid, ar = {x=posicao.x-1, y=posicao.y+3, z=posicao.z}, ef = 137, wave = ap3})
- addEvent(sandattack, 1200, {cid = cid, ar = {x=posicao.x-1, y=posicao.y+4, z=posicao.z}, ef = 137, wave = ap3})
- addEvent(sandattack, 1600, {cid = cid, ar = {x=posicao.x-1, y=posicao.y+5, z=posicao.z}, ef = 137, wave = ap3})
- addEvent(sandattack, 0, {cid = cid, ar = {x=posicao.x+0, y=posicao.y+1, z=posicao.z}, ef = 18, wave = ap4})
- addEvent(sandattack, 400, {cid = cid, ar = {x=posicao.x+0, y=posicao.y+2, z=posicao.z}, ef = 18, wave = ap4})
- addEvent(sandattack, 800, {cid = cid, ar = {x=posicao.x+0, y=posicao.y+3, z=posicao.z}, ef = 18, wave = ap4})
- addEvent(sandattack, 1200, {cid = cid, ar = {x=posicao.x+0, y=posicao.y+4, z=posicao.z}, ef = 18, wave = ap4})
- addEvent(sandattack, 1600, {cid = cid, ar = {x=posicao.x+0, y=posicao.y+5, z=posicao.z}, ef = 18, wave = ap4})
- elseif getCreatureLookDir(getCreatureSummons(cid)[1]) == 1 then
- addEvent(sandattack, 0, {cid = cid, ar = {x=posicao.x+2, y=posicao.y+1, z=posicao.z}, ef = 137, wave = ap5})
- addEvent(sandattack, 400, {cid = cid, ar = {x=posicao.x+3, y=posicao.y+1, z=posicao.z}, ef = 137, wave = ap5})
- addEvent(sandattack, 800, {cid = cid, ar = {x=posicao.x+4, y=posicao.y+1, z=posicao.z}, ef = 137, wave = ap5})
- addEvent(sandattack, 1200, {cid = cid, ar = {x=posicao.x+5, y=posicao.y+1, z=posicao.z}, ef = 137, wave = ap5})
- addEvent(sandattack, 1600, {cid = cid, ar = {x=posicao.x+6, y=posicao.y+1, z=posicao.z}, ef = 137, wave = ap5})
- addEvent(sandattack, 0, {cid = cid, ar = {x=posicao.x+2, y=posicao.y-1, z=posicao.z}, ef = 137, wave = ap5})
- addEvent(sandattack, 400, {cid = cid, ar = {x=posicao.x+3, y=posicao.y-1, z=posicao.z}, ef = 137, wave = ap5})
- addEvent(sandattack, 800, {cid = cid, ar = {x=posicao.x+4, y=posicao.y-1, z=posicao.z}, ef = 137, wave = ap5})
- addEvent(sandattack, 1200, {cid = cid, ar = {x=posicao.x+5, y=posicao.y-1, z=posicao.z}, ef = 137, wave = ap5})
- addEvent(sandattack, 1600, {cid = cid, ar = {x=posicao.x+6, y=posicao.y-1, z=posicao.z}, ef = 137, wave = ap5})
- addEvent(sandattack, 0, {cid = cid, ar = {x=posicao.x+2, y=posicao.y-0, z=posicao.z}, ef = 18, wave = ap6})
- addEvent(sandattack, 400, {cid = cid, ar = {x=posicao.x+3, y=posicao.y-0, z=posicao.z}, ef = 18, wave = ap6})
- addEvent(sandattack, 800, {cid = cid, ar = {x=posicao.x+4, y=posicao.y-0, z=posicao.z}, ef = 18, wave = ap6})
- addEvent(sandattack, 1200, {cid = cid, ar = {x=posicao.x+5, y=posicao.y-0, z=posicao.z}, ef = 18, wave = ap6})
- addEvent(sandattack, 1600, {cid = cid, ar = {x=posicao.x+6, y=posicao.y-0, z=posicao.z}, ef = 18, wave = ap6})
- elseif getCreatureLookDir(getCreatureSummons(cid)[1]) == 3 then
- addEvent(sandattack, 0, {cid = cid, ar = {x=posicao.x-1, y=posicao.y+1, z=posicao.z}, ef = 137, wave = ap7})
- addEvent(sandattack, 400, {cid = cid, ar = {x=posicao.x-2, y=posicao.y+1, z=posicao.z}, ef = 137, wave = ap7})
- addEvent(sandattack, 800, {cid = cid, ar = {x=posicao.x-3, y=posicao.y+1, z=posicao.z}, ef = 137, wave = ap7})
- addEvent(sandattack, 1200, {cid = cid, ar = {x=posicao.x-4, y=posicao.y+1, z=posicao.z}, ef = 137, wave = ap7})
- addEvent(sandattack, 1600, {cid = cid, ar = {x=posicao.x-5, y=posicao.y+1, z=posicao.z}, ef = 137, wave = ap7})
- addEvent(sandattack, 0, {cid = cid, ar = {x=posicao.x-1, y=posicao.y-1, z=posicao.z}, ef = 137, wave = ap7})
- addEvent(sandattack, 400, {cid = cid, ar = {x=posicao.x-2, y=posicao.y-1, z=posicao.z}, ef = 137, wave = ap7})
- addEvent(sandattack, 800, {cid = cid, ar = {x=posicao.x-3, y=posicao.y-1, z=posicao.z}, ef = 137, wave = ap7})
- addEvent(sandattack, 1200, {cid = cid, ar = {x=posicao.x-4, y=posicao.y-1, z=posicao.z}, ef = 137, wave = ap7})
- addEvent(sandattack, 1600, {cid = cid, ar = {x=posicao.x-5, y=posicao.y-1, z=posicao.z}, ef = 137, wave = ap7})
- addEvent(sandattack, 0, {cid = cid, ar = {x=posicao.x-1, y=posicao.y-0, z=posicao.z}, ef = 18, wave = ap8})
- addEvent(sandattack, 400, {cid = cid, ar = {x=posicao.x-2, y=posicao.y-0, z=posicao.z}, ef = 18, wave = ap8})
- addEvent(sandattack, 800, {cid = cid, ar = {x=posicao.x-3, y=posicao.y-0, z=posicao.z}, ef = 18, wave = ap8})
- addEvent(sandattack, 1200, {cid = cid, ar = {x=posicao.x-4, y=posicao.y-0, z=posicao.z}, ef = 18, wave = ap8})
- addEvent(sandattack, 1600, {cid = cid, ar = {x=posicao.x-5, y=posicao.y-0, z=posicao.z}, ef = 18, wave = ap8})
- end
- return 0
- elseif pokemon.x.spell == "Magma Storm" then
- doCreatureSay(getCreatureSummons(cid)[1], ""..string.upper(c[getCreatureOutfit(getCreatureSummons(cid)[1]).lookType].x.spell).."!", TALKTYPE_MONSTER)
- doCreatureSay(cid, ""..getCreatureName(getCreatureSummons(cid)[1])..", use "..c[getCreatureOutfit(getCreatureSummons(cid)[1]).lookType].x.spell.."!", TALKTYPE_SAY)
- exhaustion.set(cid, pokemon.x.ex, pokemon.x.cd)
- local function fall(params)
- if isCreature(params.cid) then
- if isCreature(getCreatureSummons(params.cid)[1]) then
- local pos = getThingPos(getCreatureSummons(cid)[1])
- pos.x = pos.x + math.random(-4,4)
- pos.y = pos.y + math.random(-4,4)
- local frompos = getThingPos(getCreatureSummons(cid)[1])
- frompos.x = pos.x - 7
- frompos.y = pos.y - 6
- doSendDistanceShoot(frompos, pos, 6)
- doAreaCombatHealth(getCreatureSummons(cid)[1], element, pos, 0, -((num1)+(getPlayerLevel(cid)*(num3))), -((num2)+(getPlayerLevel(cid)*(num3))), 15)
- end
- end
- end
- for rocks = 1, 72 do
- addEvent(fall, rocks*35, {cid = cid})
- end
- return 0
- elseif pokemon.x.spell == "Hydro Cannon" then
- doCreatureSay(getCreatureSummons(cid)[1], ""..string.upper(c[getCreatureOutfit(getCreatureSummons(cid)[1]).lookType].x.spell).."!", TALKTYPE_MONSTER)
- doCreatureSay(cid, ""..getCreatureName(getCreatureSummons(cid)[1])..", "..c[getCreatureOutfit(getCreatureSummons(cid)[1]).lookType].x.spell.."!", TALKTYPE_SAY)
- exhaustion.set(cid, pokemon.x.ex, pokemon.x.cd)
- posit = getThingPos(getCreatureSummons(cid)[1])
- local function gust(params)
- if #getCreatureSummons(params.cid) >= 1 then
- doAreaCombatHealth(getCreatureSummons(params.cid)[1], null, params.ar, sand1, -((num1)+(getPlayerLevel(cid)*(num3))), -((num2)+(getPlayerLevel(cid)*(num3))), params.eee)
- doAreaCombatHealth(getCreatureSummons(params.cid)[1], element, params.ar, whirl3, -((num1)+(getPlayerLevel(cid)*(num3))), -((num2)+(getPlayerLevel(cid)*(num3))), 68)
- doAreaCombatHealth(getCreatureSummons(params.cid)[1], null, params.arr, whirl3, -((num1)+(getPlayerLevel(cid)*(num3))), -((num2)+(getPlayerLevel(cid)*(num3))), 68)
- else
- end
- end
- local posicao = getThingPos(getCreatureSummons(cid)[1])
- if getCreatureLookDir(getCreatureSummons(cid)[1]) == 0 then
- addEvent(gust, 0, {cid = cid, eee = 66, ar = {x=posicao.x, y=posicao.y-1, z=posicao.z}, arr = posicao})
- addEvent(gust, 300, {cid = cid, eee = 66, ar = {x=posicao.x, y=posicao.y-2, z=posicao.z}, arr = {x=posicao.x, y=posicao.y-1, z=posicao.z}})
- addEvent(gust, 600, {cid = cid, eee = 66, ar = {x=posicao.x, y=posicao.y-3, z=posicao.z}, arr = {x=posicao.x, y=posicao.y-2, z=posicao.z}})
- addEvent(gust, 900, {cid = cid, eee = 66, ar = {x=posicao.x, y=posicao.y-4, z=posicao.z}, arr = {x=posicao.x, y=posicao.y-3, z=posicao.z}})
- addEvent(gust, 1200, {cid = cid, eee = 66, ar = {x=posicao.x, y=posicao.y-5, z=posicao.z}, arr = {x=posicao.x, y=posicao.y-4, z=posicao.z}})
- addEvent(gust, 1500, {cid = cid, eee = 66, ar = {x=posicao.x, y=posicao.y-6, z=posicao.z}, arr = {x=posicao.x, y=posicao.y-5, z=posicao.z}})
- elseif getCreatureLookDir(getCreatureSummons(cid)[1]) == 2 then
- addEvent(gust, 0, {cid = cid, eee = 64, ar = {x=posicao.x, y=posicao.y+1, z=posicao.z}, arr = posicao})
- addEvent(gust, 300, {cid = cid, eee = 64, ar = {x=posicao.x, y=posicao.y+2, z=posicao.z}, arr = {x=posicao.x, y=posicao.y+1, z=posicao.z}})
- addEvent(gust, 600, {cid = cid, eee = 64, ar = {x=posicao.x, y=posicao.y+3, z=posicao.z}, arr = {x=posicao.x, y=posicao.y+2, z=posicao.z}})
- addEvent(gust, 900, {cid = cid, eee = 64, ar = {x=posicao.x, y=posicao.y+4, z=posicao.z}, arr = {x=posicao.x, y=posicao.y+3, z=posicao.z}})
- addEvent(gust, 1200, {cid = cid, eee = 64, ar = {x=posicao.x, y=posicao.y+5, z=posicao.z}, arr = {x=posicao.x, y=posicao.y+4, z=posicao.z}})
- addEvent(gust, 1500, {cid = cid, eee = 64, ar = {x=posicao.x, y=posicao.y+6, z=posicao.z}, arr = {x=posicao.x, y=posicao.y+5, z=posicao.z}})
- elseif getCreatureLookDir(getCreatureSummons(cid)[1]) == 1 then
- addEvent(gust, 0, {cid = cid, eee = 67, ar = {x=posicao.x+1, y=posicao.y, z=posicao.z}, arr = posicao})
- addEvent(gust, 300, {cid = cid, eee = 67, ar = {x=posicao.x+2, y=posicao.y, z=posicao.z}, arr = {x=posicao.x+1, y=posicao.y, z=posicao.z}})
- addEvent(gust, 600, {cid = cid, eee = 67, ar = {x=posicao.x+3, y=posicao.y, z=posicao.z}, arr = {x=posicao.x+2, y=posicao.y, z=posicao.z}})
- addEvent(gust, 900, {cid = cid, eee = 67, ar = {x=posicao.x+4, y=posicao.y, z=posicao.z}, arr = {x=posicao.x+3, y=posicao.y, z=posicao.z}})
- addEvent(gust, 1200, {cid = cid, eee = 67, ar = {x=posicao.x+5, y=posicao.y, z=posicao.z}, arr = {x=posicao.x+4, y=posicao.y, z=posicao.z}})
- addEvent(gust, 1500, {cid = cid, eee = 67, ar = {x=posicao.x+6, y=posicao.y, z=posicao.z}, arr = {x=posicao.x+5, y=posicao.y, z=posicao.z}})
- elseif getCreatureLookDir(getCreatureSummons(cid)[1]) == 3 then
- addEvent(gust, 0, {cid = cid, eee = 65, ar = {x=posicao.x-1, y=posicao.y, z=posicao.z}, arr = posicao})
- addEvent(gust, 300, {cid = cid, eee = 65, ar = {x=posicao.x-2, y=posicao.y, z=posicao.z}, arr = {x=posicao.x-1, y=posicao.y, z=posicao.z}})
- addEvent(gust, 600, {cid = cid, eee = 65, ar = {x=posicao.x-3, y=posicao.y, z=posicao.z}, arr = {x=posicao.x-2, y=posicao.y, z=posicao.z}})
- addEvent(gust, 900, {cid = cid, eee = 65, ar = {x=posicao.x-4, y=posicao.y, z=posicao.z}, arr = {x=posicao.x-3, y=posicao.y, z=posicao.z}})
- addEvent(gust, 1200, {cid = cid, eee = 65, ar = {x=posicao.x-5, y=posicao.y, z=posicao.z}, arr = {x=posicao.x-4, y=posicao.y, z=posicao.z}})
- addEvent(gust, 1500, {cid = cid, eee = 65, ar = {x=posicao.x-6, y=posicao.y, z=posicao.z}, arr = {x=posicao.x-5, y=posicao.y, z=posicao.z}})
- end
- return 0
- elseif pokemon.x.spell == "Waterball" then
- doCreatureSay(getCreatureSummons(cid)[1], ""..string.upper(c[getCreatureOutfit(getCreatureSummons(cid)[1]).lookType].x.spell).."!", TALKTYPE_MONSTER)
- doCreatureSay(cid, ""..getCreatureName(getCreatureSummons(cid)[1])..", use "..c[getCreatureOutfit(getCreatureSummons(cid)[1]).lookType].x.spell.."!", TALKTYPE_SAY)
- exhaustion.set(cid, pokemon.x.ex, pokemon.x.cd)
- local function throw(params)
- if isCreature(getCreatureTarget(params.cid)) then
- doSendDistanceShoot(getThingPos(getCreatureSummons(params.cid)[1]), getThingPos(getCreatureTarget(params.cid)), 2)
- else
- end
- end
- local function damage(params)
- if isCreature(getCreatureTarget(params.cid)) then
- doAreaCombatHealth(getCreatureSummons(params.cid)[1], element, getThingPos(getCreatureTarget(cid)), waba, -((num1)+(getPlayerLevel(cid)*(num3))), -((num2)+(getPlayerLevel(cid)*(num3))), 68)
- else
- end
- end
- addEvent(damage, 100, {cid = cid})
- addEvent(throw, 0, {cid = cid})
- return 0
- elseif pokemon.x.spell == "Earthquake" then
- doCreatureSay(getCreatureSummons(cid)[1], ""..string.upper(c[getCreatureOutfit(getCreatureSummons(cid)[1]).lookType].x.spell).."!", TALKTYPE_MONSTER)
- doCreatureSay(cid, ""..getCreatureName(getCreatureSummons(cid)[1])..", use "..c[getCreatureOutfit(getCreatureSummons(cid)[1]).lookType].x.spell.."!", TALKTYPE_SAY)
- exhaustion.set(cid, pokemon.x.ex, pokemon.x.cd)
- posit = getThingPos(getCreatureSummons(cid)[1])
- local function storm(params)
- if #getCreatureSummons(params.cid) >= 1 then
- doAreaCombatHealth(getCreatureSummons(params.cid)[1], params.el, posit, params.ar, -((num1)+(getPlayerLevel(cid)*(num3))), -((num2)+(getPlayerLevel(cid)*(num3))), params.ef)
- else
- end
- end
- addEvent(storm, 0, {cid = cid, el = element, ar = earthquake, ef = 118})
- addEvent(storm, 500, {cid = cid, el = element, ar = earthquake, ef = 118})
- addEvent(storm, 1000, {cid = cid, el = element, ar = earthquake, ef = 118})
- addEvent(storm, 1500, {cid = cid, el = element, ar = earthquake, ef = 118})
- addEvent(storm, 2000, {cid = cid, el = element, ar = earthquake, ef = 118})
- addEvent(storm, 2500, {cid = cid, el = element, ar = earthquake, ef = 118})
- addEvent(storm, 3000, {cid = cid, el = element, ar = earthquake, ef = 118})
- addEvent(storm, 3500, {cid = cid, el = element, ar = earthquake, ef = 118})
- addEvent(storm, 4000, {cid = cid, el = element, ar = earthquake, ef = 118})
- addEvent(storm, 4500, {cid = cid, el = element, ar = earthquake, ef = 118})
- addEvent(storm, 5000, {cid = cid, el = element, ar = earthquake, ef = 118})
- addEvent(storm, 5500, {cid = cid, el = element, ar = earthquake, ef = 118})
- addEvent(storm, 6000, {cid = cid, el = element, ar = earthquake, ef = 118})
- addEvent(storm, 6500, {cid = cid, el = element, ar = earthquake, ef = 118})
- addEvent(storm, 7000, {cid = cid, el = element, ar = earthquake, ef = 118})
- addEvent(storm, 7500, {cid = cid, el = element, ar = earthquake, ef = 118})
- addEvent(storm, 8000, {cid = cid, el = element, ar = earthquake, ef = 118})
- addEvent(storm, 8500, {cid = cid, el = element, ar = earthquake, ef = 118})
- addEvent(storm, 9000, {cid = cid, el = element, ar = earthquake, ef = 118})
- addEvent(storm, 9500, {cid = cid, el = element, ar = earthquake, ef = 118})
- addEvent(storm, 10000, {cid = cid, el = element, ar = earthquake, ef = 118})
- addEvent(storm, 10500, {cid = cid, el = element, ar = earthquake, ef = 118})
- addEvent(storm, 11000, {cid = cid, el = element, ar = earthquake, ef = 118})
- addEvent(storm, 11500, {cid = cid, el = element, ar = earthquake, ef = 118})
- addEvent(storm, 12000, {cid = cid, el = element, ar = earthquake, ef = 118})
- return 0
- elseif pokemon.x.spell == "Wing Attack" then
- doCreatureSay(getCreatureSummons(cid)[1], ""..string.upper(c[getCreatureOutfit(getCreatureSummons(cid)[1]).lookType].x.spell).."!", TALKTYPE_MONSTER)
- doCreatureSay(cid, ""..getCreatureName(getCreatureSummons(cid)[1])..", use "..c[getCreatureOutfit(getCreatureSummons(cid)[1]).lookType].x.spell.."!", TALKTYPE_SAY)
- exhaustion.set(cid, pokemon.x.ex, pokemon.x.cd)
- if getCreatureLookDir(getCreatureSummons(cid)[1]) == 0 then
- doAreaCombatHealth(getCreatureSummons(cid)[1], COMBAT_PDAMAGE, getThingPos(getCreatureSummons(cid)[1]), wingn, -((num1)+(getPlayerLevel(cid)*(num3))), -((num2)+(getPlayerLevel(cid)*(num3))), 128)
- doAreaCombatHealth(getCreatureSummons(cid)[1], element, getThingPos(getCreatureSummons(cid)[1]), wingdn, -((num1)+(getPlayerLevel(cid)*(num3))), -((num2)+(getPlayerLevel(cid)*(num3))), CONST_ME_NONE)
- elseif getCreatureLookDir(getCreatureSummons(cid)[1]) == 1 then
- doAreaCombatHealth(getCreatureSummons(cid)[1], COMBAT_PDAMAGE, getThingPos(getCreatureSummons(cid)[1]), winge, -((num1)+(getPlayerLevel(cid)*(num3))), -((num2)+(getPlayerLevel(cid)*(num3))), 129)
- doAreaCombatHealth(getCreatureSummons(cid)[1], element, getThingPos(getCreatureSummons(cid)[1]), wingde, -((num1)+(getPlayerLevel(cid)*(num3))), -((num2)+(getPlayerLevel(cid)*(num3))), CONST_ME_NONE)
- elseif getCreatureLookDir(getCreatureSummons(cid)[1]) == 2 then
- doAreaCombatHealth(getCreatureSummons(cid)[1], COMBAT_PDAMAGE, getThingPos(getCreatureSummons(cid)[1]), wings, -((num1)+(getPlayerLevel(cid)*(num3))), -((num2)+(getPlayerLevel(cid)*(num3))), 131)
- doAreaCombatHealth(getCreatureSummons(cid)[1], element, getThingPos(getCreatureSummons(cid)[1]), wingds, -((num1)+(getPlayerLevel(cid)*(num3))), -((num2)+(getPlayerLevel(cid)*(num3))), CONST_ME_NONE)
- elseif getCreatureLookDir(getCreatureSummons(cid)[1]) == 3 then
- doAreaCombatHealth(getCreatureSummons(cid)[1], COMBAT_PDAMAGE, getThingPos(getCreatureSummons(cid)[1]), wingw, -((num1)+(getPlayerLevel(cid)*(num3))), -((num2)+(getPlayerLevel(cid)*(num3))), 130)
- doAreaCombatHealth(getCreatureSummons(cid)[1], element, getThingPos(getCreatureSummons(cid)[1]), wingdw, -((num1)+(getPlayerLevel(cid)*(num3))), -((num2)+(getPlayerLevel(cid)*(num3))), CONST_ME_NONE)
- end
- return 0
- elseif pokemon.x.spell == "Mega Kick" then
- doCreatureSay(getCreatureSummons(cid)[1], ""..string.upper(c[getCreatureOutfit(getCreatureSummons(cid)[1]).lookType].x.spell).."!", TALKTYPE_MONSTER)
- doCreatureSay(cid, ""..getCreatureName(getCreatureSummons(cid)[1])..", use "..c[getCreatureOutfit(getCreatureSummons(cid)[1]).lookType].x.spell.."!", TALKTYPE_SAY)
- exhaustion.set(cid, pokemon.x.ex, pokemon.x.cd)
- doAreaCombatHealth(getCreatureSummons(cid)[1], element, getThingPos(getCreatureTarget(cid)), 0, -((num1)+(getPlayerLevel(cid)*(num3))), -((num2)+(getPlayerLevel(cid)*(num3))), 113)
- return 0
- elseif pokemon.x.spell == "Harden" then
- doCreatureSay(getCreatureSummons(cid)[1], ""..string.upper(c[getCreatureOutfit(getCreatureSummons(cid)[1]).lookType].x.spell).."!", TALKTYPE_MONSTER)
- doCreatureSay(cid, ""..getCreatureName(getCreatureSummons(cid)[1])..", use "..c[getCreatureOutfit(getCreatureSummons(cid)[1]).lookType].x.spell.."!", TALKTYPE_SAY)
- exhaustion.set(cid, pokemon.x.ex, pokemon.x.cd)
- local hardname = getCreatureName(getCreatureSummons(cid)[1])
- setPlayerStorageValue(getCreatureSummons(cid)[1], 4, 1)
- local oldpos = getThingPos(getCreatureSummons(cid)[1])
- local function efect(params)
- if isCreature(getCreatureSummons(params.cid)[1]) then
- if getPlayerStorageValue(getCreatureSummons(params.cid)[1], 4) >= 1 then
- doSendMagicEffect(getThingPos(getCreatureSummons(params.cid)[1]), 144)
- end
- end
- end
- local function chard(params)
- if isCreature(getCreatureSummons(params.cid)[1]) then
- if getPlayerStorageValue(getCreatureSummons(params.cid)[1], 4) >= 1 then
- setPlayerStorageValue(getCreatureSummons(params.cid)[1], 4, -1)
- end
- end
- end
- addEvent(efect, 100, {cid = cid, hardname = hardname})
- addEvent(efect, 1600, {cid = cid, hardname = hardname})
- addEvent(efect, 3100, {cid = cid, hardname = hardname})
- addEvent(efect, 4600, {cid = cid, hardname = hardname})
- addEvent(efect, 6100, {cid = cid, hardname = hardname})
- addEvent(efect, 7600, {cid = cid, hardname = hardname})
- addEvent(efect, 9100, {cid = cid, hardname = hardname})
- addEvent(efect, 10600, {cid = cid, hardname = hardname})
- addEvent(chard, 11000, {cid = cid})
- return 0
- elseif pokemon.x.spell == "Electric Storm" then
- doCreatureSay(getCreatureSummons(cid)[1], ""..string.upper(c[getCreatureOutfit(getCreatureSummons(cid)[1]).lookType].x.spell).."!", TALKTYPE_MONSTER)
- doCreatureSay(cid, ""..getCreatureName(getCreatureSummons(cid)[1])..", use "..c[getCreatureOutfit(getCreatureSummons(cid)[1]).lookType].x.spell.."!", TALKTYPE_SAY)
- exhaustion.set(cid, pokemon.x.ex, pokemon.x.cd)
- local function fall(params)
- if isCreature(params.cid) then
- if isCreature(getCreatureSummons(params.cid)[1]) then
- local pos = getThingPos(getCreatureSummons(cid)[1])
- pos.x = pos.x + math.random(-4,4)
- pos.y = pos.y + math.random(-4,4)
- local frompos = getThingPos(getCreatureSummons(cid)[1])
- frompos.x = pos.x - 7
- frompos.y = pos.y - 6
- doSendDistanceShoot(frompos, pos, 41)
- doAreaCombatHealth(getCreatureSummons(cid)[1], element, pos, 0, -((num1)+(getPlayerLevel(cid)*(num3))), -((num2)+(getPlayerLevel(cid)*(num3))), 48)
- end
- end
- end
- for rocks = 1, 72 do
- addEvent(fall, rocks*35, {cid = cid})
- end
- return 0
- elseif pokemon.x.spell == "Stomp" then
- doCreatureSay(getCreatureSummons(cid)[1], ""..string.upper(c[getCreatureOutfit(getCreatureSummons(cid)[1]).lookType].x.spell).."!", TALKTYPE_MONSTER)
- doCreatureSay(cid, ""..getCreatureName(getCreatureSummons(cid)[1])..", use "..c[getCreatureOutfit(getCreatureSummons(cid)[1]).lookType].x.spell.."!", TALKTYPE_SAY)
- exhaustion.set(cid, pokemon.x.ex, pokemon.x.cd)
- doAreaCombatHealth(getCreatureSummons(cid)[1], element, getThingPos(getCreatureSummons(cid)[1]), stomp, -((num1)+(getPlayerLevel(cid)*(num3))), -((num2)+(getPlayerLevel(cid)*(num3))), 118)
- return 0
- elseif pokemon.x.spell == "Mind Blast" then
- doCreatureSay(getCreatureSummons(cid)[1], ""..string.upper(c[getCreatureOutfit(getCreatureSummons(cid)[1]).lookType].x.spell).."!", TALKTYPE_MONSTER)
- doCreatureSay(cid, ""..getCreatureName(getCreatureSummons(cid)[1])..", "..c[getCreatureOutfit(getCreatureSummons(cid)[1]).lookType].x.spell.."!", TALKTYPE_SAY)
- exhaustion.set(cid, pokemon.x.ex, pokemon.x.cd)
- if math.random(1,3) == 1 then
- random = 133
- else
- if math.random(1,2) == 2 then
- random = 134
- else
- random = 136
- end
- end
- doAreaCombatHealth(getCreatureSummons(cid)[1], element, getThingPos(getCreatureTarget(cid)), 0, -((num1)+(getPlayerLevel(cid)*(num3))), -((num1)+(getPlayerLevel(cid)*(num3))), random)
- if math.random(1,3) == 1 then
- random = 133
- else
- if math.random(1,2) == 2 then
- random = 134
- else
- random = 136
- end
- end
- local function go(params)
- if isCreature(getCreatureSummons(params.cid)[1]) then
- if isCreature(getCreatureTarget(cid)) then
- doAreaCombatHealth(getCreatureSummons(cid)[1], element, getThingPos(getCreatureTarget(cid)), psy2, -((num1)+(getPlayerLevel(cid)*(num3))), -((num1)+(getPlayerLevel(cid)*(num3))), random)
- end
- end
- end
- addEvent(go, 150, {cid = cid})
- if math.random(1,3) == 1 then
- random = 133
- else
- if math.random(1,2) == 2 then
- random = 134
- else
- random = 136
- end
- end
- doAreaCombatHealth(getCreatureSummons(cid)[1], element, getThingPos(getCreatureTarget(cid)), psy1, -((num1)+(getPlayerLevel(cid)*(num3))), -((num1)+(getPlayerLevel(cid)*(num3))), random)
- return 0
- elseif pokemon.x.spell == "Focus" then
- doCreatureSay(getCreatureSummons(cid)[1], ""..string.upper(c[getCreatureOutfit(getCreatureSummons(cid)[1]).lookType].x.spell).."!", TALKTYPE_MONSTER)
- doCreatureSay(cid, ""..getCreatureName(getCreatureSummons(cid)[1])..", "..c[getCreatureOutfit(getCreatureSummons(cid)[1]).lookType].x.spell.."!", TALKTYPE_SAY)
- exhaustion.set(cid, pokemon.x.ex, pokemon.x.cd)
- doSendMagicEffect(getThingPos(getCreatureSummons(cid)[1]), CONST_ME_MAGIC_RED)
- setPlayerStorageValue(getCreatureSummons(cid)[1], 254, 1)
- local function quiet(params)
- if isCreature(params.cid) then
- if isCreature(getCreatureSummons(params.cid)[1]) then
- if getPlayerStorageValue(getCreatureSummons(cid)[1], 254) >= 1 then
- doSendMagicEffect(getThingPos(getCreatureSummons(params.cid)[1]), 132)
- end
- end
- end
- end
- local function desc(params)
- if isCreature(params.cid) then
- if isCreature(getCreatureSummons(params.cid)[1]) then
- if getPlayerStorageValue(getCreatureSummons(cid)[1], 254) >= 1 then
- setPlayerStorageValue(getCreatureSummons(cid)[1], 254, 0)
- end
- end
- end
- end
- for calm = 1, 12 do
- addEvent(quiet, calm*500, {cid = cid})
- end
- addEvent(desc, 12*500, {cid = cid})
- return 0
- elseif pokemon.x.spell == "Toxic Needle" then
- doCreatureSay(getCreatureSummons(cid)[1], ""..string.upper(c[getCreatureOutfit(getCreatureSummons(cid)[1]).lookType].x.spell).."!", TALKTYPE_MONSTER)
- doCreatureSay(cid, ""..getCreatureName(getCreatureSummons(cid)[1])..", use "..c[getCreatureOutfit(getCreatureSummons(cid)[1]).lookType].x.spell.."!", TALKTYPE_SAY)
- exhaustion.set(cid, pokemon.x.ex, pokemon.x.cd)
- doSendDistanceShoot(getThingPos(getCreatureSummons(cid)[1]), getThingPos(getCreatureTarget(cid)), 15)
- doAreaCombatHealth(getCreatureSummons(cid)[1], element, getThingPos(getCreatureTarget(cid)), 0, -((num1)+(getPlayerLevel(cid)*(num3))), -((num2)+(getPlayerLevel(cid)*(num3))), 8)
- return 0
- elseif pokemon.x.spell == "Thunderbolt" then
- doCreatureSay(getCreatureSummons(cid)[1], ""..string.upper(c[getCreatureOutfit(getCreatureSummons(cid)[1]).lookType].x.spell).."!", TALKTYPE_MONSTER)
- doCreatureSay(cid, ""..getCreatureName(getCreatureSummons(cid)[1])..", use "..c[getCreatureOutfit(getCreatureSummons(cid)[1]).lookType].x.spell.."!", TALKTYPE_SAY)
- exhaustion.set(cid, pokemon.x.ex, pokemon.x.cd)
- local posalvo = getThingPos(getCreatureTarget(cid))
- local boltalvo = getCreatureTarget(cid)
- posalvo.x = posalvo.x-2
- posalvo.y = posalvo.y-6
- doSendDistanceShoot(posalvo, getThingPos(getCreatureTarget(cid)), 41)
- local function bolt(params)
- if isCreature(params.cid) then
- if isCreature(getCreatureTarget(cid)) then
- if getCreatureTarget(params.cid) == params.boltalvo then
- doAreaCombatHealth(getCreatureSummons(params.cid)[1], element, getThingPos(getCreatureTarget(cid)), 0, -((num1)+(getPlayerLevel(cid)*(num3))), -((num2)+(getPlayerLevel(cid)*(num3))), 48)
- end
- end
- end
- end
- addEvent(bolt, 200, {cid = cid, boltalvo = boltalvo})
- return 0
- elseif pokemon.x.spell == "Thunder" then
- doCreatureSay(getCreatureSummons(cid)[1], ""..string.upper(c[getCreatureOutfit(getCreatureSummons(cid)[1]).lookType].x.spell).."!", TALKTYPE_MONSTER)
- doCreatureSay(cid, ""..getCreatureName(getCreatureSummons(cid)[1])..", use "..c[getCreatureOutfit(getCreatureSummons(cid)[1]).lookType].x.spell.."!", TALKTYPE_SAY)
- exhaustion.set(cid, pokemon.x.ex, pokemon.x.cd)
- doAreaCombatHealth(getCreatureSummons(cid)[1], element, getThingPos(getCreatureSummons(cid)[1]), thunder, -((num1)+(getPlayerLevel(cid)*(num3))), -((num2)+(getPlayerLevel(cid)*(num3))), 48)
- return 0
- elseif pokemon.x.spell == "Super Sonic" then
- doCreatureSay(getCreatureSummons(cid)[1], ""..string.upper(c[getCreatureOutfit(getCreatureSummons(cid)[1]).lookType].x.spell).."!", TALKTYPE_MONSTER)
- doCreatureSay(cid, ""..getCreatureName(getCreatureSummons(cid)[1])..", use "..c[getCreatureOutfit(getCreatureSummons(cid)[1]).lookType].x.spell.."!", TALKTYPE_SAY)
- exhaustion.set(cid, pokemon.x.ex, pokemon.x.cd)
- local t = getCreatureTarget(cid)
- setPlayerStorageValue(t, 5, 1)
- local function confused(params)
- if isCreature(params.t) then
- local spdc = getCreatureSpeed(params.t)
- if getCreatureLookDir(params.t) == 0 then
- confs = math.random(1,3)
- elseif getCreatureLookDir(params.t) == 1 then
- confurandom = math.random(1,99)
- if confurandom <= 33 then
- confs = 0
- elseif confurandom >= 67 then
- confs = 2
- else
- confs = 3
- end
- elseif getCreatureLookDir(params.t) == 2 then
- confurandom = math.random(1,99)
- if confurandom <= 33 then
- confs = 3
- elseif confurandom >= 67 then
- confs = 0
- else
- confs = 1
- end
- elseif getCreatureLookDir(params.t) == 3 then
- confs = math.random(0,2)
- end
- doPushCreature(params.t, confs, 1, 0)
- doSendMagicEffect(getThingPos(params.t), 31)
- end
- end
- local function nonc(params)
- if isCreature(params.t) then
- doChangeSpeed(params.t, -getCreatureSpeed(params.t))
- doChangeSpeed(params.t, getCreatureBaseSpeed(params.t))
- setPlayerStorageValue(params.t, 5, -1)
- end
- end
- doSendDistanceShoot(getThingPos(getCreatureSummons(cid)[1]), getThingPos(getCreatureTarget(cid)), 32)
- doChangeSpeed(t, -( getCreatureSpeed(t)/3))
- doSendMagicEffect(getThingPos(t), 31)
- for i = 1, math.random(6,7) do
- addEvent(confused, 1000*i, {cid = cid, t = t})
- end
- addEvent(nonc, 7100, {cid - cid, t = t})
- return 0
- end
- return 0
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement