mirror of
https://github.com/SWG-Source/dsrc.git
synced 2026-08-01 01:15:59 -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
+5
-18
@@ -1,15 +1,9 @@
|
||||
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.library.locations;
|
||||
import script.dictionary;
|
||||
import script.library.create;
|
||||
import script.library.locations;
|
||||
import script.obj_id;
|
||||
|
||||
public class krayt_graveyard extends script.base_script
|
||||
{
|
||||
@@ -24,19 +18,12 @@ public class krayt_graveyard extends script.base_script
|
||||
public void doKraytSpawn() throws InterruptedException
|
||||
{
|
||||
obj_id self = getSelf();
|
||||
if (hasObjVar(self, "Krayt"))
|
||||
if (!hasObjVar(self, "Krayt"))
|
||||
{
|
||||
return;
|
||||
}
|
||||
else
|
||||
{
|
||||
location here = getLocation(self);
|
||||
location dragon = locations.getGoodLocationAroundLocation(here, 100f, 100f, 100f, 100f);
|
||||
obj_id kd = create.object("canyon_krayt_dragon", dragon);
|
||||
obj_id kd = create.object("canyon_krayt_dragon", locations.getGoodLocationAroundLocation(getLocation(self), 100f, 100f, 100f, 100f));
|
||||
setObjVar(kd, "creater", self);
|
||||
setObjVar(self, "Krayt", kd);
|
||||
attachScript(kd, "creature_spawner.death_msg");
|
||||
return;
|
||||
}
|
||||
}
|
||||
public int creatureDied(obj_id self, dictionary params) throws InterruptedException
|
||||
|
||||
Reference in New Issue
Block a user