// random house - cobbler 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="rhboots1"; } else if (nParm==2) { nCost=1; sRes="rhboots2"; } else if (nParm==3) { nCost=3; sRes="rhboots3"; } else if (nParm==4) { nCost=2; sRes="rhboots4"; } else if (nParm==5) { nCost=3; sRes="rhboots5"; } else if (nParm==6) { nCost=5; sRes="rhboots6"; } else { nCost=200; sRes="x0_it_mboots002"; } if (nGold<nCost) return FALSE; AssignCommand(oMe,TakeGoldFromCreature(nCost,oPC)); oShoes=CreateItemOnObject(sRes,oPC); SetIdentified(oShoes,TRUE); return TRUE; }