Heisen99 7 Posted November 14, 2018 Not showing up in the logs when the event should be triggered. Share this post Link to post Share on other sites
kaspar rave 4 Posted November 15, 2018 18 hours ago, Heisen99 said: Not showing up in the logs when the event should be triggered. override void OnEvent(EventType eventTypeId, Param params){ super.OnEvent(eventTypeId,params); if(eventTypeId == ChatMessageEventTypeID) then ChatMessageEventParams chat_params = ChatMessageEventParams.Cast(params); if(chat_params.param1 != "")then print(chat_params.ToString()); end end } something like this works? untested tho I'm at work (very busy :P) Share this post Link to post Share on other sites
Heisen99 7 Posted November 15, 2018 3 hours ago, kaspar rave said: override void OnEvent(EventType eventTypeId, Param params){ super.OnEvent(eventTypeId,params); if(eventTypeId == ChatMessageEventTypeID) then ChatMessageEventParams chat_params = ChatMessageEventParams.Cast(params); if(chat_params.param1 != "")then print(chat_params.ToString()); end end } something like this works? untested tho I'm at work (very busy :P) That's great however a bit of explanation on where you found the chatMessageEventParams.. Share this post Link to post Share on other sites
kaspar rave 4 Posted November 15, 2018 (edited) I save almost every script I come across here to learn more commands. This is taken from somebody else's script. But the question is does it work? did'nt have time to test i can acces my server but can't join to test... I'm waitin till 1.0 before scripting again because updating is annoying Edited December 7, 2018 by kaspar rave Share this post Link to post Share on other sites