Aschbourne_PRC8/_module/kpb_withdraw_all.nss
GetOffMyYarn 8622e5ce08 Area Changes and other fixes
added areas and ccoh,
fixed some areas to work with crafting
fixed some on death issues
added server entry/ooc
2024-08-30 10:38:04 -04:00

30 lines
953 B
Plaintext

////////////////////////////////////////////
// Kittrell's Persistent Banking System //
// Designed by: Brian J. Kittrell //
// //
// This script does the following: //
// //
// kpb_withdraw_all - This script allows //
// withdraw to deposit all of their gold //
// that they are carrying in one foul //
// swoop. For the big spender looking //
// to spend the day shopping around the //
// city. :) //
////////////////////////////////////////////
void main()
{
object oPC = GetPCSpeaker();
int nBalance = GetCampaignInt("kpb_bank", "KPB_BANK_BALANCE", oPC);
int nAmount = 0;
if (nBalance >= 1)
{
GiveGoldToCreature(oPC, nBalance);
SetCampaignInt("kpb_bank", "KPB_BANK_BALANCE", nAmount, oPC);
}
else
{
SpeakString("Sorry, you do not have enough gold to deposit.", TALKVOLUME_TALK);
}
}