Fix spelling mistake in WhisperFlag and removed unused function causing problems
This commit is contained in:
@@ -1190,12 +1190,6 @@ public class World {
|
|||||||
return getPlayerStorage().getCharacterByName(charName) != null;
|
return getPlayerStorage().getCharacterByName(charName) != null;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void whisper(String sender, String target, int channel, String message) {
|
|
||||||
if (isConnected(target)) {
|
|
||||||
getPlayerStorage().getCharacterByName(target).getClient().announce(MaplePacketCreator.getWhisper(sender, channel, message));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public BuddyAddResult requestBuddyAdd(String addName, int channelFrom, int cidFrom, String nameFrom) {
|
public BuddyAddResult requestBuddyAdd(String addName, int channelFrom, int cidFrom, String nameFrom) {
|
||||||
MapleCharacter addChar = getPlayerStorage().getCharacterByName(addName);
|
MapleCharacter addChar = getPlayerStorage().getCharacterByName(addName);
|
||||||
if (addChar != null) {
|
if (addChar != null) {
|
||||||
|
|||||||
@@ -6335,7 +6335,7 @@ public class MaplePacketCreator {
|
|||||||
public static final byte WHISPER = 0x02;
|
public static final byte WHISPER = 0x02;
|
||||||
public static final byte REQUEST = 0x04;
|
public static final byte REQUEST = 0x04;
|
||||||
public static final byte RESULT = 0x08;
|
public static final byte RESULT = 0x08;
|
||||||
public static final byte RECIEVE = 0x10;
|
public static final byte RECEIVE = 0x10;
|
||||||
public static final byte BLOCKED = 0x20;
|
public static final byte BLOCKED = 0x20;
|
||||||
public static final byte LOCATION_FRIEND = 0x40;
|
public static final byte LOCATION_FRIEND = 0x40;
|
||||||
}
|
}
|
||||||
@@ -6382,7 +6382,7 @@ public class MaplePacketCreator {
|
|||||||
MaplePacketLittleEndianWriter mplew = new MaplePacketLittleEndianWriter();
|
MaplePacketLittleEndianWriter mplew = new MaplePacketLittleEndianWriter();
|
||||||
mplew.writeShort(SendOpcode.WHISPER.getValue());
|
mplew.writeShort(SendOpcode.WHISPER.getValue());
|
||||||
|
|
||||||
mplew.write(WhisperFlag.WHISPER | WhisperFlag.RECIEVE);
|
mplew.write(WhisperFlag.WHISPER | WhisperFlag.RECEIVE);
|
||||||
mplew.writeMapleAsciiString(sender);
|
mplew.writeMapleAsciiString(sender);
|
||||||
mplew.write(channel);
|
mplew.write(channel);
|
||||||
mplew.writeBool(fromAdmin);
|
mplew.writeBool(fromAdmin);
|
||||||
|
|||||||
Reference in New Issue
Block a user