Page 1 of 1

How do you get MQ to /beep for incoming tells?

Posted: Tue Aug 19, 2003 5:22 pm
by Droken
Hi there. Say I wanted to use MQ to alert me of any tells I get while I'm medding after OOM and watching TV.

This shouldn't be too difficult, right? I just want it to /beep if any tells come in.

What do I need to do?

Thanks in advance,
Droken

Re: How do you get MQ to /beep for incoming tells?

Posted: Tue Aug 19, 2003 7:06 pm
by wassup
Droken wrote:Hi there. Say I wanted to use MQ to alert me of any tells I get while I'm medding after OOM and watching TV.

This shouldn't be too difficult, right? I just want it to /beep if any tells come in.

What do I need to do?

Thanks in advance,
Droken
This should give you some ideas...

Code: Select all

#chat tell

Sub Main
    :myLoop
    /doevents
    /goto :myLoop
/return

Sub Event_Chat
    /if $p1!="DummyName" {

        /for l0 1 to 10 
            /beep
            /delay 7
        /next l0 
/return

Posted: Tue Aug 19, 2003 9:11 pm
by somemage

Code: Select all

#turbo 25
#chat tell

Sub Main
	:Loop
	/delay 10s
	/doevents
	/goto :Loop
/return

Sub Event_Chat
	/beep
	/beep
/return

Posted: Thu Aug 21, 2003 4:45 am
by Droken
Thanks for the assistence guys, but I'm still confused.

Some Mage,
What exactly does turbo 25 do compared to simply turbo?
Also, I tried to run the macro with your script and it doesn't wait for a tell before doing the sub chat. It just does it =/

I only want it to do the subchat commands for when new tells show up.


Wassup, I don't understand most of your script. What exactly am I supposed to sub "Dummy name" with?

What does: /for l0 1 to 10 and /next 10 do?

I'm just looking for something to beep every time I get a tell. Don't I need some kind of if then statement?

Posted: Thu Aug 21, 2003 6:40 am
by wassup
Droken wrote:Thanks for the assistence guys, but I'm still confused.

Some Mage,
What exactly does turbo 25 do compared to simply turbo?
Also, I tried to run the macro with your script and it doesn't wait for a tell before doing the sub chat. It just does it =/

I only want it to do the subchat commands for when new tells show up.


Wassup, I don't understand most of your script. What exactly am I supposed to sub "Dummy name" with?

What does: /for l0 1 to 10 and /next 10 do?

I'm just looking for something to beep every time I get a tell. Don't I need some kind of if then statement?
I'm a little tired but I will try to explain this (hopefully understandable)

1. You defined #chat tell
2. Whenever someone gives you a tell, /doevents looks for anything received in the tell chat.
3. Sub Events_Chat instructions will be performed every time you get a tell. This Event is called whenever /doevents detects a tell.
4. The loop is infinite so /doevents can detect new tells for as long as the macro is running.

No if statements or anything are required to detect the tells since /doevents does this for you.

The /if to determine if DummyName sent you a tell is not necessary, I just added it in to give you an idea. If you don't want it to beep when a certain person gives you a tell you could put their name in where DummyName is.

/for l0 1 to 10 and /next 10 is something like a for next loop.

My example will beep 7 times for each tell, with 0.7 seconds between each beep.

somemages beeps twice with no delay between the beeps for each tell.

somemage's will work and mine will work, since I doubt there is anyone with a name of DummyName.

You could modify mine to

Code: Select all

#chat tell 

Sub Main 
    :myLoop 
    /doevents 
    /goto :myLoop 
/return 

Sub Event_Chat 
    /for l0 1 to 10 
        /beep 
        /delay 7 
    /next l0 
/return
to remove the name filtering.