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

19 lines
485 B
Plaintext

void main()
{
object oPC = GetPCSpeaker();
int iGP = 10;
int iPCGP = GetCampaignInt("bankdb", "bankgp", oPC);
if((GetLocalInt(oPC, "flag_1")) == 1)
{
TakeGoldFromCreature(iGP, oPC);
SetCampaignInt("bankdb", "bankgp", iPCGP + iGP, oPC);
}
if((GetLocalInt(oPC, "flag_1")) == 2)
{
GiveGoldToCreature(oPC, iGP);
SetCampaignInt("bankdb", "bankgp", iPCGP - iGP, oPC);
}
SetCustomToken(6000, IntToString(GetCampaignInt("bankdb", "bankgp", GetPCSpeaker())));
return;
}