Junior Spellweaver
- Joined
- Apr 6, 2008
- Messages
- 181
- Reaction score
- 0
Today a friend let me on her priest in order to get the holy symbol packet information. So I bring to you a working holy symbol.
First of all, Skills.cpp:
Now open Mobs.cpp and find a line similar to:
And replace it with:
In order for GM HS to work, you need to add an entry for it in the skills database. If you are using my SQL database, do the following:
If you're using the archaic XML crap, make your own XML as I do not supply them.
You can change exprate to whatever you want it to be for your server. Personally, I have mine tiered dued to the nature of exp requirements so that people can level quickly at pretty much any level yet be able to breath between levels in the lower levels, but you can do as you will with it. Cheers. =]
First of all, Skills.cpp:
Code:
// Holy Symbol
player.type = 0x1;
player.byte = 4;
player.value = SKILL_X;
skillsinfo[2311003].player.push_back(player); // Priest
skillsinfo[5101002].player.push_back(player); // Super GM
Now open Mobs.cpp and find a line similar to:
Code:
Levels::giveEXP(player, mobinfo[mob->getMobID()].exp
And replace it with:
Code:
float exprate = 1;
// Account for Holy Symbol
float hsrate = 0;
if(player->skills->getActiveSkillLevel(2311003)>0){
hsrate = Skills::skills[2311003][player->skills->getActiveSkillLevel(2311003)].x;
}
else if(player->skills->getActiveSkillLevel(5101002)>0){
hsrate = Skills::skills[5101002][player->skills->getActiveSkillLevel(5101002)].x;
}
hsrate = hsrate/100;
exprate = exprate+(exprate*hsrate);
Levels::giveEXP(player, mobinfo[mob->getMobID()].exp * exprate);
In order for GM HS to work, you need to add an entry for it in the skills database. If you are using my SQL database, do the following:
Code:
INSERT INTO skilldata (skillid, time, x) VALUES (5101002, 1800, 50);
If you're using the archaic XML crap, make your own XML as I do not supply them.
You can change exprate to whatever you want it to be for your server. Personally, I have mine tiered dued to the nature of exp requirements so that people can level quickly at pretty much any level yet be able to breath between levels in the lower levels, but you can do as you will with it. Cheers. =]
Last edited: