Aschbourne_PRC8/_module/nss/_opn_ench_weapon.nss

60 lines
3.1 KiB
Plaintext
Raw Permalink Normal View History

void main()
{
/* CreateItemOnObject("flagswitch064",OBJECT_SELF,1); //enchant item
CreateItemOnObject("flagswitch065",OBJECT_SELF,1); //enchant item
CreateItemOnObject("flagswitch066",OBJECT_SELF,1); //enchant item
CreateItemOnObject("flagswitch067",OBJECT_SELF,1); //enchant item
CreateItemOnObject("flagswitch068",OBJECT_SELF,1); //enchant item
*/
CreateItemOnObject("flagswitch069",OBJECT_SELF,1); //enchant item
CreateItemOnObject("flagswitch070",OBJECT_SELF,1); //enchant item
//CreateItemOnObject("flagswitch063",OBJECT_SELF,1); //add effect
CreateItemOnObject("flagswitch071",OBJECT_SELF,1); //enchant item
// CreateItemOnObject("flagswitch072",OBJECT_SELF,1); //enchant item
CreateItemOnObject("flagswitch073",OBJECT_SELF,1); //enchant item
CreateItemOnObject("flagswitch074",OBJECT_SELF,1); //enchant item
CreateItemOnObject("flagswitch075",OBJECT_SELF,1); //enchant item
CreateItemOnObject("flagswitch076",OBJECT_SELF,1); //enchant item
CreateItemOnObject("flagswitch173",OBJECT_SELF,1); //enchant item
CreateItemOnObject("flagswitch174",OBJECT_SELF,1); //enchant item
CreateItemOnObject("flagswitch175",OBJECT_SELF,1); //enchant item
CreateItemOnObject("flagswitch176",OBJECT_SELF,1); //enchant item
CreateItemOnObject("flagswitch177",OBJECT_SELF,1); //enchant item
CreateItemOnObject("flagswitch178",OBJECT_SELF,1); //enchant item
CreateItemOnObject("flagswitch179",OBJECT_SELF,1); //enchant item
CreateItemOnObject("flagswitch077",OBJECT_SELF,1); //enchant item
CreateItemOnObject("flagswitch078",OBJECT_SELF,1); //enchant item
CreateItemOnObject("flagswitch079",OBJECT_SELF,1); //enchant item
CreateItemOnObject("flagswitch080",OBJECT_SELF,1); //enchant item
CreateItemOnObject("flagswitch081",OBJECT_SELF,1); //enchant item
CreateItemOnObject("flagswitch082",OBJECT_SELF,1); //enchant item
CreateItemOnObject("flagswitch083",OBJECT_SELF,1); //enchant item
CreateItemOnObject("flagswitch084",OBJECT_SELF,1); //enchant item
CreateItemOnObject("flagswitch085",OBJECT_SELF,1); //enchant item
CreateItemOnObject("flagswitch086",OBJECT_SELF,1); //enchant item
CreateItemOnObject("flagswitch157",OBJECT_SELF,1); //enchant item
CreateItemOnObject("flagswitch158",OBJECT_SELF,1); //enchant item
CreateItemOnObject("flagswitch159",OBJECT_SELF,1); //enchant item
CreateItemOnObject("flagswitch160",OBJECT_SELF,1); //enchant item
CreateItemOnObject("flagswitch161",OBJECT_SELF,1); //enchant item
CreateItemOnObject("flagswitch162",OBJECT_SELF,1); //enchant item
// Search for and destroy any hidden 'body bags' from prior incarnations of this placeable
object oSearchForBag = GetNearestObjectByTag("Body Bag",OBJECT_SELF,1);
if (oSearchForBag == OBJECT_INVALID)return;
object oBagItem = OBJECT_INVALID;
if (GetDistanceToObject(oSearchForBag)<= 0.2)
{
//SendMessageToPC(GetFirstPC(),"Body bag found.. destroying contents..");
oBagItem = GetFirstItemInInventory(oSearchForBag);
while (oBagItem != OBJECT_INVALID)
{
//SendMessageToPC(GetFirstPC(),"Destroying : "+GetName(oBagItem));
DestroyObject(oBagItem);
oBagItem = GetNextItemInInventory(oSearchForBag);
}
DestroyObject(oSearchForBag,1.0);
}
}