Gostei da idéia!! REP+
- Fórum
- OTServ
- Recursos
- Scripting
- Globalevents e Spells
- [Weapon] Enigma Rod
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


info
Grupo: Barão
Registrado: 07/03/08
Posts: 231
Reputação: +17
Gê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:
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) endObs: Sim, não declarei as posições pelo local pos1, local pos2, etc. Prefiro colocar todas desse modo arcaico.
REP+ ?
Editado Outubro 19 por zani123