EQEmulator Forums

EQEmulator Forums (https://www.eqemulator.org/forums/index.php)
-   Support::General Support (https://www.eqemulator.org/forums/forumdisplay.php?f=598)
-   -   /Consider system (https://www.eqemulator.org/forums/showthread.php?t=26766)

paaco 11-14-2008 01:54 AM

/Consider system
 
Anyone happen to know where in the source I can find the formulas used for the con system? I am looking through it but not finding it so far. I am trying to match the leveling script for my server up with the con system but so far, I cannot find the formulas used :(

paaco 11-14-2008 02:00 AM

It actually appears to be handled client side, I can find nothing in the eqemu source with the formulas used. If anyone knows the formula used for the con system or where I can find it though I would appreciate it.

Theeper 11-15-2008 11:36 AM

In zone/faction.cpp around line 82

Code:

                character_value += fm->base + fm->class_mod + fm->race_mod + fm->deity_mod;
        if(character_value >=  1101) return FACTION_ALLY;
        if(character_value >=  701 && character_value <= 1100) return FACTION_WARMLY;
        if(character_value >=  401 && character_value <=  700) return FACTION_KINDLY;
        if(character_value >=  101 && character_value <=  400) return FACTION_AMIABLE;
        if(character_value >=    0 && character_value <=  100) return FACTION_INDIFFERENT;
        if(character_value >=  -100 && character_value <=  -1) return FACTION_APPREHENSIVE;
        if(character_value >=  -700 && character_value <= -101) return FACTION_DUBIOUS;
        if(character_value >=  -999 && character_value <= -701) return FACTION_THREATENLY;
        if(character_value <= -1000) return FACTION_SCOWLS;


Theeper 11-15-2008 11:43 AM

Woops, you said the level part of it. I think that is client side.

paaco 11-15-2008 02:54 PM

Yeah I need the formulas used to determine if you should get xp for a kill. I am trying to match my system up with the con system, but it appears to be nearly impossible to just get lucky and have it match up.

Derision 11-15-2008 03:15 PM

Have a look at MobAI.cpp, int32 Mob::GetLevelCon(int8 mylevel, int8 iOtherLevel)

paaco 11-15-2008 04:26 PM

Thanks Derision,wish I had seen this about 20 mins ago. I tested every level 1-50 on my server and put 50 if statements into my leveling system to make it match cons. It was a blast :(


All times are GMT -4. The time now is 08:06 PM.

Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.