Initial Commit

Initial Commit
This commit is contained in:
Jaysyn904
2023-09-21 19:51:32 -04:00
parent 65b5bd7fd3
commit 102ba7dab6
6400 changed files with 5741850 additions and 0 deletions

16
_module/nss/hench_pay.nss Normal file
View File

@@ -0,0 +1,16 @@
//Pay for the henchman. If PC tried to be smart and put his gold away before choosing this option in a conversation, stop the dialogue and inform him about it.
void main()
{
object oPC = GetPCSpeaker();
if ( GetGold(oPC) >= (GetLocalInt(oPC, "hench_pay")))
{
TakeGoldFromCreature(GetLocalInt(oPC, "hench_pay"), oPC, TRUE);
SetLocalInt(oPC, "hench_notaffordable", 0);
}
else
{
SpeakString("Sorry, no one is going to risk their life for free.");
SetLocalInt(oPC, "hench_notaffordable", 1);
}
}