19 lines
524 B
Plaintext
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;
|
|
}
|