summaryrefslogtreecommitdiff
path: root/src/net/tmwa/chathandler.cpp
AgeCommit message (Collapse)AuthorFilesLines
2024-10-29Turned the PlayerRelation struct into an enum classThorbjørn Lindeijer1-6/+6
Less code to achieve the same thing (strong type and namespaced values). The permissions related values have been moved to a PlayerPermissions struct, which is also a bit less confusing.
2024-10-23Changed SERVER_NOTICE macro to inline functionThorbjørn Lindeijer1-10/+10
Seems to be no point in using a macro here.
2024-06-25Added online player list to Social windowDavid Athay1-0/+34
The online list refreshes every 18 seconds, which matches ManaVerse behavior. It's not ideal, but to improve this would mean diving into TMWA. The client version was bumped to 8 to get a SMSG_ONLINE_LIST reply. Further changes needed related to the client version are tracked by #71. This also changes the TabbedArea to take into account the frame size for its tab widgets, to make sure those frames are not clipped by the TabbedArea widget (as happened in the Social window). The horizontal scroll bar is now disabled in all social tabs, with the vertical one appearing only when necessary. Closes #61
2024-06-03Added handling of SMSG_SCRIPT_MESSAGEThorbjørn Lindeijer1-0/+13
These are server chat messages triggered from scripts. In TMW this appears to be used only by the magic system. Added in client protocol version 5 (see issue #71).
2024-03-04Fixed duplication of player name in chatThorbjørn Lindeijer1-3/+12
* Fixed duplication of player name in chat Closes #49
2024-02-13Updated tmwAthena network protocolThorbjørn Lindeijer1-13/+0
* 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.
2012-12-05Ignore unsupported messages in public chatAndrei Karas1-0/+5
Reviewed-by: Erik Schilling.
2012-05-05Removed the shared base classes of MessageIn and MessageOutThorbjørn Lindeijer1-4/+3
There wasn't a whole lot gained by sharing a common base class, and it makes extending the manaserv Message{In,Out} classes with a debugging mode unnecessarily complicated. Reviewed-by: Yohann Ferreira
2012-02-12Ignore ManaPlus shop commandsThorbjørn Lindeijer1-0/+13
This shopping mechanism is not supported by this client at the moment, and it's annoying to have these turn up in whispers. Reviewed-by: Stefan Beller Reviewed-by: Erik Schilling
2012-01-26Updated copyrights to 2012Thorbjørn Lindeijer1-1/+1
2012-01-10player_node -> local_playerYohann Ferreira1-3/+3
Reviewed-by: Ablu
2011-06-03Replace SDL_types.h with cstdintJared Adams1-1/+1
This required moving to C++0x, so it does that too, and fixes a few errors with that. Reviewed-by: Thorbjørn Lindeijer <thorbjorn@lindeijer.nl>
2011-04-09Removed the Mana namespaceThorbjørn Lindeijer1-12/+12
It's just an annoyance when it's only applied to a few classes. Either we place everything in this namespace or nothing, and at the moment I don't see any rationale for placing everything in a Mana namespace. Acked-by: Jared Adams
2011-04-09Moved Channels to Mana::Event::ChannelThorbjørn Lindeijer1-6/+6
Acked-by: Jared Adams
2011-04-09Moved Events to Mana::Event::TypeThorbjørn Lindeijer1-6/+6
Acked-by: Jared Adams
2010-11-11Replace Event names with enums instead of stringsChuck Miller1-6/+6
2010-11-11Have the event system channels use enums instead of stringsChuck Miller1-6/+6
Reviewed-by: Freeyorp
2010-08-12Simplify working with the event systemJared Adams1-7/+7
EventManager has been merged into Event, with some new convinience methods added. Reviewed-by: Chuck Miller
2010-08-05Have Being manage speech creation and add permissions to eventsJared Adams1-18/+24
The Being and Player Chat events now have the precomuted permissions for SPEECH_LOG and SPEECH_FLOAT. The Being class now acts on those events to show speech (if SPEECH_FLOAT is present). ChatWindow now checks for the SPEECH_LOG permission. Reviewed-by: Freeyorp
2010-08-04Remove some unused headers and fix some chat eventsJared Adams1-4/+9
Reviewed-by: Chuck Miller
2010-08-03Merge remote branch 'origin/1.0'Jared Adams1-8/+26
Conflicts: src/net/tmwa/chathandler.cpp
2010-08-02Convert most of the remaining chat system to use the event systemChuck Miller1-17/+37
Reviewed-by: Jared Adams
2010-08-01Fix chat spoofing. Remove colors from nicks in public chat.Andrei Karas1-10/+29
Signed-off-by: Chuck Miller <shadowmil@gmail.com>
2010-07-18Add event.h to eventmanager.h and listener.h to reduce total number of includesChuck Miller1-1/+0
You'll have to include it anyways 99% of the time
2010-07-18Move the majority of the netcode's server messages to the event systemChuck Miller1-8/+10
There is still a good way to go, but this should get us started Reviewed-by: Jared Adams
2010-06-29Make whisper responses from tmwAthena show up in correct tabsJared Adams1-6/+17
Reviewed-by: Bertram
2010-06-10Merge BeingManager and FloorItemManager as ActorSpriteManagerJared Adams1-2/+2
No need for two different classes to manage ActorSprites. Reviewed-by: Chuck Miller
2010-04-17Changed eAthena protocol name to TmwAthena and changed the config files ↵Bertram1-0/+248
accordingly. This makes room for the actual eAthena protocol future inclusion.