Fixed friend related issues.
Contributed by Strelook66.
This commit is contained in:
@@ -11828,7 +11828,7 @@ public class Player extends Playable
|
||||
|
||||
revalidateZone(true);
|
||||
|
||||
notifyFriends(false);
|
||||
notifyFriends(true);
|
||||
|
||||
// Fix against exploit on anti-target on login
|
||||
decayMe();
|
||||
@@ -13086,7 +13086,7 @@ public class Player extends Playable
|
||||
_chanceSkills = null;
|
||||
}
|
||||
|
||||
notifyFriends(true);
|
||||
notifyFriends(false);
|
||||
|
||||
// Remove WorldObject object from _allObjects of World
|
||||
World.getInstance().removeObject(this);
|
||||
|
@@ -19,25 +19,13 @@ package org.l2jmobius.gameserver.network.serverpackets;
|
||||
import org.l2jmobius.commons.network.PacketWriter;
|
||||
import org.l2jmobius.gameserver.network.OutgoingPackets;
|
||||
|
||||
/**
|
||||
* sample
|
||||
* <p>
|
||||
* 7d c1 b2 e0 4a 00 00 00 00
|
||||
* <p>
|
||||
* format cdd
|
||||
* @version $Revision: 1.1.2.1.2.3 $ $Date: 2005/03/27 15:29:57 $
|
||||
*/
|
||||
public class AskJoinFriend implements IClientOutgoingPacket
|
||||
{
|
||||
private final String _requestorName;
|
||||
|
||||
/**
|
||||
* @param requestorName
|
||||
*/
|
||||
public AskJoinFriend(String requestorName)
|
||||
{
|
||||
_requestorName = requestorName;
|
||||
// _itemDistribution = itemDistribution;
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -46,6 +34,6 @@ public class AskJoinFriend implements IClientOutgoingPacket
|
||||
OutgoingPackets.ASK_JOIN_FRIEND.writeId(packet);
|
||||
packet.writeS(_requestorName);
|
||||
packet.writeD(0);
|
||||
return false;
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
@@ -12132,7 +12132,7 @@ public class Player extends Playable
|
||||
|
||||
revalidateZone(true);
|
||||
|
||||
notifyFriends(false);
|
||||
notifyFriends(true);
|
||||
|
||||
// Fix against exploit on anti-target on login
|
||||
decayMe();
|
||||
@@ -13403,7 +13403,7 @@ public class Player extends Playable
|
||||
_chanceSkills = null;
|
||||
}
|
||||
|
||||
notifyFriends(true);
|
||||
notifyFriends(false);
|
||||
|
||||
// Remove WorldObject object from _allObjects of World
|
||||
World.getInstance().removeObject(this);
|
||||
|
@@ -19,25 +19,13 @@ package org.l2jmobius.gameserver.network.serverpackets;
|
||||
import org.l2jmobius.commons.network.PacketWriter;
|
||||
import org.l2jmobius.gameserver.network.OutgoingPackets;
|
||||
|
||||
/**
|
||||
* sample
|
||||
* <p>
|
||||
* 7d c1 b2 e0 4a 00 00 00 00
|
||||
* <p>
|
||||
* format cdd
|
||||
* @version $Revision: 1.1.2.1.2.3 $ $Date: 2005/03/27 15:29:57 $
|
||||
*/
|
||||
public class AskJoinFriend implements IClientOutgoingPacket
|
||||
{
|
||||
private final String _requestorName;
|
||||
|
||||
/**
|
||||
* @param requestorName
|
||||
*/
|
||||
public AskJoinFriend(String requestorName)
|
||||
{
|
||||
_requestorName = requestorName;
|
||||
// _itemDistribution = itemDistribution;
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -46,6 +34,6 @@ public class AskJoinFriend implements IClientOutgoingPacket
|
||||
OutgoingPackets.ASK_JOIN_FRIEND.writeId(packet);
|
||||
packet.writeS(_requestorName);
|
||||
packet.writeD(0);
|
||||
return false;
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user