RE: How to replace messeges
Unfortunately that's a nasty glitch from the Plus! engine. When an event is fired, such as OnEvent_ChatWndSendMessage, Plus! executes the event handlers from all enabled scripts in alphabetical order (A to Z).
If your script is named "My Script" and the Colorizer script is called "Colorizer", Colorizer will be executed first. It sees no command so it ignores the message. Your script then adds the command in front but it is no longer parsed by the Colorizer script.
Currently, the only workaround is to name your script something like "AAA - My Script" to make it execute its handlers before the Colorizer script. Another way would be to modify the Colorizer script yourself by removing the requirement for the /colorizer command.
Still, I don't recommend doing this for all messages. Adding /colorizer to every message without proper checks will block all other command from Plus! and any other script. Use some preliminary checks to make sure you're processing only non-command messages.
|