Author Topic: Interlude /friendinvite not working correctly  (Read 84 times)

Offline Antaras1987

  • Vassal
  • *
  • Posts: 1
/friendinvite not working correctly
« on: January 12, 2022, 03:21:17 PM »
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 ver

  • Heir
  • **
  • Posts: 34
Re: /friendinvite not working correctly
« Reply #1 on: January 14, 2022, 09:55:31 AM »
Confirmed...

Online Strelook66

  • Knight
  • ***
  • Posts: 72
Re: /friendinvite not working correctly
« Reply #2 on: January 14, 2022, 08:30:51 PM »
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

Online Strelook66

  • Knight
  • ***
  • Posts: 72
Re: /friendinvite not working correctly
« Reply #3 on: January 14, 2022, 08:40:42 PM »
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  :)


Offline ver

  • Heir
  • **
  • Posts: 34
Re: /friendinvite not working correctly
« Reply #4 on: January 14, 2022, 09:41:37 PM »
Great. It works!

Online Mobius

  • Administrator
  • Distinguished King
  • *****
  • Posts: 10934