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,68 @@
package script.player.skill;
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.utils;
import script.library.meditation;
import script.library.metrics;
public class cleanup extends script.base_script
{
public cleanup()
{
}
public int OnRecapacitated(obj_id self) throws InterruptedException
{
if (hasObjVar(self, meditation.VAR_FORCE_OF_WILL_ACTIVE))
{
int stamp = getIntObjVar(self, meditation.VAR_FORCE_OF_WILL_ACTIVE);
if (stamp < 0)
{
removeObjVar(self, meditation.VAR_FORCE_OF_WILL_ACTIVE);
}
}
return SCRIPT_CONTINUE;
}
public int handlePowerBoostWane(obj_id self, dictionary params) throws InterruptedException
{
if (!hasObjVar(self, meditation.VAR_POWERBOOST_ACTIVE))
{
return SCRIPT_CONTINUE;
}
int expire = getIntObjVar(self, meditation.VAR_POWERBOOST_ACTIVE);
int d_expire = params.getInt("expiration");
if (expire != d_expire)
{
return SCRIPT_CONTINUE;
}
sendSystemMessage(self, meditation.SID_POWERBOOST_WANE);
return SCRIPT_CONTINUE;
}
public int handlePowerBoostEnd(obj_id self, dictionary params) throws InterruptedException
{
if (!hasObjVar(self, meditation.VAR_POWERBOOST_ACTIVE))
{
return SCRIPT_CONTINUE;
}
int expire = getIntObjVar(self, meditation.VAR_POWERBOOST_ACTIVE);
int d_expire = params.getInt("expiration");
if (expire != d_expire)
{
return SCRIPT_CONTINUE;
}
sendSystemMessage(self, meditation.SID_POWERBOOST_END);
removeObjVar(self, meditation.VAR_POWERBOOST_ACTIVE);
return SCRIPT_CONTINUE;
}
public int handlePowerBoostLog(obj_id self, dictionary params) throws InterruptedException
{
metrics.logBuffStatus(self);
return SCRIPT_CONTINUE;
}
}