Page 1 of 1
Problem
Posted: Sun Oct 06, 2013 8:25 am
by rido_knight
hi i have a question man..How to add this script ;
Code: Select all
EventMonitorStart("Whispers", "CHAT_MSG_WHISPER");
registerTimer("beepwhispers", secondsToTimer(5), beepwhispers);
local function beepwhispers()
repeat
local time, moreToCome, name, msg = EventMonitorCheck("Whispers", "4,1")
if time ~= nil then
printf("\a\a\a");
end
until moreToCome == false
end
on this location;
Code: Select all
<onLoad><![CDATA[
startGMDetect()
]]></onLoad>
i add it before "]]>" this wrong right ? i m confused.Micromacro gives error "onLoad"
Re: Problem
Posted: Sun Oct 06, 2013 8:48 am
by rock5
I think that is all correct but the function has to be before registerTimer which uses it. Try,
Code: Select all
<onLoad><![CDATA[
startGMDetect()
EventMonitorStart("Whispers", "CHAT_MSG_WHISPER");
local function beepwhispers()
repeat
local time, moreToCome, name, msg = EventMonitorCheck("Whispers", "4,1")
if time ~= nil then
printf("\a\a\a");
end
until moreToCome == false
end
registerTimer("beepwhispers", secondsToTimer(5), beepwhispers);
]]></onLoad>
Re: Problem
Posted: Sun Oct 06, 2013 9:08 am
by rido_knight
rock5 wrote:I think that is all correct but the function has to be before registerTimer which uses it. Try,
Code: Select all
<onLoad><![CDATA[
startGMDetect()
EventMonitorStart("Whispers", "CHAT_MSG_WHISPER");
local function beepwhispers()
repeat
local time, moreToCome, name, msg = EventMonitorCheck("Whispers", "4,1")
if time ~= nil then
printf("\a\a\a");
end
until moreToCome == false
end
registerTimer("beepwhispers", secondsToTimer(5), beepwhispers);
]]></onLoad>
this script break bot...Bot dont stop waypoint just ride or go away..
Re: Problem
Posted: Sun Oct 06, 2013 2:35 pm
by lolita
Maybe to post error message that MM print, someone will be able to help you

Re: Problem
Posted: Sun Oct 06, 2013 3:56 pm
by rido_knight
lolita wrote:Maybe to post error message that MM print, someone will be able to help you

Thanks for answer but I don't understand what is MM print

and how to do that

I ll study front of the pc and I want to hear a sound when someone whisper me. I really need that :/
Re: Problem
Posted: Tue Oct 08, 2013 10:30 am
by NoKangaroo
Re: Problem
Posted: Tue Oct 08, 2013 11:38 am
by rido_knight
Thank you maaan

its perfect