Hello,
I notice that a few people have been complaining about a rather garbage message that appears when a colony is attacked by an NPC nation. Its also been a pet annoyance of mine and I have found the script that affects this.
Edit programs/interface/AskForHelp.c
Find,
void CalculateInfoData()
And edit the lines,
<!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->
void CalculateInfoData()
{
int iHelp = sti(pchar.quest.Fight_forOtherColony_temp.help);
int iEnemy = sti(pchar.quest.attack_other_fort.enemy);
int iNation = sti(pchar.quest.attack_other_fort.nation);
string sColony = pchar.quest.attack_other_fort.colony;
if (iHelp == 2)
{
totalinfo = "HELLO " + XI_ConvertString(GetNationNameByType(iEnemy) + "Gen") + " YOUR SEXY " + (10000 + sti(pchar.skill.commerce)*500) + " OH YES.";
pchar.quest.Fight_forOtherColony_temp.help = 0;
}
else
{
totalinfo = "Lookout reports that " + XI_ConvertString(GetNationNameByType(iEnemy) + "Gen") + " is attacking the " + XI_ConvertString(GetNationNameByType(iNation)+"Dat") + " fort.";
}
SetCurrentNode("B_OK");
}
<!--c2--></div><!--ec2-->
I haven't quite figured out what the top part of the if statement is doing yet, the bottom part appears to be where you sail into a port and its under attack by friendly and neutral forces (I have a funny story about that in another thread).
I notice that a few people have been complaining about a rather garbage message that appears when a colony is attacked by an NPC nation. Its also been a pet annoyance of mine and I have found the script that affects this.
Edit programs/interface/AskForHelp.c
Find,
void CalculateInfoData()
And edit the lines,
<!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->
void CalculateInfoData()
{
int iHelp = sti(pchar.quest.Fight_forOtherColony_temp.help);
int iEnemy = sti(pchar.quest.attack_other_fort.enemy);
int iNation = sti(pchar.quest.attack_other_fort.nation);
string sColony = pchar.quest.attack_other_fort.colony;
if (iHelp == 2)
{
totalinfo = "HELLO " + XI_ConvertString(GetNationNameByType(iEnemy) + "Gen") + " YOUR SEXY " + (10000 + sti(pchar.skill.commerce)*500) + " OH YES.";
pchar.quest.Fight_forOtherColony_temp.help = 0;
}
else
{
totalinfo = "Lookout reports that " + XI_ConvertString(GetNationNameByType(iEnemy) + "Gen") + " is attacking the " + XI_ConvertString(GetNationNameByType(iNation)+"Dat") + " fort.";
}
SetCurrentNode("B_OK");
}
<!--c2--></div><!--ec2-->
I haven't quite figured out what the top part of the if statement is doing yet, the bottom part appears to be where you sail into a port and its under attack by friendly and neutral forces (I have a funny story about that in another thread).