Damage Shield Messages - Discussion
I've been looking at getting the client to display the correct messages when a mob/player with a DS on is hit.
I know how to get the messages displayed. Just send an OP_Damage with a type of: Code:
0xF7 (You are tormented - produced by banshee aura) I could always add a new table, damageshieldtype, with a spellid and type column. If there is no entry for a spell, things would behave as they do now, else an OP_Damage would be sent with the type from this new table. |
Resist type sir. Cold = 0xF7, Fire = 0xF8, Magic = 0xF9.
|
I think one problem we might run into is that DS are cumulative overall, and only the last spell is used for the effect. I think what might need to happen is to create a counter for each resist (if that would work for all cases), then we shouldn't really even need to look at the spells again to get the resist. I'm not sure if it would be better to just change DamageShield in the Mob class to a DamageShield_Struct, or just add each of them.
Pseudo code: iterating through spells & whatnot if resist == magic, + magicDS if resist == poison, + poisonDS etc... |
Thanks!
I downloaded the data from Lucy and extracted all the spells with a type 59 (DS) component and sorted by 'Resist'. There are 134 spells which are Unresistable which from their descriptions seem to be mixture of fire shields, bramble shields, etc, so the resist type doesn't seem to be a definitive way to determine which message to put out :( |
You'll just have to pick a shield to send out, either first one in or last one out.
Could you throw some of the non-dispel ones at me, ids of one of each type would be great, the classes seem to all use traditional resists for the most part. |
Here is a random selection of the DS spells Lucy lists as 'Unresistable'. I have only included those that returned a result from #findspell to avoid spells from later expansions:
Spirit of the wood http://lucy.allakhazam.com/spellraw....77&source=Live Malleable Ice http://lucy.allakhazam.com/spellraw.html?id=6558 Barbed Bones http://lucy.allakhazam.com/spellraw.html?id=932 Flickering Fire http://lucy.allakhazam.com/spellraw.html?id=5705 Kindle http://lucy.allakhazam.com/spell.html?id=4011 Aura of Vinitras http://lucy.allakhazam.com/spellraw.html?id=2926 |
I'm guessing that if spell resist isn't unresistible then we know how that works. There's probably a special message or way they do it for unresistible trying to see if there's any other pattern.
|
To be honest I don't see much of a pattern past the resist type.
Perhaps your idea a simple table: int32 spellid int8 type Could have defaults based on element type and if the table entry exists it overwrites. Default type for an unresistible with no table entry thorns I guess. |
All times are GMT -4. The time now is 11:29 AM. |
Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.