Custom spell help
I'd apprecate any assistance with a set of custom spells, point me in the right direction if you are able.
I'd like to create a set of custom spells that directly interact with each other. The first spell is a detrimental spell that will be used as an NPC aoe. It needs to be unresistable with no partial resists, but can be mitigated by a set percentage if the player has the correct resist buff. Example: - Boss casts custom aoe - player 1 does not have the associated custom resist buff and gets hit with unresistable 1000 damage - player 2 currently has the associated custom resist buff and 90% of the damage is mitgated, player gets hit with 100 damage. Thoughts? |
The custom spell is the easy part really, you just have to write the encounter based on if the client has X buff or not they receive Y damage. This is just an example and definitely is not a final version to say the least, I'm just trying to show you how to do it.
Code:
sub EVENT_SPAWN { |
Thanks, this was exactly what was looking for. So much to learn.
I was able to make some modifications to your example and get my stuff working as intended. |
I like kingly's way, but I always use two different spells for X and Y.
X has certain item/buff and Y not having. I |
All times are GMT -4. The time now is 07:18 PM. |
Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.