[C++] Cataclysm Development Patches menu

Shout-Out

User Tag List

Results 1 to 1 of 1
  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++] Cataclysm Development Patches

    Here are some development patches, fixes, edits, etc for Cataclysm. Updatefields.h and the DBC's need to be worked on.

    Level3.cpp


    Code:
            char name[50];
            uint8 race = m_session->GetPlayer()->getRace();
     
    -       if( race == RACE_HUMAN || race == RACE_DWARF || race == RACE_NIGHTELF || race == RACE_GNOME || race == RACE_DRAENEI )
    +       if( race == RACE_HUMAN || race == RACE_DWARF || race == RACE_NIGHTELF || race == RACE_GNOME || race == RACE_DRAENEI || race == RACE_WORGEN)
            {
                    Entry = 1826;
                    strcpy( name, "|cffff6060A_HealBot" );
    @@ -2474,6 +2474,10 @@
            // Clean code says you need to work from highest combined bit to lowest. Second, you need to check if both flags exists.
             if(sess->HasFlag(ACCOUNT_FLAG_XPACK_02) && sess->HasFlag(ACCOUNT_FLAG_XPACK_01))
                client = "TBC and WotLK";
    +               else if(sess->HasFlag(ACCOUNT_FLAG_XPACK_03) && sess->HasFlag(ACCOUNT_FLAG_XPACK_02) && sess->HasFlag(ACCOUNT_FLAG_XPACK_01))
    +               client = "TBC, WotLK and Cataclysm";
    +               else if(sess->HasFlag(ACCOUNT_FLAG_XPACK_03))
    +               client = "Cataclysm";
             else if(sess->HasFlag(ACCOUNT_FLAG_XPACK_02))
                client = "Wrath of the Lich King";
             else if(sess->HasFlag(ACCOUNT_FLAG_XPACK_01))
    Level10.cpp

    Code:
                    case 8:
                            race = "troll";
                    break;
    +               case 9:
    +                       race = "goblin";
                    case 10:
                            race = "bloodelf";
                    break;
                    case 11:
                            race = "draenei";
                    break;
    +               case 22:
    +                       race = "worgen";
                    default:
                            return false;
                    break;
    @@ -215,13 +219,17 @@
                            raceid = 7;
                    else if(race == "troll")
                            raceid = 8;
    +               else if(race == "goblin")
    +                       raceid = 9;
                    else if(race == "bloodelf")
                            raceid = 10;
                    else if(race == "draenei")
                            raceid = 11;
    +               else if(race == "worgen")
    +                       raceid = 22;
                    else
                    {
    -                       RedSystemMessage(m_session, "Invalid start location! Valid locations are: human, dwarf, gnome, nightelf, draenei, orc, troll, tauren, undead, bloodelf");
    +                       RedSystemMessage(m_session, "Invalid start location! Valid locations are: human, dwarf, gnome, nightelf, draenei, worgen, orc, troll, tauren, undead, bloodelf, goblin");
                            return true;
                    }
            }
    Player.h

    Code:
            RACE_TAUREN = 6,
            RACE_GNOME = 7,
            RACE_TROLL = 8,
    +       RACE_GOBLIN = 9,
            RACE_BLOODELF = 10,
            RACE_DRAENEI = 11,
    +       RACE_WORGEN = 22,
     };
     
     enum ShapeshiftForm
    World.h

    Code:
            WMI_INSTANCE_ARENA                              = 0x4,
            WMI_INSTANCE_XPACK_01                   = 0x8, //The Burning Crusade expansion
            WMI_INSTANCE_XPACK_02                   = 0x10, //Wrath of the Lich King expansion
    +       WMI_INSTANCE_XPACK_03                   = 0x12, //Cataclysm expansion
            WMI_INSTANCE_HAS_NORMAL_10MEN   = 0x20,
            WMI_INSTANCE_HAS_NORMAL_25MEN   = 0x40,
            WMI_INSTANCE_HAS_HEROIC_10MEN   = 0x80,
    @@ -122,6 +123,7 @@
            //ACCOUNT_FLAG_XTEND_INFO  = 0x4,
            ACCOUNT_FLAG_XPACK_01   = 0x8,
            ACCOUNT_FLAG_XPACK_02   = 0x10,
    +       ACCOUNT_FLAG_XPACK_03   = 0x10,
     };
    Credits to P1raten for the work and me for giving some stuff proper values
    Leecher - 08-30-2007 - Contributor - 07-23-2008
    Donator - 06-19-2009
    My website



    [C++] Cataclysm Development Patches

Similar Threads

  1. New Cataclysm Alpha Patch 12164
    By Apol in forum World of Warcraft General
    Replies: 10
    Last Post: 11-25-2010, 04:01 AM
  2. [Patch] Cataclysm Custom patch
    By 92eatos in forum WoW EMU General Releases
    Replies: 44
    Last Post: 08-26-2010, 08:24 AM
  3. Cataclysm New Patch Info
    By thomasden2 in forum World of Warcraft General
    Replies: 17
    Last Post: 05-28-2010, 01:02 AM
  4. Cataclysm Beta Patch Notes (4.0.0.12012)
    By XFiFiX in forum World of Warcraft General
    Replies: 6
    Last Post: 05-19-2010, 10:14 PM
  5. Cataclysm Alpha Patch Notes :)
    By XFiFiX in forum World of Warcraft General
    Replies: 31
    Last Post: 05-05-2010, 11:12 AM
All times are GMT -5. The time now is 11:04 PM. 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