• 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!

Church donations and reputation...

Hiya mateys,

Got some more file editing questions, yes more :p
Just for info, i'm using the standard PotC for now untill the final release of 13 is out <img src="style_emoticons/<#EMO_DIR#>/wink.gif" style="vertical-align:middle" emoid=";)" border="0" alt="wink.gif" />

Now here's my question:
In the Quests_reaction.c file you can see how much rep you get for most quests and also for donating, the donating part looks like this:

case "donation":
int iDonation = makeint(pchar.quest.donate);
int iRep = makeint(pchar.reputation);
int iRepIncr;
if (iRep <10)
{
if (iDonation > 1000)
{
iRepIncr = iDonation/250;
ChangeCharacterReputation(pchar, iRepIncr);
pchar.quest.donate = 0;
}
}
if (iRep <20 && iRep >=10)
{
if (iDonation > 2000)
{
iRepIncr = iDonation/500;
ChangeCharacterReputation(pchar, iRepIncr);
pchar.quest.donate = 0;
}
}
if (iRep <30 && iRep >=20)
{
if (iDonation > 3000)
{
iRepIncr = iDonation/750;
ChangeCharacterReputation(pchar, iRepIncr);
pchar.quest.donate = 0;
}
}
if (iRep <40 && iRep >=30)
{
if (iDonation > 4000)
{
iRepIncr = iDonation/1000;
ChangeCharacterReputation(pchar, iRepIncr);
pchar.quest.donate = 0;
}
}
if (iRep <50 && iRep >=40)
{
if (iDonation > 5000)
{
iRepIncr = iDonation/1250;
ChangeCharacterReputation(pchar, iRepIncr);
pchar.quest.donate = 0;
}
}
if (iRep <60 && iRep >=50)
{
if (iDonation > 6000)
{
iRepIncr = iDonation/1500;
ChangeCharacterReputation(pchar, iRepIncr);
pchar.quest.donate = 0;
}
}
if (iRep <70 && iRep >=60)
{
if (iDonation > 7000)
{
iRepIncr = iDonation/1750;
ChangeCharacterReputation(pchar, iRepIncr);
pchar.quest.donate = 0;
}
}
if (iRep <80 && iRep >=70)
{
if (iDonation > 8000)
{
iRepIncr = iDonation/2000;
ChangeCharacterReputation(pchar, iRepIncr);
pchar.quest.donate = 0;
}
}
if (iRep <90 && iRep >=80)
{
if (iDonation > 9000)
{
iRepIncr = iDonation/2250;
ChangeCharacterReputation(pchar, iRepIncr);
pchar.quest.donate = 0;
}
}
break;

NOw correct me if I'm wrong, but / means divide by right ?
If it does, then according to the script, no matter how much you donate, you always get the same amount of rep, since it get's divided by more the more you donate.
I wanted to lower the numbers, but I cancelled that since it got me very confused, hence the topic.
So how exactly wold I have to change those numbers to get a higher reputation increase ?

Greetz,
Capt. John Black
 
Back
Top