mirror of
https://github.com/SWG-Source/dsrc.git
synced 2026-07-31 00:15:54 -04:00
Overhauled the creature and NPC spawners that actually may no longer be used in the game... but.. at least they're better than before
This commit is contained in:
Regular → Executable
+4
-11
@@ -1,12 +1,7 @@
|
||||
package script.creature_spawner;
|
||||
|
||||
import script.*;
|
||||
import script.base_class.*;
|
||||
import script.combat_engine.*;
|
||||
import java.util.Arrays;
|
||||
import java.util.Hashtable;
|
||||
import java.util.Vector;
|
||||
import script.base_script;
|
||||
import script.dictionary;
|
||||
import script.obj_id;
|
||||
|
||||
public class death_msg extends script.base_script
|
||||
{
|
||||
@@ -15,13 +10,11 @@ public class death_msg extends script.base_script
|
||||
}
|
||||
public int OnDestroy(obj_id self) throws InterruptedException
|
||||
{
|
||||
String creatureTemplate = getTemplateName(self);
|
||||
LOG("Newbie_Spawn", "Message in onDestroy: Creature died of type - " + creatureTemplate);
|
||||
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");
|
||||
int randSpawn = rand(180, 360);
|
||||
messageTo(mom, "creatureDied", webster, randSpawn, false);
|
||||
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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user