Professional Documents
Culture Documents
Poke Moves
Poke Moves
RollOuts = {
["Voltorb"] = {lookType = 638},
["Electrode"] = {lookType = 637},
["Sandshrew"] = {lookType = 635},
["Sandslash"] = {lookType = 636},
["Phanpy"] = {lookType = 1005},
["Donphan"] = {lookType = 1007},
["Miltank"] = {lookType = 1006},
["Golem"] = {lookType = 639},
["Omastar"] = {lookType = 1579},
["Shiny Electrode"] = {lookType = 1387},
["Shiny Golem"] = {lookType = 1403},
["Shiny Voltorb"] = {lookType = 1388},
["Shiny Sandslash"] = {lookType = 1506},
["Shiny Donphan"] = {lookType = 1905},
["Shiny Miltank"] = {lookType = 1913},
["Shiny Ninetales"] = {lookType = 1581},
}
--//////////////////////////////////////////////////////////////////////////////
////////////////////////////-local function getSubName(cid, target)
if not isCreature(cid) then return "" end
if getCreatureName(cid) == "Ditto" and pokes[getPlayerStorageValue(cid, 1010)] a
nd getPlayerStorageValue(cid, 1010) ~= "Ditto" then
return getPlayerStorageValue(cid, 1010)
elseif pokeHaveReflect(cid) and isCreature(target) then
return getCreatureName(target)
else
--alterado v
1.6.1
return getCreatureName(cid)
end
end
local function getThingName(cid)
if not isCreature(cid) then return "" end
return getCreatureName(cid)
end
--alterado v1.6
doSendMagicEffect(getThingPosWithDebug(target), 211)
doSendAnimatedText(getThingPosWithDebug(target), "TOO BAD", 215)
doTeleportThing(target, getClosestFreeTile(target, getThingPosWithDebug
(cid)), false)
doSendMagicEffect(getThingPosWithDebug(target), 211)
doFaceCreature(target, getThingPosWithDebug(cid))
return false
--alterado v1.8
end
end
end
--- FEAR / ROAR / SILENCE --if (isWithFear(cid) or isSilence(cid)) and getPlayerStorageValue(cid, 21100) <=
-1 then
return true
--alterado v1.6!!
end
---------------------------if mina and maxa then
min = math.abs(mina)
max = math.abs(maxa)
elseif not isPlayer(cid) then
if table ~= "" then --alterado v1.6
min = getSpecialAttack(cid) * table.f * 0.1 --alterado v1.6
max = min + (isSummon(cid) and getMasterLevel(cid) or getPokemonLeve
l(cid))
if spell == "Selfdestruct" then
min = getCreatureHealth(cid) --alterado v1.6
max = getCreatureHealth(cid)
end
if not isSummon(cid) and not isInArray({"Demon Puncher", "Demon
Kicker"}, spell) then --alterado v1.7
doCreatureSay(cid, string.upper(spell).."!", TALKTYPE_MO
NSTER)
end
if isNpcSummon(cid) then
local mnn = {" use ", " "}
local use = mnn[math.random(#mnn)]
doCreatureSay(getCreatureMaster(cid), getPlayerStorageVa
lue(cid, 1007)..","..use..""..doCorrectString(spell).."!", 1)
end
else
print("Error trying to use move "..spell..", move not specified in the p
okemon table.")
end
end
--- FOCUS ---------------------------------if getPlayerStorageValue(cid, 253) >= 0 and table ~= "" and table.f ~= 0 then
--alterado v1.6
min = min * 2
max = max * 2
setPlayerStorageValue(cid, 253, -1)
end
--- Shredder Team ------------------------------if getPlayerStorageValue(cid, 637501) >= 1 then
if #getCreatureSummons(cid) == 1 then
docastspell(getCreatureSummons(cid)[1], spell)
elseif #getCreatureSummons(cid) == 2 then
docastspell(getCreatureSummons(cid)[1], spell)
docastspell(getCreatureSummons(cid)[2], spell)
end
elseif getPlayerStorageValue(cid, 637500) >= 1 then
min = 0
max = 0
end
------------------Miss System-------------------------local cd = getPlayerStorageValue(cid, conds["Miss"])
local cd2 = getPlayerStorageValue(cid, conds["Confusion"])
--alterado v1.5
local cd3 = getPlayerStorageValue(cid, conds["Stun"])
if cd >= 0 or cd2 >= 0 or cd3 >= 0 then
--alterado v1.7
if not isInArray({"Shock-Counter", "Lava-Counter", "Counter Helix", "Demon Pu
ncher", "Demon Kicker", "Stunning Confusion", "Electric Charge", "Melody", "Mirr
or Coat", "Mega Drain",
"Aromateraphy", "Heal Bell", "Emergency Call", "Magical Leaf", "Sunny Day", "Tau
nt", "Skull Bash", "Safeguard", "Rain Dance", "Spores Reaction", "Giroball", "Co
unter Claw", "Counter Spin", "Dragon Fury",
"Amnesia", "Healing Wish", "Zen Mind", "Bone Spin", "Thick Fat", "Meteor Mash"},
spell) and getPlayerStorageValue(cid, 21100) <= -1 then
if math.random(1, 100) > 30 then
--alterado v1.6
doSendAnimatedText(getThingPosWithDebug(cid), "MISS", 215)
return false
end
end
end
---------------GHOST DAMAGE----------------------ghostDmg = GHOSTDAMAGE
psyDmg = PSYCHICDAMAGE
if getPlayerStorageValue(cid, 999457) >= 1 and table ~= "" and table.f ~= 0 then
--alterado v1.6
psyDmg = MIRACLEDAMAGE
ghostDmg = DARK_EYEDAMAGE
addEvent(setPlayerStorageValue, 50, cid, 999457, -1)
end
--------------------REFLECT---------------------setPlayerStorageValue(cid, 21100, -1)
--alterado v1.6
if not isInArray({"Psybeam", "Sand Attack", "Flamethrower", "Heal Bell"}, spell)
then --alterado v1.8
setPlayerStorageValue(cid, 21101, -1)
end
setPlayerStorageValue(cid, 21102, spell)
---------------------------------------------------
end
doSendMagicEffect(getThingPosWithDebug(cid), eff)
setPlayerStorageValue(cid, 21099, 1)
elseif spell == "Quick Attack" then
doDanoWithProtect(cid, NORMALDAMAGE, getThingPosWithDebug(target), 0, -min, max, 111)
elseif spell == "Razor Leaf" or spell == "Magical Leaf" then
local eff = spell == "Razor Leaf" and 8 or 21
local function throw(cid, target)
if not isCreature(cid) or not isCreature(target) then return false end
doSendDistanceShoot(getThingPosWithDebug(cid), getThingPosWithDebug(target),
eff)
doDanoInTargetWithDelay(cid, target, GRASSDAMAGE, min, max, 245) --alte
rado v1.7
end
addEvent(throw, 0, cid, target)
addEvent(throw, 100, cid, target) --alterado v1.7
elseif spell == "Vine Whip" then
local area = getThingPosWithDebug(cid)
local dano = {}
local effect = 255
if mydir == 0 then
area.x = area.x
area.y = area.y
dano = whipn
effect = 80
elseif mydir == 1 then
area.x = area.x
area.y = area.y
dano = whipe
effect = 83
elseif mydir == 2 then
area.x = area.x
area.y = area.y
dano = whips
effect = 81
elseif mydir == 3 then
area.x = area.x
area.y = area.y
dano = whipw
effect = 82
end
+ 1
- 1
+ 2
+ 1
+ 1
+ 2
- 1
+ 1
doSendMagicEffect(area, effect)
doAreaCombatHealth(cid, GRASSDAMAGE, getThingPosWithDebug(cid),
dano, -min, -max, 255)
elseif spell == "Headbutt" then
ret.cd = 9
ret.check = 0
ret.eff = 1
ret.cond = "Silence"
---local p = getThingPosWithDebug(cid)
doSendMagicEffect({x=p.x+1, y=p.y, z=p.z}, 9)
--if isSummon(cid) then
doCureBallStatus(getPlayerSlotItem(getCreatureMaster(cid), 8).uid, "all")
end
doCureStatus(cid, "all")
setPlayerStorageValue(cid, 253, 1) --focus
doMoveInArea2(cid, 0, electro, FAIRYDAMAGE, 0, 0, spell, ret)
elseif spell == "Healing Wish" then
local min = (getCreatureMaxHealth(cid) * 80) / 100
local max = (getCreatureMaxHealth(cid) * 99) / 100
local function doHealArea(cid, min, max)
local amount = math.random(min, max)
if (getCreatureHealth(cid) + amount) >= getCreatureMaxHealth(cid) then
amount = -(getCreatureHealth(cid)-getCreatureMaxHealth(cid))
end
if getCreatureHealth(cid) ~= getCreatureMaxHealth(cid) then
doCreatureAddHealth(cid, amount)
doSendAnimatedText(getThingPosWithDebug(cid), "+"..amount.."", 65)
end
end
if isSummon(cid) then
doCureBallStatus(getPlayerSlotItem(getCreatureMaster(cid), 8).uid, "all")
end
doCureStatus(cid, "all")
local pos = getPosfromArea(cid, heal)
local n = 0
doHealArea(cid, min, max)
while n < #pos do
n = n+1
thing = {x=pos[n].x,y=pos[n].y,z=pos[n].z,stackpos=253}
local pid = getThingFromPosWithProtect(thing)
doSendMagicEffect(pos[n], 14)
doSendMagicEffect(pos[n], 13)
if isCreature(pid) then
if isSummon(cid) and (isSummon(pid) or isPlayer(pid)) then
if canAttackOther(cid, pid) == "Cant" then
doHealArea(pid, min, max)
end
elseif ehMonstro(cid) and ehMonstro(pid) then
doHealArea(pid, min, max)
end
end
end
elseif spell == "Dragon Tail" then
local function rebackSpd(cid, sss)
if not isCreature(cid) then return true end
doChangeSpeed(cid, sss)
setPlayerStorageValue(cid, 446, -1)
end
local x = getCreatureSpeed(cid)
doFaceOpposite(cid)
doChangeSpeed(cid, -x)
addEvent(rebackSpd, 400, cid, x)
setPlayerStorageValue(cid, 446, 1)
doAreaCombatHealth(cid, DRAGONDAMAGE, getThingPosWithDebug(target), 0, min, -max, 104)
elseif spell == "Outrage" then
local config = {
outfit = {
--["pokemon_name"] = outfit,
["Salamence"] = 2043,
["Shiny Salamence"] = 2043,
["Super Salamence"] = 2043,
["Mega Sceptile"] = 2434,
["Dark Mega Sceptile"] = 2434,
["Mega Charizard X"] = 2451,
["Dark Mega Charizard"] = 2451,
},
AOE = {
times = 2,
--Quantas vezes o golpe AO
E ser usado.
interval = 3000,
--Intervalo de tempo, em m
ilsimos de segundo, entre cada golpe AOE.
combat = DRAGONDAMAGE,
--Elemento.
spell = {
--Uma tabela dever ser configurada com a rea e efeito da parte com
socos, e a outra com a parte do efeito do Draco Meteor.
{area = OutrageArea1, effect = 112}, --{area = rea do dano AOE,
effect = efeito}
{area = OutrageArea2, effect = 248}
},
}
}
local function doOutrage(cid, times)
if not isCreature(cid) then return true end
for i = 1, #config.AOE.spell do
doMoveInArea2(cid, config.AOE.spell[i].effect, config.AOE.spell[i].a
rea, config.AOE.combat, min, max, spell)
end
times = times - 1
if times <= 0 then
local rounds = math.random(4, 7)
rounds = rounds + math.floor(getPokemonLevel(cid) / 35)
local ret = {}
ret.id = cid
ret.cd = rounds
ret.check = getPlayerStorageValue(cid, conds["Confusion"])
ret.cond = "Confusion"
doCondition2(ret)
return true
end
addEvent(doOutrage, config.AOE.interval, cid, times)
end
local ret = {}
ret.id = cid
ret.cd = config.AOE.interval / 1000 * config.AOE.times
ret.eff = 0
ret.check = 0
ret.buff = spell
ret.first = true
doCondition2(ret)
doSetCreatureOutfit(cid, {lookType = config.outfit[getCreatureName(cid)]}, c
onfig.AOE.interval * config.AOE.times)
addEvent(doOutrage, config.AOE.interval, cid, config.AOE.times)
elseif spell == "Sleep Powder" then
local ret = {}
ret.id = 0
ret.cd = math.random(6, 9)
ret.check = 0
ret.first = true
ret.cond = "Sleep"
--alterado v1.6
effect = 109
elseif a == 2 then
---Magmortar-flamepos1.x = flamepos1.x+2
flamepos1.y = flamepos1.y+3
flamepos2.x = flamepos2.x
flamepos2.y = flamepos2.y+3
---Magmortar-flamepos.x = flamepos.x+1
flamepos.y = flamepos.y+3
effect = 107
elseif a == 3 then
---Magmortar-flamepos1.x = flamepos1.x-1
flamepos1.y = flamepos1.y+2
flamepos2.x = flamepos2.x-1
flamepos2.y = flamepos2.y
---Magmortar-flamepos.x = flamepos.x-1
flamepos.y = flamepos.y+1
effect = 108
end
if getCreatureName(cid) == "Magmortar" or getCreatureName(cid) == "Shiny Magmo
rtar" then
doMoveInArea2(cid, 0, flamek, FIREDAMAGE, min, max, spell)
doSendMagicEffect(flamepos1, effect)
doSendMagicEffect(flamepos2, effect)
else
doMoveInArea2(cid, 0, flamek, FIREDAMAGE, min, max, spell)
doSendMagicEffect(flamepos, effect)
end
elseif spell == "Fireball" then
doSendDistanceShoot(getThingPosWithDebug(cid), getThingPosWithDebug(targ
et), 3)
addEvent(doDanoWithProtect, 200, cid, FIREDAMAGE, getThingPosWithDebug(t
arget), waba, min, max, 5)
elseif spell == "Lightning Hell" then
local function doDivine(cid, min, max, spell, rounds, area)
if not isCreature(cid) then return true end
local ret = {}
ret.id = 0
ret.check = 0
ret.cd = rounds
ret.cond = "Stun"
for i = 1, 9 do
addEvent(doMoveInArea2, i*500, cid, 207, area[i], ELECTRICDAMAGE, min, max,
spell, ret)
addEvent(doMoveInArea2, 1000, cid, 47, electro, ELECTRICDAMAGE, 0, 0, spell,
ret)
addEvent(doMoveInArea2, 1000, cid, 207, electro, ELECTRICDAMAGE, 0, 0, s
pell, ret)
local pos = getThingPosWithDebug(cid)
local areas = {rock1, rock2, rock3, rock4, rock5, rock1, rock2, rock3, rock4, ro
ck5}
local ret = {}
ret.id = 0
ret.cd = 5
ret.eff = 48
ret.check = 0
ret.spell = spell
ret.cond = "Miss"
for i = 0, 8 do
addEvent(doMoveInArea2, i*400, cid, 47, areas[i+1], ELECTRICDAMAGE, min, max
, spell, ret)
addEvent(doMoveInArea2, i*410, cid, 171, areas[i+1], ELECTRICAMAGE, 0, 0, sp
ell)
end
end
end
local rounds = math.random(9, 12)
local area = {punish1, punish2, punish3, punish1, punish2, punish3, punis
h1, punish2, punish3}
local posi = getThingPosWithDebug(cid)
posi.x = posi.x+1
posi.y = posi.y+1
setPlayerStorageValue(cid, 2365487, 1)
addEvent(setPlayerStorageValue, 6450, cid, 2365487, -1) --alterado v1.4
doDisapear(cid)
doChangeSpeed(cid, -getCreatureSpeed(cid))
doSendMagicEffect(posi, 163)
addEvent(doAppear, 6450, cid)
addEvent(doRegainSpeed, 6450, cid)
local uid = checkAreaUid(getCreaturePosition(cid), check, 1, 1)
for _,pid in pairs(uid) do
if isSummon(cid) and (isMonster(pid) or (isSummon(pid) and canA
ttackOther(cid, pid) == "Can") or (isPlayer(pid) and canAttackOther(cid, pid) ==
"Can")) and pid ~= cid then
doChangeSpeed(pid, -getCreatureSpeed(pid))
elseif isMonster(cid) and (isSummon(pid) or (isPlayer(pid) and
#getCreatureSummons(pid) <= 0)) and pid ~= cid then
doChangeSpeed(pid, -getCreatureSpeed(pid))
end
end
addEvent(doDivine, 2200, cid, min, max, spell, rounds, area)
elseif spell == "Fire Fang" then
doSendMagicEffect(getThingPosWithDebug(target), 138)
doDanoInTargetWithDelay(cid, target, FIREDAMAGE, min, max, 15) --alterado v1
.7
elseif spell == "Dual Chop" then
local ret = {}
ret.id = target
ret.cd = 9
ret.check = 0
ret.eff = 147
ret.spell = spell
ret.cond = "Slow"
addEvent(doMoveDano2, 100, cid, target, NORMALDAMAGE, 0, 0, ret, spell)
doSendMagicEffect(getThingPosWithDebug(target), 223)
doSendMagicEffect(getThingPosWithDebug(target), 224)
doDanoInTargetWithDelay(cid, target, DRAGONDAMAGE, min, max, 253) --alterado
v1.7
for i = 0, 1 do
addEvent(doDualDualChop, i * 900, cid)
end
elseif spell == "Grass Knot" then
local function throw(cid, target)
if not isCreature(cid) or not isCreature(target) then return false end
doSendDistanceShoot(getThingPosWithDebug(cid), getThingPosWithDebug(target),
eff)
doDanoInTargetWithDelay(cid, target, GRASSDAMAGE, min, max, 245)
doSendMagicEffect(getThingPosWithDebug(target), 240)
doSendMagicEffect(getThingPosWithDebug(target), 240)
end
addEvent(throw, 0, cid, target)
addEvent(throw, 100, cid, target)
elseif spell == "Ground Colapse" then
local p = getThingPosWithDebug(cid)
local d = isCreature(target) and getCreatureDirectionToTarget(cid, target) or ge
tCreatureLookDir(cid)
function sendAtk(cid, area, areaEff, eff)
if isCreature(cid) then
if not isSightClear(p, area, false) then return true end
--testar o atk!!
doAreaCombatHealth(cid, GROUNDDAMAGE, areaEff, 0, 0, 0, eff)
doAreaCombatHealth(cid, GROUNDDAMAGE, area, whirl3, -min, -max, 255)
end
end
for a = 0, 5 do
local t = {
[0] = {178, {x=p.x, y=p.y-(a+1), z=p.z}, {x=p.x+1, y=p.y-(a+1), z=p.z}},
[1] = {178, {x=p.x+(a+1), y=p.y, z=p.z}, {x=p.x+(a+1), y=p.y+1, z=p.z}},
[2] = {178, {x=p.x, y=p.y+(a+1), z=p.z}, {x=p.x+1, y=p.y+(a+1), z=p.z}},
[3] = {178, {x=p.x-(a+1), y=p.y, z=p.z}, {x=p.x-(a+1), y=p.y+1, z=p.z}}
}
addEvent(sendAtk, 325*a, cid, t[d][2], t[d][3], t[d][1])
end
elseif spell == "Wood Hammer" then
local function doPulse(cid, eff)
if not isCreature(cid) then return true end
doSendDistanceShoot(getThingPosWithDebug(cid), getThingPosWithDebug(target),
10)
--altera
tCreatureLookDir(cid)
function sendAtk(cid, area, eff)
if isCreature(cid) then
if not isSightClear(p, area, false) then return true end
doAreaCombatHealth(cid, FIREDAMAGE, area, 0, 0, 0, eff)
doAreaCombatHealth(cid, FIREDAMAGE, area, whirl3, -min, -max, 35)
end
end
for a = 0, 4 do
local t = {
[0] = {60, {x=p.x, y=p.y-(a+1), z=p.z}},
[1] = {61, {x=p.x+(a+1), y=p.y, z=p.z}},
[2] = {62, {x=p.x, y=p.y+(a+1), z=p.z}},
[3] = {63, {x=p.x-(a+1), y=p.y, z=p.z}}
}
addEvent(sendAtk, 300*a, cid, t[d][2], t[d][1])
end
return true
end
--alterado v1.4
for i = 0, 1 do
addEvent(doDualFireBlast, 900 * i, cid)
end
doSetCreatureOutfit(cid, {lookType = 2045}, 1000)
elseif spell == "Rage" then
local ret = {}
ret.id = cid
ret.cd = 15
ret.eff = 13
ret.check = 0
ret.buff = spell
ret.first = true
doCondition2(ret)
elseif spell == "Raging Blast" then
--cid, effDist, effDano, areaEff, areaDano, element, min, max
doMoveInAreaMulti(cid, 3, 6, bullet, bulletDano, FIREDAMAGE, min, max)
elseif spell == "Dragon Claw" then
doDanoWithProtect(cid, DRAGONDAMAGE, getThingPosWithDebug(target), 0, -mi
n, -max, 141)
elseif spell == "Wing Attack" or spell == "Steel Wing" then
local effectpos = getThingPosWithDebug(cid)
local effect = 255
local a = isCreature(target) and getCreatureDirectionToTarget(cid, target) or ge
tCreatureLookDir(cid)
if a == 0 then
effect = spell == "Steel Wing" and 251 or 128
effectpos.x = effectpos.x + 1
effectpos.y = effectpos.y - 1
elseif a == 1 then
effectpos.x = effectpos.x + 2
effectpos.y = effectpos.y + 1
effect = spell == "Steel Wing" and 253 or 129
elseif a == 2 then
effectpos.x = effectpos.x + 1
effectpos.y = effectpos.y + 2
effect = spell == "Steel Wing" and 252 or 131
elseif a == 3 then
effectpos.x = effectpos.x - 1
effectpos.y = effectpos.y + 1
effect = spell == "Steel Wing" and 254 or 130
end
--alterado v1.4
doSendMagicEffect(effectpos, effect)
doMoveInArea2(cid, 0, wingatk, FLYINGDAMAGE, min, max, spell)
elseif spell == "Dragon Flight" then
sendDistanceShootWithProtect(cid, getThingPosWithDebug(cid), getThingPosWithDebu
g(target), 53)
doDanoInTargetWithDelay(cid, target, DRAGONDAMAGE, min, max, 143) --alterado v1
.7
doSendMagicEffect(getThingPosWithDebug(cid), 211)
local x = getClosestFreeTile(cid, getThingPosWithDebug(target))
doTeleportThing(cid, x, false)
doFaceCreature(cid, getThingPosWithDebug(target))
doAreaCombatHealth(cid, DRAGONDAMAGE, getThingPosWithDebug(target), 0, min, -max, 143)
elseif spell == "Magma Storm" then
local eff = {6, 35, 35, 6}
local area = {flames1, flames2, flames3, flames4}
addEvent(doMoveInArea2, 2*450, cid, 2, flames0, FIREDAMAGE, min, max, spell)
for i = 0, 3 do
addEvent(doMoveInArea2, i*450, cid, eff[i+1], area[i+1], FIREDAMAGE, min, ma
x, spell)
end
elseif spell == "Magma Storm" then
elseif spell == "Bubbles" then
doSendDistanceShoot(getThingPosWithDebug(cid), getThingPosWithDebug(targ
et), 2)
doDanoInTargetWithDelay(cid, target, WATERDAMAGE, min, max, 68) --altera
do v1.7
elseif spell == "Clamp" then
doSendDistanceShoot(getThingPosWithDebug(cid), getThingPosWithDebug(targ
et), 2)
doDanoInTargetWithDelay(cid, target, WATERDAMAGE, min, max, 53) --alter
ado v1.7
for a = 0, 4 do
local
[0] =
[1] =
[2] =
[3] =
}
local
[0] =
[1] =
[2] =
[3] =
}
local
[0] =
[1] =
[2] =
[3] =
}
t = {
{64, {x=p.x, y=p.y-(a+1),
{65, {x=p.x+(a+1), y=p.y,
{66, {x=p.x, y=p.y+(a+1),
{67, {x=p.x-(a+1), y=p.y,
--alterado v1.4
z=p.z}},
z=p.z}},
z=p.z}},
z=p.z}}
m = {
{64, {x=p.x+1, y=p.y-(a+1),
{65, {x=p.x+(a+1), y=p.y+1,
{66, {x=p.x+1, y=p.y+(a+1),
{67, {x=p.x-(a+1), y=p.y+1,
z=p.z}},
z=p.z}},
z=p.z}},
z=p.z}}
--alterado v1.4
n = {
{64, {x=p.x-1, y=p.y-(a+1),
{65, {x=p.x+(a+1), y=p.y-1,
{66, {x=p.x-1, y=p.y+(a+1),
{67, {x=p.x-(a+1), y=p.y-1,
z=p.z}},
z=p.z}},
z=p.z}},
z=p.z}}
--alterado v1.4
ck5}
local ret = {}
ret.id = 0
ret.cd = 12
ret.eff = 48
ret.check = 0
ret.spell = spell
ret.cond = "Stun"
for i = 0, 8 do
addEvent(doMoveInArea2, i*400, cid, eff, areas[i+1], ELECTRICDAMAGE, min, ma
x, spell, ret)
addEvent(doMoveInArea2, i*410, cid, eff, areas[i+1], ELECTRICAMAGE, 0, 0, sp
ell)
end
elseif spell == "Harden" or spell == "Calm Mind" or spell == "Defense Curl" or s
pell == "Charm" then
--alterado v
1.4
if spell == "Calm Mind" then
eff = 133
elseif spell == "Charm" then
eff = 147
--efeito n eh esse.. e n sei se eh soh bonus de
def, ou sp.def tb.. ;x
else
eff = 144
end
local ret = {}
ret.id = cid
ret.cd = 8
ret.eff = eff
ret.check = 0
ret.buff = spell
ret.first = true
doCondition2(ret)
elseif spell == "Bubble Blast" then
--cid, effDist, effDano, areaEff, areaDano, element, min, max
doMoveInAreaMulti(cid, 2, 68, bullet, bulletDano, WATERDAMAGE, min, max)
elseif spell == "Skull Bash" then
local ret = {}
ret.id = 0
ret.cd = 8
--alterado v1.6
ret.eff = 89
ret.check = 0
ret.first = true
ret.cond = "Paralyze"
local ret2 = {}
ret2.id = 0
ret2.cd = 8
ret2.check = 0
ret2.eff = -1
ret2.cond = "Silence"
doMoveInArea2(cid, 118, reto5, NORMALDAMAGE, min, max, spell, ret)
ret.id = target
ret.cd = 6
ret.eff = 137
ret.check = getPlayerStorageValue(target, conds["Stun"])
ret.spell = spell
ret.cond = "Stun"
addEvent(doMoveDano2, 100, cid, target, BUGDAMAGE, 0, 0, ret, spell)
elseif spell == "Bug Bite" then
doSendMagicEffect(getThingPosWithDebug(target), 2)
doDanoInTargetWithDelay(cid, target, BUGDAMAGE, min, max, 8) --alterado v1.7
elseif spell == "Super Sonic" then
local rounds = math.random(4, 7)
rounds = rounds + math.floor(getPokemonLevel(cid) / 35)
doSendDistanceShoot(getThingPosWithDebug(cid), getThingPosWithDebug(targ
et), 32)
local ret = {}
ret.id = target
ret.cd = rounds
ret.check = getPlayerStorageValue(target, conds["Confusion"])
ret.cond = "Confusion"
addEvent(doMoveDano2, 100, cid, target, NORMALDAMAGE, 0, 0, ret, spell)
elseif spell == "Whirlwind" then
area = {SL1, SL2, SL3, SL4}
for i = 0, 3 do
addEvent(doMoveInArea2, i*300, cid, 42, area[i+1], FLYINGDAMAGE, min, max, s
pell)
end
elseif spell == "Razor Wind" then
area = {SL1, SL2, SL3, SL4}
for i = 0, 3 do
addEvent(doMoveInArea2, i*300, cid, 131, area[i+1], NORMALDAMAGE, min, max,
spell)
end
elseif spell == "Psybeam" then
local a = isCreature(target) and getCreatureDirectionToTarget(cid, target) or ge
tCreatureLookDir(cid)
local t = {
[0] = 58,
--alterado v1.6
[1] = 234,
[2] = 58,
[3] = 209,
}
doMoveInArea2(cid, t[a], reto4, psyDmg, min, max, spell)
--alterado v1.4
ret.buff = spell
ret.first = true
doCondition2(ret)
elseif spell == "Gust" then
doMoveInArea2(cid, 42, reto5, FLYINGDAMAGE, min, max, spell)
elseif spell == "Drill Peck" then
doDanoWithProtect(cid, FLYINGDAMAGE, getThingPosWithDebug(target), 0, -min, -max
, 148)
elseif spell == "Tornado" then
local pos = getThingPosWithDebug(cid)
local function doSendTornado(cid, pos)
if not isCreature(cid) then return true end
if isWithFear(cid) and getPlayerStorageValue(cid, 3644587) >= 1
then return true end
if isSleeping(cid) and getPlayerStorageValue(cid, 3644587) >= 1
then return true end
doSendDistanceShoot(getThingPosWithDebug(cid), pos, 22)
doSendMagicEffect(pos, 42)
end
for b = 1, 3 do
for a = 1, 20 do
local lugar = {x = pos.x + math.random(-4, 4), y = pos.y
+ math.random(-3, 3), z = pos.z}
addEvent(doSendTornado, a * 75, cid, lugar)
end
end
doDanoWithProtect(cid, FLYINGDAMAGE, pos, waterarea, -min, -max, 0)
elseif spell == "Sky Attack" then
local pos = getThingPosWithDebug(cid)
local function doSendTornado(cid, pos)
if not isCreature(cid) then return true end
if isWithFear(cid) and getPlayerStorageValue(cid, 3644587) >= 1
then return true end
if isSleeping(cid) and getPlayerStorageValue(cid, 3644587) >= 1
then return true end
doSendDistanceShoot(getThingPosWithDebug(cid), pos, 22)
doSendMagicEffect(pos, 78)
end
for b = 1, 3 do
for a = 1, 20 do
local lugar = {x = pos.x + math.random(-4, 4), y = pos.y
+ math.random(-3, 3), z = pos.z}
addEvent(doSendTornado, a * 75, cid, lugar)
end
end
doDanoWithProtect(cid, FLYINGDAMAGE, pos, waterarea, -min, -max, 0)
doFaceOpposite(cid)
doChangeSpeed(cid, -x)
addEvent(rebackSpd, 400, cid, x)
setPlayerStorageValue(cid, 446, 1)
doDanoWithProtect(cid, STEELDAMAGE, getThingPosWithDebug(target), 0, -mi
n, -max, 160)
elseif spell == "Thunder Shock" then
doSendDistanceShoot(getThingPosWithDebug(cid), getThingPosWithDebug(targ
et), 40)
doDanoInTargetWithDelay(cid, target, ELECTRICDAMAGE, min, max, 48) --a
lterado v1.7
elseif spell == "Thunder Bolt" then
--alterado v1.7
local function doThunderFall(cid, frompos, target)
if not isCreature(target) or not isCreature(cid) then re
turn true end
local pos = getThingPosWithDebug(target)
local ry = math.abs(frompos.y - pos.y)
doSendDistanceShoot(frompos, getThingPosWithDebug(target), 41)
addEvent(doDanoInTarget, ry * 11, cid, target, ELECTRICDAMAGE, m
in, max, 48) --alterado v1.7
end
local function doThunderUp(cid, target)
if not isCreature(target) or not isCreature(cid) then re
turn true end
local pos = getThingPosWithDebug(target)
local mps = getThingPosWithDebug(cid)
local xrg = math.floor((pos.x - mps.x) / 2)
local topos = mps
topos.x = topos.x + xrg
local rd = 7
topos.y = topos.y - rd
doSendDistanceShoot(getThingPosWithDebug(cid), topos, 41)
addEvent(doThunderFall, rd * 49, cid, topos, target)
end
setPlayerStorageValue(cid, 3644587, 1)
addEvent(setPlayerStorageValue, 350, cid, 3644587, -1)
for thnds = 1, 2 do
addEvent(doThunderUp, thnds * 155, cid, target)
end
elseif spell == "Thunder Wave" then
local ret = {}
ret.id = 0
ret.cd = 9
ret.check = 0
ret.eff = 48
ret.spell = spell
ret.cond = "Stun"
doMoveInArea2(cid, 48, db1, ELECTRICDAMAGE, min, max, spell, ret) --alterado v1.
8
--
doSendDistanceShoot(getThingPosWithDebug(cid), getThingPosWithDebug(targ
et), 39)
doSendMagicEffect(getThingPosWithDebug(target), 112)
doDanoInTargetWithDelay(cid, target, ELECTRICDAMAGE, min, max, 48) --alterad
o v1.7
elseif spell == "Electric Storm" then
local master = isSummon(cid) and getCreatureMaster(cid) or cid
local function doFall(cid)
for rocks = 1, 42 do
addEvent(fall, rocks*35, cid, master, ELECTRICDAMAGE, 41, 48)
end
end
for up = 1, 10 do
addEvent(upEffect, up*75, cid, 41)
end
addEvent(doFall, 450, cid)
local ret = {}
ret.id = 0
ret.cd = 9
ret.check = 0
ret.eff = 48
ret.spell = spell
ret.cond = "Stun"
addEvent(doMoveInArea2, 1400, cid, 0, BigArea2, ELECTRICDAMAGE, min, max, spell,
ret)
elseif spell == "Grass Knot bugedo" then
local p = getThingPosWithDebug(cid)
local d = isCreature(target) and getCreatureDirectionToTarget(cid, target) or ge
tCreatureLookDir(cid)
function sendAtk(cid, area, eff, area2)
if isCreature(cid) then
if not isSightClear(p, area, false) then return true end
if not isWalkable(area) then return true end
if isInArray(waters, getTileInfo(area).itemid) then return true end
doAreaCombatHealth(cid, GRASSDAMAGE, area, whirl3, -min, -max, 37)
doTeleportThing(cid, area)
end
end
for a = 0, 5 do
local t = {
[0] = {0, {x=p.x, y=p.y-(a+1), z=p.z}, {x=p.x + 1,y=p.y-(a+1), z=p.z}},
[1] = {0, {x=p.x+(a+1), y=p.y, z=p.z}, {x=p.x+(a+1) + 1, y=p.y + 1, z=p.z}},
[2] = {0, {x=p.x, y=p.y+(a+1), z=p.z}, {x=p.x + 1, y=p.y+(a+1) + 1, z=p.z}},
[3] = {0, {x=p.x-(a+1), y=p.y, z=p.z}, {x=p.x-(a+1), y=p.y + 1, z=p.z}}
}
doCreatureSetNoMove(cid, true)
addEvent(sendAtk, 200*a, cid, t[d][2], t[d][1], t[d][3])
addEvent(doCreatureSetNoMove, 1000, cid, false)
end
--alterado v1.8
local ret = {}
ret.id = target
ret.cd = 9
ret.eff = 34
ret.check = getPlayerStorageValue(target, conds[contudion])
ret.spell = spell
ret.cond = contudion
doSendDistanceShoot(getThingPosWithDebug(cid), getThingPosWithDebug(targ
et), 6)
addEvent(doMoveDano2, 100, cid, target, GROUNDDAMAGE, -min, -max, ret, s
pell)
end
elseif spell == "Vines Grap" then
local ret = {}
ret.id = 0
ret.cd = 40
ret.check = 0
ret.eff = 104
ret.cond = "Silence"
effect = 0
pos = getThingPosWithDebug(cid)
= pos.x + 1
= pos.y + 1
ret.cond = "Paralyze"
local ret2 = {}
ret2.id = 0
ret2.cd = 3
ret2.check = 0
ret2.eff = -1
ret2.cond = "Silence"
local config = {
outfit = 1685,
--Outfit.
time = {3
, 500},
--{Durao da spell, intervalo entre cada
"tick" de dano (em milsimos de segundos)},
storage = 93828,
effects = {
pullEffects = {
distance = 167,
--Distance effect do efeito de puxar pokmons.
effect = 7,
--Efeito de tornado.
},
damageEffect = 45,
--Efeito do redemoinho que aplica dano.
},
}
local time = os.time() + config.time[1]
function Pull(cid, ret)
local pos = getPosfromArea(cid, pullArea)
if pos and #pos > 0 then
for i = 1, #pos do
local c = getTopCreature(pos[i]).uid
if c > 0 then
legendarios = { "Blue Tower 1", "Blue Tower 2",
"Blue Tower 3", "Red Tower 1", "Red Tower 2", "Red Tower 3", "Entei", "Moltres",
"Zapdos", "Articuno", "Celebi"}
if ehMonstro(c) and not isInArray(legendarios, getCreatureNa
me(c))then
doTeleportThing(c, getClosestFreeTile(cid, getThingPos(c
id)))
doMoveDano2(cid, c, NORMALDAMAGE, 0, 0, ret, spell)
doMoveDano2(cid, c, NORMALDAMAGE, 0, 0, ret2, spell)
elseif isSummon(c) then
local master = getCreatureMaster(c)
if isSummon(cid) then
if getPlayerStorageValue(master, 52480) >= 1 and get
PlayerStorageValue(master, 52481) >= 0 then
local masterCid = getCreatureMaster(cid)
if isDuelingAgainst(masterCid, master) then
doTeleportThing(c, getClosestFreeTile(cid, g
etThingPos(cid)))
doMoveDano2(cid, c, NORMALDAMAGE, 0, 0, ret,
spell)
doMoveDano2(cid, c, NORMALDAMAGE, 0, 0, ret2
, spell)
end
end
else
doTeleportThing(c, getClosestFreeTile(cid, getThingP
os(cid)))
doMoveDano2(cid, c, NORMALDAMAGE, 0, 0, ret, spell)
doMoveDano2(cid, c, NORMALDAMAGE, 0, 0, ret2, spell)
end
end
end -end
end
end
function doSendTornado(cid, pos)
if not isCreature(cid) then return true end
if isWithFear(cid) and getPlayerStorageValue(cid, 3644587) >= 1 then ret
urn true end
if isSleeping(cid) and getPlayerStorageValue(cid, 3644587) >= 1 then ret
urn true end
doSendDistanceShoot(getThingPos(cid), pos, config.effects.pullEffects.di
stance)
doSendMagicEffect(pos, config.effects.pullEffects.effect)
end
function vortexDamage(cid)
if not isCreature(cid) then
return true
elseif time - os.time() < 0 then
return true
end
doDanoWithProtect(cid, GRASS, getThingPos(cid), damageArea, min, max, co
nfig.effects.damageEffect)
addEvent(vortexDamage, config.time[2], cid)
end
for b = 1, 3 do
for a = 1, 20 do
local pos = {x = getThingPos(cid).x + math.random(-4, 4), y = getThi
ngPos(cid).y + math.random(-3, 3), z = getThingPos(cid).z}
addEvent(doSendTornado, a * 75, cid, pos)
end
end
Pull(cid, ret)
vortexDamage(cid)
doCreatureSetNoMove(cid, true)
doChangeSpeed(cid, -getCreatureSpeed(cid))
doSetCreatureOutfit(cid, {lookType = config.outfit}, config.time[1] * 1000)
setPlayerStorageValue(cid, config.storage, time)
addEvent(function()
if isCreature(cid) then
doCreatureSetNoMove(cid, false)
doRegainSpeed(cid)
end
end, config.time[1] * 1000)
elseif spell == "Mud Rain" then
local ret = {}
ret.id = 0
ret.cd = 200
--Durao do silence, em milesimosdesegundos.
ret.check = 0
ret.eff = 34
--Efeito do silence.
ret.cond = "Silence"
doDanoWithProtect(cid, psyDmg, getThingPosWithDebug(cid), selfArea2, min, max, 3
4)
local eff = getSubName(cid, target) == "Shiny Onix" and 179 or 127 --alterado v1
.6.1
doAreaCombatHealth(cid, GROUNDDAMAGE, getThingPosWithDebug(cid), splash,
-min, -max, 255)
local sps = getThingPosWithDebug(cid)
sps.x = sps.x+1
sps.y = sps.y+1
doSendMagicEffect(sps, eff)
elseif spell == "Rollout" then
local function setOutfit(cid, outfit)
if isCreature(cid) and getCreatureCondition(cid, CONDITION_OUTFIT) ==
true then
if getCreatureOutfit(cid).lookType == outfit then
doRemoveCondition(cid, CONDITION_OUTFIT)
if getCreatureName(cid) == "Ditto" and pokes[getPlayerStorageVal
ue(cid, 1010)] and getPlayerStorageValue(cid, 1010) ~= "Ditto" then
if isSummon(cid) then
local item = getPlayerSlotItem(getCreatureMaster(cid), 8)
doSetCreatureOutfit(cid, {lookType = getItemAttribute(item
.uid, "transOutfit")}, -1) --alterado v1.8
end
end
end
end
end
if RollOuts[getSubName(cid, target)] then
doSetCreatureOutfit(cid, RollOuts[getSubName(cid, target)], -1)
--alterado v1.6.1
end
local outfit = getCreatureOutfit(cid).lookType
local function roll(cid, outfit)
if not isCreature(cid) then return true end
if isSleeping(cid) then return true end
if RollOuts[getSubName(cid, target)] then
doSetCreatureOutfit(cid, RollOuts[getSubName(cid, target)], -1) --al
terado v1.6.1
end
doDanoWithProtect(cid, ROCKDAMAGE, getThingPosWithDebug(cid), splash, -mi
n, -max, 0)
end
setPlayerStorageValue(cid, 3644587, 1)
addEvent(setPlayerStorageValue, 9000, cid, 3644587, -1)
for r = 1, 11 do --8
addEvent(roll, 750 * r, cid, outfit)
end
addEvent(setOutfit, 9050, cid, outfit)
elseif spell == "Shockwave" then
local p = getThingPosWithDebug(cid)
local d = isCreature(target) and getCreatureDirectionToTarget(cid, target) or ge
tCreatureLookDir(cid)
function sendAtk(cid, area, areaEff, eff)
if isCreature(cid) then
if not isSightClear(p, area, false) then return true end
--testar o atk!!
doAreaCombatHealth(cid, GROUNDDAMAGE, areaEff, 0, 0, 0, eff)
--alterado v1.6
docastspell(cid, skill)
end
addEvent(doMetronome, 200, cid, randommove)
end
elseif spell == "Sketch 3" then
if isSummon(cid) and isPlayer(getCreatureMaster(cid)) then
setPlayerStorageValue(cid, 18554, 3)
addEvent(function() if isCreature(cid) then setPlayerStorageValue(cid, 18554
, -1) end end, 3000)
else
local spells = {"Poison Gas", "Earthquake", "Petal Tornado", "Electro Field", "F
lame Circle"}
local random = math.random(1, #spells)
local randommove = spells[random]
local pos = getThingPosWithDebug(cid)
pos.y = pos.y - 1
doSendMagicEffect(pos, 0)
local function doMetronome(cid, skill)
if not isCreature(cid) then return true end
docastspell(cid, skill)
end
addEvent(doMetronome, 200, cid, randommove)
end
elseif spell == "Sketch 4" then
if isSummon(cid) and isPlayer(getCreatureMaster(cid)) then
setPlayerStorageValue(cid, 18554, 4)
addEvent(function() if isCreature(cid) then setPlayerStorageValue(cid, 18554
, -1) end end, 3000)
else
local spells = {"Thunder", "Night Slash", "Confusion", "Air Slash", "Confusion",
"Night Shade"}
local random = math.random(1, #spells)
local randommove = spells[random]
local pos = getThingPosWithDebug(cid)
pos.y = pos.y - 1
doSendMagicEffect(pos, 0)
local function doMetronome(cid, skill)
if not isCreature(cid) then return true end
docastspell(cid, skill)
end
addEvent(doMetronome, 200, cid, randommove)
end
elseif spell == "Sketch 5" then
if isSummon(cid) and isPlayer(getCreatureMaster(cid)) then
setPlayerStorageValue(cid, 18554, 5)
addEvent(function() if isCreature(cid) then setPlayerStorageValue(cid, 18554
, -1) end end, 3000)
else
local spells = {"Solar Beam", "Bullet Seed", "Raging Blast", "Fire Blast", "Bubb
docastspell(cid, skill)
end
addEvent(doMetronome, 200, cid, randommove)
end
elseif spell == "Sketch 8" then
if isSummon(cid) and isPlayer(getCreatureMaster(cid)) then
setPlayerStorageValue(cid, 18554, 8)
addEvent(function() if isCreature(cid) then setPlayerStorageValue(cid, 18554
, -1) end end, 3000)
else
local spells = {"Reflect", "Charm", "Agility", "Safeguard", "Synthesis", "Emerge
ncy Call", "Healarea", "Sing", "Moonblast"}
local random = math.random(1, #spells)
local randommove = spells[random]
local pos = getThingPosWithDebug(cid)
pos.y = pos.y - 1
doSendMagicEffect(pos, 0)
local function doMetronome(cid, skill)
if not isCreature(cid) then return true end
docastspell(cid, skill)
end
addEvent(doMetronome, 200, cid, randommove)
end
elseif spell == "Sketch 9" then
local spells = {"Psychic", "Epicenter", "Mortal Gas", "Hydropump", "Muddy Water"
}
local random = math.random(1, #spells)
local randommove = spells[random]
local pos = getThingPosWithDebug(cid)
pos.y = pos.y - 1
doSendMagicEffect(pos, 0)
local function doMetronome(cid, skill)
if not isCreature(cid) then return true end
docastspell(cid, skill)
end
addEvent(doMetronome, 200, cid, randommove)
elseif spell == "Sketch 10" then
local spells = {"Focus Blast", "Blizzard", "Shadow Storm", "Falling Rocks", "Met
eor Mash", "Electric Storm", "Hydro Dance", "Magma Storm", "Draco Meteor", "Psy
Impact"}
local random = math.random(1, #spells)
local randommove = spells[random]
local pos = getThingPosWithDebug(cid)
pos.y = pos.y - 1
doSendMagicEffect(pos, 0)
local function doMetronome(cid, skill)
if not isCreature(cid) then return true end
docastspell(cid, skill)
end
addEvent(doMetronome, 200, cid, randommove)
elseif spell == "Focus" or spell == "Charge" or spell == "Swords Dance" then
--alterado v1.4
if spell == "Charge" then
doSendAnimatedText(getThingPosWithDebug(cid), "CHARGE", 168)
doSendMagicEffect(getThingPosWithDebug(cid), 177)
elseif spell == "Swords Dance" then
doSendMagicEffect(getThingPosWithDebug(cid), 132)
else
doSendAnimatedText(getThingPosWithDebug(cid), "FOCUS", 144)
doSendMagicEffect(getThingPosWithDebug(cid), 132)
end
setPlayerStorageValue(cid, 253, 1)
elseif spell == "Growth" then
--alterado v1.4
if spell == "Growth" then
doSendAnimatedText(getThingPosWithDebug(cid), "Growth", 168)
doSendMagicEffect(getThingPosWithDebug(cid), 177)
end
setPlayerStorageValue(cid, 253, 1)
]]
thing = {x=pos[n].x,y=pos[n].y,z=pos[n].z,stackpos=253}
local pid = getThingFromPosWithProtect(thing)
doSendMagicEffect(pos[n], 12)
if isCreature(pid) then
if isSummon(cid) and (isSummon(pid) or isPlayer(pid)) then
if canAttackOther(cid, pid) == "Cant" then
doHealArea(pid, min, max)
end
elseif ehMonstro(cid) and ehMonstro(pid) then
doHealArea(pid, min, max)
end
end
end
elseif spell == "Toxic" then
doMoveInArea2(cid, 114, reto5, POISONDAMAGE, min, max, spell)
elseif spell == "Absorb" then
local life = getCreatureHealth(target)
doAreaCombatHealth(cid, GRASSDAMAGE, getThingPosWithDebug(target), 0, -m
in, -max, 14)
local newlife = life - getCreatureHealth(target)
doSendMagicEffect(getThingPosWithDebug(cid), 14)
if newlife >= 1 then
doCreatureAddHealth(cid, newlife)
doSendAnimatedText(getThingPosWithDebug(cid), "+"..newlife.."", 32)
end
elseif spell == "Poison Bomb" then
doSendDistanceShoot(getThingPosWithDebug(cid), getThingPosWithDebug(target),
14)
doDanoWithProtectWithDelay(cid, target, POISONDAMAGE, min, max, 20, bombWee2
)
elseif spell == "Poison Gas" then
local dmg = isSummon(cid) and getMasterLevel(cid)+getPokemonBoost(cid) or getPok
emonLevel(cid)
local ret = {id = 0, cd = 13, eff = 34, check = 0, spell = spell, cond = "Miss"}
local ret2 = {id = 0, cd = 13, check = 0, damage = dmg, cond = "Poison"}
--rever isso ainda!!
local function gas(cid)
doMoveInArea2(cid, 114, confusion, POISONDAMAGE, 0, 0, spell, ret)
doMoveInArea2(cid, 0, confusion, POISONDAMAGE, min, max, spel
l)
end
times = {0, 500, 1000, 1500, 2300, 2800, 3300, 3800, 4600, 5100, 5600, 6100, 690
0, 7400, 7900, 8400, 9200, 10000}
for i = 1, #times do
-----------local ret = {}
ret.id = 0
ret.cd = 9
ret.check = 0
ret.eff = 34
ret.cond = "Silence"
--local function doFall(cid)
for rocks = 1, 42 do --62
addEvent(fall, rocks*35, cid, master, GROUNDDAMAGE, 22, 158)
end
end
--local function doRain(cid)
if isSummon(cid) then
doCureBallStatus(getPlayerSlotItem(getCreatureMaster(cid), 8).uid, "all")
end
--cura status
doCureStatus(cid, "all")
--setPlayerStorageValue(cid, 253, 1) --focus
doSendMagicEffect(getThingPosWithDebug(cid), 132)
--doMoveInArea2(cid, 0, confusion, GROUNDDAMAGE, 0, 0, spell, ret)
end
--addEvent(doFall, 200, cid)
addEvent(doRain, 1000, cid)
elseif spell == "Powder Snow" then
snowP = getThingPosWithDebug(cid)
local ret = {}
ret.id = 0
ret.cd = 10
ret.check = 0
ret.eff = 43
ret.spell = spell
ret.cond = "Slow"
doMoveInArea2(cid, 0, check, ICEDAMAGE, min, max, spell, ret)
doSendMagicEffect({x = snowP.x + 1, y = snowP.y, z = snowP.z}, 206)
elseif spell == "Slash" then
doAreaCombatHealth(cid, NORMALDAMAGE, getThingPosWithDebug(target), 0, min, -max, 159)
elseif spell == "X-Scissor" then
local a = getThingPosWithDebug(cid)
local
{{x =
{{x =
{{x =
{{x =
}
X = {
a.x+1,
a.x+2,
a.x+1,
a.x, y
y
y
y
=
= a.y, z
= a.y+1,
= a.y+2,
a.y+1, z
=
z
z
=
-alterado v1.7
elseif spell == "Ground Chop" then
local p = getThingPosWithDebug(cid)
local d = isCreature(target) and getCreatureDirectionToTarget(cid, target) or ge
tCreatureLookDir(cid)
function sendAtk(cid, area, area2, eff) --alterado v1.6
if isCreature(cid) then
if not isSightClear(p, area, false) then return true end
doAreaCombatHealth(cid, FIGHTINGDAMAGE, area, 0, 0, 0, eff)
doAreaCombatHealth(cid, FIGHTINGDAMAGE, area2, whirl3, -min, -max, 255) --al
terado v1.6
end
end
for a = 0, 4 do
local t = {
[0] = {99, {x=p.x+1, y=p.y-(a+1), z=p.z}, {x=p.x, y=p.y-(a+1), z=p.z}},
--alterado v1.6
[1] = {99, {x=p.x+(a+2), y=p.y+1, z=p.z}, {x=p.x+(a+1), y=p.y, z=p.z}},
[2] = {99, {x=p.x+1, y=p.y+(a+2), z=p.z}, {x=p.x, y=p.y+(a+1), z=p.z}},
[3] = {99, {x=p.x-(a+1), y=p.y+1, z=p.z}, {x=p.x-(a+1), y=p.y, z=p.z}}
}
addEvent(sendAtk, 270*a, cid, t[d][2], t[d][3], t[d][1]) --alterado v1.6
end
elseif spell == "Mega Punch" then
doSendDistanceShoot(getThingPosWithDebug(cid), getThingPosWithDebug(targ
et), 39)
doDanoInTargetWithDelay(cid, target, FIGHTINGDAMAGE, -min, -max, 112) -alterado v1.7
elseif spell == "Tri Flames" then
local ret = {}
ret.id = 0
ret.cd = 9
ret.check = 0
ret.eff = 39
ret.cond = "Silence"
doMoveInArea2(cid, 6, triflames, FIREDAMAGE, min, max, spell, ret)
elseif spell == "War Dog" then
local ret = {}
ret.id = cid
ret.cd = 15
ret.eff = 28
ret.check = 0
ret.buff = spell
ret.first = true
doCondition2(ret)
elseif spell == "Hypnosis" then
local ret = {}
ret.id = target
ret.cd = math.random(6, 9)
ret.check = getPlayerStorageValue(target, conds["Sleep"])
ret.first = true
ret.cond = "Sleep"
doSendDistanceShoot(getThingPosWithDebug(cid), getThingPosWithDebug(target),
24)
addEvent(doMoveDano2, 150, cid, target, PSYCHICDAMAGE, 0, 0, ret, spell)
elseif spell == "Dizzy Punch" then
local rounds = getPokemonLevel(cid) / 12
rounds = rounds + 2
local ret = {}
ret.id = target
ret.check = getPlayerStorageValue(target, conds["Confusion"])
ret.cd = rounds
ret.cond = "Confusion"
doSendDistanceShoot(getThingPosWithDebug(cid), getThingPosWithDebug(target),
26)
doDanoWithProtect(cid, FIGHTINGDAMAGE, getThingPosWithDebug(target), 0, -min,
-max, 112)
addEvent(doMoveDano2, 50, cid, target, NORMALDAMAGE, 0, 0, ret, spell)
elseif spell == "Ice Punch" then
local ret = {}
ret.id = target
ret.cd = 9
ret.eff = 43
ret.check = getPlayerStorageValue(target, conds["Slow"])
ret.first = true
ret.cond = "Slow"
doSendDistanceShoot(getThingPosWithDebug(cid), getThingPosWithDebug(target),
28)
doSendMagicEffect(getThingPosWithDebug(target), 112)
doDanoWithProtectWithDelay(cid, target, ICEDAMAGE, min, max, 43)
addEvent(doMoveDano2, 50, cid, target, ICEDAMAGE, 0, 0, ret, spell)
elseif spell == "Ice Beam" then
local a = isCreature(target) and getCreatureDirectionToTarget(cid, target) or ge
tCreatureLookDir(cid)
local p = getThingPosWithDebug(cid)
local t = {
[0] = {97, {x=p.x+1, y=p.y-1, z=p.z}},
[1] = {96, {x=p.x+6, y=p.y+1, z=p.z}},
[2] = {97, {x=p.x+1, y=p.y+6, z=p.z}},
[3] = {96, {x=p.x-1, y=p.y+1, z=p.z}},
}
local ret = {}
ret.id = 0
ret.cd = 9
ret.eff = 43
ret.check = 0
ret.first = true
ret.cond = "Slow"
doMoveInArea2(cid, 0, triplo6, ICEDAMAGE, min, max, spell, ret)
doSendMagicEffect(t[a][2], t[a][1])
elseif spell == "Psy Pulse" or spell == "Cyber Pulse" or spell == "Dark Pulse" t
hen
damage = skill == "Dark Pulse" and DARKDAMAGE or psyDmg
local function doPulse(cid, eff)
if not isCreature(cid) then return true end
doSendDistanceShoot(getThingPosWithDebug(cid), getThingPosWithDebug(target),
3)
doDanoInTargetWithDelay(cid, target, damage, min, max, eff)
--alterado v
1.7
end
if spell == "Cyber Pulse" then
eff = 11
elseif spell == "Dark Pulse" then
eff = 222 --efeito n eh esse mas... ;p
else
eff = 133
end
addEvent(doPulse, 0, cid, eff)
addEvent(doPulse, 250, cid, eff)
elseif spell == "Psyusion" then
local rounds = math.random(4, 7)
rounds = rounds + math.floor(getPokemonLevel(cid) / 35)
local eff = {136, 133, 136, 133, 137}
local area = {psy1, psy2, psy3, psy4, psy5}
local ret = {}
ret.id = 0
ret.check = 0
ret.cd = rounds
ret.cond = "Confusion"
setPlayerStorageValue(cid, 3644587, 1)
addEvent(setPlayerStorageValue, 4*400, cid, 3644587, -1)
for i = 0, 4 do
addEvent(doMoveInArea2, i*400, cid, eff[i+1], area[i+1], psyDmg, min,
max, spell, ret)
end
elseif spell == "Triple Punch" then
doDanoWithProtect(cid, FIGHTINGDAMAGE, getThingPosWithDebug(target), 0,
-min, -max, 110)
elseif spell == "Fist Machine" then
--alt
erado v1.6
doCreatureAddHealth(cid, -getCreatureMaxHealth(cid))
end
end
doMoveInArea2(cid, 5, selfArea1, NORMALDAMAGE, min, max, spell)
--alt
erado v1.6
addEvent(death, 300, cid)
elseif spell == "Crusher Stomp" then
local pL = getThingPosWithDebug(cid)
pL.x = pL.x+5
pL.y = pL.y+1
----------------local pO = getThingPosWithDebug(cid)
pO.x = pO.x-3
pO.y = pO.y+1
-----------------local pN = getThingPosWithDebug(cid)
pN.x = pN.x+1
pN.y = pN.y+5
----------------local pS = getThingPosWithDebug(cid)
pS.x = pS.x+1
pS.y = pS.y-3
local po = {pL, pO, pN, pS}
local po2 = {
{x = pL.x, y = pL.y-1, z = pL.z},
{x = pO.x, y = pO.y-1, z = pO.z},
{x = pN.x-1, y = pN.y, z = pN.z},
{x = pS.x-1, y = pS.y, z = pS.z},
}
local ret = {}
ret.id = 0
ret.cd = 9
ret.check = 0
ret.eff = 34
ret.spell = spell
ret.cond = "Stun"
for i = 1, 4 do
doSendMagicEffect(po[i], 127)
doAreaCombatHealth(cid, GROUNDDAMAGE, po2[i], crusher, -min, -max, 255)
end
doMoveInArea2(cid, 118, stomp, GROUNDDAMAGE, min, max, spell, ret)
elseif spell == "Water Pulse" then
doDanoWithProtect(cid, WATERDAMAGE, getThingPosWithDebug(cid), selfArea2
, min, max, 155)
elseif spell == "Sonicboom" then
local function doBoom(cid)
if not isCreature(cid) then return true end
doSendDistanceShoot(getThingPosWithDebug(cid), getThingPosWithDebug(target),
33)
doDanoInTargetWithDelay(cid, target, NORMALDAMAGE, min, max, 3) --alterado
v1.7
end
addEvent(doBoom, 0, cid)
addEvent(doBoom, 250, cid)
v1.7
elseif spell == "Tri-Attack" then
--alterado v1.7
setPlayerStorageValue(cid, 3644587, 1)
addEvent(setPlayerStorageValue, 600, cid, 3644587, -1)
doSendDistanceShoot(getThingPosWithDebug(cid), getThingPosWithDebug(target),
42) --alterado v1.6
for i = 0, 2 do
addEvent(doDanoInTargetWithDelay, i*300, cid, target, NORMALDAMAGE, min,
max, 238)
--alterado v1.7
end
elseif spell == "Fury Attack" then
--alterado v1.7
setPlayerStorageValue(cid, 3644587, 1)
addEvent(setPlayerStorageValue, 600, cid, 3644587, -1)
for i = 0, 2 do
addEvent(doDanoInTargetWithDelay, i*300, cid, target, NORMALDAMAGE, min,
max, 110)
--alterado v1.7
end
elseif spell == "Ice Shards" then
doSendDistanceShoot(getThingPosWithDebug(cid), getThingPosWithDebug(target),
28)
doDanoInTargetWithDelay(cid, target, ICEDAMAGE, min, max, 43) --alterado v1
.7
elseif spell == "Icy Wind" then
local ret = {}
ret.id = 0
ret.cd = 9
ret.eff = 43
ret.check = 0
ret.first = true
ret.cond = "Slow"
doMoveInArea2(cid, 17, db1, ICEDAMAGE, min, max, spell, ret)
elseif spell == "Aurora Beam" then
local a = isCreature(target) and getCreatureDirectionToTarget(cid, target) or ge
tCreatureLookDir(cid)
local p = getThingPosWithDebug(cid)
local t = {
[0] = {186, {x=p.x+1, y=p.y-1, z=p.z}},
[1] = {57, {x=p.x+6, y=p.y+1, z=p.z}}, --alterado v1.6
[2] = {186, {x=p.x+1, y=p.y+6, z=p.z}},
[3] = {57, {x=p.x-1, y=p.y+1, z=p.z}}, --alterado v1.6
}
local ret = {}
ret.id = 0
ret.cd = 9
ret.eff = 43
ret.check = 0
ret.first = true
ret.cond = "Slow"
doMoveInArea2(cid, 0, triplo6, ICEDAMAGE, min, max, spell, ret)
doSendMagicEffect(t[a][2], t[a][1])
elseif spell == "Rest" then
local ret = {}
ret.id = cid
ret.cd = 6
ret.eff = 0
ret.check = 0
ret.buff = spell
ret.first = true
doCondition2(ret)
elseif spell == "Sludge" then
--alterado v1.7
local function doSludgeFall(cid, frompos, target)
if not isCreature(target) or not isCreature(cid) then re
turn true end
local pos = getThingPosWithDebug(target)
local ry = math.abs(frompos.y - pos.y)
doSendDistanceShoot(frompos, getThingPosWithDebug(target), 6)
addEvent(doDanoInTargetWithDelay, ry * 11, cid, target, POISONDA
MAGE, min, max, 116) --alterado v1.7
end
local function doSludgeUp(cid, target)
if not isCreature(target) or not isCreature(cid) then re
turn true end
local pos = getThingPosWithDebug(target)
local mps = getThingPosWithDebug(cid)
local xrg = math.floor((pos.x - mps.x) / 2)
local topos = mps
topos.x = topos.x + xrg
local rd = 7
topos.y = topos.y - rd
doSendDistanceShoot(getThingPosWithDebug(cid), topos, 6)
addEvent(doSludgeFall, rd * 49, cid, topos, target)
end
setPlayerStorageValue(cid, 3644587, 1)
addEvent(setPlayerStorageValue, 350, cid, 3644587, -1)
for thnds = 1, 2 do
addEvent(doSludgeUp, thnds * 155, cid, target)
end
--alterado v1.5
elseif spell == "Mud Bomb" then
doSendDistanceShoot(getThingPosWithDebug(cid), getThingPosWithDebug(target),
6) --alterado v1.8
doDanoWithProtectWithDelay(cid, target, MUDBOMBDAMAGE, min, max, 116, bombWee
2)
elseif spell == "Mortal Gas" then
effect = 0
pos = getThingPosWithDebug(cid)
= pos.x + 1
= pos.y + 1
--alter
z = p.z}, {x = p.x+1, y = p.y-1, z = p.z}, {x = p.xz = p.z}, {x = p.x+1, y = p.y+1, z = p.z}, {x = p.xz = p.z}, {x = p.x+1, y = p.y+1, z = p.z}, {x = p.x+
z = p.z}, {x = p.x-1, y = p.y+1, z = p.z}, {x = p.x-
--alterado v1.8 \/
master = getCreatureMaster(cid)
item = getPlayerSlotItem(master, 8)
life, maxLife = getCreatureHealth(cid), getCreatureMaxHealth(cid)
name = getItemAttribute(item.uid, "poke")
pos = getThingPosWithDebug(cid)
time = 21
setPlayerStorageValue(pk[4], 637500, 1)
addEvent(RemoveTeam, time * 1000, pk[4])
end
end
elseif spell == "Team Slice" or spell == "Team Claw" then
local master = getCreatureMaster(cid)
if #getCreatureSummons(master) < 2 or not isCreature(target) then return true en
d
local summons = getCreatureSummons(master)
local posis = {[1] = pos1, [2] = pos2, [3] = pos3, [4] = pos4}
if getSubName(cid, target) == "Scyther" then --alterado v1.6.1
eff = 29
elseif getSubName(cid, target) == "Shiny Scyther" then --alterado v1.6.1
eff = 29
elseif getSubName(cid, target) == "Shiny Scizor" then --editado por Evary
eff = 19
else
eff = 42 --alterado v1.5
end
if #getCreatureSummons(master) >= 2 and isCreature(target) then
if isCreature(cid) then
addEvent(doDanoInTarget, 500, cid, target, BUGDAMAGE, -min, -max, 0) -alterado v1.7
for i = 1, #summons do
posis[i] = getThingPosWithDebug(summons[i])
doDisapear(summons[i])
stopNow(summons[i], 670)
addEvent(doSendMagicEffect, 300, posis[i], 211)
addEvent(doSendDistanceShoot, 350, posis[i], getThingPosWithDebug(t
arget), eff)
addEvent(doSendDistanceShoot, 450, getThingPosWithDebug(target), po
sis[i], eff)
addEvent(doSendDistanceShoot, 600, posis[i], getThingPosWithDebug(t
arget), eff)
addEvent(doSendDistanceShoot, 650, getThingPosWithDebug(target), po
sis[i], eff)
addEvent(doAppear, 670, summons[i])
end
end
end
elseif spell == "Blizzard" then
local master = isSummon(cid) and getCreatureMaster(cid) or cid
local ret = {}
ret.id = 0
ret.cd = 9
ret.eff = 43
ret.check = 0
ret.first = true
ret.cond = "Slow"
local function doFall(cid)
for rocks = 1, 42 do
ret.cond = "Paralyze"
local function doPulse(cid, eff)
if not isCreature(cid) then return true end
doSendDistanceShoot(getThingPosWithDebug(cid), getThingPosWithDebug(target),
9)
doDanoInTargetWithDelay(cid, target, STEELDAMAGE, min, max, 77)
--altera
do pokemon TES
end
addEvent(doPulse, 0, cid, 77)
addEvent(doPulse, 2000, cid, 77)
addEvent(doPulse, 4000, cid, 77)
addEvent(doPulse, 6000, cid, 77)
addEvent(doPulse, 8000, cid, 77)
addEvent(doMoveDano2, 100, cid, target, NORMALDAMAGE, 0, 0, ret, spell)
elseif spell == "Tower Pulse" then
local function doPulse(cid, eff)
if not isCreature(cid) then return true end
doSendDistanceShoot(getThingPosWithDebug(cid), getThingPosWithDebug(target),
3)
doDanoInTargetWithDelay(cid, target, STEELDAMAGE, 3000, 5000, 103)
--alt
erado pokemon TES
end
addEvent(doPulse, 0, cid, 103)
addEvent(doPulse, 50, cid, 103)
addEvent(doPulse, 100, cid, 103)
addEvent(doPulse, 150, cid, 103)
addEvent(doPulse, 200, cid, 103)
addEvent(doPulse, 250, cid, 103)
addEvent(doPulse, 300, cid, 103)
addEvent(doPulse, 350, cid, 103)
addEvent(doPulse, 400, cid, 103)
addEvent(doPulse, 450, cid, 103)
addEvent(doPulse, 500, cid, 103)
addEvent(doPulse, 550, cid, 103)
addEvent(doPulse, 650, cid, 103)
addEvent(doPulse, 700, cid, 103)
elseif spell == "Great Love" then
local master = getCreatureMaster(cid) or 0
local ret = {}
ret.id = 0
ret.cd = 9
ret.eff = 147
ret.check = 0
ret.spell = spell
ret.cond = "Stun"
for rocks = 1, 62 do
addEvent(fall, rocks*35, cid, master, NORMALDAMAGE, -1, 147)
end
addEvent(doMoveInArea2, 500, cid, 0, BigArea2, NORMALDAMAGE, min, max, spell, re
t)
elseif spell == "Flare Blitz" then
local effD = 54
local eff = 91
local master = isSummon(cid) and getCreatureMaster(cid) or cid
doSetCreatureOutfit(cid, {lookType = 2135}, 4000)
setPlayerStorageValue(cid, 3644587, 1)
addEvent(setPlayerStorageValue, 17*600, cid, 3644587, -1)
local function doFall(cid)
for rocks = 5, 42 do
addEvent(fall, rocks*35, cid, master, FIREDAMAGE, effD, eff)
end
end
for up = 1, 10 do
addEvent(upEffect, up*75, cid, effD)
end
addEvent(doFall, 450, cid)
addEvent(doDanoWithProtect, 1400, cid, FIREDAMAGE, getThingPosWithDebug(cid), wa
terarea, -min, -max, 0)
elseif spell == "Flare Blitz2" then
local effD = 54
local eff = 91
local master = isSummon(cid) and getCreatureMaster(cid) or cid
doSetCreatureOutfit(cid, {lookType = 2136}, 4000)
setPlayerStorageValue(cid, 3644587, 1)
addEvent(setPlayerStorageValue, 17*600, cid, 3644587, -1)
local function doFall(cid)
for rocks = 5, 42 do
addEvent(fall, rocks*35, cid, master, FIREDAMAGE, effD, eff)
end
end
for up = 1, 10 do
addEvent(upEffect, up*75, cid, effD)
end
addEvent(doFall, 450, cid)
addEvent(doDanoWithProtect, 1400, cid, FIREDAMAGE, getThingPosWithDebug(cid), wa
terarea, -min, -max, 0)
addEvent(doMoveInArea2, 500, cid, 0, BigArea2, NORMALDAMAGE, min, max, spell, re
t)
elseif spell == "Fire Punch" then
doSendDistanceShoot(getThingPosWithDebug(cid), getThingPosWithDebug(targ
et), 39)
doSendMagicEffect(getThingPosWithDebug(target), 112)
doDanoInTargetWithDelay(cid, target, FIREDAMAGE, min, max, 35) --alterado v1
.7
elseif spell == "Guillotine" then
doDanoWithProtect(cid, NORMALDAMAGE, getThingPosWithDebug(target), 0, -min, -max
, 146)
elseif spell == "Hyper Beam" then
--if getSubName(cid, target) == "Magmortar" then
--docastspell(cid, "Dual Hyper Beam")
---return true
--end
-------
--alterado v1.4
ret.cd = 9
ret.check = getPlayerStorageValue(target, conds["Stun"])
ret.eff = 0
ret.spell = spell
ret.cond = "Stun"
doSendMagicEffect(getThingPosWithDebug(target), 145)
--alterado v1.4!
addEvent(doMoveDano2, 100, cid, target, NORMALDAMAGE, 0, 0, ret, spell)
elseif spell == "Bonemerang" then
doSendDistanceShoot(getThingPosWithDebug(cid), getThingPosWithDebug(target),
7)
doDanoInTargetWithDelay(cid, target, GROUNDDAMAGE, min, max, 227) --alterado
v1.7
addEvent(doSendDistanceShoot, 250, getThingPosWithDebug(target), getThingPosW
ithDebug(cid), 7)
elseif spell == "Bone Club" then
doSendDistanceShoot(getThingPosWithDebug(cid), getThingPosWithDebug(target), 7
)
doDanoInTargetWithDelay(cid, target, GROUNDDAMAGE, min, max, 118) --alterado
v1.7
elseif spell == "Bone Slash" then
local function sendStickEff(cid, dir)
if not isCreature(cid) then return true end
doAreaCombatHealth(cid, GROUNDDAMAGE, getPosByDir(getThingPosWithDebug(ci
d), dir), 0, -min, -max, 227)
end
local function doStick(cid)
if not isCreature(cid) then return true end
local t = {
[1] = SOUTHWEST,
[2] = SOUTH,
[3] = SOUTHEAST,
[4] = EAST,
[5] = NORTHEAST,
[6] = NORTH,
[7] = NORTHWEST,
[8] = WEST,
[9] = SOUTHWEST,
}
for a = 1, 9 do
addEvent(sendStickEff, a * 140, cid, t[a])
end
end
doStick(cid, false, cid)
--al
terado v1.4
elseif spell == "Furious Legs" or spell == "Ultimate Champion" or spell == "Figh
ter Spirit" then
local ret = {}
ret.id = cid
ret.cd = 15
ret.eff = 13
ret.check = 0
ret.buff = spell
ret.first = true
doCondition2(ret)
elseif spell == "Sludge Wave" then
local p = getThingPosWithDebug(cid)
local d = isCreature(target) and getCreatureDirectionToTarget(cid, target) or ge
tCreatureLookDir(cid)
local master = isSummon(cid) and getCreatureMaster(cid) or cid
local ret = {}
ret.id = 0
ret.cd = 9
ret.eff = 34
ret.check = 0
ret.spell = spell
ret.cond = "Miss"
function sendAtk(cid, area, eff)
if isCreature(cid) then
if not isSightClear(p, area, false) then return true end
doAreaCombatHealth(cid, POISONDAMAGE, area, 0, 0, 0, eff)
doAreaCombatHealth(cid, POISONDAMAGE, area, whirl3, -min, -max, 114)
end
end
for a = 0, 4 do
local t = {
[0] = {114, {x=p.x, y=p.y-(a+1), z=p.z}},
[1] = {114, {x=p.x+(a+1), y=p.y, z=p.z}},
[2] = {114, {x=p.x, y=p.y+(a+1), z=p.z}},
[3] = {114, {x=p.x-(a+1), y=p.y, z=p.z}}
}
addEvent(sendAtk, 300*a, cid, t[d][2], t[d][1])
end
--alterado v1.4
end
addEvent(doFall, 450, cid)
addEvent(doMoveInArea2, 1400, cid, 0, BigArea2, POISONDAMAGE, min, max, spell, r
et)
elseif spell == "Shadow Ball" then
doSendDistanceShoot(getThingPosWithDebug(cid), getThingPosWithDebug(target),
18)
local function doDamageWithDelay(cid, target)
if not isCreature(cid) or not isCreature(target) then return true end
if isSleeping(cid) then return false end
if getPlayerStorageValue(cid, conds["Fear"]) >= 1 then return true end
doAreaCombatHealth(cid, ghostDmg, getThingPosWithDebug(target), 0, -m
in, -max, 255)
local pos = getThingPosWithDebug(target)
pos.x = pos.x + 1
doSendMagicEffect(pos, 140)
end
addEvent(doDamageWithDelay, 100, cid, target)
elseif spell == "Shadow Punch" then
local pos = getThingPosWithDebug(target)
doSendMagicEffect(pos, 112)
local function doPunch(cid, target)
if not isCreature(cid) or not isCreature(target) then re
turn true end
doAreaCombatHealth(cid, ghostDmg, getThingPosWithDebug(ta
rget), 0, -min, -max, 255)
pos.x = pos.x + 1
doSendMagicEffect(pos, 140)
end
addEvent(doPunch, 200, cid, target)
elseif spell == "Brick Beak" then
local ret = {}
ret.id = 0
ret.cd = 9
ret.eff = 88
ret.check = 0
ret.first = true
ret.cond = "Paralyze"
ret.id = 0
ret.cd = 9
ret.eff = 88
ret.check = 0
ret.first = true
ret.cond = "Silence"
local a = isCreature(target) and getCreatureDirectionToTarget(cid, target) or ge
tCreatureLookDir(cid)
local p = getThingPosWithDebug(cid)
local
[0] =
[1] =
[2] =
[3] =
}
t = {
{90, {x=p.x+1,
{90, {x=p.x+2,
{90, {x=p.x+1,
{90, {x=p.x-1,
y=p.y-1,
y=p.y+1,
y=p.y+2,
y=p.y+1,
z=p.z}},
z=p.z}},
z=p.z}},
z=p.z}},
--alterei!
--alterei!
doCondition2(ret)
elseif spell == "Divine Punishment" then
local roardirections = {
[NORTH] = {SOUTH},
[SOUTH] = {NORTH},
[WEST] = {EAST},
[EAST] = {WEST}}
local function divineBack(cid)
if not isCreature(cid) then return true end
local uid = checkAreaUid(getCreaturePosition(cid), check, 1, 1)
for _,pid in pairs(uid) do
dirrr = getCreatureDirectionToTarget(pid, cid)
delay = getNextStepDelay(pid, 0)
if isSummon(cid) and (isMonster(pid) or (isSummon(pid) and canAttackOt
her(cid, pid) == "Can") or (isPlayer(pid) and canAttackOther(cid, pid) == "Can")
) and pid ~= cid then
setPlayerStorageValue(pid, 654878, 1)
doChangeSpeed(pid, -getCreatureSpeed(pid))
doChangeSpeed(pid, 100)
doPushCreature(pid, roardirections[dirrr][1], 1, 0)
doChangeSpeed(pid, -getCreatureSpeed(pid))
addEvent(setPlayerStorageValue, 6450, pid, 654878, -1)
addEvent(doRegainSpeed, 6450, pid)
elseif isMonster(cid) and (isSummon(pid) or (isPlayer(pid) and #getCr
eatureSummons(pid) <= 0)) and pid ~= cid then
setPlayerStorageValue(pid, 654878, 1)
doChangeSpeed(pid, -getCreatureSpeed(pid))
doChangeSpeed(pid, 100)
doPushCreature(pid, roardirections[dirrr][1], 1, 0)
doChangeSpeed(pid, -getCreatureSpeed(pid))
addEvent(doRegainSpeed, 6450, pid)
addEvent(setPlayerStorageValue, 6450, pid, 654878, -1)
end
end
end
local function doDivine(cid, min, max, spell, rounds, area)
if not isCreature(cid) then return true end
local ret = {}
ret.id = 0
ret.check = 0
ret.cd = rounds
ret.cond = "Confusion"
for i = 1, 9 do
addEvent(doMoveInArea2, i*500, cid, 137, area[i], psyDmg, min, max, spell, r
et)
end
end
local rounds = math.random(9, 12)
local area = {punish1, punish2, punish3, punish1, punish2, punish3, punis
h1, punish2, punish3}
local posi = getThingPosWithDebug(cid)
posi.x = posi.x+1
posi.y = posi.y+1
setPlayerStorageValue(cid, 2365487, 1)
addEvent(setPlayerStorageValue, 6450, cid, 2365487, -1) --alterado v1.4
doDisapear(cid)
doChangeSpeed(cid, -getCreatureSpeed(cid))
doSendMagicEffect(posi, 247)
addEvent(doAppear, 6450, cid)
addEvent(doRegainSpeed, 6450, cid)
local uid = checkAreaUid(getCreaturePosition(cid), check, 1, 1)
for _,pid in pairs(uid) do
if isSummon(cid) and (isMonster(pid) or (isSummon(pid) and canA
ttackOther(cid, pid) == "Can") or (isPlayer(pid) and canAttackOther(cid, pid) ==
"Can")) and pid ~= cid then
doChangeSpeed(pid, -getCreatureSpeed(pid))
elseif isMonster(cid) and (isSummon(pid) or (isPlayer(pid) and
#getCreatureSummons(pid) <= 0)) and pid ~= cid then
doChangeSpeed(pid, -getCreatureSpeed(pid))
end
end
addEvent(divineBack, 2100, cid)
addEvent(doDivine, 2200, cid, min, max, spell, rounds, area)
elseif isInArray({"Psychic Sight", "Future Sight", "Camouflage", "Acid Armor", "
Iron Defense", "Minimize", "Iron Defense2", "Crystal Defense", "Instant Teleport
ation"}, spell) then
local ret = {}
ret.id = cid
ret.cd = 10
ret.eff = 0
ret.check = 0
ret.buff = spell
ret.first = true
doCondition2(ret)
elseif spell == "Shadowave" then
doMoveInArea2(cid, 222, db1, DARKDAMAGE, min, max, spell)
elseif spell == "Confuse Ray" then
local rounds = math.random(4, 7)
rounds = rounds + math.floor(getPokemonLevel(cid) / 35)
local ret = {}
ret.id = target
ret.cd = rounds
ret.check = getPlayerStorageValue(target, conds["Confusion"])
ret.cond = "Confusion"
posi = getThingPosWithDebug(target)
posi.y = posi.y+1
--doSendDistanceShoot(getThingPosWithDebug(cid), getThingPosWithDebug(targ
et), 39)
addEvent(doSendMagicEffect, 100, posi, 222)
)
addEvent(doDanoWithProtect, 400*a, cid, DRAGONDAMAGE, t[d][2], pulse1, 0, 0, t[d
][1])
end
elseif spell == "Psy Ball" then
doSendDistanceShoot(getThingPosWithDebug(cid), getThingPosWithDebug(target),
3)
doDanoInTargetWithDelay(cid, target, psyDmg, min, max, 250) --alterado v1.7
elseif spell == "Aura Sphere" then
doSendDistanceShoot(getThingPosWithDebug(cid), getThingPosWithDebug(target),
3)
doDanoInTargetWithDelay(cid, target, psyDmg, min, max, 59) --alterado v1.7
elseif spell == "SmokeScreen" then
local ret = {}
ret.id = 0
ret.cd = 9
ret.eff = 34
ret.check = 0
ret.spell = spell
ret.cond = "Miss"
local function smoke(cid)
if not isCreature(cid) then return true end
if isSleeping(cid) and getPlayerStorageValue(cid, 3644587) >= 1 then return fals
e end
if isWithFear(cid) and getPlayerStorageValue(cid, 3644587) >= 1 then return true
end
doMoveInArea2(cid, 34, confusion, NORMALDAMAGE, 0, 0, spell, ret)
end
setPlayerStorageValue(cid, 3644587, 1)
addEvent(setPlayerStorageValue, 1000, cid, 3644587, -1)
for i = 0, 2 do
addEvent(smoke, i*500, cid)
end
elseif spell == "Faint Attack" or spell == "Sucker Punch" then --alterado v1.5
doSendDistanceShoot(getThingPosWithDebug(cid), getThingPosWithDebug(target),
39)
doDanoInTargetWithDelay(cid, target, DARKDAMAGE, min, max, 237) --alterado v
1.7
elseif spell == "Assurance" then
local p = getThingPosWithDebug(cid)
local d = isCreature(target) and getCreatureDirectionToTarget(cid, target) or ge
tCreatureLookDir(cid)
function sendAtk(cid, area1, area2, eff)
if isCreature(cid) then
if not isSightClear(p, area1, false) then return true end
if not isSightClear(p, area2, false) then return true end
z=p.z}},
z=p.z}},
z=p.z}},
z=p.z}}
local ret = {}
ret.id = 0
ret.cd = 9
ret.check = 0
ret.eff = 136
ret.cond = "Silence"
---local p = getThingPosWithDebug(cid)
doSendMagicEffect({x=p.x+1, y=p.y, z=p.z}, 140)
--if isSummon(cid) then
doCureBallStatus(getPlayerSlotItem(getCreatureMaster(cid), 8).uid, "all")
end
doCureStatus(cid, "all")
setPlayerStorageValue(cid, 253, 1) --focus
doMoveInArea2(cid, 0, electro, NORMALDAMAGE, 0, 0, spell, ret)
eff)
p, eff)
damage, -min, -max, 0) --alterado v1.
eff)
z=p.z}},
z=p.z}},
z=p.z}},
z=p.z}}
--alterado v1.4
--alterado v1
.4
end
spell)
doMoveDano2(cid, c, NORMALDAMAGE, 0, 0, ret2
, spell)
end
end
else
doTeleportThing(c, getClosestFreeTile(cid, getThingP
os(cid)))
doMoveDano2(cid, c, NORMALDAMAGE, 0, 0, ret, spell)
doMoveDano2(cid, c, NORMALDAMAGE, 0, 0, ret2, spell)
end
end
end -end
end
end
function doSendTornado(cid, pos)
if not isCreature(cid) then return true end
if isWithFear(cid) and getPlayerStorageValue(cid, 3644587) >= 1 then ret
urn true end
if isSleeping(cid) and getPlayerStorageValue(cid, 3644587) >= 1 then ret
urn true end
doSendDistanceShoot(getThingPos(cid), pos, config.effects.pullEffects.di
stance)
doSendMagicEffect(pos, config.effects.pullEffects.effect)
end
function vortexDamage(cid)
if not isCreature(cid) then
return true
elseif time - os.time() < 0 then
return true
end
doDanoWithProtect(cid, FLYINGDAMAGE, getThingPos(cid), damageArea, min,
max, config.effects.damageEffect)
addEvent(vortexDamage, config.time[2], cid)
end
for b = 1, 3 do
for a = 1, 20 do
local pos = {x = getThingPos(cid).x + math.random(-4, 4), y = getThi
ngPos(cid).y + math.random(-3, 3), z = getThingPos(cid).z}
addEvent(doSendTornado, a * 75, cid, pos)
end
end
Pull(cid, ret)
vortexDamage(cid)
doCreatureSetNoMove(cid, true)
doChangeSpeed(cid, -getCreatureSpeed(cid))
doSetCreatureOutfit(cid, {lookType = config.outfit}, config.time[1] * 1000)
setPlayerStorageValue(cid, config.storage, time)
addEvent(function()
if isCreature(cid) then
doCreatureSetNoMove(cid, false)
doRegainSpeed(cid)
end
end, config.time[1] * 1000)
elseif spell == "Giant Water Gun" then
local a = isCreature(target) and getCreatureDirectionToTarget(cid, target) or ge
tCreatureLookDir(cid)
local p = getThingPosWithDebug(cid)
local t = {
[0] = {214, {x=p.x+1, y=p.y-1, z=p.z}},
[1] = {184, {x=p.x+6, y=p.y+1, z=p.z}},
[2] = {189, {x=p.x+1, y=p.y+6, z=p.z}},
[3] = {195, {x=p.x-1, y=p.y+1, z=p.z}},
}
doMoveInArea2(cid, 0, triplo6, WATERDAMAGE, min, max, spell)
doSendMagicEffect(t[a][2], t[a][1])
{
= p.x+1, y = p.y-1, z = p.z}}, {16, {x = p.x+1, y = p.y-1, z = p.z}}},
= p.x+2, y = p.y+1, z = p.z}}, {221, {x = p.x+3, y = p.y+1, z = p.z}}}
= p.x+1, y = p.y+2, z = p.z}}, {223, {x = p.x+1, y = p.y+3, z = p.z}}}
= p.x-1, y = p.y+1, z = p.z}}, {243, {x = p.x-1, y = p.y+1, z = p.z}}}
for i = 1, 4 do
doSendMagicEffect(t[i][2][2], t[i][2][1])
end
doDanoWithProtect(cid, FLYINGDAMAGE, getThingPosWithDebug(cid), airSlash, -min,
-max, 0)
for i = 1, 4 do
addEvent(doSendMagicEffect, 400, t[i][1][2], t[i][1][1])
end
addEvent(doDanoWithProtect, 400, cid, FLYINGDAMAGE, getThingPosWithDebug(cid), b
ombWee2, -min, -max, 0)
elseif spell == "Feather Dance" then
local function doPulse(cid, eff)
if not isCreature(cid) or not isCreature(target) then return true end
doSendDistanceShoot(getThingPosWithDebug(cid), getThingPosWithDebug(target),
9)
doDanoInTargetWithDelay(cid, target, FLYINGDAMAGE, -min, -max, eff) --alter
ado v1.7
end
addEvent(doPulse, 0, cid, 137)
addEvent(doPulse, 100, cid, 137)
elseif spell == "Tailwind" then
local ret = {}
ret.id = cid
ret.cd = 10
ret.eff = 137
ret.check = 0
ret.buff = spell
ret.first = true
doCondition2(ret)
elseif spell == "Double Team" then
local function RemoveTeam(cid, master)
if isCreature(cid) then
local p = getThingPosWithDebug(cid)
doSendMagicEffect(p, 211)
doRemoveCreature(cid)
end
end
local function sendEff(cid, master, t)
if isCreature(cid) and isCreature(master) and t > 0 and #getCreatureSummons(mast
er) >= 2 then
doSendMagicEffect(getThingPosWithDebug(cid), 86, master)
addEvent(sendEff, 1000, cid, master, t-1)
--alterado v
1.9
end
end
if getPlayerStorageValue(cid, 637500) >= 1 then
return true
end
local s = {
["Xatu"] = "XatuTeam",
["Shiny Xatu"] = "Shiny XatuTeam",
["Yanma"] = "YanmaTeam",
["Mega Lucario"] = "Mega LucarioTeam",
}
local master = getCreatureMaster(cid)
local item = getPlayerSlotItem(master, 8)
local pos = getThingPosWithDebug(cid)
local time = 20
local pokelife = (getCreatureHealth(cid) / getCreatureMaxHealth(cid))
local random = math.random(5, 10)
local dir = getCreatureLookDir(cid)
--------doItemSetAttribute(item.uid, "hp", pokelife)
--------doDisapear(cid)
ret.id = 0
ret.cd = 9
ret.check = 0
ret.eff = 34
ret.cond = "Silence"
doMoveInAreaMulti(cid, 6, 116, multi, multiDano, WATERDAMAGE, min, max)
doMoveInArea2(cid, 0, multiDano, WATERDAMAGE, 0, 0, spell, ret)
elseif spell == "Take Down" then
doMoveInArea2(cid, 111, reto5, NORMALDAMAGE, min, max, spell)
elseif spell == "Yawn" then
local ret = {}
ret.id = target
ret.cd = math.random(6, 9)
ret.check = getPlayerStorageValue(target, conds["Sleep"])
ret.first = true
ret.cond = "Sleep"
doSendDistanceShoot(getThingPosWithDebug(cid), getThingPosWithDebug(target),
11)
addEvent(doMoveDano2, 1500, cid, target, NORMALDAMAGE, 0, 0, ret, spell)
elseif spell == "Tongue Hook" then
sendDistanceShootWithProtect(cid, getThingPosWithDebug(cid), getThingPosWithDebu
g(target), 38)
addEvent(doTeleportThing, 200, target, getClosestFreeTile(cid, getThingPosWithDe
bug(cid)), true)
addEvent(sendDistanceShootWithProtect, 200, cid, getThingPosWithDebug(target), g
etThingPosWithDebug(cid), 38)
elseif spell == "Tongue Grap" then
local function distEff(cid, target)
if not isCreature(cid) or not isCreature(target) or not isSilence(target) then r
eturn true end --alterado v1.6
sendDistanceShootWithProtect(cid, getThingPosWithDebug(target), getThingPosWi
thDebug(cid), 38)
end
local ret = {}
ret.id = target
ret.cd = 10
ret.check = getPlayerStorageValue(target, conds["Silence"])
ret.eff = 185
ret.cond = "Silence"
sendDistanceShootWithProtect(cid, getThingPosWithDebug(cid), getThingPosWithDebu
g(target), 38)
addEvent(doMoveDano2, 100, cid, target, NORMALDAMAGE, 0, 0, ret, spell)
for i = 1, 10 do
addEvent(distEff, i*930, cid, target)
end
if ehMonstro(pid) then
doPushCreature(pid, cid)
elseif isSummon(pid) then
local master = getCreatureMaster(pid)
if isSummon(cid) then
if getPlayerStorageValue(master, 52480) >= 1 and getPlay
erStorageValue(master, 52481) >= 0 then
local masterCid = getCreatureMaster(cid)
if isDuelingAgainst(masterCid, master) then
doPushCreature(pid, cid)
end
end
else
doPushCreature(pid, cid)
end
end
end
end, i * 230)
end
end, 650)
elseif spell == "Metal Sound" then
local ret = {}
ret.id = 0
ret.cd = 6
ret.eff = 46
ret.check = 0
ret.spell = spell
ret.cond = "Paralyze"
local pos = getThingPosWithDebug(cid)
local areas = {rock1, rock2, rock3, rock4, rock5, rock1, rock2, rock3, rock4, ro
ck5, rock5, rock1, rock2, rock3, rock4, rock5,rock1, rock2, rock3, rock4, rock5,
}
for i = 0, 24 do
addEvent(doMoveInArea2, i*320, cid, 46, areas[i+1], STEELDAMAGE, min, max, s
pell, ret)
addEvent(doMoveInArea2, i*330, cid, 46, areas[i+1], STEELDAMAGE, 0, 0, spell
)
end
elseif spell == "Present" then
local function sendHeal(cid)
if isCreature(cid) and isCreature(target) then
doAreaCombatHealth(cid, NORMALDAMAGE, getThingPosWithDebug(target), crusher,
min, max, 5)
doSendAnimatedText(getThingPosWithDebug(target), "HEALTH!", 65)
end
end
doSendDistanceShoot(getThingPosWithDebug(cid), getThingPosWithDebug(target),
31)
if math.random(1, 100) >= 10 then
doDanoWithProtectWithDelay(cid, target, NORMALDAMAGE, min, max, 5, cr
usher)
else
addEvent(sendHeal, 100, cid)
end
elseif spell == "Inferno" or spell == "Fissure" then
local pos = getThingPosWithDebug(cid)
atk = {
["Inferno"] = {101, FIREDAMAGE},
["Fissure"] = {102, GROUNDDAMAGE}
}
doMoveInArea2(cid, atk[spell][1], inferno1, atk[spell][2], 0, 0, spell)
addEvent(doDanoWithProtect, math.random(100, 400), cid, atk[spell][2], pos, infe
rno2, -min, -max, 0)
elseif spell == "Wrap" then
local ret = {}
ret.id = target
ret.cd = 10
ret.check = getPlayerStorageValue(target, conds["Silence"])
ret.eff = 104
ret.cond = "Silence"
doSendDistanceShoot(getThingPosWithDebug(cid), getThingPosWithDebug(target), 39)
addEvent(doMoveDano2, 100, cid, target, NORMALDAMAGE, 0, 0, ret, spell)
elseif spell == "Rock n'Roll" then
local pos = getThingPosWithDebug(cid)
local areas = {rock1, rock2, rock3, rock4, rock5, rock4, rock3, rock2, rock1}
local ret = {}
ret.id = 0
ret.cd = 9
ret.eff = 1
ret.check = 0
ret.spell = spell
ret.cond = "Miss"
for i = 0, 8 do
addEvent(doMoveInArea2, i*400, cid, 1, areas[i+1], NORMALDAMAGE, min, max, s
pell, ret)
addEvent(doMoveInArea2, i*410, cid, 1, areas[i+1], NORMALDAMAGE, 0, 0, spell
)
end
elseif spell == "Power Wave" then
local pos = getThingPosWithDebug(cid)
local areas = {rock1, rock2, rock3, rock4, rock5}
local ret = {}
ret.id = 0
ret.cd = 4
ret.eff = 103
ret.check = 0
ret.first = true
ret.cond = "Paralyze"
local ret2 = {}
ret2.id = 0
ret2.cd = 4
ret2.check = 0
ret2.eff = -1
ret2.cond = "Silence"
local function sendAtk(cid)
if isCreature(cid) then
doRemoveCondition(cid, CONDITION_OUTFIT)
setPlayerStorageValue(cid, 9658783, -1)
for i = 0, 4 do
addEvent(doMoveInArea2, i*400, cid, 103, areas[i+1], psyDmg, min, max, spell
, ret)
addEvent(doMoveInArea2, i*400, cid, 103, areas[i+1], psyDmg, 0, 0, spell, re
t2)
end
end
end
doSetCreatureOutfit(cid, {lookType = 1001}, -1)
setPlayerStorageValue(cid, 9658783, 1)
stopNow(cid, 2000)
addEvent(sendAtk, 2000, cid)
elseif spell == "Future Sights" then
local pos = getThingPosWithDebug(cid)
local areas = {rock1, rock2, rock3, rock4, rock5}
local ret = {}
ret.id = 0
ret.cd = 9
ret.eff = 103
ret.check = 0
ret.first = true
ret.cond = "Sleep"
local function sendAtk(cid)
if isCreature(cid) then
doRemoveCondition(cid, CONDITION_OUTFIT)
setPlayerStorageValue(cid, 9658783, -1)
for i = 0, 4 do
addEvent(doMoveInArea2, i*400, cid, 103, areas[i+1], psyDmg, min, max, spell
, ret)
addEvent(doMoveInArea2, i*410, cid, 103, areas[i+1], psyDmg, 0, 0, spell)
end
end
end
setPlayerStorageValue(cid, 9658783, 1)
addEvent(sendAtk, 2000, cid)
local config = {
outfit = 2463,
--Outfit.
time = {5
, 0},
--{Durao da spell, intervalo entre cada "t
ick" de dano (em milsimos de segundos)},
storage = 93828,
}
doCreatureSetNoMove(cid, true)
doChangeSpeed(cid, -getCreatureSpeed(cid))
doSetCreatureOutfit(cid, {lookType = config.outfit}, config.time[1] * 1000)
setPlayerStorageValue(cid, config.storage, time)
addEvent(function()
if isCreature(cid) then
doCreatureSetNoMove(cid, false)
doRegainSpeed(cid)
end
end, config.time[1] * 1000)
elseif spell == "Future Sights2" then
local pos = getThingPosWithDebug(cid)
local areas = {rock1, rock2, rock3, rock4, rock5}
local ret = {}
ret.id = 0
ret.cd = 9
ret.eff = 103
ret.check = 0
ret.first = true
ret.cond = "Sleep"
local function sendAtk(cid)
if isCreature(cid) then
doRemoveCondition(cid, CONDITION_OUTFIT)
setPlayerStorageValue(cid, 9658783, -1)
for i = 0, 4 do
addEvent(doMoveInArea2, i*400, cid, 103, areas[i+1], psyDmg, min, max, spell
, ret)
addEvent(doMoveInArea2, i*410, cid, 103, areas[i+1], psyDmg, 0, 0, spell)
end
end
end
setPlayerStorageValue(cid, 9658783, 1)
addEvent(sendAtk, 2000, cid)
local config = {
outfit = 2452,
--Outfit.
time = {5
, 0},
--{Durao da spell, intervalo entre cada "t
ick" de dano (em milsimos de segundos)},
storage = 93828,
}
doCreatureSetNoMove(cid, true)
doChangeSpeed(cid, -getCreatureSpeed(cid))
doSetCreatureOutfit(cid, {lookType = config.outfit}, config.time[1] * 1000)
setPlayerStorageValue(cid, config.storage, time)
addEvent(function()
if isCreature(cid) then
doCreatureSetNoMove(cid, false)
doRegainSpeed(cid)
end
end, config.time[1] * 1000)
elseif spell == "Hidden Power" then
local pos = getThingPosWithDebug(cid)
local areas = {rock1, rock2, rock3, rock4, rock5}
local ret = {}
ret.id = 0
ret.cd = 9
ret.eff = 103
ret.check = 0
ret.first = true
ret.cond = "Paralyze"
local function sendAtk(cid)
if isCreature(cid) then
doRemoveCondition(cid, CONDITION_OUTFIT)
setPlayerStorageValue(cid, 9658783, -1)
for i = 0, 4 do
addEvent(doMoveInArea2, i*400, cid, 103, areas[i+1], psyDmg, min, max, spell
, ret)
addEvent(doMoveInArea2, i*410, cid, 103, areas[i+1], psyDmg, 0, 0, spell)
end
end
end
doSetCreatureOutfit(cid, {lookType = 1909}, -1)
setPlayerStorageValue(cid, 9658783, 1)
addEvent(sendAtk, 2000, cid)
elseif spell == "Heal Bell" then
if isSummon(cid) then
doCureBallStatus(getPlayerSlotItem(getCreatureMaster(cid), 8).uid, "all")
end
doCureStatus(cid, "all")
local areas = {rock1, rock2, rock3, rock4, rock5, rock1, rock2, rock3, ro
ck4, rock5, rock1, rock2, rock3, rock4, rock5, rock1, rock2, rock3, rock4, rock5
, rock1, rock2, rock3, rock4, rock5}
local ret = {}
ret.id = cid
ret.cd = 10
ret.eff = 0
ret.check = 0
ret.buff = spell
ret.first = true
doCondition2(ret)
for i = 0, 22 do
addEvent(doMoveInArea2, i*400, cid, 33, areas[i+1], NORMALDAMAGE, 0, 0, spel
l)
end
elseif spell == "Nasty Plot" then
doAreaCombatHealth(cid, PSYCHICDAMAGE, getThingPosWithDebug(cid), splash, -min,
-max, 255)
setPlayerStorageValue(cid, 253, 1) --focus
doSendMagicEffect(getThingPosWithDebug(cid), 132)
elseif spell == "Ground Crusher" then
local pos = getThingPosWithDebug(cid)
local areas = {rock1, rock2, rock3, rock4, rock5}
local ret = {}
ret.id = 0
ret.cd = 12
ret.eff = 0
ret.check = 0
ret.spell = spell
ret.cond = "Stun"
local function endMove(cid)
if isCreature(cid) then
doRemoveCondition(cid, CONDITION_OUTFIT)
end
end
if getSubName(cid, target) == "Mega Swampert" or "Dark Mega Swampert" then
doSetCreatureOutfit(cid, {lookType = 2318}, -1)
else
doSetCreatureOutfit(cid, {lookType = 1449}, -1)
end
stopNow(cid, 16*360)
addEvent(endMove, 16*360, cid)
---for i = 0, 4 do
addEvent(doMoveInArea2, i*350, cid, 100, areas[i+1], GROUNDDAMAGE, min, max,
spell, ret)
addEvent(doMoveInArea2, i*360, cid, 100, areas[i+1], GROUNDDAMAGE, 0, 0, spe
ll, ret)
end
for i = 4, 8 do
local a = i-3
addEvent(doMoveInArea2, i*350, cid, 100, areas[a], GROUNDDAMAGE, min, max, s
pell, ret)
addEvent(doMoveInArea2, i*360, cid, 100, areas[a], GROUNDDAMAGE, 0, 0, spell
, ret)
end
for i = 8, 12 do
local a = i-7
addEvent(doMoveInArea2, i*350, cid, 100, areas[a], GROUNDDAMAGE, min, max, s
pell, ret)
addEvent(doMoveInArea2, i*360, cid, 100, areas[a], GROUNDDAMAGE, 0, 0, spell
, ret)
end
for i = 12, 16 do
local a = i-11
addEvent(doMoveInArea2, i*350, cid, 100, areas[a], GROUNDDAMAGE, min, max, s
pell, ret)
addEvent(doMoveInArea2, i*360, cid, 100, areas[a], GROUNDDAMAGE, 0, 0, spell
, ret)
end
for i = 16, 20 do
local a = i-15
addEvent(doMoveInArea2, i*350, cid, 100, areas[a], GROUNDDAMAGE, min, max, s
pell, ret)
addEvent(doMoveInArea2, i*360, cid, 100, areas[a], GROUNDDAMAGE, 0, 0, spell
, ret)
end
elseif spell == "Last Resort" then
local pos = getThingPosWithDebug(cid)
local areas = {rock5, rock4, rock3, rock2, rock1, rock5, rock4, rock3, rock2, ro
ck1}
for i = 0, 9 do
addEvent(doMoveInArea2, i*400, cid, 3, areas[i+1], NORMALDAMAGE, min, max, s
pell)
addEvent(doMoveInArea2, i*410, cid, 3, areas[i+1], NORMALDAMAGE, 0, 0, spell
)
end
elseif spell == "Psy Impact" then
local master = getCreatureMaster(cid) or 0
local ret = {}
ret.id = 0
ret.cd = 9
ret.eff = 0
ret.check = 0
ret.spell = spell
ret.cond = "Miss"
for rocks = 1, 42 do
addEvent(fall, rocks*35, cid, master, psyDmg, -1, 98)
end
addEvent(doMoveInArea2, 500, cid, 0, BigArea2, psyDmg, min, max, spell, ret)
elseif spell == "Two Face Shock" then
local atk = {
[1] = {179, ICEDAMAGE},
[2] = {127, GROUNDDAMAGE}
}
local rand = math.random(1, 2)
doAreaCombatHealth(cid, atk[rand][2], getThingPosWithDebug(cid), splash,
-min, -max, 255)
local sps = getThingPosWithDebug(cid)
sps.x = sps.x+1
sps.y = sps.y+1
doSendMagicEffect(sps, atk[rand][1])
elseif spell == "Aerial Ace" then
local eff = {16, 221, 223, 243}
for rocks = 1, 32 do
addEvent(fall, rocks*22, cid, master, FLYINGDAMAGE, -1, eff[math.random(1, 4
)])
end
addEvent(doMoveInArea2, 500, cid, 0, BigArea2, FLYINGDAMAGE, min, max, spell)
elseif spell == "Echoed Voice" then
local p = getThingPosWithDebug(cid)
local d = isCreature(target) and getCreatureDirectionToTarget(cid, target) or ge
tCreatureLookDir(cid)
function sendAtk(cid, area)
if isCreature(cid) then
if not isSightClear(p, area, false) then return true end
doAreaCombatHealth(cid, NORMALDAMAGE, area, pulse2, -min, -max, 255)
end
end
for a = 0, 5 do
local t = {
[0] = {39, {x=p.x, y=p.y-(a+1), z=p.z}},
[1] = {39, {x=p.x+(a+1), y=p.y, z=p.z}},
[2] = {39, {x=p.x, y=p.y+(a+1), z=p.z}},
[3] = {39, {x=p.x-(a+1), y=p.y, z=p.z}}
}
addEvent(sendAtk, 400*a, cid, t[d][2])
addEvent(doAreaCombatHealth, 400*a, cid, ROCKDAMAGE, t[d][2], pulse1, 0, 0, t[d]
[1])
end
elseif spell == "Frost Tornado" then
local p = getThingPos(cid)
local pos1 = {
[1] = {{x = p.x, y = p.y+4, z = p.z}, {x = p.x+1, y = p.y+4, z = p.z},
2, y = p.y+3, z = p.z}, {x = p.x+3, y = p.y+2, z = p.z}, {x = p.x+4, y
z = p.z}, {x = p.x+4, y = p.y, z = p.z}},
[2] = {{x = p.x, y = p.y+3, z = p.z}, {x = p.x+1, y = p.y+3, z = p.z},
2, y = p.y+2, z = p.z}, {x = p.x+3, y = p.y+1, z = p.z}, {x = p.x+3, y
= p.z}},
[3] = {{x = p.x, y = p.y+2, z = p.z}, {x = p.x+1, y = p.y+2, z = p.z},
2, y = p.y+1, z = p.z}, {x = p.x+2, y = p.y, z = p.z}},
[4] = {{x = p.x, y = p.y+1, z = p.z}, {x = p.x+1, y = p.y+1, z = p.z},
1, y = p.y, z = p.z}},
}
local pos2 = {
[1] = {{x = p.x, y = p.y-4, z = p.z}, {x = p.x-1, y = p.y-4, z = p.z},
2, y = p.y-3, z = p.z}, {x = p.x-3, y = p.y-2, z = p.z}, {x = p.x-4, y
z = p.z}, {x = p.x-4, y = p.y, z = p.z}},
[2] = {{x = p.x, y = p.y-3, z = p.z}, {x = p.x-1, y = p.y-3, z = p.z},
2, y = p.y-2, z = p.z}, {x = p.x-3, y = p.y-1, z = p.z}, {x = p.x-3, y
= p.z}},
[3] = {{x = p.x, y = p.y-2, z = p.z}, {x = p.x-1, y = p.y-2, z = p.z},
2, y = p.y-1, z = p.z}, {x = p.x-2, y = p.y, z = p.z}},
[4] = {{x = p.x, y = p.y-1, z = p.z}, {x = p.x-1, y = p.y-1, z = p.z},
1, y = p.y, z = p.z}},
}
local pos3 = {
[1] = {{x = p.x+4, y = p.y, z = p.z}, {x = p.x+4, y = p.y-1, z = p.z},
3, y = p.y-2, z = p.z}, {x = p.x+2, y = p.y-3, z = p.z}, {x = p.x+1, y
z = p.z}, {x = p.x, y = p.y-4, z = p.z}},
[2] = {{x = p.x+3, y = p.y, z = p.z}, {x = p.x+3, y = p.y-1, z = p.z},
2, y = p.y-2, z = p.z}, {x = p.x+1, y = p.y-3, z = p.z}, {x = p.x, y =
= p.z}},
[3] = {{x = p.x+2, y = p.y, z = p.z}, {x = p.x+2, y = p.y-1, z = p.z},
1, y = p.y-2, z = p.z}, {x = p.x, y = p.y-2, z = p.z}},
[4] = {{x = p.x+1, y = p.y, z = p.z}, {x = p.x+1, y = p.y-1, z = p.z},
y = p.y-1, z = p.z}},
}
{x = p.x+
= p.y+1,
{x = p.x+
= p.y, z
{x = p.x+
{x = p.x+
{x = p.x= p.y-1,
{x = p.x= p.y, z
{x = p.x{x = p.x-
{x = p.x+
= p.y-4,
{x = p.x+
p.y-3, z
{x = p.x+
{x = p.x,
local pos4 = {
[1] = {{x = p.x-4, y = p.y, z = p.z}, {x = p.x-4, y = p.y+1, z = p.z},
3, y = p.y+2, z = p.z}, {x = p.x-2, y = p.y+3, z = p.z}, {x = p.x-1, y
z = p.z}, {x = p.x, y = p.y+4, z = p.z}},
[2] = {{x = p.x-3, y = p.y, z = p.z}, {x = p.x-3, y = p.y+1, z = p.z},
2, y = p.y+2, z = p.z}, {x = p.x-1, y = p.y+3, z = p.z}, {x = p.x, y =
= p.z}},
[3] = {{x = p.x-2, y = p.y, z = p.z}, {x = p.x-2, y = p.y+1, z = p.z},
1, y = p.y+2, z = p.z}, {x = p.x, y = p.y+2, z = p.z}},
[4] = {{x = p.x-1, y = p.y, z = p.z}, {x = p.x-1, y = p.y+1, z = p.z},
y = p.y+1, z = p.z}},
}
local pos5 = {
[1] = {{x = p.x, y = p.y+4, z = p.z}, {x = p.x+1, y = p.y+4, z = p.z},
2, y = p.y+3, z = p.z}, {x = p.x+3, y = p.y+2, z = p.z}, {x = p.x+4, y
z = p.z}, {x = p.x+4, y = p.y, z = p.z}},
[2] = {{x = p.x, y = p.y+3, z = p.z}, {x = p.x+1, y = p.y+3, z = p.z},
2, y = p.y+2, z = p.z}, {x = p.x+3, y = p.y+1, z = p.z}, {x = p.x+3, y
= p.z}},
[3] = {{x = p.x, y = p.y+2, z = p.z}, {x = p.x+1, y = p.y+2, z = p.z},
2, y = p.y+1, z = p.z}, {x = p.x+2, y = p.y, z = p.z}},
[4] = {{x = p.x, y = p.y+1, z = p.z}, {x = p.x+1, y = p.y+1, z = p.z},
1, y = p.y, z = p.z}},
}
{x = p.x= p.y+4,
{x = p.xp.y+3, z
{x = p.x{x = p.x,
{x = p.x+
= p.y+1,
{x = p.x+
= p.y, z
{x = p.x+
{x = p.x+
local atk = {
--[atk] = {distance, eff, damage}
["Frost Tornado"] = {-1, 41, ICEDAMAGE},
}
local function sendDist(cid, posi1, posi2, eff, delay)
if posi1 and posi2 and isCreature(cid) then
addEvent(sendDistanceShootWithProtect, delay, cid, posi1, posi2, eff)
erado v1.6
end
end
--alt
30)
addEvent(sendDano, 800, cid, pos3[j][i], atk[spell][2], i*300, min, max)
addEvent(sendDano, 800, cid, pos3[j][i], atk[spell][2], i*310, 0, 0)
--addEvent(sendDist, 800, cid, pos4[j][i], pos4[j][i+1], atk[spell][1], i*3
30)
addEvent(sendDano, 800, cid, pos4[j][i], atk[spell][2], i*300, min, max)
addEvent(sendDano, 800, cid, pos4[j][i], atk[spell][2], i*310, 0, 0)
end
end
end
end
for b = 0, 2 do
addEvent(doTornado, b*1500, cid)
end
doCreatureSetNoMove(cid, true)
addEvent(canMove, 5700, cid)
local function doDivine(cid, min, max, spell, rounds, area)
if not isCreature(cid) then return true end
for i = 1, 9 do
addEvent(doMoveInArea2, 1000, cid, 196, electro, ICEDAMAGE, 0, 0, spell)
addEvent(doMoveInArea2, i*500, cid, 179, area[i], ICEDAMAGE, min, max, spell
)
addEvent(doMoveInArea2, 1000, cid, 50, electro, ICEDAMAGE, 0, 0, spell)
doMoveInArea2(cid, 175, AREA_CROSS6X6, ICEDAMAGE, min, max, spell)
local pos = getThingPosWithDebug(cid)
local areas = {rock1, rock2, rock3, rock4, rock5, rock1, rock2, rock3, rock4, ro
ck5}
local ret = {}
ret.id = 0
ret.cd = 6
ret.eff = 5
ret.check = 0
ret.spell = spell
ret.cond = "Slow"
for i = 0, 8 do
addEvent(doMoveInArea2, i*400, cid, 50, areas[i+1], ICEDAMAGE, min, max, spe
ll)
addEvent(doMoveInArea2, i*410, cid, 50, areas[i+1], ICEDAMAGE, 0, 0, spell,
ret)
end
end
end
local rounds = math.random(9, 12)
local area = {punish1, punish2, punish3, punish1, punish2, punish3, punis
h1, punish2, punish3}
local posi = getThingPosWithDebug(cid)
posi.x = posi.x+1
posi.y = posi.y+1
setPlayerStorageValue(cid, 2365487, 1)
addEvent(setPlayerStorageValue, 6450, cid, 2365487, -1) --alterado v1.4
doDisapear(cid)
doChangeSpeed(cid, -getCreatureSpeed(cid))
doSendMagicEffect(posi, 162)
{x = p.x+
= p.y+1,
{x = p.x+
= p.y, z
{x = p.x+
{x = p.x+
local pos2 = {
[1] = {{x = p.x, y = p.y-4, z = p.z}, {x = p.x-1, y = p.y-4, z = p.z}, {x = p.x2, y = p.y-3, z = p.z}, {x = p.x-3, y = p.y-2, z = p.z}, {x = p.x-4, y = p.y-1,
{x = p.x= p.y, z
{x = p.x{x = p.x-
{x = p.x+
= p.y-4,
{x = p.x+
p.y-3, z
{x = p.x+
{x = p.x,
{x = p.x= p.y+4,
{x = p.xp.y+3, z
{x = p.x{x = p.x,
{x = p.x+
= p.y+1,
{x = p.x+
= p.y, z
{x = p.x+
{x = p.x+
--alt
--alterado v1.6
--send eff
doSendDistanceShoot(getThingPosWithDebug(cid), getThingPosWithDebug(target),
15)
doDanoInTargetWithDelay(cid, target, POISONDAMAGE, min, max, 153)
elseif spell == "Cross Poison" then
doMoveInArea2(cid, 153, cross, POISONDAMAGE, -min, -max, spell)
elseif spell == "Hydro Dance" then
local eff = {155, 154, 53, 155, 53}
local area = {psy1, psy2, psy3, psy4, psy5}
setPlayerStorageValue(cid, 3644587, 1)
addEvent(setPlayerStorageValue, 4*400, cid, 3644587, -1)
for i = 0, 4 do
addEvent(doMoveInArea2, i*400, cid, eff[i+1], area[i+1], WATERDAMAGE,
min, max, spell)
end
elseif spell == "Gyro Ball" then
local ret = {}
ret.id = 0
ret.cd = 9
ret.check = 0
ret.eff = 0
ret.spell = spell
ret.cond = "Stun"
stopNow(cid, 2000)
doMoveInArea2(cid, 156, reto5, STEELDAMAGE, min, max, spell, ret)
elseif spell == "Rock Tomb" then
local ret = {}
ret.id = target
ret.cd = 9
ret.eff = 0
ret.check = getPlayerStorageValue(target, conds["Slow"])
ret.first = true
ret.cond = "Slow"
local function doRockFall(cid, frompos, target)
if not isCreature(target) or not isCreature(cid) then re
turn true end
local pos = getThingPosWithDebug(target)
local ry = math.abs(frompos.y - pos.y)
doSendDistanceShoot(frompos, pos, 39)
addEvent(doMoveDano2, ry * 11, cid, target, ROCKDAMAGE, min,
max, ret, spell)
addEvent(sendEffWithProtect, ry*11, cid, pos, 157)
end
local function doRockUp(cid, target)
if not isCreature(target) or not isCreature(cid) then re
turn true end
local pos = getThingPosWithDebug(target)
local p = getThingPosWithDebug(cid)
local
{251,
{253,
{252,
{254,
}
t = {
{x = p.x+1,
{x = p.x+2,
{x = p.x+1,
{x = p.x-1,
y
y
y
y
=
=
=
=
p.y-1,
p.y+1,
p.y+2,
p.y+1,
z
z
z
z
=
=
=
=
p.z}},
p.z}},
p.z}},
p.z}},
t = {
{x = p.x+1,
{x = p.x+2,
{x = p.x+1,
{x = p.x-1,
y
y
y
y
=
=
=
=
p.y-1,
p.y+1,
p.y+2,
p.y+1,
z
z
z
z
=
=
=
=
p.z}},
p.z}},
p.z}},
p.z}},
--ver essa
--alterado v1.8
[0]
[1]
[2]
[3]
}
=
=
=
=
{90,
{90,
{90,
{90,
{x=p.x+1,
{x=p.x+2,
{x=p.x+1,
{x=p.x-1,
y=p.y-1,
y=p.y+1,
y=p.y+2,
y=p.y+1,
z=p.z}},
z=p.z}},
z=p.z}},
z=p.z}},
PASSIVAS /////////////////////////--
direita) --direita
doAreaCombatHealth(cid, null, getThingPos(cid), scythe4, 0, 0, outfitt.
esquerda) --esquerda
end
end
local function sendEff(cid)
if isCreature(cid) then
doAreaCombatHealth(cid, null, getThingPos(cid),
cima) --cima
doAreaCombatHealth(cid, null, getThingPos(cid),
baixo) --baixo
doAreaCombatHealth(cid, null, getThingPos(cid),
direita) --direita
--alterado v1.6
doAreaCombatHealth(cid, null, getThingPos(cid),
esquerda) --esquerda
end
end
scythe1, 0, 0, outfitt.
scythe2, 0, 0, outfitt.
scythe3, 0, 0, outfitt.
scythe4, 0, 0, outfitt.
if random == 1 then
local ret = {}
ret.id = 0
ret.cd = math.random(2, 3)
ret.check = 0
ret.first = true
ret.cond = "Sleep"
--alterado v1.6
--proteao
--send eff
"Blue Tower 3", "Red Tower 1", "Red Tower 2", "Red Tower 3", "Entei", "Moltres",
"Zapdos", "Articuno", "Celebi"}
if ehMonstro(c) and not isInArray(legendarios, getCreatureNa
me(c))then
doTeleportThing(c, getClosestFreeTile(cid, getThingPos(c
id)))
doMoveDano2(cid, c, NORMALDAMAGE, 0, 0, ret, spell)
elseif isSummon(c) then
local master = getCreatureMaster(c)
if isSummon(cid) then
if getPlayerStorageValue(master, 52480) >= 1 and get
PlayerStorageValue(master, 52481) >= 0 then
local masterCid = getCreatureMaster(cid)
if isDuelingAgainst(masterCid, master) then
doTeleportThing(c, getClosestFreeTile(cid, g
etThingPos(cid)))
doMoveDano2(cid, c, NORMALDAMAGE, 0, 0, ret,
spell)
end
end
else
doTeleportThing(c, getClosestFreeTile(cid, getThingP
os(cid)))
doMoveDano2(cid, c, NORMALDAMAGE, 0, 0, ret, spell)
end
end
end
end
end
end
function doSendTornado(cid, pos)
if not isCreature(cid) then return true end
if isWithFear(cid) and getPlayerStorageValue(cid, 3644587) >= 1 then ret
urn true end
if isSleeping(cid) and getPlayerStorageValue(cid, 3644587) >= 1 then ret
urn true end
doSendDistanceShoot(getThingPos(cid), pos, config.effects.pullEffects.di
stance)
doSendMagicEffect(pos, config.effects.pullEffects.effect)
end
function vortexDamage(cid)
if not isCreature(cid) then
return true
elseif time - os.time() < 0 then
return true
end
doDanoWithProtect(cid, FIREDAMAGE, getThingPos(cid), damageArea, min, ma
x, config.effects.damageEffect)
addEvent(vortexDamage, config.time[2], cid)
end
for b = 1, 3 do
for a = 1, 20 do
local pos = {x = getThingPos(cid).x + math.random(-4, 4), y = getThi
ngPos(cid).y + math.random(-3, 3), z = getThingPos(cid).z}
addEvent(doSendTornado, a * 75, cid, pos)
end
end
Pull(cid, ret)
vortexDamage(cid)
doCreatureSetNoMove(cid, true)
doChangeSpeed(cid, -getCreatureSpeed(cid))
setPlayerStorageValue(cid, config.storage, time)
addEvent(function()
if isCreature(cid) then
doCreatureSetNoMove(cid, false)
doRegainSpeed(cid)
end
end, config.time[1] * 1000)
elseif spell == "Mirror Coat" then
if spell == "Magic Coat" then
eff = 11
else
eff = 135
end
doSendMagicEffect(getThingPosWithDebug(cid), eff)
setPlayerStorageValue(cid, 21099, 1)
setPlayerStorageValue(cid, 98654, 1)
elseif spell == "Zen Mind" then
function doCure(cid)
if not isCreature(cid) then return true end
if isSummon(cid) then
doCureBallStatus(getPlayerSlotItem(getCreatureMaster(cid), 8).uid, "all")
end
doCureStatus(cid, "all")
end
addEvent(doCure, 1000, cid)
setPlayerStorageValue(cid, 98654, 1)
elseif spell == "Groundshock" then
doAreaCombatHealth(cid, NORMALDAMAGE, getThingPosWithDebug(cid), scyther5
, -min, -max, 255)
local sps = getThingPosWithDebug(cid)
sps.x = sps.x+1
sps.y = sps.y+1
doSendMagicEffect(sps, 127)
elseif spell == "Demon Kicker" then
--[outfit] = outfit chutando,
local hitmonlees = {
["Hitmonlee"] = 652,
--hitmonlee
["Shiny Hitmonlee"] = 878, --shiny hitmonlee
}
local nome = getCreatureName(cid)
--alterado v1.6
--alterado v1.7
if (not hitmonlees[nome] and isCreature(target)) or (isCreature(target) and math
.random(1, 100) <= passivesChances["Demon Kicker"][nome]) then
master = getCreatureMaster(cid)
item = getPlayerSlotItem(master, 8)
life, maxLife = getCreatureHealth(cid), getCreatureMaxHealth(cid)
name = getItemAttribute(item.uid, "poke")
pos = getThingPosWithDebug(cid)
time = 5
return true
end
if not isSummon(cid) then
--alterado v1.7
doCreatureSay(cid, string.upper(spell).."!", TALKTYPE_MONSTER)
end
if ehMonstro(cid) or not hitmonchans[name] then
hands = 0
else
hands = getItemAttribute(getPlayerSlotItem(getCreatureMaster(cid), 8
).uid, "hands")
end
if not hitmonchans[name] then
tabela = hitmonchans[getCreatureName(target)][hands]
else
tabela = hitmonchans[name][hands]
end
doSendDistanceShoot(getThingPosWithDebug(cid), getThingPosWithDebug(tar
get), 39)
doTargetCombatHealth(cid, target, tabela.type, -min, -max, 255)
local alvo = getThingPosWithDebug(target)
alvo.x = alvo.x + 1
---alterado v1.7
if hands == 4 then
doSendMagicEffect(alvo, tabela.eff)
else
doSendMagicEffect(getThingPosWithDebug(target), tabela.eff)
end
if hands == 3 then
local ret = {}
ret.id = target
ret.cd = 9
--alterado v1.6
ret.eff = 43
ret.check = getPlayerStorageValue(target, conds["Slow"])
ret.first = true
ret.cond = "Slow"
doMoveDano2(cid, target, FIGHTINGDAMAGE, 0, 0, ret, spell)
setPlayerStorageValue(cid, 98654, 1)
end
end
end
return true
end