33 lines
1.3 KiB
Plaintext
33 lines
1.3 KiB
Plaintext
|
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));}
|
||
|
}
|
||
|
}
|