L2JMobius

Free Users => Solved/Invalid Bug Reports => Topic started by: Antaras1987 on January 12, 2022, 03:21:17 PM

Title: /friendinvite not working correctly
Post by: Antaras1987 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
Title: Re: /friendinvite not working correctly
Post by: ver on January 14, 2022, 09:55:31 AM
Confirmed...
Title: Re: /friendinvite not working correctly
Post by: Strelook66 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
Title: Re: /friendinvite not working correctly
Post by: Strelook66 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  :)

Title: Re: /friendinvite not working correctly
Post by: ver on January 14, 2022, 09:41:37 PM
Great. It works!
Title: Re: /friendinvite not working correctly
Post by: Mobius on January 15, 2022, 12:10:29 AM
Fixed with https://bitbucket.org/MobiusDev/l2j_mobius/commits/cefd1524661d8d3ab78388c4747a690de21fa5d8
Thanks :D