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

18 lines
489 B
Plaintext

void main()
{
object oPC = GetExitingObject();
object oBox;
int iCounter = 1;
while(iCounter <= 10)
{
if(GetItemPossessedBy(oPC, "az_strongbox_" + GetPCPublicCDKey(oPC) + "_" + IntToString(iCounter)) != OBJECT_INVALID)
{
oBox = GetObjectByTag("az_strongbox_" + GetPCPublicCDKey(oPC) + "_" + IntToString(iCounter));
StoreCampaignObject("bankdb", "bank_box_" + IntToString(iCounter), oBox, oPC);
DestroyObject(oBox);
}
iCounter = iCounter + 1;
}
}