[ASCENT] I have learned

Experienced Elementalist
Joined
Dec 9, 2007
Messages
207
Reaction score
0
I have finnaly learned how to compile ascent on my own and i am very happy with myself. I do have a question though. Before i start going Compile crazy and playing with code and stuff. Just hte way i am i like to experiment. How do you enable flying mounts in Azeroth and how do you increase level cap? You have to do these before compile rite? Can somone tell me what I have to change for this to work?
 
Sinister wrote this in another forum for flying mounts pretty easy to follow

You will have to modify the following files: Player.cpp, SpellAuras.cpp, & Unit.cpp

In Player.cpp you will need to search and replace 3 items

First search for:

!=530
and replace it with
>580

then search for:

!= 530
(yes, just add a space) and replace it with
> 580

All 3 will look something like

if(flying_aura && MapID > 580)


In SpellAuras.cpp you will need to search for
Aura::SpellAuraEnableFlight(bool apply)

Replace the "else" with "if(!apply)" which should look like this:

Code:
void Aura::SpellAuraEnableFlight(bool apply)
{
if(m_target->IsPlayer())
{
static_cast<Player*>(m_target)->FlyCheat = apply;
static_cast<Player*>(m_target)->flying_aura = m_spellProto->Id;
}

if(apply)
{
m_target->EnableFlight(true);
m_target->m_flyspeedModifier += mod->m_amount;
m_target->UpdateSpeed(true);
}
if (!apply) //replaced else with: if(!apply) to allow flying mounts in the old lands
{
m_target->DisableFlight(true);
m_target->m_flyspeedModifier -= mod->m_amount;
m_target->UpdateSpeed(true);
}
}

Now for the last. In Unit.cpp:

Find and replace:

if(m_mapId != 530)
with
if(m_mapId > 580)

Code:
if(m_mapId != 530) //<<--- Change this
{
for(uint32 i = 0; i < -1; ++i)
{
Can't use flying auras in non-outlands.
if(aur->GetSpellProto()->EffectApplyAuraName == 208 || aur->GetSpellProto()->EffectApplyAuraName == 207)
{
delete aur;
return;
}
}
}


Now build it and once it is finished create an item that will cast the mount you desire on equip. The current items will not work with this change (they still work in the Outlands as normal) so you will have to create some new items for it to work.

Such as:

INSERT INTO items VALUES (90001, 4, 0, -1, "Charm of the Phonix", "Charm of the Phonix", "Charm of the Phonix", "Charm of the Phonix", 43430, 3, 0, 0, 0, 12, -1, -1, 128, 1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 40192, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, "", 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 225, 0);

As for levelcap i think you edit that right in the ascent.conf file if im not mistaken
 
Alrite thanks alot. Now these new items. Can they be inventory items as well? They don't have to be trinkets or such do they? In other words what would I categorize them as? Miscelaneous? Trinket? Armor? etc.
 
Flying mounts in Azeroth sounds like a bad idea, meaning that if players achieve one, they could simply fly into Stormwind or Orgrimmar, "k1ll th3 n00bs" and fly away. Which ends up as a massacre. And the ability to fly with these mounts in Azeroth is done by Client-side editing right? Correct me if not.
 
When u say spell ID u mean what exactly? Would i create a new spell? And as for what you said dwolf about how to do all this does this actually create new spells? I am confused on that.
 
No the one i gave you isn't a new spell if you use that mount it's the same as Ashes of Al'ar, as for making other mounts im looking into it but thats only one i know of right now
 
Ohh i see what you are saying. No what I ment was the spells to summon the mounts will work in Azeroth as well as outlands but the actual item to summon the mount will only work in outland as for Ash's of Alar? So that means I gotta create a new item with that spell as you just said rite? But what do I create the item as a weapon? piece of armor? Jewl? or something else?
 
Alrite I will check it out myself as well. But it seems the ascent forums are down at the moment? Or the whole ascent site. unless it is just my Internet.
 
Well I have good news. It all works. I can use flying mounts in azeroth and i can put the spell to an equip effect.

PROBLEM: I can't use the spell effect in Azeroth and can't make the weapon have a use effect to summon the flying mount in azeroth. It works in Outlands but not in Azeroth. I can only use flying mounts in Azeroth if the item spell is an equip effect and nothing more. So basically the second you quip the item you mount. Any idea how I can change this? Other then that i did it all. I maged to compile my own ascent and edit my own files enable LUA and everything. Works like a charm except this issue.
 
Back