Hoping to learn a bit of c++, I figured I’d try to bring back one of my favorite events (so already, I’m in over my head /emoticons/default_tongue.png ). Or parts of it, at least. Working so far are the linked auras that make you a zombie -
– Link zombie effects auras
DELETE FROM spell_linked_spell
WHERE spell_trigger
=43869 AND spell_effect
=-43869;
INSERT INTO spell_linked_spell
(spell_trigger
, spell_effect
, type
, comment
) VALUES
(8326, -43869, 1, ‘remove You’re a Zombie!’),
(43869, 43945, 2, ‘You’re a …! (Effects1)’),
(43869, 44305, 2, ‘You’re a …! (Effects2)’),
(43869, 48050, 2, ‘You’re a …! (Effects3)’),
(43869, 54059, 2, ‘You’re a …! (Effects4)’),
(43869, 54145, 2, ‘You’re a …! (Effects5)’),
(43869, 54147, 2, ‘You’re a …! (Effects6)’),
(43869, 54162, 2, ‘You’re a …! (Effects7)’);
The one part I’m having a bit of trouble with is the disease that leads to the transformation. On its own, the disease only has an absorb damage effect, and no duration. I tried adding a correction to spellMgr, using the dbc info for Living Bomb as reference -
case 43958: // You’re Infected!
spellInfo->DurationEntry = sSpellDurationStore.LookupEntry(1);
spellInfo->Effects[EFFECT_1].ApplyAuraName = SPELL_AURA_PERIODIC_TRIGGER_SPELL;
spellInfo->Effects[EFFECT_1].Amplitude = 10000;
spellInfo->Effects[EFFECT_1].TriggerSpell = 43869;
spellInfo->Effects[EFFECT_1].TargetA = SpellImplicitTargetInfo(TARGET_UNIT_TARGET_ENEMY);
spellInfo->Effects[EFFECT_1].TargetB = SpellImplicitTargetInfo();
break;
The duration at least works, but so far the trigger doesn’t. I’ve tried different target types, but the results are the same. I’m sure there’s something else I’m missing, but at the moment I don’t know what.
Apart from the trigger, the next biggest challenge would be changing the disease’s duration for each day of the event. Does anyone know of something similar that I could use as reference?