Jaysyn904 04165202c0 Initial upload
Initial upload
2024-11-25 19:36:07 -05:00

23 lines
775 B
Plaintext

// random house - artist
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=2260; sRes="nw_it_contain006"; }
else if (nParm==2) { nCost=1550; sRes="nw_it_contain005"; }
else if (nParm==3) { nCost=550; sRes="nw_it_contain003"; }
else if (nParm==4) { nCost=1000; sRes="nw_it_contain004"; }
else if (nParm==5) { nCost=250; sRes="nw_it_contain002"; }
else { nCost=2500; sRes="rts_rhbag"; }
if (nGold<nCost) return FALSE;
AssignCommand(oMe,TakeGoldFromCreature(nCost,oPC));
oShoes=CreateItemOnObject(sRes,oPC);
SetIdentified(oShoes,TRUE);
return TRUE;
}