[C++] Lots of Spell Fixes menu

Shout-Out

User Tag List

Results 1 to 3 of 3
  1. #1
    Pedregon's Avatar Contributor
    Reputation
    221
    Join Date
    Aug 2007
    Posts
    705
    Thanks G/R
    0/2
    Trade Feedback
    1 (100%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    [C++] Lots of Spell Fixes

    I am a developer and creator of ApexEmu, and i'm here to share my work.

    I admit i'm not the best coder out there, but no flaming please.

    Add these to your "Hackfixes.cpp" if your using ArcEmu, or
    to your "Spellfixes.cpp" if your using Sandshroud or ApexEmu.

    Slowfall

    Code:
    +        //Slowfall
    +        sp = dbcSpell.LookupEntryForced( 130 );
    +        if( sp != NULL )
    +        {
    +            sp->EffectApplyAuraName[0] = SPELL_AURA_SAFE_FALL;
    +
    +        }
    Shattered Barrier

    Code:
    +        sp = dbcSpell.LookupEntryForced( 55080 );
    +        if( sp != NULL )
    +        {
    +             sp->MechanicsType = MECHANIC_FROZEN;
    +
    +        }
    Frostbite

    Code:
    +        //Frostbite
    +        sp = dbcSpell.LookupEntryForced( 12494 );
    +        if( sp != NULL )
    +        {
    +              sp->MechanicsType = MECHANIC_FROZEN;
    +
    +        }
    Summon Water Elemental

    Code:
    +        sp = dbcSpell.LookupEntryForced( 31687 );
    +        if( sp != NULL )
    +        {
    +              sp->Effect[0] = SPELL_EFFECT_SUMMON;
    +              sp->Effect[1] = 0;
    +              sp->EffectApplyAuraName[0] = sp->EffectApplyAuraName[1] = 0;
    +              sp->EffectMiscValueB[0] = 0;
    +              sp->EffectMiscValue[0] = 510;
    +        }
    Improved Drain Soul

    Code:
    +        //Improved Drain Soul
    +        sp = dbcSpell.LookupEntryForced(18213);
    +        sp = dbcSpell.LookupEntryForced(18372);
    +        if(sp != NULL)
    +        {
    +                    sp->procFlags    =    PROC_ON_TARGET_DIE | PROC_TARGET_SELF;
    +                    sp->procChance = 100;
    +                    sp->Effect[0]    =    SPELL_EFFECT_APPLY_AURA;
    +                    sp->EffectApplyAuraName[0] = SPELL_AURA_PROC_TRIGGER_SPELL;
    +                    sp->EffectTriggerSpell[0]    =    18371;
    +                    sp->EffectImplicitTargetA[0] = EFF_TARGET_SELF;
    +                    sp->Effect[2]    =    0;
    +        }
    Burning Determination

    Code:
    +       // Burning Determination
    +       sp = dbcSpell.LookupEntryForced( 54747 );
    +       sp = dbcSpell.LookupEntryForced( 54749 );
    +       if( sp != NULL )
    +           sp->procFlags = PROC_ON_SPELL_LAND_VICTIM;
    +
    Firestarter

    Code:
    +              //Firestarter
    +       sp = dbcSpell.LookupEntryForced( 44442 );
    +       sp = dbcSpell.LookupEntryForced( 44443 );
    +       if( sp != NULL )
    +            sp->procFlags = PROC_ON_CAST_SPELL;
    Damage Shield

    Code:
    +        // Damage Shield
    +        sp = dbcSpell.LookupEntryForced( 2246 );
    +        if( sp != NULL )
    +        {
    +            sp->procFlags = PROC_ON_MELEE_ATTACK_VICTIM; // I know this isn't correct, should proc  when attacked
    +        }
    Prowl

    Code:
    +
    +       // Prowl
    +       sp = dbcSpell.LookupEntryForced( 5215 );
    +       if( sp != NULL )
    +            sp->AttributesEx |= ATTRIBUTESEX_NOT_BREAK_STEALTH;
    Leecher - 08-30-2007 - Contributor - 07-23-2008
    Donator - 06-19-2009
    My website



    [C++] Lots of Spell Fixes
  2. #2
    Hex00010's Avatar Master Sergeant
    Reputation
    45
    Join Date
    Feb 2010
    Posts
    98
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    correct me if im wrong but im terrirbly terroribly super can barely even type ****ing high right now but sandshroud is based off ascent


    dont they use cases defined by spells and what not instead of sp = dbcSpell.LookupEntryForced



    this message took me litterly 10 minutes to type LOL

  3. #3
    Pedregon's Avatar Contributor
    Reputation
    221
    Join Date
    Aug 2007
    Posts
    705
    Thanks G/R
    0/2
    Trade Feedback
    1 (100%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    lol they do, I never used aspire/hearthstone/sandshroud so I forgot.

    It would be easy to edit them to sandshroud though,

    here's an example to update it for sandshroud use;


    Code:
    					//warlock - Improved Succubus
    		sp = dbcSpell.LookupEntryForced( 18754 );
    		if( sp != NULL )
    		{
    			sp->c_is_flags |= SPELL_FLAG_IS_CASTED_ON_PET_SUMMON_ON_PET ;
    			sp->EffectImplicitTargetA[0] = EFF_TARGET_PET;
    			sp->EffectImplicitTargetA[1] = EFF_TARGET_PET;
    		};

    change
    Code:
    sp = dbcSpell.LookupEntryForced( 30242 );
    to

    Code:
    case 30242:
    add a bracket below {

    add the spell effects, and end with a break

    }break;

    it should be like

    Code:
    						//warlock - Improved Succubus
    			case 18754:
    			case 18755: //other ranks?
    			case 18756: //other ranks?
    				{
    					sp->c_is_flags |= SPELL_FLAG_IS_CASTED_ON_PET_SUMMON_ON_PET;
    					sp->EffectImplicitTargetA[0] = EFF_TARGET_PET;
    					sp->EffectImplicitTargetA[1] = EFF_TARGET_PET;
    				}break;


    little off-topic, but should help Sandshroud users.
    Last edited by Pedregon; 05-01-2010 at 04:14 PM.
    Leecher - 08-30-2007 - Contributor - 07-23-2008
    Donator - 06-19-2009
    My website



Similar Threads

  1. [Guide] How to make your own Spell Fixes
    By Pedregon in forum WoW EMU Guides & Tutorials
    Replies: 17
    Last Post: 04-24-2011, 03:10 PM
  2. [Requesting] [How to spell fix on 4.0.6?]
    By marksman726lul in forum WoW EMU Questions & Requests
    Replies: 0
    Last Post: 04-01-2011, 10:08 PM
  3. [Release] [Database App] Clain's Spell Fixing tool
    By Clain in forum WoW EMU Programs
    Replies: 6
    Last Post: 07-09-2008, 01:54 AM
  4. [Request] Mage Blink Spell Fix
    By qazwsxedc in forum World of Warcraft Emulator Servers
    Replies: 19
    Last Post: 04-08-2008, 06:14 PM
  5. [GUIDE]Mortal Strike and Other Trainer Spells FIX
    By Rouslan in forum WoW EMU Guides & Tutorials
    Replies: 1
    Last Post: 03-03-2008, 05:55 AM
All times are GMT -5. The time now is 06:16 AM. Powered by vBulletin® Version 4.2.3
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Google Authenticator verification provided by Two-Factor Authentication (Free) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search