23 lines
513 B
Plaintext
23 lines
513 B
Plaintext
////////////////////////////////////////////////////////
|
|
//
|
|
// DM Destory Object Script
|
|
// opw_destroy_ob
|
|
// By Don Anderson
|
|
//
|
|
// Placed in the Module On Activate Item Event
|
|
//
|
|
////////////////////////////////////////////////////////
|
|
|
|
void main()
|
|
{
|
|
object oPC = GetItemActivator();
|
|
object oItem = GetItemActivated();
|
|
object oTarget = GetItemActivatedTarget();
|
|
|
|
if(GetIsPC(oPC)) return;
|
|
|
|
if(GetTag(oItem) != "AmuletofPower") return;
|
|
|
|
if(oPC != oTarget && oItem != oTarget) DestroyObject(oTarget,0.1);
|
|
}
|