Package l2p.gameserver.model

Examples of l2p.gameserver.model.L2Player.addProperty()


    if(lastMailTime != null && lastMailTime + (cha.getLevel() >= 20 ? 60000L : 300000L) > curTime)
    {
      cha.sendMessage("Mail is allowed once per " + (cha.getLevel() >= 20 ? "minute." : "5 minutes."));
      return;
    }
    cha.addProperty(PropertyCollection.MailSent, curTime);
    if(_price > 0)
    {
      String tradeBan = cha.getVar("tradeBan");
      if(tradeBan != null && (tradeBan.equals("-1") || Long.parseLong(tradeBan) >= System.currentTimeMillis()))
      {
View Full Code Here


          }
          Location loc = player.getLastServerPosition();
          if(loc == null || enterCount >= 5)
          {
            player.setMount(0, 0, 0);
            player.addProperty(PropertyCollection.ZoneEnteredNoLandingFlying, 0);
            return;
          }
          player.teleToLocation(loc);
          player.addProperty(PropertyCollection.ZoneEnteredNoLandingFlying, enterCount + 1);
        }
View Full Code Here

            player.setMount(0, 0, 0);
            player.addProperty(PropertyCollection.ZoneEnteredNoLandingFlying, 0);
            return;
          }
          player.teleToLocation(loc);
          player.addProperty(PropertyCollection.ZoneEnteredNoLandingFlying, enterCount + 1);
        }
        else if(Config.ALT_DONT_ALLOW_PETS_ON_SIEGE && player.getPet() != null)
        {
          int id = player.getPet().getNpcId();
          if((PetDataTable.isBabyPet(id) || PetDataTable.isImprovedBabyPet(id)) && SiegeManager.getSiege(player, true) != 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.