Initial Commit
Initial Commit
This commit is contained in:
16
_module/nss/bartend_paytab.nss
Normal file
16
_module/nss/bartend_paytab.nss
Normal file
@@ -0,0 +1,16 @@
|
||||
#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);
|
||||
}
|
Reference in New Issue
Block a user