Jaysyn904 102ba7dab6 Initial Commit
Initial Commit
2023-09-21 19:51:32 -04:00

17 lines
494 B
Plaintext

#include "x4_inc_functions"
void main()
{
object oPC = GetPCSpeaker();
int iGold = GetCampaignInt(CharacterDB(oPC), "BARTAB", oPC);
if (GetGold(oPC) < iGold)
{
SpeakOneLinerConversation("Not enough on me. I'll settle later.", oPC);
return;
}
TakeGoldFromCreature(iGold, oPC, TRUE);
SetCampaignInt(CharacterDB(oPC), "BARTAB", 0, oPC);
SetLocalInt(GetModule(), "ZORCOTABSWRITE", 1);
if (iGold > 9) AdjustAlignment(oPC, ALIGNMENT_LAWFUL, 1);
}