[Weapon] Enigma Rod

zani123
em Globalevents e Spells

zani123

http://HeroesOT.com
avatar
Barão
Barão

INFOS

Grupo: BarãoRegistrado: 07/03/08Posts: 231Gênero: Masculino

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+ ? ;)

 

Surpreenda-se no melhor server. Crie sua conta e ganhe dois dias VIP e Triple EXP até os 15 resets. Junte sua team, crie uma guild e venha para a war!

 

http://www.TheHeroesOfTime.com

thumbnail_Final - Copia - Copia.jpg

 

logo thot 200 - Copia.png

pedreroxx

avatar
Campones
Campones

INFOS

Grupo: CamponesRegistrado: 03/01/09Posts: 50Char no Tibia: cleber de pira

Gostei da idéia!! REP+