This is not made by me or mmotop.org team !!!
Credits: PaikProductions
Here is my Shadowmourne fix:
1. The code (I inserted this in \src\game\SpellAuras.cpp under the comment //mods at aura apply or remove)
2. Update the DB (little bit hacky :tinysmile_tongue_tCode:switch(GetId()) { case 71903: if(caster->GetTypeId() == TYPEID_PLAYER && urand(1,5)== 1) //this is needed because I set the weapon in the db to cast this spell on every hit caster->CastSpell(caster, 71905, true); //replace the spell break; case 71905: if (apply) { if(GetStackAmount()== 1) caster->AddAura(72521, caster); //add aura 1 if(GetStackAmount() == 6) { caster->RemoveAura(72521); //remove aura 1 caster->CastSpell(caster, 72523, false); //add aura 2 } if(GetStackAmount() == 10) //final BOOM(Chaosbann) { caster->RemoveAura(72523); //remove aura 2 caster->RemoveAura(71905); //remove shards caster->CastSpell(caster, 71904, false); //Chaosban-aoe caster->CastSpell(caster, 73422, false); //Chaosban-buff } break; } if (!apply && aurApp->GetRemoveMode()!= AURA_REMOVE_BY_STACK) { caster->RemoveAura(72521); //remove aura 1 caster->RemoveAura(72523); //remove aura 2 } break; }
You have to set the spelltrigger for the spell 71903 at the item 49623 (Shadowmourne) to 2 (Chance on Hit)
A MySQL Script: (Pls check before execute)
See also:Code:DELETE FROM item_template WHERE entry=49623; INSERT INTO item_template VALUES(49623,2,1,-1,'Shadowmourne',65153,5,0,0,1,2523810,504762,17,260643,2147483647,284,80,0,0,0,0,0,0,0,1,1,0,4,4,223,7,198,32,114,44,114,0,0,0,0,0,0,0,0,0,0,0,0,0,0,954,1592,0,0,0,0,0,0,0,0,0,0,0,3700,0,0,71903,2,0,0,-1,0,-1,0,1,0,0,-1,0,-1,0,1,0,0,-1,0,-1,0,0,0,0,-1,0,-1,0,0,0,0,-1,0,-1,1,'',0,0,0,0,0,1,1,0,0,0,0,145,0,0,0,0,2,0,2,0,2,0,3312,0,-1,0,0,0,0,'',0,0,0,0,11403);
Issue tracker: [Only registered and activated users can see links. ]
Wowhead (item): [Only registered and activated users can see links. ]
Wowhead (item-spell): [Only registered and activated users can see links. ]
Wowhead (aura1): [Only registered and activated users can see links. ]
Wowhead (aura2): [Only registered and activated users can see links. ]
This is for trinity only!
Credits: DGamer of Trinitycore forum!



LinkBack URL
About LinkBacks




Reply With Quote


Bookmarks