Skip to content

[share] Monster info for L2JServer

Featured Replies

======================================================
======================================================
+++java/net/sf/l2j/config.java

@@ 640 @@ 
    /** Speed of Weverns */
    public static int WYVERN_SPEED;
    /** Speed of Striders */
    public static int STRIDER_SPEED;
    /** party member */   
    /** Allow Wyvern Upgrader ? */
    public static boolean ALLOW_WYVERN_UPGRADER;
+  /** Shift Click On NPC */
+  public static boolean ALT_PLAYER_SHIFT_MOUSE;


@@ 1479 @@

                EFFECT_CANCELING    = Boolean.valueOf(otherSettings.getProperty("CancelLesserEffect", "True"));
                WYVERN_SPEED        = Integer.parseInt(otherSettings.getProperty("WyvernSpeed", "100"));
                STRIDER_SPEED       = Integer.parseInt(otherSettings.getProperty("MaxPartyMembers", "20"));
                ALLOW_WYVERN_UPGRADER     = Boolean.valueOf(otherSettings.getProperty("AllowWyvernUpgrader", "False"));
+               ALT_PLAYER_SHIFT_MOUSE = Boolean.valueOf(otherSettings.getProperty("AltPlayerShiftMouse", "False"));
======================================================
======================================================
+++java/config/other.propetis

@@ 12 @

# movement speed for strider and wyvern
WyvernSpeed = 100
StriderSpeed = 80

#Allow the wyvern manager located in every castle to train wyverns and striders from hatchlings
AllowWyvernUpgrader = False
+
+# -------------------------------------------------
+# Allow Player Press Shift+Mouse Show Droplist ?
+# -------------------------------------------------
+# (Default: False)
+AltPlayerShiftMouse = False

======================================================
======================================================
+++java/net/sf/l2j/gameserver/model/actor/instance/l2npcinstance.java

@@ 32 @@

      import net.sf.l2j.gameserver.SevenSigns;
      import net.sf.l2j.gameserver.SevenSignsFestival;
      import net.sf.l2j.gameserver.ThreadPoolManager;
      import net.sf.l2j.gameserver.ai.CtrlIntention;
      import net.sf.l2j.gameserver.cache.HtmCache;
      import net.sf.l2j.gameserver.datatables.ClanTable;
      import net.sf.l2j.gameserver.datatables.HelperBuffTable;
      import net.sf.l2j.gameserver.datatables.ItemTable;
+     import net.sf.l2j.gameserver.datatables.NpcTable;
      import net.sf.l2j.gameserver.datatables.SkillTable;
      import net.sf.l2j.gameserver.datatables.SpawnTable;
      import net.sf.l2j.gameserver.idfactory.IdFactory;

            html.setHtml(html1.toString());
            player.sendPacket(html);

           {
-           else if(Config.ALT_GAME_VIEWNPC)
            
+              else
+		{
+			if (Config.ALT_PLAYER_SHIFT_MOUSE && !player.isGM())
+			{
+				L2NpcTemplate npcData =     NpcTable.getInstance().getTemplate(getTemplate().npcId);
+				if (npcData == null)
+				{
+					player.sendMessage("Unknow ID:" + getTemplate().npcId);
+					return;
+				}
+				NpcHtmlMessage adminReply = new NpcHtmlMessage(5);
+				TextBuilder replyMSG = new TextBuilder("<html><title>Drop Info</title>");
+				replyMSG.append("<body>");				
+				replyMSG.append("<center><font color=\"LEVEL\">[" + npcData.name + "] ~'drop info</font><br><img src=\"L2UI.SquareWhite\" width=290 height=1></center><br>");
+				replyMSG.append("<table border=0 width=290>");
+				//final String color;
+				replyMSG.append("<tr><td width=160>ItemName</td><td +width=90 align=right>Chance</td><td width=40 align=right>Type</td></tr><tr><td></td></tr>");
+				for (L2DropCategory cat : npcData.getDropData())
+					for (L2DropData drop : cat.getAllDrops())
+						replyMSG.append("<tr><td><font color=\"EE9955\">" + ItemTable.getInstance().getTemplate(drop.getItemId()).getName() + "</font></td>"
+								+ "<td align=right><font color=\"EE9955\">" + String.valueOf((double)drop.getChance()/10000) + "%</font></td>"
+								+ "<td align=right><font color=\"EE9955\">" + (drop.isQuestDrop() ? "Quest" : cat.isSweep() ? "Sweep" : "Drop") + "</font></td></tr>");
+				replyMSG.append("</table><br>");
+				replyMSG.append("<center><img src=\"L2UI.SquareWhite\" width=290 height=1></center><br>");
+				replyMSG.append("<center><font color=\"222222\"> MXC maxcheaters.com</font></center>");
+				replyMSG.append("</body></html>");
+				adminReply.setHtml(replyMSG.toString());
+				player.sendPacket(adminReply);
+			}
+		}
           }

 

great from "mxc" here http://maxcheaters.com/forum/index.php?topic=210160.0

 

I addapt on L2JServer for help the newbies who can not do it themselves

 

if you have any problem post it here and i help you!!!

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.