[Antrix] Flying Mounts in Azeroth - I know I'm going to get flamed for this. = /

Results 1 to 1 of 1
  1. #1
    Newbie mazingerz9 is offline
    MemberRank
    Jun 2007 Join Date
    8Posts

    [Antrix] Flying Mounts in Azeroth - I know I'm going to get flamed for this. = /

    Before I begin, I remember someone saying Emulators like Antrix and Mangos
    was made so that we can experiment the game and change it to our liking. If so...


    [UPDATE]

    Macro:
    I made a few errors w/o checking the macro.
    After editing the files I can just use
    .cast 37015
    to fly around Azeroth but the Mount item itself doesn't work. Since the spell works there's only one conclusion -> I just need help on where in the source should I edit to remove the restriction on flying mounts.



    I'm almost sure that I might get in trouble for asking this but...
    does anyone know what to edit in the source files to enable flying mounts around Azeroth?

    I know you can fly around Azeroth if you're a gm by putting this macro:

    .mount 20344
    .cheat fly
    .cast spell 37015

    That's for Swift Nether Drake. But I want something for everyone. I want to edit the source to allow flying by simply clicking on your mount item.

    I found this section in Unit.cpp

    void Unit::AddAura(Aura *aur)
    {
    if(m_mapId != 530)
    {
    for(uint32 i = 0; i < 3; ++i)
    {
    // Can't use flying auras in non-outlands.
    if(aur->GetSpellProto()->EffectApplyAuraName[i] == 208 || aur->GetSpellProto()->EffectApplyAuraName[i] == 207)
    {
    delete aur;
    return;
    }
    }
    }


    also other files contain this code:

    if(flying_aura && m_mapId != 530)
    {
    RemoveAura(flying_aura);
    flying_aura = 0;
    }

    I took a class on Visual Basic C++ but had some personal problems so I dropped some classes and C++ was one of them. My knowledge of C++ is very limited.

    I have modified the code a couple times and still can't manage to fly around Azeroth.

    Here's my modified code:
    The modified codes are bolded blue.

    void Unit::AddAura(Aura *aur)
    {
    if(m_mapId != 530 || m_mapId != 0 || m_mapId != 1)
    {
    for(uint32 i = 0; i < 3; ++i)
    {
    // Can't use flying auras in non-outlands.
    if(aur->GetSpellProto()->EffectApplyAuraName[i] == 208 || aur->GetSpellProto()->EffectApplyAuraName[i] == 207)
    {
    delete aur;
    return;
    }
    }
    }


    ... other file(s)

    if(flying_aura && m_mapId != 530 || m_mapId != 0 || m_mapId != 1)
    {
    RemoveAura(flying_aura);
    flying_aura = 0;
    }


    I also have converted spell.dbc to csv to edit the spell but to no avail. I've used most of the tools out there to convert the csv file back to dbc but the dbc file always get corrupted once converted back. I heard that no one has made a working converter for csv to dbc yet maybe that's why or could it be because I'm editing the csv file in Office Excel 2007 and not 2003.

    Any help is appreciated.
    Last edited by mazingerz9; 30-06-07 at 09:37 PM. Reason: Found new info.




Advertisement