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

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

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 ^-

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

    • L2Virus the one who buyed those files from me.
    • Hi ️ Are you a supplier or do you have your own modem and are looking for a place to sell numbers?  SMS.PRO - The best option for selling your numbers  You choose the selling price yourself  Sale option: public (to everyone) or private (you choose who you want to sell to)  Everything works automatically  The simplest possible connection  Visit the website SMS.PRO and start selling your numbers.  Support @alismsorg_bot
    • Good luck to anyone playing on this server . Kamael items are bugged ( stats are insane ) Commands not working properly ( .getreward for example  ... gives u free reward without voting ). When i had those files , i fixed most of the stuff .   Every 2-3 years , he closes the server because players report bugs to him about items , he dont know how to fix then he repeating the process again https://ibb.co/Fkv7y9hJ https://ibb.co/fdYP2bVQ https://ibb.co/sp1f8C61 https://ibb.co/CKZnCgL7 https://ibb.co/Z6GktJgP  
    • Hello and welcome Server started 2026-01-05 Web site: https://l2dragonlands.eu Discrod: https://discord.gg/ngQUY8FB8G Rates >Xp x500 >Sp x500 >Drop x25 >Spoil x25 Enchant rates: Safe/max enchant +500  Blessed and simple scrolls max enchant (+200)  Enchant maneger to make +500.  In server items are progresed in tiers. Weapons: Starter > Vesper > Vorpal > Elegia > Ferrum. Armors: Starter > Moirai > Vesper > Vesper Noble > Vorpal > Elegia > Scarlet. Jewels: Starter > Vesper > Vorpal > Elegia > Ferrum. Cloaks: Pearl White > Pitch Black > Frintezza > Class Cloka > Hero > Scarlet. Acessories: Goblin Circlet 1/2lvl > Half Mask Mage 1/2lvl > Half Mask Fighter 1/2lvl > Flame of valakas > Gem Mask > Ferrum Helmet. Belt: Mithril Belt > Vitality Belt. Badges: For fighter and mage from 1lvl to 6lvl upgraded in order. Bracelets: Mithril > Shiny Fighter/Mage > 1/2lvl custom talismans in bracelest. Agathion: 7 tiers upgrade in order eatch one. Clan item shop/ New weapon Spadona upgradeble from 1lvl till 85lvl. Farm zones in order: >Giran Harbor > WasteLand > Gateway > Valley of Saints > Chromatic > Ruins of Despair > Soul Harbor > Dragon Valley. >LvL up zone >PvP zone Custom instance zone. Custom buff maneger it will grand big boost in stats. Lotery maneger to gamble. Extra features ALT+B: >Events  >Rankings  >Clan  >RB Status  >Updates and other Auto Event system: >Team VS Team event - Auto event  >Capture The Flag - Auto event Olympiad: >Retail olympiad game  >Competition period [2] week  >Olympiad start time [18:00] end [00:00]  >Maximum enchant in the Olympiad is +10, not custom items in olympiada only normal ones from shop.
    • L2 VOID - ADVERTISING BANNER   L2 FURY - ANIMATED BANNER   L2 HEROIC - ANIMATED BANNER   L2 WEED - ANIMATED BANNER   L2 REFORGE - ANIMATED LOGO   L2 WARZONE - ANIMATED LOGO   L2 ACME - SPLASH SCREEN   L2 DRUGS - ANIMATED BANNER   L2 GOLD - ADVERTISING BANNER   L2 AARON - ADVERTISING BANNER  
  • 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..

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