[C++] holy shock fixed menu

User Tag List

Results 1 to 5 of 5
  1. #1
    rocha999's Avatar Member
    Reputation
    2
    Join Date
    May 2008
    Posts
    1
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    [C++] holy shock fixed

    Hi guys this is my first post... just show u how i fixed, holy shock in my repack..

    sorry im a nab postin in here..

    #include "Setup.h"
    #include "StdAfx.h"

    bool HolyShock(uint32 i, Spell * pSpell) //Fixed by Rocha999
    {
    if( !pSpell->p_caster || !pSpell->p_caster->isAlive() ||
    !pSpell->GetUnitTarget() || !pSpell->GetUnitTarget()->isAlive() )
    return true;

    Unit *target = pSpell->GetUnitTarget();
    Player *player = pSpell->p_caster;

    uint32 hostileSpell[] = {0, 0};
    uint32 friendlySpell[] = {0, 0};

    switch( pSpell->GetProto()->Id )
    {
    case 20473:
    hostileSpell[0] = 25912;
    friendlySpell[0] =25914;
    break;
    case 20929:
    hostileSpell[0] = 25911;
    friendlySpell[0] = 25913;
    break;
    case 20930:
    hostileSpell[0] = 25902;
    friendlySpell[0] =25903;
    break;
    case 27174:
    hostileSpell[0] = 27176;
    friendlySpell[0] =27175;
    break;
    case 33072:
    hostileSpell[0] = 33073;
    friendlySpell[0] = 33074;
    break;
    case 48824:
    hostileSpell[0] = 48822;
    friendlySpell[0] = 48820;
    break;
    case 48825:
    hostileSpell[0] = 48823;
    friendlySpell[0] = 48821;
    break;
    }

    if( isAttackable(player, target) )
    {
    player->CastSpell(target, hostileSpell[0], true);
    player->CastSpell(target, hostileSpell[1], false);
    }
    else
    {
    player->CastSpell(target, friendlySpell[0], true);
    player->CastSpell(target, friendlySpell[1], false);
    }
    return true;
    }


    void SetupPaladinSpells(ScriptMgr * mgr)
    {
    mgr->register_dummy_spell(20473, &HolyShock);// rank 1
    mgr->register_dummy_spell(20929, &HolyShock);// rank 2
    mgr->register_dummy_spell(20930, &HolyShock);// rank 3
    mgr->register_dummy_spell(27174, &HolyShock);// rank 4
    mgr->register_dummy_spell(33072, &HolyShock);// rank 5
    mgr->register_dummy_spell(48824, &HolyShock);// rank 6
    mgr->register_dummy_spell(48825, &HolyShock);// rank 7
    }

    just put it on \src\scripts\src\SpellHandlers\PaladinSpells.cpp
    Last edited by 2dgreengiant; 05-05-2010 at 09:52 AM.

    [C++] holy shock fixed
  2. #2
    Jackie Moon's Avatar Elite User
    Reputation
    407
    Join Date
    May 2008
    Posts
    923
    Thanks G/R
    0/0
    Trade Feedback
    1 (100%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by rocha999 View Post
    sorry im a nab postin in here..
    hahah nice 2d
    Check out my YouTube: SkeetzGaming

  3. #3
    2dgreengiant's Avatar ★ Elder ★


    Reputation
    1192
    Join Date
    Feb 2007
    Posts
    7,129
    Thanks G/R
    1/3
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by Jackie Moon View Post
    hahah nice 2d
    That was not me haha i just [code] his script :P
    If you need me you have my skype, if you don't have my skype then you don't need me.

  4. #4
    mag1212's Avatar Active Member
    Reputation
    55
    Join Date
    Aug 2009
    Posts
    352
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    pretty nice script +Rep

  5. #5
    kjankoski's Avatar Active Member
    Reputation
    30
    Join Date
    May 2009
    Posts
    110
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Maybe give credits to Aspire?

Similar Threads

  1. [Help] Holy Shock Macro question
    By Naravus in forum WoW UI, Macros and Talent Specs
    Replies: 5
    Last Post: 11-06-2011, 02:28 PM
  2. paladin holy shock
    By gerexis in forum WoW EMU Questions & Requests
    Replies: 1
    Last Post: 12-29-2009, 02:29 PM
  3. Last revs-Bugged holy shock -.-
    By dongel in forum WoW EMU Questions & Requests
    Replies: 1
    Last Post: 04-23-2009, 01:20 AM
  4. Paladin, Holy Shock.
    By Gr4Th1X in forum World of Warcraft Exploits
    Replies: 5
    Last Post: 04-13-2007, 01:47 PM
  5. World of Warcraft Bot WoWGlider 0.6.5 Cracked and Fixed
    By Matt in forum World of Warcraft Bots and Programs
    Replies: 7
    Last Post: 04-02-2006, 10:10 PM
All times are GMT -5. The time now is 12:02 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