Skip to content

L2Gameserverpacket For Clan War Title Icon(Double Fist)

Featured Replies

Hello, i usually find what i'm looking for, but this time... I need those double fists shown in the title, like in the picture
nova03a.jpg

I have found that RelationChanged packet has to do something with it.. but didn't understood if it actually has something to do.
So, if someone knows anything, even clues, please reply  :-X

I guess you're right. It's about _relation and its sending info via UserInfo.java

 

For example

// 0x40 leader rights
// siege flags: attacker - 0x180 sword over name, defender - 0x80 shield, 0xC0 crown (|leader), 0x1C0 flag (|leader)
writeD(_relation);

I guess the same with dat fist. Somehow.. :D

public static final int RELATION_MUTUAL_WAR = 0x08000; // double fist
public static final int RELATION_1SIDED_WAR = 0x10000; // single fist

Check L2PcInstance for the use @ public int getRelation(L2PcInstance target)

 

 

if (getClan().isAtWarWith(target.getClan().getClanId()))
    result |= RelationChanged.RELATION_MUTUAL_WAR;

 

Boom, double fist :P

Edited by SweeTs

  • Author

I guess you're right. It's about _relation and its sending info via UserInfo.java

 

For example

// 0x40 leader rights
// siege flags: attacker - 0x180 sword over name, defender - 0x80 shield, 0xC0 crown (|leader), 0x1C0 flag (|leader)
writeD(_relation);

I guess the same with dat fist. Somehow.. :D

public static final int RELATION_MUTUAL_WAR = 0x08000; // double fist
public static final int RELATION_1SIDED_WAR = 0x10000; // single fist

Check L2PcInstance for the use @ public int getRelation(L2PcInstance target)

if (getClan().isAtWarWith(target.getClan().getClanId()))
    result |= RelationChanged.RELATION_MUTUAL_WAR;

Boom, double fist :P

Well, the problem is, 

 

// 0x40 leader rights
// siege flags: attacker - 0x180 sword over name, defender - 0x80 shield, 0xC0 crown (|leader), 0x1C0 flag (|leader)
writeD(_relation);

is used for sieges, not for clan wars... so, in my thinking, RelationChanged should control the title but it doesn't. I tried changing the relation, it didn't work :/

Yes, then I added the relation for the fists change controlled @ L2PcInstance :) Anyway, what's your idea? :P

  • Author

Yes, then I added the relation for the fists change controlled @ L2PcInstance :) Anyway, what's your idea? :P

RelationChanged should control the icon in the title but it doesn't :/ and i don't understand why

dont mess with the stupid methods, moderate it directly from the packet @ byte, 

 

if (statement)

  writeD( )//ur id goes there

else

  writeD(  )// classic relation

 

to calculate the ID perform the bitwise operations providen by l2j, or sniff them from phx

 

xdem

  • Author

dont mess with the stupid methods, moderate it directly from the packet @ byte, 

 

if (statement)

  writeD( )//ur id goes there

else

  writeD(  )// classic relation

 

to calculate the ID perform the bitwise operations providen by l2j, or sniff them from phx

 

xdem

i guess i will have to try sniffing packets with phx, thanks :)

 

EDIT: after all day of searching and sniffing, i've found out that relationchanged packet works only when some other clan related packets are sent, makes it impossilble to use alone... Thanks for the help and have great holidays.

Edited by povis111

i guess i will have to try sniffing packets with phx, thanks :)

 

EDIT: after all day of searching and sniffing, i've found out that relationchanged packet works only when some other clan related packets are sent, makes it impossilble to use alone... Thanks for the help and have great holidays.

Have nice holidays too.

 

locked.

Guest
This topic is now closed to further replies.

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.