PWE_PRC8/_module/nss/tha_mbuy_large.nss

18 lines
342 B
Plaintext
Raw Normal View History

2025-04-03 10:29:41 -04:00
#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;
}