WoR_PRC8/_module/nss/bribe_done_2.nss

33 lines
1.3 KiB
Plaintext
Raw Permalink Normal View History

2025-04-03 11:49:34 -04:00
string sSayThis;
int iTalkVolume = TALKVOLUME_TALK;
int iTalkFlag = 0;
void main()
{
object oBriber = GetObjectByTag("BRASSINN_FACCHG");
object oPC = GetPCSpeaker();
{
if (GetGold(GetPCSpeaker()) >= 200){
TakeGoldFromCreature(200, oPC, TRUE);
sSayThis = "Pleasure doing business with you.";
// * make friendly to Each of the 3 common factions
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);}
AssignCommand(oBriber, ClearAllActions(TRUE));
AssignCommand(oBriber, ActionSpeakString(sSayThis, iTalkVolume));}
else {
sSayThis = "Nice try. Come back when you have all the money.";
AssignCommand(oBriber, ClearAllActions(TRUE));
AssignCommand(oBriber, ActionSpeakString(sSayThis, iTalkVolume));}
}
}