Modcraft - The community dedicated to quality WoW modding!

Wrath of the Lich King Modding => Serverside Modding => Topic started by: Degen on January 05, 2017, 06:11:19 am

Title: [TC 3.3.5] Custom damage school?
Post by: Degen on January 05, 2017, 06:11:19 am
So I've been trying without success to create a custom damage school and have it show up on a weapon in-game.

ex.
Code: [Select]
Holy Sword
100-200 Damage
+50-60 Holy damage
but let's say instead of Holy I wanted to add Water damage..

I found Resistances.dbc stores damage schools including Physical, but adding a new line and using the id in item_template.dmg_type1 doesn't seem to do the trick. I'm obviously missing something and I couldn't find a single related forum post.

If anyone has some ideas they would be appreciated.
Title: Re: [TC 3.3.5] Custom damage school?
Post by: Amaroth on January 05, 2017, 10:51:13 am
This sounds to me like a kind of thing which is quite likely hardcoded in a client. It would be great if it wouldn't be so, but I'm afraid it is. Still, I am not sure.

The catch is that when you have a damage school, you also need to have a resistance against it. And that resistance needs to actually work, which means, that there must be a system handling it, and that system can be hardcoded just to fixed enum. Btw, elemental damage on weapons seems to not work on TC2. It worked on Mangos back in the day I was trying it (well, about 6 years ago), but it just never worked for me on TC2. Not on items, creatures deal elemental damage on TC2 as they should. It works from visual point of view, but deals no damage or just physical damage, I can't remember now. Rather test if even blizzlike elemental damages work for you, or not.
Title: Re: [TC 3.3.5] Custom damage school?
Post by: Degen on January 06, 2017, 06:17:09 am
Hm, you're right. After a bit of testing I found that +elemental damage on weapons doesn't work. (Like the +Holy damage on Ashbringer) Wands deal elemental damage as intended, but I suspect that has to do with the Shoot spell. I'll experiment with core modifications and see what I can do.