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:
Cekis
2016-04-03 18:21:59 +01:00
parent 6431c394b0
commit 6ed436dd3a
33 changed files with 403 additions and 2257 deletions
+5 -18
View File
@@ -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