summaryrefslogtreecommitdiff
path: root/src/commandhandler.cpp
AgeCommit message (Collapse)AuthorFilesLines
2024-02-22General code cleanupsThorbjørn Lindeijer1-11/+7
* Use default member initializers * Use range-based loops * Don't use 'else' after 'return' * Removed some unused includes * Construct empty strings with std::string() instead of "" * Clear strings with .clear() instead of assigning "" * Check whether strings are empty with .empty() instead of comparing to "" * Removed redundant initializations
2024-02-13Updated tmwAthena network protocolThorbjørn Lindeijer1-7/+6
* 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.
2024-02-13Removed no longer supported admin messagesThorbjørn Lindeijer1-18/+0
* Removed /announce command * Changed "Kick player" in player pop-up to kick by name Other messages, like CMSG_ADMIN_HIDE, CMSG_ADMIN_MUTE and CMSG_ADMIN_LOCAL_ANNOUNCE were already not used by the client. Also, none of this was implemented for Manaserv.
2012-01-26Updated copyrights to 2012Thorbjørn Lindeijer1-1/+1
2012-01-10player_node -> local_playerYohann Ferreira1-7/+7
Reviewed-by: Ablu
2011-06-17First pass on removing tile hard coded values.Yohann Ferreira1-2/+2
Every files has been checked against the hard coded 32 values except the map.cpp file. I also added convenience functions in the Game class, centralized the default item icon size, and removed two unused defines in being.cpp.
2011-02-21Merge branch '0.5'Thorbjørn Lindeijer1-1/+15
Translation file updates ignored. Conflicts: src/client.cpp src/commandhandler.cpp src/gui/popupmenu.cpp src/localplayer.cpp
2011-02-16Fixing query command handlingStefan Dombrowski1-1/+15
Tab completion puts quotes around nicks. The query command now removes the quotes. Also avoiding the opening of a tab if no nick was given. Reviewed-by: Freeyorp
2010-12-28Revert "Remove the AFK response system"Yohann Ferreira1-0/+20
This reverts commit 3d6a2d9c80a969c3613f567dd7029e75ef59b5cb. I've by that readded the AFK system on master. Please, remove it when we've got a proper replacement.
2010-11-01Merge branch '0.5' of gitorious.org:mana/manaYohann Ferreira1-1/+36
Conflicts: src/being.cpp src/client.cpp src/commandhandler.cpp src/gui/setup_video.cpp src/gui/socialwindow.cpp src/gui/viewport.cpp src/gui/widgets/browserbox.cpp src/gui/widgets/itemcontainer.cpp src/imageparticle.cpp src/localplayer.cpp src/localplayer.h src/map.cpp src/net/tmwa/beinghandler.cpp src/particle.cpp src/particle.h src/player.cpp src/player.h
2010-10-11Implementing show IP for game mastersStefan Dombrowski1-0/+34
As an upcoming feature the TMW-Athena server sends IP addresses or IP hashes to game masters. The current client freezes if it receives such a packet, therefor the game masters need to use a new client before the server can use it. Normal players are not affected, because they do not get this packet. Showing the IP is optional and can be enable with the chat command "/showip 1". The IP is then shown behind the players name. Reviewed-by: Bertram
2010-10-04Remove the AFK response systemChuck Miller1-20/+0
This would be if it was handled by a addon later. Reviewed-By: Freeyorp < Freeyorp101@hotmail.com >
2010-08-04Remove some unused headers and fix some chat eventsJared Adams1-2/+0
Reviewed-by: Chuck Miller
2010-06-29Make whisper responses from tmwAthena show up in correct tabsJared Adams1-1/+1
Reviewed-by: Bertram
2010-04-23Add documentation for the /away command.Bertram1-5/+21
Reviewed by Jaxad0127
2010-04-19Add afk mode for player.Andrei Karas1-0/+9
Add variable cur_time for current time. Add command /away [text] Reviewed by: Bertram
2010-04-12Add support for map-server switching under eAthenaJared Adams1-1/+1
Also do some cleanup that's been needed for a while. Reviewed-by: Bertram
2010-02-22Modify copyright headersFreeyorp1-1/+2
2010-02-20License header update for The Mana ClientThorbjørn Lindeijer1-4/+3
2010-02-08Move party creation command from eA's PartyTab to CommandHandlerJared Adams1-0/+22
Also fix party invite by name when you aren't in a party.
2010-02-07Updated Copyright year to 2010!Bertram1-1/+1
Also added the update copyright tool from the Wormux Team. ( And not forgetting credit's due. :P )
2010-01-12Standardize header orderJared Adams1-2/+3
Also remove some extra new lines and fix eAthena's PartyTab define guards.
2009-09-30Merge login state machines for both clientsJared Adams1-1/+1
Also do some cleanup and refactoring of related code.
2009-08-07Gettext fixesKess Vargavind1-1/+1
Trying to use the same kind of capitalization and interpunctuation for various parts of the gui, melding a few split strings, updating POTFILES.in and adding translators' notes.
2009-07-25Minor spelling fixKess Vargavind1-1/+1
2009-05-28Add /ignore and /unignore commandsJared Adams1-0/+68
These make it easy to ignore/unignore other players that aren't visible. Special versions are also available in WhisperTabs that don't need a name given.
2009-05-24Made some parameters const references like they should beBjørn Lindeijer1-1/+2
2009-05-23Fixed a few strings for better translationKess Vargavind1-4/+4
Just a few notes that would help us translators immensly: * Please do not split one sentence into several strings * Please try to refrain from inserting extra spaces into the strings (cherry picked from commit 9712489ef67f95d6a5fa1fc3102bb7c4ee6a1f59)
2009-05-17Fix offset error on where command. Both mPx/mPy and mPos vector have the ↵Dennis Friis1-3/+3
extra 16,32 pixels. (cherry picked from commit afe09f20caa9ee3a690ea2b84bdaee19464b45bc)
2009-05-12Remove methods from LocalPlayer that just call NetJared Adams1-1/+2
And make a few others like that, and remove them too.
2009-05-08Makes /where return the same as the @where command.Chuck Miller1-1/+2
For somereason the y coord was off by 1
2009-05-08Add a ", " between the coords returned by /where, to make it readibleChuck Miller1-1/+1
2009-05-03Moved strprintf into stringutils.{h,cpp}Bjørn Lindeijer1-1/+0
2009-05-02fixed so /where will show the correct correct coordsChuck Miller1-2/+2
2009-05-02Fixed compile error on TMWServ buildsChuck Miller1-1/+3
2009-05-02Fix the /where command to include coordinates.Freeyorp1-2/+3
2009-04-23Added listing all online usersDavid Athay1-2/+2
2009-04-22Some string fixesKess Vargavind1-3/+3
2009-04-19Make /query switch to the new tabJared Adams1-1/+1
2009-04-19Flesh out eAtehan party handlingJared Adams1-19/+29
2009-04-16Rehash CommandHandler a bit, it's now fully mergedJared Adams1-141/+24
Tabs can now interract with CommandHandler and define their own commands in a seemless way. Most channel-related commands have been moved into ChannelTab, the close command is now in the WhisperTab, and eAthena's party tab now shows all standard commands.
2009-04-15Rename the whisper tab creation commandsJared Adams1-10/+8
2009-04-15Make whisper tabs optionalJared Adams1-1/+24
2009-04-07Implement TMWServ's PartyHandlerJared Adams1-11/+3
2009-04-05Implement TMWServ's Admin-, Chat-, and MapHandlersJared Adams1-39/+13
2009-04-02Partially fixed compilation for TMWServ. src/gui/buysell.cpp still needs to ↵Philipp Sehmisch1-1/+1
be fixed.
2009-04-01Create a few more handlers for eAthenaJared Adams1-8/+14
Map, chat, and admin have been finished (to the degree they handle all existing cases).
2009-03-31Implement a few more handlers for eAthenaJared Adams1-1/+0
Party, skill, and trade handlers made for eAthena.
2009-03-29Fix up eAthena party handling some moreJared Adams1-54/+3
2009-03-28Fix output location for CommandHandlerJared Adams1-142/+142