Hello, this is my guide on editing your core, (Some of the Level1.cpp stuff is from Ascended, I just improved upon it.) NOTE: This is used with Ascent Revision 2801, but I am sure that it will be along the same lines as this.
Edit1: Added guide on how to compile Ascent. (Might post pictures later.)
#I might add a guide on how to setup your configuration files soon.#
~I DO NOT TAKE FULL CREDIT FOR EVERYTHING HERE.~
Disclaimer ftw?
Note: All things in this color are the things specific for revision 3623.
Things without this color are 2801 specific.
______________________
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> Seethezorz 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> Seethezorz broadcasts: Test123.
<Developer> Seethezorz 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> Seethezorz announces: Test123.
<Developer> Seethezorz 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.
__________________________
Making All Characters start at Level 70:
Go into "Ascent Compile\src\game\Player.cpp" "Ascent Compile\src\ascent-world\Player.cpp"
Find the line:
Code:
SetUInt32Value(UNIT_FIELD_LEVEL, 1 );
Change the 1 to 70.
Save the file.
Compile Ascent.
_________________________
Changing the speed of Swimming, Running, Walking, and Flying.
Open up "Ascent Compile\src\game\Player.h" "Ascent Compile\src\ascent-world\Player.h"
Find the lines: (They are at the start of the file.)
Code:
#define PLAYER_NORMAL_RUN_SPEED 7.0f
#define PLAYER_NORMAL_SWIM_SPEED 4.722222f
#define PLAYER_NORMAL_FLIGHT_SPEED 7.0f
#define PLAYER_HONORLESS_TARGET_SPELL 2479
#define MONSTER_NORMAL_RUN_SPEED 8.0f
Change the things in red to what you would like.
Example:
Code:
#define PLAYER_NORMAL_RUN_SPEED 14.0f
This will make you run 2x the normal run speed.
Note: Changing Flight Speed causes flying mounts to go alot faster. Be wary of this.
_________________________
Flying mounts in Azeroth
Taken from Steph's Corner for convenience.
Download the following SQL files and execute them to DB. Filebeam - Free Fast File Hosting
Use that mount.
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.
_________________________
Compile Patches:
The following link contains the download link to patches that I extracted from my core.
(Credits to the LookupSpell2801 patch goes to Darvaleo at Ascentemu.com)
Download Here
Includes -
2801 Patches; LookupSpellPatch, Announcement Patch, Flying Mount Patch, Item Storage Increasement Patch, LUA Enable Patch, Speed Increase Patch, and a patch that includes all of the above patches. NOTE: The Flying Mount Patch includes Level 70 upon character creation, will remove this and give it a patch of its own later.
3623 Patches; Announcement Patch, Speed Increase Patch, Item Storage Increasement Patch, and a patch that includes all of the above patches.
_________________________
#
Compile Ascent after you are #
done adding the things you #
want. #
_________________________#
Compiling Ascent:
1. Download TortoiseSVN...Here
Download Visual C++ 9.0 Express Edition...Here
Download Microsoft .NET Framwork...Here
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.
More to come.
*Note, others have posted the enabling LUA and Storage increasement, I put them there for convenience.*
Links:
Modifying Global Announcement (Ascended)
Steph's Corner (Steph) [R.I.P]
Gastric's Ascent Compiles (Gastric)
How to compile Ascent (Viter)
Viters Ascent Compiles (Viter)
How to compile a .DLL (Gastric)
~SeetheZorZ