Some Spell Handlers

Share files with other Dawn of Light users

Moderator: Support Team

Some Spell Handlers

Postby Dinberg » Fri Dec 17, 2010 7:23 pm

Figured it was time I shared some scripts I've got ;)

ChargingDD.cs: This spell handler is a damage spell that, once cast, continually increases in power up to a maximum with every pulse.

Damage - base damage value.
Value - multiplier for every pulse, eg 1.4 increases damage 40% every pulse.
Frequency - The time interval between pulses of the spell.
LifeDrainReturn - the maximum percentage the spell can increase to - for example 200 = 200% cap.
PulsePower functions as per expect.


MirrorImage.cs: This spell handler works against npcs, and acts as a confusing spell. Upon casting the spell it will spawn various mirror images of the caster in a circle a distance from the caster, and realm 0 npcs currently attacking the caster have a chance of switching targets for the duration of the spell.

Number of mirror images spawned = spell.value,
Chance to not be attacked = spell.value/(spell.value+1) (ie for 4 mirror images, you have a 4/5 chance of not being attacked.)


ChainLightning.cs: This spell handler works exactly as you'd expect, richote'ing between enemies in line of sight to its current target. It passes around between enemies, selecting a random hostile target in Spell.radius, until either:

-The target it draws is itself (so this is more effective against large groups)
-It exceeds Spell.value rebounds.
-It is resisted.

With each rebound, damage is multiplied by lifedrainreturn%, so a LDR of 90 will reduce damage by 10% each time. Note that even though the spell effect is of a bolt the damage is entirely magic.
Use a bolt spell effect for best results!

I'll post a decent sql when i get one.
Attachments
ChainLightning.cs
See forum post
(11.38 KiB) Downloaded 341 times
ChargingDD.cs
See forum post
(16.79 KiB) Downloaded 316 times
MirrorImage.cs
See forum post
(12.46 KiB) Downloaded 341 times
The Marvelous Contraption begins to stir...
User avatar
Dinberg
Inactive Staff Member
 
Posts: 4695
Joined: Sat Mar 10, 2007 9:47 am
Yahoo Messenger: dinberg_darktouch
Location: Jordheim

Re: Some Spell Handlers

Postby Graveen » Fri Dec 17, 2010 8:19 pm

Thank you Dinny ! i particulary appreciate chainligthning. I guess theses spells would fit perfectly for Storm's bosses.
Image
* pm me to contribute in Dawn of Light: code, database *
User avatar
Graveen
Project Leader
 
Posts: 12660
Joined: Fri Oct 19, 2007 9:22 pm
Location: France

Re: Some Spell Handlers

Postby baradien » Fri Dec 17, 2010 9:14 pm


MirrorImage.cs: This spell handler works against npcs, and acts as a confusing spell. Upon casting the spell it will spawn various mirror images of the caster in a circle a distance from the caster, and realm 0 npcs currently attacking the caster have a chance of switching targets for the duration of the spell.

Number of mirror images spawned = spell.value,
Chance to not be attacked = spell.value/(spell.value+1) (ie for 4 mirror images, you have a 4/5 chance of not being attacked.)
that reminds me of warcraft 3 lol :)
would be good for baal then :) in act V
baradien
Server Team
 
Posts: 950
Joined: Wed Jan 23, 2008 3:17 pm
Location: Belguim

Re: Some Spell Handlers

Postby Dinberg » Sat Dec 18, 2010 2:44 pm

It only works against npc attackers though, but I could write one for an npc boss if need be.
The Marvelous Contraption begins to stir...
User avatar
Dinberg
Inactive Staff Member
 
Posts: 4695
Joined: Sat Mar 10, 2007 9:47 am
Yahoo Messenger: dinberg_darktouch
Location: Jordheim


Return to “%s” User Files

Who is online

Users browsing this forum: No registered users and 1 guest