mirror of
https://github.com/SWG-Source/dsrc.git
synced 2026-08-01 01:15:59 -04:00
who isn't sick of converting the freaking scripts? this negates the need
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user