-
rido_knight
- Posts: 102
- Joined: Wed May 29, 2013 6:50 am
- Location: Turkey
#1
Post
by rido_knight » Sun Oct 06, 2013 8:25 am
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"
-
rock5
- Posts: 12173
- Joined: Tue Jan 05, 2010 3:30 am
- Location: Australia
#2
Post
by rock5 » Sun Oct 06, 2013 8:48 am
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>
- Please consider making a small donation to me to support my continued contributions to the bot and this forum. Thank you. Donate
- I check all posts before reading PMs. So if you want a fast reply, don't PM me but post a topic instead. PM me for private or personal topics only.
- How to: copy and paste in micromacro
________________________
Quote:
- “They say hard work never hurt anybody, but I figure, why take the chance.”
-
rido_knight
- Posts: 102
- Joined: Wed May 29, 2013 6:50 am
- Location: Turkey
#3
Post
by rido_knight » Sun Oct 06, 2013 9:08 am
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..
-
lolita
- Posts: 139
- Joined: Thu Oct 20, 2011 5:39 am
- Location: Serbia
#4
Post
by lolita » Sun Oct 06, 2013 2:35 pm
Maybe to post error message that MM print, someone will be able to help you
Life is a journey, not destination
-
rido_knight
- Posts: 102
- Joined: Wed May 29, 2013 6:50 am
- Location: Turkey
#5
Post
by rido_knight » Sun Oct 06, 2013 3:56 pm
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 :/
Who is online
Users browsing this forum: No registered users and 6 guests