Package com.l2jfrozen.gameserver.model

Examples of com.l2jfrozen.gameserver.model.Location


      activeChar.sendMessage("MapRegion: x:" + MapRegionTable.getInstance().getMapRegionX(activeChar.getX()) + " y:" + MapRegionTable.getInstance().getMapRegionX(activeChar.getY()));

      activeChar.sendMessage("Closest Town: " + MapRegionTable.getInstance().getClosestTownName(activeChar));

      Location loc;

      loc = MapRegionTable.getInstance().getTeleToLocation(activeChar, MapRegionTable.TeleportWhereType.Castle);
      activeChar.sendMessage("TeleToLocation (Castle): x:" + loc.getX() + " y:" + loc.getY() + " z:" + loc.getZ());

      loc = MapRegionTable.getInstance().getTeleToLocation(activeChar, MapRegionTable.TeleportWhereType.ClanHall);
      activeChar.sendMessage("TeleToLocation (ClanHall): x:" + loc.getX() + " y:" + loc.getY() + " z:" + loc.getZ());

      loc = MapRegionTable.getInstance().getTeleToLocation(activeChar, MapRegionTable.TeleportWhereType.SiegeFlag);
      activeChar.sendMessage("TeleToLocation (SiegeFlag): x:" + loc.getX() + " y:" + loc.getY() + " z:" + loc.getZ());

      loc = MapRegionTable.getInstance().getTeleToLocation(activeChar, MapRegionTable.TeleportWhereType.Town);
      activeChar.sendMessage("TeleToLocation (Town): x:" + loc.getX() + " y:" + loc.getY() + " z:" + loc.getZ());

      loc = null;
    }
    else if(actualCommand.equalsIgnoreCase("admin_zone_reload"))
    {
View Full Code Here


    replyMSG.append("Current event...<br1>");
    replyMSG.append("Name:&nbsp;<font color=\"00FF00\">" + DM.get_eventName() + "</font><br1>");
    replyMSG.append("Description:&nbsp;<font color=\"00FF00\">" + DM.get_eventDesc() + "</font><br1>");
    replyMSG.append("Joining location name:&nbsp;<font color=\"00FF00\">" + DM.get_joiningLocationName() + "</font><br1>");
   
    Location npc_loc = DM.get_npcLocation();
   
    replyMSG.append("Joining NPC ID:&nbsp;<font color=\"00FF00\">" + DM.get_npcId() + " on pos " + npc_loc._x + "," + npc_loc._y  + "," + npc_loc._z  + "</font><br1>");
    replyMSG.append("Reward ID:&nbsp;<font color=\"00FF00\">" + DM.get_rewardId() + "</font><br1>");
    replyMSG.append("Reward Amount:&nbsp;<font color=\"00FF00\">" + DM.get_rewardAmount() + "</font><br><br>");
    replyMSG.append("Min lvl:&nbsp;<font color=\"00FF00\">" + DM.get_minlvl() + "</font><br>");
    replyMSG.append("Max lvl:&nbsp;<font color=\"00FF00\">" + DM.get_maxlvl() + "</font><br><br>");
    replyMSG.append("Death Match Color:&nbsp;<font color=\"00FF00\">" + DM.get_playerColors() + "</font><br>");
   
    Location player_loc = DM.get_playersSpawnLocation();
   
    replyMSG.append("Death Match Spawn Pos:&nbsp;<font color=\"00FF00\">" + player_loc._x + "," +  player_loc._y + "," +  player_loc._z + "</font><br><br>");
    replyMSG.append("Current players:<br1>");

    if(!DM.is_started())
View Full Code Here

    private int _hp;

    public SiegeSpawn(int castle_id, int x, int y, int z, int heading, int npc_id)
    {
      _castleId = castle_id;
      _location = new Location(x, y, z, heading);
      _heading = heading;
      _npcId = npc_id;
    }
View Full Code Here

    }

    public SiegeSpawn(int castle_id, int x, int y, int z, int heading, int npc_id, int hp)
    {
      _castleId = castle_id;
      _location = new Location(x, y, z, heading);
      _heading = heading;
      _npcId = npc_id;
      _hp = hp;
    }
View Full Code Here

    if(Config.ASSERT)
      assert getPosition().getWorldRegion() == null;

    if(Config.GEODATA > 0 && dropper != null)
    {
      Location dropDest = GeoData.getInstance().moveCheck(dropper.getX(), dropper.getY(), dropper.getZ(), x, y, z);
     
      if(dropDest != null && dropDest.getX()!=0 && dropDest.getY()!=0 ){
       
        x = dropDest.getX();
        y = dropDest.getY();
        z = dropDest.getZ();

      }
     
      dropDest = null;
    }
View Full Code Here

                             }
                             String targetName = param[1];
                           L2PcInstance player = L2World.getInstance().getPlayer(targetName);
                           if (player != null)
                             {
                                 Location loc = MapRegionTable.getInstance().getTeleToLocation(player, MapRegionTable.TeleportWhereType.Town);
                               player.setInstanceId(0);
                                 player.teleToLocation(loc, true);
                             }
                             else
                                 activeChar.sendMessage("User is not online.");
View Full Code Here

TOP

Related Classes of com.l2jfrozen.gameserver.model.Location

Copyright © 2018 www.massapicom. 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.