EventMonitor problem
Posted: Fri Oct 13, 2023 9:48 pm
I'm trying to test the EventMonitor but I can't get it to work. My intention is for the character to go to the next waypoint when receiving a message via Whisp or group. For now I've only managed to keep it from giving me errors, but it doesn't work, the bot doesn't react to the word "Entering". I would appreciate any help.
Code: Select all
<!-- # 1 --><waypoint x="1870" z="1885" y="274" tag="Start">
EventMonitorStart("Entrando", "CHAT_MSG_PARTY")
repeat
yrest(1000);
local time, moreToCome, name, msg = EventMonitorCheck("Entrando", "4,1")
if msg ~= nil then
if msg == "Entrando" then
__WPL:setWaypointIndex(__WPL:findWaypointTag("Entrada"));
end
end
until msg == true
EventMonitorStop("Entrando")
</waypoint>