• New Horizons on Maelstrom
    Maelstrom New Horizons


    Visit our website www.piratehorizons.com to quickly find download links for the newest versions of our New Horizons mods Beyond New Horizons and Maelstrom New Horizons!

Edit Character stats

I have had a look at the code in the MAXIMUS_Functions.c, file for Beta 1 Patch 5,- Patch 6 - Patch 7 - Beta 02-1
The only change that I can see in that part of the code is between Patch 6 and Patch 7 arround line 515

In Patch 6 - MAXIMUS_Functions.c file dated 02-12-2010
Code:
void InitAutoSkillsSystem(ref refCharacter, bool dailyUpdate)
{
if(CheckAttribute(refCharacter,"corpse")) return;
if(dailyUpdate && CheckAttribute(refCharacter,"index") && sti(refCharacter.index)==GetMainCharacterIndex()) return;
// LDH Danielle is set as main char in at least one dialog of the main quest, so the player character gets this update.
// This prevents that - 29Mar09
if(dailyUpdate && CheckAttribute(refCharacter,"index") && sti(refCharacter.index)==0) return; // LDH 29Mar09
if(dailyUpdate && bAllies(refCharacter)) return;
if(!dailyUpdate && CheckAttribute(refCharacter,"autoskills") && refCharacter.autoskills==1) return;
if(!CheckAttribute(refCharacter,"Experience")) { refCharacter.Experience = 1; }
if(!CheckAttribute(refCharacter,"rank")) { refCharacter.rank = 1; }
int nextSkill = 50000;
int skillsCalc = 0;
if(SKILLS_UP_BONUS<10) SKILLS_UP_BONUS = 10;
if(SKILLS_UP_BONUS>99) SKILLS_UP_BONUS = 99;
float curSpeed = makefloat(stf(SKILLS_UP_BONUS+100)/100);
//MAXIMUS: Checks for last meeting with character. If player met with him more, than 1 day ago, character's skill-experience will increase (from +1% to +4%) depending on a difficulty level -->
int numUp = sti(GetDataYear() + GetDataMonth() + AllDaysCount);
int expUp = sti(GetDifficulty()*500);
if(CheckAttribute(refCharacter,"locDate") && sti(numUp-sti(refCharacter.locDate))>0)
{
  numUp = sti(numUp - sti(refCharacter.locDate));
  expUp = expUp*numUp;
}
else { expUp = 0; }// for fantoms and first time logined characters
//MAXIMUS: <--


In Patch 7 - MAXIMUS_Functions.c file dated 11-11-2011


Code:
void InitAutoSkillsSystem(ref refCharacter, bool dailyUpdate)
{
if(CheckAttribute(refCharacter,"corpse")) return;
if(dailyUpdate && CheckAttribute(refCharacter,"index") && sti(refCharacter.index)==GetMainCharacterIndex()) return;
// LDH Danielle is set as main char in at least one dialog of the main quest, so the player character gets this update.
// This prevents that - 29Mar09
if(dailyUpdate && CheckAttribute(refCharacter,"index") && sti(refCharacter.index)==0) return; // LDH 29Mar09
if(dailyUpdate && bAllies(refCharacter)) return;
if(!dailyUpdate && CheckAttribute(refCharacter,"autoskills") && refCharacter.autoskills==1) return;
if(!CheckAttribute(refCharacter,"Experience")) { refCharacter.Experience = 1; }
if(!CheckAttribute(refCharacter,"rank")) { refCharacter.rank = 1; }
int nextSkill = 50000;
int skillsCalc = 0;
float curSpeed = makefloat(stf(SKILLS_UP_BONUS+100)/100);
//MAXIMUS: Checks for last meeting with character. If player met with him more, than 1 day ago, character's skill-experience will increase (from +1% to +4%) depending on a difficulty level -->
int numUp = sti(GetDataYear() + GetDataMonth() + AllDaysCount);
int expUp = sti(GetDifficulty()*500);
if(CheckAttribute(refCharacter,"locDate") && sti(numUp-sti(refCharacter.locDate))>0)
{
  numUp = sti(numUp - sti(refCharacter.locDate));
  expUp = expUp*numUp;
}
else { expUp = 0; }// for fantoms and first time logined characters
//MAXIMUS: <--

I don't know why the 2 lines:-

if(SKILLS_UP_BONUS<10) SKILLS_UP_BONUS = 10;
if(SKILLS_UP_BONUS>99) SKILLS_UP_BONUS = 99;

were removed or what they do?


I don't know if this is anything relevant to the melee skill problems.

:pirates
 
I removed two lines when I removed the SKILLS_UP_BONUS lines from InternalSettings.h . Should make no difference either way.
 
Back
Top