Problem

Runes of Magic/Radiant Arcana (http://www.runesofmagic.com)
Post Reply
Message
Author
User avatar
rido_knight
Posts: 102
Joined: Wed May 29, 2013 6:50 am
Location: Turkey

Problem

#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"

User avatar
rock5
Posts: 12173
Joined: Tue Jan 05, 2010 3:30 am
Location: Australia

Re: Problem

#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.”
          • Ronald Reagan

User avatar
rido_knight
Posts: 102
Joined: Wed May 29, 2013 6:50 am
Location: Turkey

Re: Problem

#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..

User avatar
lolita
Posts: 139
Joined: Thu Oct 20, 2011 5:39 am
Location: Serbia

Re: Problem

#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 :D

User avatar
rido_knight
Posts: 102
Joined: Wed May 29, 2013 6:50 am
Location: Turkey

Re: Problem

#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 :D and how to do that :D I ll study front of the pc and I want to hear a sound when someone whisper me. I really need that :/

NoKangaroo
Posts: 3
Joined: Fri Jun 08, 2012 11:46 am

Re: Problem

#6 Post by NoKangaroo » Tue Oct 08, 2013 10:30 am


User avatar
rido_knight
Posts: 102
Joined: Wed May 29, 2013 6:50 am
Location: Turkey

Re: Problem

#7 Post by rido_knight » Tue Oct 08, 2013 11:38 am

NoKangaroo wrote:You could try

http://www.curse.com/addons/rom/gildenpieps

Thank you maaan :D its perfect

Post Reply

Who is online

Users browsing this forum: Bing [Bot] and 6 guests