What part of code would I need to change to alter the amount of money that can be gotten from surrendering captains? I found some code that appears to be a modifier for it in the cabinfight_dialog.c file:
switch(Rand(5))
{
case 0: NPChar.wealth = sti(NPChar.money)*2.3; break;
case 1: NPChar.wealth = sti(NPChar.money)*3.3; break;
case 2: NPChar.wealth = sti(NPChar.money)*4.3; break;
case 3: NPChar.wealth = sti(NPChar.money)*5.3; break;
case 4: NPChar.wealth = sti(NPChar.money)*6.3; break;
case 5: NPChar.wealth = sti(NPChar.money)*7.3; break;
}
But I haven't been able to figure out where this NPChar.money is generated. Any ideas? <img src="style_emoticons/<#EMO_DIR#>/par-ty.gif" style="vertical-align:middle" emoid="" border="0" alt="par-ty.gif" />
Also does anyone know where the personal money for the NPC's are generated? Some people only carry 10 gold, but others carry alot more.
switch(Rand(5))
{
case 0: NPChar.wealth = sti(NPChar.money)*2.3; break;
case 1: NPChar.wealth = sti(NPChar.money)*3.3; break;
case 2: NPChar.wealth = sti(NPChar.money)*4.3; break;
case 3: NPChar.wealth = sti(NPChar.money)*5.3; break;
case 4: NPChar.wealth = sti(NPChar.money)*6.3; break;
case 5: NPChar.wealth = sti(NPChar.money)*7.3; break;
}
But I haven't been able to figure out where this NPChar.money is generated. Any ideas? <img src="style_emoticons/<#EMO_DIR#>/par-ty.gif" style="vertical-align:middle" emoid="" border="0" alt="par-ty.gif" />
Also does anyone know where the personal money for the NPC's are generated? Some people only carry 10 gold, but others carry alot more.