This is a read only copy without any forum functionality of the old Modcraft forum.
If there is anything that you would like to have removed, message me on Discord via Kaev#5208.
Big thanks to Alastor for making this copy!

Menu

Author Topic: [WotLk] Something seriously wrong with my spell  (Read 3058 times)

Kobiesan

  • Registred Member
  • Wiki Incarnate
  • *****
  • Posts: 161
    • View Profile
Re: [WotLk] Something seriously wrong with my spell
« Reply #15 on: April 15, 2016, 03:28:35 pm »
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?

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.
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

Kobiesan

  • Registred Member
  • Wiki Incarnate
  • *****
  • Posts: 161
    • View Profile
Re: [WotLk] Something seriously wrong with my spell
« Reply #16 on: April 16, 2016, 01:16:10 am »
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: [Select]
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)
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

Kobiesan

  • Registred Member
  • Wiki Incarnate
  • *****
  • Posts: 161
    • View Profile
Re: [WotLk] Something seriously wrong with my spell
« Reply #17 on: April 16, 2016, 08:08:34 pm »
Bump
« Last Edit: January 01, 1970, 01:00:00 am by Admin »