Archives
Trending
Support
Login
clear text
XML
Django
JavaScript
MATLAB
C
C++
C#
Python
SQL
Shell
Bash
Markdown
YAML
JSON
HTML
CSS
PHP
Java
Ruby
Go
Rust
Swift
Kotlin
Arduino
TypeScript
Perl
Autohotkey
Lua
SQF
R
Scala
Haskell
Groovy
Dart
Clojure
VB.NET
Objective-C
PowerShell
Bash
CoffeeScript
Verilog
Index: L2jFrozen_GameServer/config/system_config/admin/access.ini ================================================================== +#============================================================# +# Enable showing the ID of items and skills to GMs when clicked +# Default = True +#============================================================# +Admin_Show_Object_ID = True + #============================================================# # If next switch set to true every created character will have # Admin access. #============================================================# EverybodyHasAdminRights = False Index: head-src/com/l2jfrozen/Config.java ========================================== // ============================================================ + public static boolean ADMIN_SHOW_OBJECT_ID; public static boolean EVERYBODY_HAS_ADMIN_RIGHTS; public static boolean SHOW_GM_LOGIN; // ============================================================ + ADMIN_SHOW_OBJECT_ID = Boolean.parseBoolean(AccessSettings.getProperty("Admin_Show_Object_ID", "True")); EVERYBODY_HAS_ADMIN_RIGHTS = Boolean.parseBoolean(AccessSettings.getProperty("EverybodyHasAdminRights", "false")); GM_STARTUP_AUTO_LIST = Boolean.parseBoolean(AccessSettings.getProperty("GMStartupAutoList", "true")); GM_ADMIN_MENU_STYLE = AccessSettings.getProperty("GMAdminMenuStyle", "modern"); Index: head-src/com/l2jfrozen/gameserver/network/clientpackets/RequestMagicSkillUse.java ========================================================================================= // Get the L2Skill template corresponding to the skillID received from the client final L2Skill skill = SkillTable.getInstance().getInfo(_magicId, level); + + if (activeChar.isGM() && Config.ADMIN_SHOW_OBJECT_ID && skill != null) + { + activeChar.sendPacket(new CreatureSay(0, 17, "[GM Info]", "Skill: [" + skill.getName() + "] ID: [" + _magicId + "] Level: [" + level + "]")); + } + // Check the validity of the skill if (skill != null) { Index: head-src/com/l2jfrozen/gameserver/network/clientpackets/UseItem.java ============================================================================ final L2ItemInstance item = activeChar.getInventory().getItemByObjectId(_objectId); if (item == null) return; + + if (activeChar.isGM() && Config.ADMIN_SHOW_OBJECT_ID) + { + activeChar.sendPacket(new CreatureSay(0, 17, "[GM Info]", "Item: [" + item.getItem().getName() + "] ID: [" + item.getItem().getItemId() + "]")); + } + // Like L2OFF you can't use soulshots while sitting final int[] shots_ids =
Mark as private (unlisted)
for 30 minutes
for 6 hours
for 1 day
for 1 week
for 1 month
for 1 year
everlasting (like CCCP)