mirror of
https://github.com/SWG-Source/dsrc.git
synced 2026-10-07 23:13:17 -04:00
who isn't sick of converting the freaking scripts? this negates the need
This commit is contained in:
@@ -0,0 +1,38 @@
|
||||
package script.npc;
|
||||
|
||||
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 legacy_dead_miner extends script.base_script
|
||||
{
|
||||
public legacy_dead_miner()
|
||||
{
|
||||
}
|
||||
public static int INITIAL_DELAY = 1;
|
||||
public int OnAttach(obj_id self) throws InterruptedException
|
||||
{
|
||||
if (hasScript(self, "ai.ai"))
|
||||
{
|
||||
detachScript(self, "ai.ai");
|
||||
}
|
||||
if (hasScript(self, "ai.creature_combat"))
|
||||
{
|
||||
detachScript(self, "ai.creature_combat");
|
||||
}
|
||||
if (hasScript(self, "systems.combat.credit_for_kills"))
|
||||
{
|
||||
detachScript(self, "systems.combat.credit_for_kills");
|
||||
}
|
||||
if (hasScript(self, "systems.combat.combat_actions"))
|
||||
{
|
||||
detachScript(self, "systems.combat.combat_actions");
|
||||
}
|
||||
setPosture(self, POSTURE_KNOCKED_DOWN);
|
||||
return SCRIPT_CONTINUE;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user