PWE_PRC8/_module/nss/bank_10gp_chk.nss
Jaysyn904 ee1dc35889 Initial Commit
Initial Commit
2025-04-03 10:29:41 -04:00

13 lines
391 B
Plaintext

int StartingConditional()
{
object oPC = GetPCSpeaker();
int iFlag;
int iGP = 10;
if(GetLocalInt(oPC, "flag_1") == 1)
{if(GetGold(oPC) >= iGP){iFlag = 1;}
if(!(GetGold(oPC) >= iGP)){iFlag = 0;}}
if(GetLocalInt(oPC, "flag_1") == 2)
{if(GetCampaignInt("bankdb", "bankgp", oPC) >= iGP){iFlag = 1;}
if(!(GetCampaignInt("bankdb", "bankgp", oPC) >= iGP)){iFlag = 0;}}
return iFlag;}