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