Forum > Serverside Modding
[WotLk] Something seriously wrong with my spell
<< < (4/4)
Kobiesan:
--- Quote from: "Amaroth" ---I've tryed to find some reasons for something like this but all of them are very unlikely since you have created a new spell and it worked before. The best would be if I could see your spell.dbc, although problem might not be there and may be somewhere in databases or in another DBCs. Spells might be disabled, may be assigned to skills you are not proficient with (or you are, but in such case they are filtered from General tab), spells might also be hidden... All kinds of things. But like I said, because they worked for you before, none of these above makes sense at all. Are you really sure that you have all data everywhere, up to date, deleted Cache and whatever else, that there's nowhere just some minor error? --- End quote ---
I copied the dbc from my ArcEmu dbc into my trinity dbc. Idk if that makes a difference.
I'll try deleting cache but I never needed to do that before.
Kobiesan:
I fixed the problem (I was using the wrong MPQ file).
I have this script now on Trinity's Eluna engine but it doesn't seem to work. I'm not familiar with Eluna and the methods and hooks are different so I'm not sure if this is right. I couldn't find any methods in Eluna similar to HasAuraWithMechanic so I'm not sure what else to use.
--- Code: ---function Tenderizer(event, player, spell, skipCheck) local Caster = Spell:GetCaster() if (spell:GetEntry() == 80914) then if (Spell:GetTarget():HasAuraWithMechanic(12)) then Caster:DealDamage(Spell:GetTarget(), 300, 0, 0, 80914) else Caster:DealDamage(Spell:GetTarget(), 150, 0, 0, 80914) end end end
RegisterPlayerEvent(5, Tenderizer) --- End code ---
Kobiesan:
Bump
Navigation
[0] Message Index
[*] Previous page
|