L2JMobius

C6 /friendinvite not working correctly

Antaras1987 · 6 · 2556

Offline Antaras1987

  • Vassal
  • *
    • Posts: 1
Hi all,

When i try command /friendinvite ingame the message will popup at the other players side in chat window, but there is no window with accept of decline friend invite.

hopefully this can be fixed!

Greetings,

Antaras



Offline Strelook66

  • Knight
  • ***
    • Posts: 82
Change this line:

Code: [Select]
@Override
public boolean write(PacketWriter packet)
{
OutgoingPackets.ASK_JOIN_FRIEND.writeId(packet);
packet.writeS(_requestorName);
packet.writeD(0);
return false; //<--- put this to true
}
}

Located in org.l2jmobius.gameserver.network.serverpackets.AskJoinFriend.java


Offline Strelook66

  • Knight
  • ***
    • Posts: 82
Also in PlayerInstance.java the notifyFriends boolean is inversed.

The one in onPlayerEnter() has to be true, and the one in deleteMe() has to false  :)