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,51 @@
package script.beta;
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.consumable;
public class medicine_revive extends script.base_script
{
public medicine_revive()
{
}
public int OnAttach(obj_id self) throws InterruptedException
{
attrib_mod[] am = new attrib_mod[6];
for (int i = 0; i < 3; i++)
{
int attrib = i * 3;
am[i * 2] = utils.createHealWoundAttribMod(attrib, rand(10, 50));
am[i * 2 + 1] = utils.createHealDamageAttribMod(attrib, rand(50, 150));
}
setObjVar(self, consumable.VAR_CONSUMABLE_MODS, am);
setObjVar(self, consumable.VAR_CONSUMABLE_MEDICINE, true);
int charges = rand(1, 3);
setCount(self, charges);
int[] stomach =
{
0,
0,
0
};
setObjVar(self, consumable.VAR_CONSUMABLE_STOMACH_VALUES, stomach);
String[] skill_mod =
{
"healing_efficiency"
};
setObjVar(self, consumable.VAR_SKILL_MOD_REQUIRED, skill_mod);
int[] skill_value =
{
30
};
setObjVar(self, consumable.VAR_SKILL_MOD_MIN, skill_value);
return SCRIPT_CONTINUE;
}
}