generated from Jaysyn/ModuleTemplate
Initial upload
Initial upload
This commit is contained in:
18
_mod/_module/nss/cv_rht_glass.nss
Normal file
18
_mod/_module/nss/cv_rht_glass.nss
Normal file
@@ -0,0 +1,18 @@
|
||||
// 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;
|
||||
}
|
||||
Reference in New Issue
Block a user