74 lines
2.6 KiB
Plaintext
74 lines
2.6 KiB
Plaintext
// wazoo_s_woodshap
|
|
void main()
|
|
{
|
|
object oPC=GetPCSpeaker();
|
|
int nParm=GetLocalInt(oPC,"nParm");
|
|
object oItem;
|
|
object oMaterial;
|
|
DeleteLocalInt(oPC,"nParm");
|
|
if (nParm==1)
|
|
{ // ironwood
|
|
oItem=CreateItemOnObject("x2_it_cmat_ironw",oPC);
|
|
} // ironwood
|
|
else if (nParm==2)
|
|
{ // oakenwood
|
|
oItem=CreateItemOnObject("x2_it_cmat_oakw",oPC);
|
|
} // oakenwood
|
|
else if (nParm==3)
|
|
{ // elmwood
|
|
oItem=CreateItemOnObject("x2_it_cmat_elmw",oPC);
|
|
} // elmwood
|
|
else if (nParm==4)
|
|
{ // oaken crossbow shelf
|
|
oMaterial=GetItemPossessedBy(oPC,"x2_it_cmat_oakw");
|
|
if (oMaterial!=OBJECT_INVALID) DestroyObject(oMaterial);
|
|
oItem=CreateItemOnObject("x2_it_bmt_xbows",oPC);
|
|
} // oaken crossbow shelf
|
|
else if (nParm==5)
|
|
{ // oaken pole
|
|
oMaterial=GetItemPossessedBy(oPC,"x2_it_cmat_oakw");
|
|
if (oMaterial!=OBJECT_INVALID) DestroyObject(oMaterial);
|
|
oItem=CreateItemOnObject("x2_it_bmt_wpole",oPC);
|
|
} // oaken pole
|
|
else if (nParm==6)
|
|
{ // oaken shield body
|
|
oMaterial=GetItemPossessedBy(oPC,"x2_it_cmat_oakw");
|
|
if (oMaterial!=OBJECT_INVALID) DestroyObject(oMaterial);
|
|
oItem=CreateItemOnObject("x2_it_bmt_wshldb",oPC);
|
|
} // oaken shield body
|
|
else if (nParm==7)
|
|
{ // Oaken weapon grip
|
|
oMaterial=GetItemPossessedBy(oPC,"x2_it_cmat_oakw");
|
|
if (oMaterial!=OBJECT_INVALID) DestroyObject(oMaterial);
|
|
oItem=CreateItemOnObject("x2_it_bmt_oakhlt",oPC);
|
|
} // oaken weapon grip
|
|
else if (nParm==8)
|
|
{ // Projectile shaft
|
|
oMaterial=GetItemPossessedBy(oPC,"x2_it_cmat_ironw");
|
|
if (oMaterial!=OBJECT_INVALID) DestroyObject(oMaterial);
|
|
oItem=CreateItemOnObject("x2_it_bmt_proj",oPC);
|
|
oItem=CreateItemOnObject("x2_it_bmt_proj",oPC);
|
|
oItem=CreateItemOnObject("x2_it_bmt_proj",oPC);
|
|
oItem=CreateItemOnObject("x2_it_bmt_proj",oPC);
|
|
oItem=CreateItemOnObject("x2_it_bmt_proj",oPC);
|
|
} // projectile shaft
|
|
else if (nParm==9)
|
|
{ // elmwood bowshaft
|
|
oMaterial=GetItemPossessedBy(oPC,"x2_it_cmat_elmw");
|
|
if (oMaterial!=OBJECT_INVALID) DestroyObject(oMaterial);
|
|
oItem=CreateItemOnObject("x2_it_bmt_bshaft",oPC);
|
|
} // elmwood bowshaft
|
|
else if (nParm==10)
|
|
{ // club
|
|
oMaterial=GetItemPossessedBy(oPC,"x2_it_cmat_ironw");
|
|
if (oMaterial!=OBJECT_INVALID) DestroyObject(oMaterial);
|
|
oItem=CreateItemOnObject("nw_wblcl001",oPC);
|
|
} // club
|
|
else if (nParm==11)
|
|
{ // quarterstaff
|
|
oMaterial=GetItemPossessedBy(oPC,"x2_it_cmat_ironw");
|
|
if (oMaterial!=OBJECT_INVALID) DestroyObject(oMaterial);
|
|
oItem=CreateItemOnObject("nw_wdbqs001",oPC);
|
|
} // quarterstaff
|
|
}
|