Files
dsrc/sku.0/sys.server/compiled/game/script/creature_spawner/tatooine_easy.script
T

63 lines
938 B
Plaintext

inherits creature_spawner.base_newbie_creature_spawner;
trigger OnInitialize()
{
spawnCreatures(self);
return SCRIPT_CONTINUE;
}
messageHandler creatureDied()
{
doDeathRespawn(self);
return SCRIPT_CONTINUE;
}
// overloading these two functions.
string pickCreature()
{
string creature = "minor_worrt";
int choice = rand (1,14);
switch (choice)
{
case 1:
case 2:
case 3:
creature = "minor_worrt";
break;
case 4:
case 5:
case 6:
creature = "kreetle";
break;
case 7:
case 8:
creature = "rill";
break;
case 9:
case 10:
creature = "lesser_desert_womprat";
break;
case 11:
creature = "worrt";
break;
case 12:
creature = "rockmite";
break;
case 13:
creature = "mound_mite";
break;
case 14:
creature = "womprat";
break;
default:
creature = "minor_worrt";
break;
}
return creature;
}
int getMaxPop()
{
int maxPop = 8;
return maxPop;
}