Changed folder name.
Changed folder name.
This commit is contained in:
21
_module/nss/sfpb_w_fail.nss
Normal file
21
_module/nss/sfpb_w_fail.nss
Normal file
@@ -0,0 +1,21 @@
|
||||
//::///////////////////////////////////////////////
|
||||
//:: Scarface's Persistent Banking
|
||||
//:: sfpb_w_fail
|
||||
//:://////////////////////////////////////////////
|
||||
/*
|
||||
Written By Scarface
|
||||
*/
|
||||
//////////////////////////////////////////////////
|
||||
|
||||
#include "sfpb_config"
|
||||
int StartingConditional()
|
||||
{
|
||||
// Vars
|
||||
object oPC = GetLastSpeaker();
|
||||
string sID = SF_GetPlayerID(oPC);
|
||||
int nGold = StringToInt(GetLocalString(OBJECT_SELF, "GOLD"));
|
||||
int nBanked = GetCampaignInt(GetName(GetModule()), "SFPB_GOLD_" + sID);
|
||||
|
||||
// Check if the player has enough to withdraw
|
||||
return(nBanked < nGold);
|
||||
}
|
Reference in New Issue
Block a user