Forum > Serverside Modding

[WotLk] Something seriously wrong with my spell

(1/4) > >>

Kobiesan:
I'm trying to make a spell that deals 33 damage to target enemy and also heals nearby allies for 46. Sounds simple right? Well for some reason it's not.

I created a spell that has a 2yd range and when used does a a damaging effect (2) of value 33 to the target. This part works fine.

I then added a healing effect (10) of value 46 with an implicit target value of 20 and radius of 13 so as to heal nearby allies.

However, for some reason this doesn't do the intended effect AT ALL. What happens is the spell does the damage but CANNOT reduce the target below 1 HP for some reason (i tried taking the healing effect off and it was able to kill the target). ALSO, after using the spell on a target and then using a different spell on them, it will HEAL the enemy???

I tried using holy nova as a reference but as it turns out Holy Nova uses two separate spells (15237 and 23455) to accomplish the effect of an AoE damage and AoE heal and I can't figure out how the two spells relate to each other since neither trigger the other.

This is seriously perplexing and I feel like there is absolutely no reason my spell shouldn't work.

bizzlesnaff:
Honestly I've no idea how to script spells, but I think nobody can help u without the script you worked out..

Amaroth:
world.spell_linked_spell.db
Wht about this table (and in general spell_*.db tables in world DB)? It might be helpful. I would recommend using Holy Nova as an example, and make 2 separated spells, where one triggers another one.

Kobiesan:

--- Quote from: "Amaroth" ---world.spell_linked_spell.db
Wht about this table (and in general spell_*.db tables in world DB)? It might be helpful. I would recommend using Holy Nova as an example, and make 2 separated spells, where one triggers another one.
--- End quote ---

I don't have Spell_linked_spell db. I looked through the other spell tables in my database relating to holy nova's ID and the only thing I found was a coefficient override on the ID's used for Holy Nova's heal and damage spells.

I tried making the spell trigger a second spell (Spell effect 64) that heals nearby allies but that didn't fix it. The spell still has the same effect (can't kill the enemy and heals them when they are hit with another spell). However, the healing spell works fine on it's own when used.





--- Quote from: "bizzlesnaff" ---Honestly I've no idea how to script spells, but I think nobody can help u without the script you worked out..
--- End quote ---

This spell isn't scripted it's just made in the dbc.

Kobiesan:
I've noticed that if I give my spells the same name as a spell that already exists it will sometimes transfer the properties of that spell to my new spell. Had a simple spell named ravage that did 111 damage and there was another spell named Ravage that required you be behind the target. That property somehow transferred over to my spell named Ravage and required you to be behind someone to use it. But that still hasn't fixed the spell I am talking about in this post. No other spell shares its name.

Navigation

[0] Message Index

[#] Next page

Go to full version