ZA
spell

[Weapon] Enigma Rod

Por zani123, 07 de out. de 2012 em Globalevents e Spells

enigma rod
enigma staff
theheroesoftime
enigmaise
the heroes of time
theheroesoftime.servegame.com
theheroesoftime.sytes.net
script
2
2.3k
zani123Z
07 de outubro de 2012 às 04:39

Eu usava esse script no meu servidor (The Heroes Of Time), mas tirei para terminar, e acabei nem terminando antes. Terminei hoje então, e irei postar aqui.

 

A ideia é: a rod tem um poder de luz capaz de alcançar a atmosfera e trazer consigo uma força dos céus, e ao atingir o inimigo, puxa almas em volta.

 

Screenshot: 29zotwj.jpg

 

 

Em: data/weapons/scripts/enigma rod.lua

 

local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_HOLYDAMAGE)
setCombatParam(combat, COMBAT_PARAM_EFFECT, 30)
setCombatFormula(combat, COMBAT_FORMULA_LEVELMAGIC, 0, -300000, 0, -320000)
arr = {
{0, 1, 0},
{1, 3, 1},
{0, 1, 0},
}
local area = createCombatArea(arr)
setCombatArea(combat, area)

function onUseWeapon(cid, var)
target = getCreatureTarget(cid)
doSendDistanceShoot(getThingPos(cid), {x = getThingPos(cid).x - 4, y = getThingPos(cid).y - 5, z = getThingPos(cid).z}, 30)
doSendDistanceShoot({x = getThingPos(target).x - 4, y = getThingPos(target).y - 5, z = getThingPos(target).z}, getThingPos(target), 4)
doSendDistanceShoot({x = getThingPos(target).x - 4, y = getThingPos(target).y - 5, z = getThingPos(target).z}, getThingPos(target), 30)
doSendMagicEffect(getThingPos(cid), 49)
doSendMagicEffect(getThingPos(target), 28)
doSendDistanceShoot({x = getThingPos(target).x - 1, y = getThingPos(target).y - 1, z = getThingPos(target).z}, getThingPos(target), 31)
doSendDistanceShoot({x = getThingPos(target).x - 1, y = getThingPos(target).y + 1, z = getThingPos(target).z}, getThingPos(target), 30)
doSendDistanceShoot({x = getThingPos(target).x + 1, y = getThingPos(target).y + 1, z = getThingPos(target).z}, getThingPos(target), 31)
doSendDistanceShoot({x = getThingPos(target).x + 1, y = getThingPos(target).y - 1, z = getThingPos(target).z}, getThingPos(target), 30)
if not isCreature(cid) then return true end
return doCombat(cid, combat, var)
end

Obs: Sim, não declarei as posições pelo local pos1, local pos2, etc. Prefiro colocar todas desse modo arcaico.

 

 

T
ag em weapons.xml:

<wand id="7409" level="500000" mana="15000" event="script" value="enigma rod.lua"> <!-- Enigma Rod -->
 <vocation name="Druid"/>
</wand>

 

REP+ ? ;)

Editado Outubro 19 por zani123

pedreroxxP
08 de outubro de 2012 às 03:27

Gostei da idéia!! REP+