HoS_PRC8/_mod/_module/nss/cv_rht_glass.nss
Jaysyn904 04165202c0 Initial upload
Initial upload
2024-11-25 19:36:07 -05:00

19 lines
524 B
Plaintext

// random house - glass blower
int StartingConditional()
{
object oPC=GetPCSpeaker();
object oMe=OBJECT_SELF;
int nGold=GetGold(oPC);
int nParm=GetLocalInt(oPC,"nParm");
string sRes="";
int nCost=0;
object oShoes;
if (nParm==1) { nCost=1; sRes="dh2_ewbot"; }
else { nCost=5000; sRes="x0_it_mthnmisc11"; }
if (nGold<nCost) return FALSE;
AssignCommand(oMe,TakeGoldFromCreature(nCost,oPC));
oShoes=CreateItemOnObject(sRes,oPC);
SetIdentified(oShoes,TRUE);
return TRUE;
}