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