Examples of ScriptClassAndMethod


Examples of l2p.extensions.scripts.ScriptManager.ScriptClassAndMethod

    {
      if(player.getVarB("noShift"))
      {
        return false;
      }
      ScriptClassAndMethod handler = ScriptManager.onActionShift.get(obj.getL2ClassShortName());
      if(handler == null && obj.isNpc())
      {
        handler = ScriptManager.onActionShift.get("L2NpcInstance");
      }
      if(handler == null && obj.isSummon())
      {
        handler = ScriptManager.onActionShift.get("L2SummonInstance");
      }
      if(handler == null && obj.isPet())
      {
        handler = ScriptManager.onActionShift.get("L2PetInstance");
      }
      if(handler == null)
      {
        return false;
      }
      return Strings.parseBoolean(player.callScripts(handler.scriptClass, handler.method, new Object[] {player, obj}));
    }
    else
    {
      ScriptClassAndMethod handler = ScriptManager.onAction.get(obj.getL2ClassShortName());
      if(handler == null)
      {
        return false;
      }
      return Strings.parseBoolean(player.callScripts(handler.scriptClass, handler.method, new Object[] {player, obj}));
View Full Code Here

Examples of lineage2.gameserver.scripts.Scripts.ScriptClassAndMethod

    {
      if (player.getVarB("noShift"))
      {
        return false;
      }
      ScriptClassAndMethod handler = Scripts.onActionShift.get(obj.getL2ClassShortName());
      if ((handler == null) && obj.isNpc())
      {
        handler = Scripts.onActionShift.get("NpcInstance");
      }
      if ((handler == null) && obj.isPet())
      {
        handler = Scripts.onActionShift.get("PetInstance");
      }
      if (handler == null)
      {
        return false;
      }
      return Strings.parseBoolean(Scripts.getInstance().callScripts(player, handler.className, handler.methodName, new Object[]
      {
        player,
        obj
      }));
    }
    ScriptClassAndMethod handler = Scripts.onAction.get(obj.getL2ClassShortName());
    if ((handler == null) && obj.isDoor())
    {
      handler = Scripts.onAction.get("DoorInstance");
    }
    if (handler == null)
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.