mirror of
https://bitbucket.org/theswgsource/dsrc-1.2.git
synced 2026-07-14 00:01:32 -04:00
22 lines
728 B
Java
Executable File
22 lines
728 B
Java
Executable File
package script.creature_spawner;
|
|
|
|
import script.dictionary;
|
|
import script.obj_id;
|
|
|
|
public class death_msg extends script.base_script
|
|
{
|
|
public death_msg()
|
|
{
|
|
}
|
|
public int OnDestroy(obj_id self) throws InterruptedException
|
|
{
|
|
LOG("Newbie_Spawn", "Message in onDestroy: Creature died of type - " + getTemplateName(self));
|
|
dictionary webster = new dictionary();
|
|
webster.put("deadGuy", self);
|
|
obj_id mom = getObjIdObjVar(self, "creater");
|
|
messageTo(mom, "creatureDied", webster, rand(180, 360), false);
|
|
LOG("Newbie_Spawn", "Message in onDestroy: Sending message to mom - " + mom + " from self - " + self);
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
}
|