before i start to explain my problem:
Thank all of you for this amazing project and the script-producing here.
I love this bot. It's kind a sandbox for old people to play with and gives a huge variety of possiblities
Thx for sharing!
now the main reason for this post as seen in the topic: I dont get any values from EventMonitor
I tried to build some userfunctions with usage of "EventMonitor" with EventMonitorStart(...) and EventMonitorCheck(...), here is one of this as blueprint:
Code: Select all
invplayername = "dummyname"
function AutoAcceptInvite()
repeat
local time, moreToCome, name = EventMonitorCheck("Pinv", "1")
if time ~= nil then
if name == invplayername then
--Do some acceptinvite here
cprintf(cli.yellow, "Accepted Party-Invite from %s at %d", name, os.time());
yrest(100);
end
end
until moreToCome ~= true
end
function startAutoAcceptInvite()
unregisterTimer("autoaccept");
printf("Auto Accept Party invite started\n");
EventMonitorStart("Pinv", "PARTY_INVITE_REQUEST");
registerTimer("autoaccept", secondsToTimer(5), AutoAcceptInvite);
end
In Detail the part
Code: Select all
local time, moreToCome, name = EventMonitorCheck("Pinv", "1")After my own userfunctions with Events didn't work, i tried the "eventmonitortest.xml" posted from lisa in another thread in this forum. With teh eventtester from lisa i also didn't get any events triggered and the time and other values stayed "nil".
My first suggestion was, that maybe some of my addons is causing this, so i cleaned the "interface/addon" folder and only left ingamefunctions there. This also did not solve the problem.
Then i tried some stuff with the CommandLine and checked the Messages i got from ingamefunctions\igf_events.lua:
Starting a Monitor = does not give back any error message (so it's working how it should i guess. additional: it produces an "igf_events:StartMonitor("usual stuff here") in one macro)
Starting a Monitor and stopping after also does not give any error mesage
Resuming a Monitor which is stopped triggers an error message (how it should do)
Checking a Monitor after Starting it also dont give back any error (additional: it produces an "igf_events:GetLogEvent("usual stuff here") in the macro where the StartMonitor was before)
But still only "nil"s for time, moretocome, ...
I tried a bit degguging and found that this code in igf_events.lua is true all the time:
Code: Select all
-- Check if log entries exist
if EventLog[monitorName] == nil then
SendSystemChat("If you see this message there are no entries in EventLog") --this line put in by me
return
end
I read a lot of threads in this forum but could not find anything similar to my problem.
Now i dont know how to proceed.
Tested the EventMonitor-Stuff with:
MM 1.02, Rombot rev. 684 and rev. 685 on Windows 7, 64 bit.
Tested Events:
PARTY_INVITE_REQUEST, CHAT_MSG_SAY, CHAT_MSG_WHISPER
It would be really nice if somebody can help me or maybe has an idea about.
Best
Mort