Examples of StartStopAction


Examples of lineage2.gameserver.model.entity.events.actions.StartStopAction

    }
    for (BoatPoint p : _platform.getDepartPoints())
    {
      departWay.addObject(BoatWayEvent.BOAT_POINTS, p);
    }
    arrivalWay.addOnTimeAction(0, new StartStopAction(StartStopAction.EVENT, true));
    departWay.addOnTimeAction(300, new StartStopAction(StartStopAction.EVENT, true));
    setWay(0, arrivalWay);
    setWay(1, departWay);
    arrivalWay.reCalcNextTime(false);
  }
View Full Code Here

Examples of lineage2.gameserver.model.entity.events.actions.StartStopAction

      getResidence().setAuctionMinBid(getResidence().getBaseMinBid());
      getResidence().setJdbcState(JdbcEntityState.UPDATED);
      getResidence().update();
     
      _onTimeActions.clear();
      addOnTimeAction(0, new StartStopAction(EVENT, true));
      addOnTimeAction(getResidence().getAuctionLength() * 86400, new StartStopAction(EVENT, false));
     
      _endSiegeDate.setTimeInMillis(getResidence().getSiegeDate().getTimeInMillis() + (getResidence().getAuctionLength() * 86400000L));
     
      registerActions();
    }
    else if ((getResidence().getAuctionLength() == 0) && (owner != null))
    {
    }
    else
    {
      long endDate = getResidence().getSiegeDate().getTimeInMillis() + (getResidence().getAuctionLength() * 86400000L);
      if (endDate <= System.currentTimeMillis())
      {
        getResidence().getSiegeDate().setTimeInMillis(System.currentTimeMillis());
      }
     
      _endSiegeDate.setTimeInMillis(getResidence().getSiegeDate().getTimeInMillis() + (getResidence().getAuctionLength() * 86400000L));
     
      _onTimeActions.clear();
      addOnTimeAction(0, new StartStopAction(EVENT, true));
      addOnTimeAction(getResidence().getAuctionLength() * 86400, new StartStopAction(EVENT, false));
     
      registerActions();
    }
  }
View Full Code Here

Examples of lineage2.gameserver.model.entity.events.actions.StartStopAction

    {
      Element actionElement = (Element) iterator.next();
      if (actionElement.getName().equalsIgnoreCase("start"))
      {
        String name = actionElement.attributeValue("name");
        StartStopAction startStopAction = new StartStopAction(name, true);
        actions.add(startStopAction);
      }
      else if (actionElement.getName().equalsIgnoreCase("stop"))
      {
        String name = actionElement.attributeValue("name");
        StartStopAction startStopAction = new StartStopAction(name, false);
        actions.add(startStopAction);
      }
      else if (actionElement.getName().equalsIgnoreCase("spawn"))
      {
        String name = actionElement.attributeValue("name");
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.