temp.txt deleted online with Bitbucket

This commit is contained in:
Alan Elliott
2018-03-23 16:29:56 -07:00
committed by CekisSWG
parent f52aebcfb1
commit a72a84cef8
82556 changed files with 4633262 additions and 4288 deletions
@@ -0,0 +1,40 @@
package script.creature_spawner;
import script.dictionary;
import script.library.create;
import script.library.locations;
import script.obj_id;
public class krayt_graveyard extends script.base_script
{
public krayt_graveyard()
{
}
public int OnAttach(obj_id self) throws InterruptedException
{
doKraytSpawn();
return SCRIPT_CONTINUE;
}
public void doKraytSpawn() throws InterruptedException
{
obj_id self = getSelf();
if (!hasObjVar(self, "Krayt"))
{
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");
}
}
public int creatureDied(obj_id self, dictionary params) throws InterruptedException
{
messageTo(self, "spawnNew", null, 30, true);
return SCRIPT_CONTINUE;
}
public int spawnNew(obj_id self, dictionary params) throws InterruptedException
{
removeObjVar(self, "Krayt");
doKraytSpawn();
return SCRIPT_CONTINUE;
}
}