Jump to content
  • 0

L2Gameserverpacket For Clan War Title Icon(Double Fist)


povis111

Question

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

Link to comment
Share on other sites

7 answers to this question

Recommended Posts

  • 0

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
Link to comment
Share on other sites

  • 0

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 :/

Link to comment
Share on other sites

  • 0

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

Link to comment
Share on other sites

  • 0

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

Link to comment
Share on other sites

  • 0

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

Link to comment
Share on other sites

  • 0

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
Link to comment
Share on other sites

  • 0

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.

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.


×
×
  • Create New...