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
+9
-36
@@ -1,52 +1,25 @@
|
||||
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;
|
||||
|
||||
public class tatooine_medium extends script.creature_spawner.base_newbie_creature_spawner
|
||||
{
|
||||
public static final boolean SPAWNER_DISABLED = false;
|
||||
public int maxPop = 4;
|
||||
public boolean newbie = true;
|
||||
|
||||
public tatooine_medium()
|
||||
{
|
||||
}
|
||||
public int OnInitialize(obj_id self) throws InterruptedException
|
||||
{
|
||||
spawnCreatures(self);
|
||||
return SCRIPT_CONTINUE;
|
||||
}
|
||||
public int creatureDied(obj_id self, dictionary params) throws InterruptedException
|
||||
{
|
||||
doDeathRespawn(self);
|
||||
return SCRIPT_CONTINUE;
|
||||
}
|
||||
public String pickCreature() throws InterruptedException
|
||||
{
|
||||
String creature = "rockmite";
|
||||
int choice = rand(1, 3);
|
||||
switch (choice)
|
||||
switch (rand(1,3))
|
||||
{
|
||||
case 1:
|
||||
creature = "rockmite";
|
||||
break;
|
||||
return "rockmite";
|
||||
case 2:
|
||||
creature = "mound_mite";
|
||||
break;
|
||||
return "mound_mite";
|
||||
case 3:
|
||||
creature = "worrt";
|
||||
break;
|
||||
default:
|
||||
creature = "worrt";
|
||||
break;
|
||||
return "worrt";
|
||||
}
|
||||
return creature;
|
||||
}
|
||||
public int getMaxPop() throws InterruptedException
|
||||
{
|
||||
int maxPop = 4;
|
||||
return maxPop;
|
||||
return "worrt";
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user