33 lines
1.3 KiB
Plaintext
33 lines
1.3 KiB
Plaintext
//************************************************
|
|
//** ss_treas_body **
|
|
//** **
|
|
//** This script will run on the death of a **
|
|
//** creature, it automatically kicks out if **
|
|
//** is called by a PC **
|
|
//************************************************
|
|
//**Created By: Jason Hunter (SiliconScout) **
|
|
//** **
|
|
//**Version: 1.6c **
|
|
//** **
|
|
//**Last Changed Date: July 7, 200 4 **
|
|
//************************************************
|
|
void main()
|
|
{
|
|
// nothing here go normal
|
|
if (GetLocalInt(OBJECT_SELF,"ss_t_toss") == 0)
|
|
{
|
|
ExecuteScript("nw_c2_default7", OBJECT_SELF);
|
|
return;
|
|
}
|
|
|
|
//kick out if called by a PC
|
|
if (GetIsPC(OBJECT_SELF) == TRUE) return;
|
|
|
|
//stop looting and scatter items
|
|
SetLootable(OBJECT_SELF,FALSE);
|
|
DelayCommand(1.0, SetLocalObject(OBJECT_SELF, "myCorpse", GetNearestObjectByTag( "BodyBag" )));
|
|
DelayCommand(2.0, ExecuteScript("ss_treas_toss",GetLocalObject(OBJECT_SELF, "myCorpse")));
|
|
DelayCommand(2.2, DestroyObject(GetLocalObject(OBJECT_SELF, "myCorpse")));
|
|
DelayCommand(2.3, DestroyObject(OBJECT_SELF));
|
|
}
|