Examples of ExShowTrace


Examples of l2p.gameserver.serverpackets.ExShowTrace

    show(out.toString(), player, npc);
  }

  public static ExShowTrace Points2Trace(L2Player player, ArrayList<Location> points, int step, int time)
  {
    ExShowTrace result = new ExShowTrace();
    Location _prev = null;
    for(Location p : points)
    {
      if(player.isGM())
      {
        player.sendMessage(p.toString());
      }
      if(_prev != null)
      {
        result.addLine(_prev, p, step, time);
      }
      _prev = p;
    }
    return result;
  }
View Full Code Here

Examples of l2p.gameserver.serverpackets.ExShowTrace

          return false;
        }
        create_loc = new GArray<int[]>();
        create_loc.add(new int[] {activeChar.getX(), activeChar.getY(), activeChar.getZ(), activeChar.getZ() + 100});
        activeChar.sendMessage("Now you can add points...");
        activeChar.sendPacket(new ExShowTrace());
        locationMenu(activeChar);
        break;
      }
      case admin_loc_add:
      {
        if(create_loc == null)
        {
          activeChar.sendMessage("Location not started");
          locationMenu(activeChar);
          return false;
        }
        create_loc.add(new int[] {activeChar.getX(), activeChar.getY(), activeChar.getZ(), activeChar.getZ() + 100});
        if(create_loc.size() > 1)
        {
          activeChar.sendPacket(Points2Trace(create_loc, 50, false, false));
        }
        if(wordList.length > 1 && wordList[1].equals("menu"))
        {
          locationMenu(activeChar);
        }
        break;
      }
      case admin_loc_reset:
      {
        if(create_loc == null)
        {
          activeChar.sendMessage("Location not started");
          locationMenu(activeChar);
          return false;
        }
        create_loc.clear();
        activeChar.sendPacket(new ExShowTrace());
        locationMenu(activeChar);
        break;
      }
      case admin_loc_end:
      {
View Full Code Here

Examples of l2p.gameserver.serverpackets.ExShowTrace

    }
  }

  public static ExShowTrace Points2Trace(L2Player player, ArrayList<Location> points, int step, int time)
  {
    ExShowTrace result = new ExShowTrace();
    Location prev = null;
    int i = 0;
    for(Location p : points)
    {
      i++;
      if(player.isGM())
      {
        player.sendMessage(p.toString());
      }
      if(prev != null)
      {
        result.addLine(prev, p, step, time);
      }
      prev = p;
    }
    return result;
  }
View Full Code Here

Examples of l2p.gameserver.serverpackets.ExShowTrace

    return Strings.htmlButton(value, action, width, height);
  }

  public static ExShowTrace Points2Trace(GArray<int[]> points, int step, boolean auto_compleate, boolean maxz)
  {
    ExShowTrace result = new ExShowTrace();
    int[] prev = null;
    int[] first = null;
    for(int[] p : points)
    {
      if(first == null)
      {
        first = p;
      }
      if(prev != null)
      {
        result.addLine(prev[0], prev[1], maxz ? prev[3] : prev[2], p[0], p[1], maxz ? p[3] : p[2], step, 60000);
      }
      prev = p;
    }
    if(prev == null || first == null)
    {
      return result;
    }
    if(auto_compleate)
    {
      result.addLine(prev[0], prev[1], maxz ? prev[3] : prev[2], first[0], first[1], maxz ? first[3] : first[2], step, 60000);
    }
    return result;
  }
View Full Code Here

Examples of l2p.gameserver.serverpackets.ExShowTrace

      pathClean(targetRecorder, refIndex);
    }
    if(showTrace && obj.isPlayer() && ((L2Player) obj).getVarB("trace"))
    {
      L2Player player = (L2Player) obj;
      ExShowTrace trace = new ExShowTrace();
      int i = 0;
      for(Location loc : targetRecorder)
      {
        i++;
        if(i == 1 || i == targetRecorder.size())
        {
          continue;
        }
        trace.addTrace(loc.x, loc.y, loc.z + 15, 30000);
      }
      player.sendPacket(trace);
    }
    return targetRecorder;
  }
View Full Code Here

Examples of lineage2.gameserver.network.serverpackets.ExShowTrace

      pathClean(targetRecorder, geoIndex);
    }
    if (showTrace && obj.isPlayer() && ((Player) obj).getVarB("trace"))
    {
      Player player = (Player) obj;
      ExShowTrace trace = new ExShowTrace();
      int i = 0;
      for (Location loc : targetRecorder)
      {
        i++;
        if ((i == 1) || (i == targetRecorder.size()))
        {
          continue;
        }
        trace.addTrace(loc.x, loc.y, loc.z + 15, 30000);
      }
      player.sendPacket(trace);
    }
    return targetRecorder;
  }
View Full Code Here

Examples of lineage2.gameserver.network.serverpackets.ExShowTrace

    }
    if (!found)
    {
      show("Caution, price or item was changed, please be careful !", player, npc);
    }
    ExShowTrace trace = new ExShowTrace();
    trace.addLine(item.player, item.player, 30, 60000);
    player.sendPacket(trace);
    RadarControl rc = new RadarControl(0, 1, item.player);
    player.sendPacket(rc);
    if (player.getVarB(Player.NO_TRADERS_VAR))
    {
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.