Hey all i've decided to make me some rep so i made this guide
~I DO NOT TAKE FULL CREDIT FOR EVERYTHING HERE.~
Editing your announcements:
Open up "Ascent Compile/src/game/level1.cpp" "Ascent Compile/src/ascent-world/level1.cpp"
Announcements:
Code:
input2 = "|cffff6060<";
//if (m_session->GetPermissionCount()) input2+="GM";
if(m_session->CanUseCommand('z')) input2+="Admin";
else if(m_session->GetPermissionCount()) input2+="GM";
input2+=">|r|c1f40af20";
input2+=m_session->GetPlayer()->GetName();
input2+="|r|cffffffff broadcasts: |r";
snprintf((char*)pAnnounce, 1024, "%s%s", input2.c_str(), args); // Adds BROADCAST:
sWorld.SendWorldText(pAnnounce); // send message
sGMLog.writefromsession(m_session, "used announce command, [%s]", args);
Announcement colors - ffff6060; 1f40af20; ffffffff. You can change these to whatever color codes your heart desires. your heart desires. (I personally don't change this because I like the original announcement colors.)
Example: <GM> Admin broadcasts: I love me some yellow!
Announcement tags - Change GM to Game Master on both GM Tags (You can also change Admin to Developer etc. to change the announcement to this:
<Game Master> Admin broadcasts: Test123.
<Developer> Admin broadcasts: Welcome to the server.
It is the same with Wannounce, just scroll below and change that.
Announcement Tags 2 - Change "broadcasts:" to anything you would like, such as "announces:".
Here is some example code:
Code:
input2 = "|cffffffff<";
//if (m_session->GetPermissionCount()) input2+="Game Master";
if(m_session->CanUseCommand('z')) input2+="Developer";
else if(m_session->GetPermissionCount()) input2+="Game Master";
input2+=">|r|cffffffff";
input2+=m_session->GetPlayer()->GetName();
input2+="|r|cffffffff announces: |r";
snprintf((char*)pAnnounce, 1024, "%s%s", input2.c_str(), args); // Adds BROADCAST:
sWorld.SendWorldText(pAnnounce); // send message
sGMLog.writefromsession(m_session, "used announce command, [%s]", args);
You will get the following with that code:
Code:
<Game Master> Admin announces: Test123.
<Developer> Admin announces: Test123.
_______________________
Increasing Item Storage amount:
Open "Ascent Compile/src/shared/Storage.h" and find this line. "Ascent Compile/src/ascent-shared/Storage.h"
Code:
#ifndef STORAGE_H_
#define STORAGE_H_
#ifdef WIN32
#pragma warning(disable:4312)
#endif
#define STORAGE_ARRAY_MAX 200000
Change 200000 to 99999999.
_____________________________
Flying mounts in Azeroth
Code:
Changes to make your core 'Azeroth Flyable' - Quick Guide.
All these changes are made in folder trunk/src/game.
All these changes are made in folder trunk/src/ascent-world.
============================================================
Open Player.cpp
Change:
!=530
to
>580
Change
!= 530
to
> 580
Save Player.cpp
============================================================
Open Spellauras.cpp
Search for:
void 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);
}
}
Save Spellauras.cpp
============================================================
Open Unit.cpp.
Change:
!= 530
to
> 580
Save Unit.cpp
============================================================
Compile your source. Credit to Sinister at Ragezone.
______________________________
How to complie ascent
1. Download TortoiseSVN
Download Visual C++ 9.0 Express Edition
Download Microsoft .NET Framwork
2. Now, create a folder named "Ascent Compile" on your desktop.
3. Right click the file and select "SVN Checkout".
4. Now enter in the "URL of Repository box" "http://217.149.194.150/svn/ascent/trunk/" (Without quotes.)
5. Click "OK".
6. The user name is Anonymous. Leave the password area blank.
6. Wait for it to finish...
7. Once it is finished, go to your folder "Ascent Compile" and edit the things you would like to change.
8. Go to "Ascent Compile/win/AscentVC90. And open that up in Visual C++.
9. Select "Build", then proceed to the "Configuration Manager". Change the drop-down box from "Debug" to "Release".
10. Hit "F7". Once it is finished, go to "Ascent Compile/src/scripts/scripts2008"
11. Do the same as you did in Step 9. Then hit "F7" again.
12. Congratulations, you have successfully set up your Ascent Compile, edit your configuration files and start up Ascent.exe/Logonserver.exe.