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,50 @@
package script.terminal.base;
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.structure;
public class base_terminal extends script.base_script
{
public base_terminal()
{
}
public int OnInitialize(obj_id self) throws InterruptedException
{
if (hasObjVar(self, structure.VAR_TERMINAL_HEADING))
{
setYaw(self, getFloatObjVar(self, structure.VAR_TERMINAL_HEADING));
}
return SCRIPT_CONTINUE;
}
public int OnObjectMenuRequest(obj_id self, obj_id player, menu_info mi) throws InterruptedException
{
if (isMob(self))
{
return SCRIPT_CONTINUE;
}
menu_info_data mid = mi.getMenuItemByType(menu_info_types.ITEM_USE);
if (mid != null)
{
mid.setServerNotify(true);
}
return SCRIPT_CONTINUE;
}
public boolean playerMounted(obj_id player) throws InterruptedException
{
debugServerConsoleMsg(null, "+++ terminal.base.base_terminal playerMounted +++ entered playerMounted function");
if (isIdValid(getMountId(player)))
{
debugServerConsoleMsg(null, "+++ terminal.base.base_terminal playerMounted +++ player IS mounted.");
return true;
}
return false;
}
}