Amon_PRC8/_module/nss/absolution.nss

20 lines
775 B
Plaintext
Raw Normal View History

2025-04-03 19:00:46 -04:00
void main()
{
object oPC = GetPCSpeaker();
TakeGoldFromCreature(1000, oPC, TRUE);
if (GetStandardFactionReputation(STANDARD_FACTION_COMMONER, oPC) <= 10)
{ SetLocalInt(oPC, "NW_G_Playerhasbeenbad", 10); // * Player bad
SetStandardFactionReputation(STANDARD_FACTION_COMMONER, 80, oPC);
}
if (GetStandardFactionReputation(STANDARD_FACTION_MERCHANT, oPC) <= 10)
{ SetLocalInt(oPC, "NW_G_Playerhasbeenbad", 10); // * Player bad
SetStandardFactionReputation(STANDARD_FACTION_MERCHANT, 80, oPC);
}
if (GetStandardFactionReputation(STANDARD_FACTION_DEFENDER, oPC) <= 10)
{ SetLocalInt(oPC, "NW_G_Playerhasbeenbad", 10); // * Player bad
SetStandardFactionReputation(STANDARD_FACTION_DEFENDER, 80, oPC);
}
}