Qro Deichar Essa Spell Com Exausted Help?

gustavofire
em Lixeira Pública

gustavofire

SWEET CHILD O' MINE
avatar
Campones
Campones

INFOS

Grupo: CamponesRegistrado: 05/06/11Posts: 23Char no Tibia: Neptu

qro deichar essa spell com exausted help?

elseif pokemon.x.spell == "Agility" then

local pos = getThingPos(getCreatureTarget(cid))

local pos2 = getThingPos(getCreatureTarget(cid))

local pos3 = getThingPos(getCreatureSummons(cid)[1])

pos.x = pos.x + math.random(-1,1)

pos.y = pos.y + math.random(-1,1)

if hasSqm(pos) then

if getTileThingByPos(pos) and getTileThingByPos(pos).itemid >= 1 and not isInArray({919, 460, 4820, 4821, 4822, 4823, 4824, 4825}, getTileThingByPos(pos).itemid) and isWalkable(pos) then

pos = getClosestFreeTile(getCreatureTarget(cid), pos)

doSendMagicEffect(pos3, 211)

doTeleportThing(getCreatureSummons(cid)[1], pos, false)

doAreaCombatHealth(getCreatureSummons(cid)[1], element, getThingPos(getCreatureTarget(cid)), 0, -((num1)+(getPlayerLevel(cid)*(num3))), -((num2)+(getPlayerLevel(cid)*(num3))), 159)

else

local newpos = getClosestFreeTile(getCreatureTarget(cid), pos)

doSendMagicEffect(pos3, 211)

doTeleportThing(getCreatureSummons(cid)[1], newpos, false)

doAreaCombatHealth(getCreatureSummons(cid)[1], element, getThingPos(getCreatureTarget(cid)), 0, -((num1)+(getPlayerLevel(cid)*(num3))), -((num2)+(getPlayerLevel(cid)*(num3))), 159)

end

else

doSendMagicEffect(pos3, 211)

doTeleportThing(getCreatureSummons(cid)[1], pos3, false)

doAreaCombatHealth(getCreatureSummons(cid)[1], element, getThingPos(getCreatureTarget(cid)), 0, -((num1)+(getPlayerLevel(cid)*(num3))), -((num2)+(getPlayerLevel(cid)*(num3))), 159)

end

doCreatureSay(getCreatureSummons(cid)[1], ""..string.upper(c[getCreatureOutfit(getCreatureSummons(cid)[1]).lookType].x.spell).."!", TALKTYPE_MONSTER)

doCreatureSay(cid, ""..getCreatureName(getCreatureSummons(cid)[1])..", "..c[getCreatureOutfit(getCreatureSummons(cid)[1]).lookType].x.spell.."!", TALKTYPE_SAY)

naruto1444864535cpia.png



Se ja tentou me matar e meu amigo ou meu inimigo use!

 

ffsdfsd.png

 

 

Ajudei? REP+ imagescpia.png

PsyMcKenzie

Grounder
avatar
Marquês
Marquês

INFOS

Grupo: MarquêsRegistrado: 18/05/11Posts: 1106Gênero: Masculino

Ai Vai

 

 

elseif pokemon.x.spell == "Agility" then

local pos = getThingPos(getCreatureTarget(cid))

local pos2 = getThingPos(getCreatureTarget(cid))

local pos3 = getThingPos(getCreatureSummons(cid)[1])

pos.x = pos.x + math.random(-1,1)

pos.y = pos.y + math.random(-1,1)

if hasSqm(pos) then

if getTileThingByPos(pos) and getTileThingByPos(pos).itemid >= 1 and not isInArray({919, 460, 4820, 4821, 4822, 4823, 4824, 4825}, getTileThingByPos(pos).itemid) and isWalkable(pos) then

pos = getClosestFreeTile(getCreatureTarget(cid), pos)

doSendMagicEffect(pos3, 211)

doTeleportThing(getCreatureSummons(cid)[1], pos, false)

doAreaCombatHealth(getCreatureSummons(cid)[1], element, getThingPos(getCreatureTarget(cid)), 0, -((num1)+(getPlayerLevel(cid)*(num3))), -((num2)+(getPlayerLevel(cid)*(num3))), 159)

else

local newpos = getClosestFreeTile(getCreatureTarget(cid), pos)

doSendMagicEffect(pos3, 211)

doTeleportThing(getCreatureSummons(cid)[1], newpos, false)

doAreaCombatHealth(getCreatureSummons(cid)[1], element, getThingPos(getCreatureTarget(cid)), 0, -((num1)+(getPlayerLevel(cid)*(num3))), -((num2)+(getPlayerLevel(cid)*(num3))), 159)

end

else

doSendMagicEffect(pos3, 211)

doTeleportThing(getCreatureSummons(cid)[1], pos3, false)

doAreaCombatHealth(getCreatureSummons(cid)[1], element, getThingPos(getCreatureTarget(cid)), 0, -((num1)+(getPlayerLevel(cid)*(num3))), -((num2)+(getPlayerLevel(cid)*(num3))), 159)

end

doCreatureSay(getCreatureSummons(cid)[1], ""..string.upper(c[getCreatureOutfit(getCreatureSummons(cid)[1]).lookType].x.spell).."!", TALKTYPE_MONSTER)

doCreatureSay(cid, ""..getCreatureName(getCreatureSummons(cid)[1])..", "..c[getCreatureOutfit(getCreatureSummons(cid)[1]).lookType].x.spell.."!", TALKTYPE_SAY)

RETURN TRUE

end

 

 

 

ajudei ??

Rep+

Atenciosamente,

PsyMcKenzie.

 

 

Meus Trabalhos.