mirror of
https://bitbucket.org/seefoe/dsrc.git
synced 2026-07-31 01:15:55 -04:00
who isn't sick of converting the freaking scripts? this negates the need
This commit is contained in:
@@ -0,0 +1,52 @@
|
||||
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 naboo_medium extends script.creature_spawner.base_newbie_creature_spawner
|
||||
{
|
||||
public naboo_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 = "fanned_rawl";
|
||||
int choice = rand(1, 3);
|
||||
switch (choice)
|
||||
{
|
||||
case 1:
|
||||
creature = "fanned_rawl";
|
||||
break;
|
||||
case 2:
|
||||
creature = "nightspider";
|
||||
break;
|
||||
case 3:
|
||||
creature = "flewt";
|
||||
break;
|
||||
default:
|
||||
creature = "flewt";
|
||||
break;
|
||||
}
|
||||
return creature;
|
||||
}
|
||||
public int getMaxPop() throws InterruptedException
|
||||
{
|
||||
int maxPop = 4;
|
||||
return maxPop;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user