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

18 lines
342 B
Plaintext

#include "tha_housing_cost"
#include "rr_persist"
void main()
{
object oPC = GetPCSpeaker();
object oKey = GetItemPossessedBy(oPC,"large_house_key");
if(oKey != OBJECT_INVALID)
{
DestroyObject(oKey);
GiveGoldToCreature(oPC,((LARGE_HOUSE_COST/4)*3));
SPI(oPC,"home_owner",FALSE);
}
return;
}