summaryrefslogtreecommitdiff
path: root/src/net/tmwa/chathandler.cpp
diff options
context:
space:
mode:
authorThorbjørn Lindeijer <bjorn@lindeijer.nl>2024-02-13 12:31:13 +0100
committerThorbjørn Lindeijer <bjorn@lindeijer.nl>2024-02-13 20:56:48 +0100
commit92a6fd04d44bcd405641d7297a0167e2d5aba26f (patch)
tree06df1fca07892be18a35e446965f25bcfc236d19 /src/net/tmwa/chathandler.cpp
parent10da00488a37cb04a2cb515c94acde7104e74506 (diff)
downloadmana-92a6fd04d44bcd405641d7297a0167e2d5aba26f.tar.gz
mana-92a6fd04d44bcd405641d7297a0167e2d5aba26f.tar.bz2
mana-92a6fd04d44bcd405641d7297a0167e2d5aba26f.tar.xz
mana-92a6fd04d44bcd405641d7297a0167e2d5aba26f.zip
Updated tmwAthena network protocol
* The code defining the message IDs and sizes are now generated by the tools/protocol.py script in the tmwAthena repository. * Reduced client version from 20 to 6, because that is currently the minimum supported version, and any adjustments needed for later likely still need to be made. * Removed use of no longer handled messages: - CMSG_SKILL_USE_BEING - CMSG_SKILL_USE_POSITION - CMSG_SKILL_USE_MAP - SMSG_PARTY_MOVE - CMSG_WHO_REQUEST - SMSG_WHO_ANSWER - SMSG_MVP - SMSG_BEING_MOVE2 - SMSG_BEING_CHANGE_LOOKS * Some messages were renamed to match the server side - CMSG_PLAYER_ATTACK -> CMSG_PLAYER_CHANGE_ACT - CMSG_PLAYER_RESTART -> CMSG_PLAYER_REBOOT - SMSG_ADMIN_IP -> SMSG_BEING_IP_RESPONSE Part of addressing issues #55 and #47, which we now know are about handling SMSG_PLAYER_HP and SMSG_NPC_COMMAND respectively. The client will now ignore them (with a warning) instead of crash.
Diffstat (limited to 'src/net/tmwa/chathandler.cpp')
-rw-r--r--src/net/tmwa/chathandler.cpp13
1 files changed, 0 insertions, 13 deletions
diff --git a/src/net/tmwa/chathandler.cpp b/src/net/tmwa/chathandler.cpp
index 155263b5..beed01a1 100644
--- a/src/net/tmwa/chathandler.cpp
+++ b/src/net/tmwa/chathandler.cpp
@@ -24,7 +24,6 @@
#include "actorspritemanager.h"
#include "being.h"
#include "event.h"
-#include "game.h"
#include "localplayer.h"
#include "playerrelations.h"
@@ -49,7 +48,6 @@ ChatHandler::ChatHandler()
SMSG_WHISPER,
SMSG_WHISPER_RESPONSE,
SMSG_GM_CHAT,
- SMSG_MVP, // MVP
0
};
handledMessages = _messages;
@@ -240,12 +238,6 @@ void ChatHandler::handleMessage(MessageIn &msg)
}
break;
}
-
- case SMSG_MVP:
- // Display MVP player
- msg.readInt32(); // id
- SERVER_NOTICE(_("MVP player."))
- break;
}
}
@@ -318,9 +310,4 @@ void ChatHandler::kickUser(int channelId, const std::string &name)
SERVER_NOTICE(_("Channels are not supported!"))
}
-void ChatHandler::who()
-{
- MessageOut outMsg(CMSG_WHO_REQUEST);
-}
-
} // namespace TmwAthena