who isn't sick of converting the freaking scripts? this negates the need

This commit is contained in:
DarthArgus
2015-11-24 09:27:45 -06:00
parent 2e64106bc8
commit bbee2d328c
11077 changed files with 2604347 additions and 3425075 deletions
@@ -0,0 +1,57 @@
package script.npe;
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.create;
import script.library.utils;
import script.library.npe;
import script.library.groundquests;
import script.library.sequencer;
import script.library.static_item;
public class npe_target_crate extends script.base_script
{
public npe_target_crate()
{
}
public int OnAttach(obj_id self) throws InterruptedException
{
setInvulnerable(self, true);
return SCRIPT_CONTINUE;
}
public int OnInitialize(obj_id self) throws InterruptedException
{
setInvulnerable(self, true);
return SCRIPT_CONTINUE;
}
public int OnObjectDisabled(obj_id self, obj_id killer) throws InterruptedException
{
setInvulnerable(self, true);
messageTo(self, "destroyDisabledLair", null, 0, false);
return SCRIPT_CONTINUE;
}
public int OnObjectDamaged(obj_id self, obj_id attacker, obj_id weapon, int damage) throws InterruptedException
{
return SCRIPT_CONTINUE;
}
public int OnDestroy(obj_id self) throws InterruptedException
{
obj_id building = getTopMostContainer(self);
messageTo(building, "crateDestroyed", null, 0, false);
return SCRIPT_CONTINUE;
}
public int destroyDisabledLair(obj_id self, dictionary params) throws InterruptedException
{
location death = getLocation(self);
playClientEffectObj(self, "clienteffect/combat_explosion_lair_large.cef", self, "");
playClientEffectLoc(self, "clienteffect/combat_explosion_lair_large.cef", death, 0);
destroyObject(self);
return SCRIPT_CONTINUE;
}
}