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.working;
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.skill;
public class difficultytest extends script.base_script
{
public difficultytest()
{
}
public int OnHearSpeech(obj_id self, obj_id objSpeaker, String strText) throws InterruptedException
{
if (objSpeaker != self)
{
return SCRIPT_CONTINUE;
}
if (strText.equals("getDifficulty"))
{
int intLevel = getLevel(self);
sendSystemMessageTestingOnly(self, "My level is " + intLevel);
debugServerConsoleMsg(self, "my level is " + intLevel);
}
if (strText.equals("reloadDifficulty"))
{
sendSystemMessageTestingOnly(self, "Reloaded skill level");
recalculateLevel(self);
}
if (strText.equals("getGroupDifficulty"))
{
int intLevel = skill.getGroupLevel(self);
sendSystemMessageTestingOnly(self, "My Group level is " + intLevel);
}
if (strText.equals("scriptVars"))
{
deltadictionary dctScriptVars = self.getScriptVars();
if (dctScriptVars == null)
{
debugSpeakMsg(self, "null scriptvar");
}
debugSpeakMsg(self, "scriptvars are " + dctScriptVars.toString());
}
return SCRIPT_CONTINUE;
}
}