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