// shrek hides void main() { object oMe=OBJECT_SELF; object oPC=GetPCSpeaker(); int nParm=GetLocalInt(oPC,"nParm"); string sTag=""; string sRes1=""; string sRes2=""; object oItem; if (nParm==1) { sTag="hide1"; sRes1="x2_it_amt_lstrng"; } else if (nParm==2) { sTag="hide1"; sRes1="x2_it_amt_lpatch"; } else if (nParm==3) { sTag="hide2"; sRes1="x2_it_cmat_leath"; } else if (nParm==4) { sTag="hide3"; sRes1="x2_it_cmat_leath"; sRes2="x2_it_amt_lstrng"; } else if (nParm==5) { sTag="hide3"; sRes1="x2_it_cmat_leath"; sRes2="x2_it_amt_lpatch"; } oItem=GetItemPossessedBy(oPC,sTag); DestroyObject(oItem); if (GetStringLength(sRes1)>1) CreateItemOnObject(sRes1,oPC,1); if (GetStringLength(sRes2)>1) CreateItemOnObject(sRes2,oPC,1); }