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: [QUESTION]  mangos core - why triggered spells not working ?  (Read 1720 times)

stan84

  • Registred Member
  • Wiki Incarnate
  • *****
  • Posts: 184
    • View Profile
Hi
i have problem with some spells which id like to add in my vanilla project.
for example i need add spell #30835, which summons an infernal at prince malchezar in karazhan.
the sd2 explanation says that SPELL_INFERNAL_RELAY_SUMMON = 30835,                    // triggers 30836, which summons an infernal. So i added to spell.dbc both spells 30835 and 30836, also core spelleffect.cpp has those lines:

  case 30835: // Infernal Relay
                {
                    if (!unitTarget)
                        return;

                    unitTarget->CastSpell(unitTarget, 30836, true, NULL, NULL, m_caster->GetObjectGuid());
                    break;

but in prince malhezzar fight infernals are not spawning. After casting those spells by command .cast 30835 - nothing happen, but .cast 30836 spawns infernals ok. Does anybody have idea whats is going on ?

 logs gives no errors with that, core and sd2 compiles smoothly...

same situation is with shade of aran's cirular blizzard.

need those spells worked to my vanilla karazhan raid, which is almost done.

thanks for help Stan
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

deep6ixed

  • Contributors
  • Wiki Incarnate
  • *****
  • Posts: 189
    • View Profile
Re: [QUESTION]  mangos core - why triggered spells not worki
« Reply #1 on: July 02, 2013, 10:31:25 pm »
I haven't used mangos in a long time, but could you use ACID to get similar results, and for a spell to spawn the DBC data should point to the creature template entry.  A good place to start would be to head to the trinitycore forum download section and grab the software called SpellWork.  It parses the DBC for spells and eleven allows you to compare spells to see the difference.
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

stan84

  • Registred Member
  • Wiki Incarnate
  • *****
  • Posts: 184
    • View Profile
Re: [QUESTION]  mangos core - why triggered spells not worki
« Reply #2 on: July 03, 2013, 06:24:22 am »
i will try that way deep6sixed. Thank for reply

As u can see on the screenshoot after 1st spell ( those fireballs) 2nd one not casting ( infernals not appear)
http://imageshack.us/a/img594/6593/w3st.jpg
« Last Edit: January 01, 1970, 01:00:00 am by Admin »