dragonlorde
New Member
- Joined
- Jan 2, 2010
- Messages
- 14
- Reaction score
- 0
Name: Exorcium!
Author: Dragonlorde
Version: TFS 0.3.6 - 8.54
I take a spell done by me a time ago ...
It is an attempt at a spell that was not edited or copied from another person:
Script - exorcium.lua
Tag - spells.xml
Hope you enjoy it!
Author: Dragonlorde
Version: TFS 0.3.6 - 8.54
I take a spell done by me a time ago ...
It is an attempt at a spell that was not edited or copied from another person:
Script - exorcium.lua
PHP:
function onCastSpell(cid, var)
function exorcium(dir)
min = -math.random(50,100) - getPlayerSkill(cid, magic) - getPlayerLevel(cid)
max = -math.random(100,200) - getPlayerSkill(cid, magic) - getPlayerLevel(cid)
doSendDistanceShoot(getCreaturePosition(cid), getPosByDir(getCreaturePosition(cid), dir), CONST_ANI_ENERGYBALL)
doSendMagicEffect(getPosByDir(getCreaturePosition(cid), dir), 30)
doAreaCombatHealth(cid, 2, getPosByDir(getCreaturePosition(cid), dir), AREA_SQUARE1X1 , min, max, 30)
end
local dirs = {6,0,7,1,5,2,4,3,6,0,7,1,5,2,4,3,6,0,7,1,5,2,4,3,6,0,7,1,5,2,4,3,6}
for i,v in pairs(dirs) do
addEvent(exorcium, 100*i, v)
end
return 1
end
Tag - spells.xml
PHP:
<instant name="Exorcium" words="exorcium" lvl="33" mana="160" exhaustion="2000" needlearn="0" event="script" value="exorcium.lua">
</instant>
Hope you enjoy it!
Last edited: