+ Reply to Thread
Results 1 to 2 of 2

Thread: [C++] Shadowmourne effect fix for Ascent Based Emu's

  1. #1
    MMOpro Owner Jerry has a reputation beyond repute Jerry has a reputation beyond repute Jerry has a reputation beyond repute Jerry has a reputation beyond repute Jerry has a reputation beyond repute Jerry has a reputation beyond repute Jerry has a reputation beyond repute Jerry has a reputation beyond repute Jerry has a reputation beyond repute Jerry has a reputation beyond repute Jerry has a reputation beyond repute Jerry's Avatar
    Join Date
    Mar 2009
    Location
    Serbia
    Posts
    1,302
    Blog Entries
    2
    Thanks
    18
    Thanked 32 Times in 27 Posts
    Rep Power
    10

    [C++] Shadowmourne effect fix for Ascent Based Emu's

    This is not made by me, im only sharing it !!!

    Credits: Algorithm


    This is a Shadowmourne Effect Fix

    [Only registered and activated users can see links. ]

    /src/redrum-world/SpellFixes.cpp (revision 12)

    Code:
    +			case 71903: // ShadowMourne Effect
    +				{
    +					sp->Effect[0] = SPELL_EFFECT_APPLY_AURA;
    +					sp->EffectApplyAuraName[0] = SPELL_AURA_DUMMY;
    +					sp->procFlags = PROC_ON_MELEE_ATTACK | PROC_ON_PHYSICAL_ATTACK | PROC_ON_CRIT_ATTACK;
    +					sp->procChance = 20;
    +					sp->Effect[1] = SPELL_EFFECT_APPLY_AURA;
    +					sp->EffectApplyAuraName[1] = SPELL_AURA_PROC_TRIGGER_SPELL;
    +					sp->EffectTriggerSpell[1] = 71905;
    +				}break;
    +
    +			case 71905:
    +				{
    +					sp->Effect[1] = SPELL_EFFECT_APPLY_AURA;
    +					sp->EffectApplyAuraName[1] = SPELL_AURA_DUMMY;
    +				}break;
    /src/redrum-world/SpellAuras.cpp (revision 12)

    Code:
    +	case 71903: // SM-Effect
    +		{
    +			if(GetCaster()->IsPlayer())
    +			{
    +				if(!apply)
    +				{
    +					TO_PLAYER(GetCaster())->RemoveAura(71905);
    +					TO_PLAYER(GetCaster())->RemoveAura(72521);
    +					TO_PLAYER(GetCaster())->RemoveAura(72523);
    +				}
    +			}
    +		}break;
    +
    +	case 71905: // SM-Shards
    +		{
    +			if(GetCaster()->IsPlayer())
    +			{
    +				Player* plr = TO_PLAYER(GetCaster());
    +				if(apply)
    +				{
    +					SetDuration(60000); // Stack 
    +					if(stackSize >= 1 && stackSize <= 5)
    +					{
    +						plr->RemoveAura(72523);
    +						if(!plr->HasAura(72521))
    +							plr->CastSpell(plr, 72521, false);
    +					}
    +					if(stackSize >= 6 && stackSize <= 9)
    +					{
    +						plr->RemoveAura(72521);
    +						if(!plr->HasAura(72523))
    +							plr->CastSpell(plr, 72523, false);						
    +					}
    +					if(stackSize >= 10)
    +					{
    +						SpellEntry* sp = dbcSpell.LookupEntry(71904);
    +						plr->CastSpellAoF(plr->GetPositionX(), plr->GetPositionY(), plr->GetPositionZ(), sp, false);
    +						plr->RemoveAura(72521);
    +						plr->RemoveAura(72523);
    +						plr->RemoveAura(71905);
    +					}
    +				}
    +				else
    +				{
    +					plr->RemoveAura(72521);
    +					plr->RemoveAura(72523);
    +				}
    +			}
    +		}break;
    +

  2. #2
    MMOpro SMOD Grandelf will become famous soon enough Grandelf will become famous soon enough Grandelf's Avatar
    Join Date
    Nov 2009
    Posts
    117
    Thanks
    1
    Thanked 4 Times in 3 Posts
    Rep Power
    2

    This is a nice one, could be very usefull.

+ Reply to Thread

Similar Threads

  1. WhyDB Rev-98 [ArcEmu Based] *Updated*
    By Lucian in forum Emulator Database Releases
    Replies: 16
    Last Post: 03-05-2010, 03:14 AM
  2. Squire-DB :: ArcEmu Based Database
    By Jerry in forum Emulator Database Releases
    Replies: 2
    Last Post: 03-03-2010, 09:09 PM
  3. Replies: 0
    Last Post: 10-24-2009, 04:04 PM
  4. Replies: 0
    Last Post: 09-18-2009, 11:58 PM
  5. Replies: 0
    Last Post: 08-26-2009, 07:09 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts