HoS_PRC8/_mod/_module/nss/trade_hides.nss
Jaysyn904 04165202c0 Initial upload
Initial upload
2024-11-25 19:36:07 -05:00

21 lines
792 B
Plaintext

// 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);
}