Jump to content

Question

Posted

Index: java/com/l2jserver/communityserver/communityboard/boards/TopBoard.java

===================================================================

--- java/com/l2jserver/communityserver/communityboard/boards/TopBoard.java  (revision 631)

+++ java/com/l2jserver/communityserver/communityboard/boards/TopBoard.java  (working copy)

@@ -16,9 +16,12 @@

 

import java.util.StringTokenizer;

 

+import javolution.text.TextBuilder;

+

import com.l2jserver.communityserver.cache.HtmCache;

import com.l2jserver.communityserver.communityboard.CommunityBoard;

import com.l2jserver.communityserver.communityboard.CommunityBoardManager;

+import com.l2jserver.communityserver.model.PlayerList;

 

public class TopBoard extends CommunityBoard

{

@@ -42,6 +45,10 @@

      }

      if (file.isEmpty())

          content = "<html><body><br><br><center>Error: no file name </center></body></html>";

+      else if (file.equals("top_pk"))

+        content = top10pk();

+      else if (file.equals("top_pvp"))

+        content = top10pvp();

      else

          content = HtmCache.getInstance().getHtm(this.getCommunityBoardManager().getSQLDPId(),"html/" + file);

      if (content == null)

@@ -50,6 +57,26 @@

      super.send(playerObjId, content);

    }

 

+  public String top10pk() {

+      PlayerList pl = new PlayerList(0);

+      String content = HtmCache.getInstance().getHtm("cb_data/staticfiles/html/top-players.htm");

+      //content = content.replaceAll("%Link%","top_pk");

+      content = content.replaceAll("%LinkTitle%","Top PK");

+      content = content.replaceAll("%Title%","<font color=\"LEVEL\">[Top PK]</font>");

+      content = content.replaceAll("%PlayerList%", pl.loadPlayerList());

+      return content;

+  }

+  public String top10pvp() {

+      PlayerList pl = new PlayerList(1);

+      String content = HtmCache.getInstance().getHtm("cb_data/staticfiles/html/top-players.htm");

+      //content = content.replaceAll("%Link%","top_pvp");

+      content = content.replaceAll("%LinkTitle%","Top PvP");

+      content = content.replaceAll("%Title%","<font color=\"LEVEL\">[Top PvP]</font>");

+      content = content.replaceAll("%PlayerList%", pl.loadPlayerList());

+      return content;

+  }

    @Override

    public final void parseWrite(final int playerObjId, final String ar1, final String ar2, final String ar3, final String ar4, final String ar5)

    {

Index: java/com/l2jserver/communityserver/model/PlayerList.java

===================================================================

--- java/com/l2jserver/communityserver/model/PlayerList.java  (revision 0)

+++ java/com/l2jserver/communityserver/model/PlayerList.java  (revision 0)

@@ -0,0 +1,206 @@

+package com.l2jserver.communityserver.model;

+

+import java.sql.PreparedStatement;

+import java.sql.ResultSet;

+import java.util.Map;

+import java.util.logging.Logger;

+

+import com.l2jserver.communityserver.L2DatabaseFactory;

+

+import javolution.text.TextBuilder;

+import javolution.util.FastMap;

+

+public class PlayerList

+{

+  private static Logger _log = Logger.getLogger(PlayerList.class.getName());

+  private int _posId;

+  private TextBuilder _playerList = new TextBuilder();

+

+  public PlayerList(int type)

+  {

+      loadFromDB(type);

+  }

+  private void loadFromDB(int type) {

+      java.sql.Connection con = null;

+      String top;

+      if (type==0)

+        top = "pkkills";

+      else

+        top = "pvpkills";

+      try

+      {

+        _posId = 0;

+        con = L2DatabaseFactory.getInstance().getConnection();

+        PreparedStatement statement = con.prepareStatement("SELECT c.char_name, c.base_class, c."+top+", c.level, c.online, cl.clan_name, cl.ally_name FROM characters c LEFT JOIN clan_data cl ON cl.clan_id=c.clanid WHERE c.accesslevel=0 ORDER BY c."+top+" DESC, c.char_name ASC LIMIT 10");

+       

+        ResultSet result = statement.executeQuery();

+       

+        while (result.next())

+        {

+            boolean status = false;

+            _posId = _posId + 1; 

+           

+            if(result.getInt("online") == 1)

+              status = true;

+           

+            addPlayerToList(_posId, result.getString("char_name"), result.getString("clan_name"), result.getString("ally_name"), result.getInt("base_class"), result.getInt("level"), result.getInt(top), status);

+        }

+           

+        result.close();

+        statement.close();

+      }

+      catch (Exception e)

+      {

+        e.printStackTrace();

+      }

+      finally

+      {

+        try

+        {

+            con.close();

+        }

+        catch (Exception e)

+        {

+        }

+      }

+  }

+  public String loadPlayerList()

+  {

+      return _playerList.toString();

+  }

+  private void addPlayerToList(int objId, String name, String clan, String alliance, int ChrClass, int level, int points, boolean isOnline)

+  {

+      _playerList.append("<table border=0 cellspacing=0 cellpadding=2 width=750>");

+      _playerList.append("<tr>");

+      _playerList.append("<td FIXWIDTH=10></td>");

+      _playerList.append("<td FIXWIDTH=40>"+objId+".</td>");

+      _playerList.append("<td FIXWIDTH=150>"+name+"</td>");

+      _playerList.append("<td FIXWIDTH=80>"+level+"</td>");

+      _playerList.append("<td FIXWIDTH=160>"+className(ChrClass)+"</td>");

+      _playerList.append("<td FIXWIDTH=160>"+clan+"</td>");

+      _playerList.append("<td FIXWIDTH=160>"+alliance+"</td>");

+      _playerList.append("<td FIXWIDTH=60>"+points+"</td>");

+      _playerList.append("<td FIXWIDTH=90>"+((isOnline) ? "<font color=99FF00>Online</font>" : "<font color=CC0000>Offline</font>")+"</td>");

+      _playerList.append("<td FIXWIDTH=5></td>");

+      _playerList.append("</tr>");

+      _playerList.append("</table>");

+      _playerList.append("<img src=\"L2UI.Squaregray\" width=\"740\" height=\"1\">");

+  }

+  private final String className(int classId)

+  {

+      Map<Integer, String> classList;     

+      classList = new FastMap<Integer, String>();

+      classList.put(0, "Fighter");

+      classList.put(1, "Warrior");

+      classList.put(2, "Gladiator");

+      classList.put(3, "Warlord");

+      classList.put(4, "Knight");

+      classList.put(5, "Paladin");

+      classList.put(6, "Dark Avenger");

+      classList.put(7, "Rogue");

+      classList.put(8, "Treasure Hunter");

+      classList.put(9, "Hawkeye");

+      classList.put(10, "Mage");

+      classList.put(11, "Wizard");

+      classList.put(12, "Sorcerer");

+      classList.put(13, "Necromancer");

+      classList.put(14, "Warlock");

+      classList.put(15, "Cleric");

+      classList.put(16, "Bishop");

+      classList.put(17, "Prophet");

+      classList.put(18, "Elven Fighter");

+      classList.put(19, "Elven Knight");

+      classList.put(20, "Temple Knight");

+      classList.put(21, "Swordsinger");

+      classList.put(22, "Elven Scout");

+      classList.put(23, "Plains Walker");

+      classList.put(24, "Silver Ranger");

+      classList.put(25, "Elven Mage");

+      classList.put(26, "Elven Wizard");

+      classList.put(27, "Spellsinger");

+      classList.put(28, "Elemental Summoner");

+      classList.put(29, "Oracle");

+      classList.put(30, "Elder");

+      classList.put(31, "Dark Fighter");

+      classList.put(32, "Palus Knightr");

+      classList.put(33, "Shillien Knight");

+      classList.put(34, "Bladedancer");

+      classList.put(35, "Assasin");

+      classList.put(36, "Abyss Walker");

+      classList.put(37, "Phantom Ranger");

+      classList.put(38, "Dark Mage");

+      classList.put(39, "Dark Wizard");

+      classList.put(40, "Spellhowler");

+      classList.put(41, "Phantom Summoner");

+      classList.put(42, "Shillien Oracle");

+      classList.put(43, "Shilien Elder");

+      classList.put(44, "Orc Fighter");

+      classList.put(45, "Orc Raider");

+      classList.put(46, "Destroyer");

+      classList.put(47, "Orc Monk");

+      classList.put(48, "Tyrant");

+      classList.put(49, "Orc Mage");

+      classList.put(50, "Orc Shaman");

+      classList.put(51, "Overlord");

+      classList.put(52, "Warcryer");

+      classList.put(53, "Dwarven Fighter");

+      classList.put(54, "Scavenger");

+      classList.put(55, "Bounty Hunter");

+      classList.put(56, "Artisan");

+      classList.put(57, "Warsmith");

+      classList.put(88, "Duelist");

+      classList.put(89, "Dreadnought");

+      classList.put(90, "Phoenix Knight");

+      classList.put(91, "Hell Knight");

+      classList.put(92, "Sagittarius");

+      classList.put(93, "Adventurer");

+      classList.put(94, "Archmage");

+      classList.put(95, "Soultaker");

+      classList.put(96, "Arcana Lord");

+      classList.put(97, "Cardinal");

+      classList.put(98, "Hierophant");

+      classList.put(99, "Evas Templar");

+      classList.put(100, "Sword Muse");

+      classList.put(101, "Wind Rider");

+      classList.put(102, "Moonlight Sentinel");

+      classList.put(103, "Mystic Muse");

+      classList.put(104, "Elemental Master");

+      classList.put(105, "Evas Saint");

+      classList.put(106, "Shillien Templar");

+      classList.put(107, "Spectral Dancer");

+      classList.put(108, "Ghost Hunter");

+      classList.put(109, "Ghost Sentinel");

+      classList.put(110, "Storm Screamer");

+      classList.put(111, "Spectral Master");

+      classList.put(112, "Shillien Saint");

+      classList.put(113, "Titan");

+      classList.put(114, "Grand Khavatari");

+      classList.put(115, "Dominator");

+      classList.put(116, "Doomcryer");

+      classList.put(117, "Fortune Seeker");

+      classList.put(118, "Maestro");

+      classList.put(123, "Male Soldier");

+      classList.put(124, "Female Soldier");

+      classList.put(125, "Trooper");

+      classList.put(126, "Warder");

+      classList.put(127, "Berserker");

+      classList.put(128, "Male Soulbreaker");

+      classList.put(129, "Female Soulbreaker");

+      classList.put(130, "Arbalester");

+      classList.put(131, "Doombringer");

+      classList.put(132, "Male Soulhound");

+      classList.put(133, "Female Soulhound");

+      classList.put(134, "Trickster");

+      classList.put(135, "Inspector");

+      classList.put(136, "Judicator");

+     

+      return classList.get(classId);

+  }

+}

Index: cb_data/staticfiles/html/top-players.htm

===================================================================

--- cb_data/staticfiles/html/top-players.htm  (revision 0)

+++ cb_data/staticfiles/html/top-players.htm  (revision 0)

@@ -0,0 +1,36 @@

+<html>

+

+

+<body>

+

+<center><br><br> <br1><br1>

+

+<table border=0 cellspacing=0 cellpadding=0>

+<tr>

+<td FIXWIDTH=15> </td>

+<td width=750 height=30 align=left><a action="bypass _bbshome"> LOCAL COMMUNITY </a> > %LinkTitle%</td>

+</tr></table>

+%Title%

+<br>

+<table border=0 cellspacing=0 cellpadding=2 bgcolor=5A5A5A width=750>

+<tr>

+

+<td FIXWIDTH=10></td>

+<td FIXWIDTH=40>#</td>

+<td FIXWIDTH=150>Name</td>

+<td FIXWIDTH=80>Lv</td>

+<td FIXWIDTH=160>Class</td>

+<td FIXWIDTH=160>Clan</td>

+<td FIXWIDTH=160>Ally</td>

+<td FIXWIDTH=60>Points</td>

+<td FIXWIDTH=90>Status</td>

+<td FIXWIDTH=5></td>

+</tr>

+</table>

+

+%PlayerList%

+

+<br> <br> <br>

+</center>

+</body>

+</html>

Index: cb_data/top/bartz/html/index.htm

===================================================================

--- cb_data/top/bartz/html/index.htm  (revision 631)

+++ cb_data/top/bartz/html/index.htm  (working copy)

@@ -80,6 +80,37 @@

<tr><td width=755><img src="l2ui.squaregray" width="750" height="1"></td></tr>

</table>

  <br>

+

+<table border=0 cellspacing=0 cellpadding=2>

+<tr>

+<td FIXWIDTH=100 align=right valign=top><img src="l2ui.bbs_folder" width=32 height=32></td>

+<td FIXWIDTH=410 align=left valign=top><a action="bypass _bbshome;top_pvp">Top PvP</a><br1>

+

+<font color="AAAAAA">Top PvP players</font></td>

+<td FIXWIDTH=95 align=center valign=top>10</td>

+<td FIXWIDTH=150 align=center valign=top>mochitto</td>

+</tr>

+</table>

+<table border=0 cellspacing=0 cellpadding=0>

+<tr><td width=755><img src="l2ui.squaregray" width="750" height="1"></td></tr>

+</table>

+ <br>

+

+ <table border=0 cellspacing=0 cellpadding=2>

+<tr>

+<td FIXWIDTH=100 align=right valign=top><img src="l2ui.bbs_folder" width=32 height=32></td>

+<td FIXWIDTH=410 align=left valign=top><a action="bypass _bbshome;top_pk">Top PK</a><br1>

+

+<font color="AAAAAA">Top PK players</font></td>

+<td FIXWIDTH=95 align=center valign=top>10</td>

+<td FIXWIDTH=150 align=center valign=top>mochitto</td>

+</tr>

+</table>

+<table border=0 cellspacing=0 cellpadding=0>

+<tr><td width=755><img src="l2ui.squaregray" width="750" height="1"></td></tr>

+</table>

+ <br>

+

<br>

 

<font color="LEVEL">L2J Community Board.</font>

 

thelo na m pite pos akribos tha peraso ton java code ke se pio simio akribos.....plz

3 answers to this question

Recommended Posts

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


  • Posts

    • Quick head's up if anyone needs sniffer we have it and the price is reasonable. any server is doable.
    • so u need to create them and then use the icon name in the prefered ones
    • ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━      ⚔️  A NEW ERA OF LINEAGE 2 PVP  ⚔️         High Five | 2026 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ We are building something that has never existed before. Not another copy. Not another "x2000 PvP server with TvT." This is a complete PvP ecosystem — where every kill matters,every rivalry has a face, and your legacy is worn on your character. We are sharing this here first, before anything is announced publicly. We want feedback. We want the right people. ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 📌  CORE SERVER FEATURES ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 🔹 Chronicle .............. High Five 🔹 Rates .................. x2000 🔹 Safe Enchant ........... +3 🔹 Max Enchant ............ +10 🔹 Enchant Rate ........... 33% 🔹 Buff Slots ............. 24 + 4 🔹 Song & Dance Slots ..... 12 🔹 Buff Duration .......... 4 hours 🔹 TvT .................... Every Hour  (Karma + PvP points) 🔹 Hero ................... Every Week 🔹 Olympiad ............... 3 Hours Daily 🔹 Castle Sieges .......... Weekly 🔹 Territory Wars ......... Weekly 🔹 Grand Bosses ........... 1 week respawn 🔹 Costume Farm Area ...... Custom mobs & zones 🔹 NPC Buffers + GM Shops 🔹 Custom Economy 🔹 Custom Playground 🔹 Custom Events 🔹 Anti-Bot | Anti-DDoS | Highly Secured 🔹 Stable | No Lag | No sudden wipes ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 🚀  5 FEATURES THAT HAVE NEVER EXISTED      ON ANY LINEAGE 2 SERVER ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ─────────────────────────────────────── 💰  1. BOUNTY HUNTER SYSTEM ─────────────────────────────────────── Every player with high PvP points becomes a target. Anyone can place real in-game adena / currency / gear as a bounty on any specific player they want dead. Kill the target → collect the bounty. → Top 10 Active Bounties visible LIVE on website + in-game board → Updated in real time — anyone can see who has a price on their head → Clans place bounties on enemy leaders before sieges → Creates real economic stakes behind every single kill → 100% organic drama — no admin needed to create conflict ─────────────────────────────────────── 🏆  2. SEASON RANKED LADDER + REAL PRIZE POOL ─────────────────────────────────────── Every 45 days a Season ends. PvP Score resets. Gear stays. Glory is earned. → Top 3 players receive a REAL money prize pool at season end → Top clan earns a unique exclusive in-game title displayed for the entire next season → Permanent Hall of Fame on website — name, class, kills, and season — forever → Season end = fresh ranking start for everyone New players have a real shot. Veterans must defend. → This single feature will make clans actively recruit  and communities form around the server organically ─────────────────────────────────────── 📱  3. LIVE SERVER DASHBOARD ─────────────────────────────────────── A fully live website — accessible from any phone or browser: → Real-time Kill Feed — who killed who, where, when → Live PvP Leaderboard — updated every minute → Live Bounty Board — active bounties and claimed kills → Grand Boss timers — next Baium, Antharas, Valakas spawn → Siege countdown with registered clans visible → Server population — online now, today's peak, all-time peak Why this matters: Players check their phone at work and see their clan is losing the siege. They log in. They recruit a friend. That friend stays. Friends who have never played see the stats and ask what server it is. This is automatic word-of-mouth that no advertisement can buy. ─────────────────────────────────────── ⚔️  4. NEMESIS SYSTEM ─────────────────────────────────────── The system tracks who kills you most. If the same player kills you 5 times in a row — he becomes your official NEMESIS. → A red skull icon appears above his head — visible only to you → Kill your Nemesis → DOUBLE PvP points    + server-wide announcement: "[PlayerX] has avenged his honor against [PlayerY]!" → If he kills you 10 times consecutively → you receive the title [Hunted] — visible to the entire server    Public humiliation. Maximum motivation. → Eliminate your Nemesis → your title is removed    He receives [Defeated] for 1 hour This transforms anonymous PvP into personal rivalries. Players will bring friends just to help eliminate their Nemesis. These stories are what people talk about for years. ─────────────────────────────────────── 👑  5. CLAN SIEGE CROWN — WEARABLE LEGACY TROPHY  ─────────────────────────────────────── This feature does not exist on any L2 server in the world. Every clan that wins a Castle Siege receives 10 custom hat/accessory items — physically wearable in-game. Each Crown is: → UNIQUE per castle — Aden Crown has a different visual from Giran Crown, Rune Crown, Goddard Crown, etc. → PERSONALIZED — the clan name AND clan crest are embedded visually on the hat itself, like a clan cloak but on your head    Every player who sees you knows exactly who you are and what castle your clan owns → NUMBERED — tooltip reads:    "Crown of Aden #4/10 — Season 2"    A collectible. A proof. A statement. → PERMANENT — you lose the castle at next siege, you keep the Crown → LEGACY — at season end it becomes a permanent trophy:    "Crown of Aden — Season 2  |  [YourClanName]"    Stored in your inventory as living history When a player wearing this Crown walks through Giran, everyone sees the clan crest displayed on the accessory. No leaderboard needed. Status is worn on your character.   -------------------------------------------------------------------------------------------------------------------------------------------------------------------- ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 🛠️  WHO WE ARE LOOKING FOR ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ We are building the right team first. No launch date until everything is right. ✅ H5 Developer — L2J or L2OFF    Must have experience with high-rate PvP servers    Bonus: experience with custom feature development ✅ Web Developer — for the Live Dashboard + account panel    Must be comfortable with real-time data display    (websockets, live feeds, mobile-friendly) ✅ Designer / 3D Artist — for custom Crown visuals per castle    If you have L2 texture/model experience, we want to talk ✅ GMs / Community Managers    Active, fair, experienced, trusted by the community ✅ Beta Testers    Players who know H5 PvP inside out    Willing to stress-test and break things on purpose ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 💬  WE WANT YOUR HONEST FEEDBACK ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ We are building this WITH the community. Every reply here shapes the final product. → Which of these 5 features excites you most? → What do you think will NOT work and why? → What is missing that would make you stay for months? → Would you play this if it opened tomorrow? We are not looking for hype. We are looking for honest opinions from people who have seen servers rise and fall. Tell us what we are getting wrong. Reply below or send a PM directly. Serious people only. ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ P.S. — The inspiration for this project came from a server many of us played years ago called L2Gang. That nostalgia is what started this conversation. What we are building is something entirely new. ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
    • Please is anyone who can share the compiled version of the l2editor source for interlude? Because i run the !GenerateLibs.bat with the corrected code by CriticalError and then i try to build with the vs 2013 but i get errors again and again and when i try anyway to open or create something with the UnrealEd.exe then it closes automatically.
  • Topics

×
×
  • Create New...

Important Information

This community uses essential cookies to function properly. Non-essential cookies and third-party services are used only with your consent. Read our Privacy Policy and We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue..