Jump to content

Recommended Posts

Posted (edited)

Hello I want to share this code ( Nothing Special )


Maybe many ppl like to use..Anyway..


 


With this Code Gm's Can see Dyes from players...


 


image.png


 


Let's Start :


 


Create a GMViewHennaInfo.java and inside this :



### Eclipse Workspace Patch 1.0
#P L2jFrozen_GameServer
Index: head-src/com/l2jfrozen/gameserver/network/serverpackets/GMViewHennaInfo.java
===================================================================
--- head-src/com/l2jfrozen/gameserver/network/serverpackets/GMViewHennaInfo.java (revision 0)
+++ head-src/com/l2jfrozen/gameserver/network/serverpackets/GMViewHennaInfo.java (revision 0)
@@ -0,0 +1,51 @@
+package com.l2jfrozen.gameserver.network.serverpackets;
+
+import com.l2jfrozen.gameserver.model.actor.instance.L2HennaInstance;
+import com.l2jfrozen.gameserver.model.actor.instance.L2PcInstance;
+
+public class GMViewHennaInfo extends L2GameServerPacket
+{
+ private final L2PcInstance _activeChar;
+ private final L2HennaInstance[] _hennas = new L2HennaInstance[3];
+ private int _count;
+
+ public GMViewHennaInfo(L2PcInstance activeChar)
+ {
+ this._activeChar = activeChar;
+
+ int j = 0;
+ for (int i = 0; i < 3; i++)
+ {
+ L2HennaInstance h = this._activeChar.getHennas(i + 1);
+ if (h != null)
+ this._hennas[(j++)] = h;
+ }
+ this._count = j;
+ }
+
+@Override
+ protected void writeImpl()
+ {
+ writeC(234);
+
+ writeC(this._activeChar.getHennaStatINT());
+ writeC(this._activeChar.getHennaStatSTR());
+ writeC(this._activeChar.getHennaStatCON());
+ writeC(this._activeChar.getHennaStatMEN());
+ writeC(this._activeChar.getHennaStatDEX());
+ writeC(this._activeChar.getHennaStatWIT());
+
+ writeD(3);
+
+ writeD(this._count);
+ for (int i = 0; i < this._count; i++)
+ {
+ writeD(this._hennas[i].getSymbolId());
+ writeD(1);
+ }
+ }
+
+@Override
+ public String getType()
+ {
+ return "[S] 0xea GMHennaInfo";
+ }
+}
\ No newline at end of file


Now go found RequestGMCommand.java and edit :



### Eclipse Workspace Patch 1.0
#P L2jFrozen_GameServer
Index: head-src/com/l2jfrozen/gameserver/network/clientpackets/RequestGMCommand.java
===================================================================
--- head-src/com/l2jfrozen/gameserver/network/clientpackets/RequestGMCommand.java (revision 1113)
+++ head-src/com/l2jfrozen/gameserver/network/clientpackets/RequestGMCommand.java (working copy)
@@ -24,6 +24,7 @@
import com.l2jfrozen.gameserver.model.actor.instance.L2PcInstance;
import com.l2jfrozen.gameserver.network.serverpackets.GMViewCharacterInfo;
import com.l2jfrozen.gameserver.network.serverpackets.GMViewItemList;
+import com.l2jfrozen.gameserver.network.serverpackets.GMViewHennaInfo;
import com.l2jfrozen.gameserver.network.serverpackets.GMViewPledgeInfo;
import com.l2jfrozen.gameserver.network.serverpackets.GMViewQuestList;
import com.l2jfrozen.gameserver.network.serverpackets.GMViewSkillInfo;
@@ -82,6 +83,7 @@
case 5: // player inventory
{
sendPacket(new GMViewItemList(player));
+ sendPacket (new GMViewHennaInfo (player));
break;
}
case 6: // player warehouse


Many people Found This Code Useful... ;)


 


 


 


 


Edited by Monkey D. Luffy
Posted (edited)

I think this writeC(234) should be writeC(0xea).. it's strange that l2jfrozen don't have the GMHennaInfo packet. ^^

 You Create this Java file "GMHennaInfo.java" 

 

Right Click On com.l2jfrozen.gameserver.network.serverpackets 

 

New-->Class--> and on name inside GMViewHennaInfo -->Finish 

 

And inside the code ^^

Edited by Monkey D. Luffy
Posted

I think you get me wrong. ^^

I was wondered why l2jfrozen don't have this packet.. :P

The name of the file doesn't matter (it's for the developer), since the client reads the first writeC packet.

Posted

I think you get me wrong. ^^

I was wondered why l2jfrozen don't have this packet.. :P

The name of the file doesn't matter (it's for the developer), since the client reads the first writeC packet.

 

I Test with "writeC(234)" and work..Anyway ^-

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



  • Posts

    • Discord         :  utchiha_market Telegram        : https://t.me/utchiha_market
    • Discord         :  utchiha_market Telegram        : https://t.me/utchiha_market
    • 📈 X (Twitter) — Promotion for all purposes  🚀 Boost reach, likes, views, and retweets with the best rates on the market!   🧠 Available services:  🔹 Likes, retweets, comments  🔹 Tweet and video views  🔹 Mentions and polls  🔹 Followers   💼 Perfect for:  ✔️ SMM specialists  ✔️ Arbitrage experts  ✔️ Crypto, NFT, and news account owners  ✔️ Agencies promoting businesses and personal brands ...and much more! Use our SMM Panel to boost on Facebook, Instagram, Telegram, Spotify, Soundcloud, YouTube, Reddit, Threads, Kick, Discord, LinkedIn, Likee, VK, Twitch, Kwai, Reddit, website traffic, TikTok, TrustPilot, Apple Music, Tripadvisor, Snapchat, and other digital products.   🎁 Promo code: XBOOST5 (5% discount)   🎁 Get $1 trial bonus:  Simply open a ticket titled “Get Trial Bonus” on our website (Support)  ➡ Go to SMM Panel (clickable)  Or contact support via bot 🎁   How to order:  ➡ SMM Panel: Click ✅  ➡ SMM Panel directly inside our Telegram bot: Click ✅ (Menu ➡ SMM Panel)   Our Digital Goods Store:  ➡ Online Store: Click ✅  ➡ Telegram Bot: Click ✅    Regular customers get extra discounts and promo codes!   Support:  ➡ Telegram: https://t.me/solomon_bog ✅  ➡ Discord: https://discord.gg/y9AStFFsrh ✅  ➡ WhatsApp: https://wa.me/79051904467 ✅  ➡ ✉ Email: solomonbog@socnet.store ✅   ➡ Telegram Channel: https://t.me/accsforyou_shop ✅   Use these contacts to:  — Discuss wholesale purchases  — Propose partnerships (current partners: https://socnet.bgng.io/partners )   — Become a supplier 🧩 SocNet — Digital Goods & Premium Subscriptions Store ✅
    • Want Telegram Premium at the best prices and with zero hassle? You’ve come to the right place! Premium subscriptions from 1 to 12 months — with or without account authorization. Full guarantee for the entire subscription period. Promo code: TGJULY (10% discount) Payment methods: bank cards · cryptocurrency · other popular options How to buy: ➡ Online Store: Click ➡ Telegram Bot: Click Other services: ➡ SMM Panel: Click Available options: ➡ Telegram Premium subscription for 1 month to your account | Authorization in your account is required (via TDATA or phone number) | Price from: $6 ➡ Telegram Premium subscription for 3 months on your account | No authorization required | Full guarantee for the entire period | Price from: $19 ➡ Telegram Premium subscription for 6 months on your account | No authorization required | Full guarantee for the entire period | Price from: $23 ➡ Telegram Premium subscription for 12 months on your account | No authorization required | Full guarantee for the entire period | Price from: $37 Regular customers receive extra discounts and promo codes! Support: ➡ Telegram: https://t.me/solomon_bog ➡ Discord: https://discord.gg/y9AStFFsrh ➡ WhatsApp: https://wa.me/79051904467 ➡ ✉ Email: solomonbog@socnet.store ➡ Telegram Channel: https://t.me/accsforyou_shop You can also use these contacts to: — Discuss wholesale orders — Propose partnerships (current partners: https://socnet.bgng.io/partners ) — Become a supplier SocNet — Digital Goods & Premium Subscriptions Store
    • Want Telegram Premium at the best prices and with zero hassle? You’ve come to the right place! Premium subscriptions from 1 to 12 months — with or without account authorization. Full guarantee for the entire subscription period. Promo code: TGJULY (10% discount) Payment methods: bank cards · cryptocurrency · other popular options How to buy: ➡ Online Store: Click ➡ Telegram Bot: Click Other services: ➡ SMM Panel: Click Available options: ➡ Telegram Premium subscription for 1 month to your account | Authorization in your account is required (via TDATA or phone number) | Price from: $6 ➡ Telegram Premium subscription for 3 months on your account | No authorization required | Full guarantee for the entire period | Price from: $19 ➡ Telegram Premium subscription for 6 months on your account | No authorization required | Full guarantee for the entire period | Price from: $23 ➡ Telegram Premium subscription for 12 months on your account | No authorization required | Full guarantee for the entire period | Price from: $37 Regular customers receive extra discounts and promo codes! Support: ➡ Telegram: https://t.me/solomon_bog ➡ Discord: https://discord.gg/y9AStFFsrh ➡ WhatsApp: https://wa.me/79051904467 ➡ ✉ Email: solomonbog@socnet.store ➡ Telegram Channel: https://t.me/accsforyou_shop You can also use these contacts to: — Discuss wholesale orders — Propose partnerships (current partners: https://socnet.bgng.io/partners ) — Become a supplier SocNet — Digital Goods & Premium Subscriptions Store
  • Topics

×
×
  • Create New...

AdBlock Extension Detected!

Our website is made possible by displaying online advertisements to our members.

Please disable AdBlock browser extension first, to be able to use our community.

I've Disabled AdBlock