searching for the code to add a "BEP" sound on tel

Post your completed (working) macros here. Only for macros using MQ2Data syntax!

Moderator: MacroQuest Developers

utrero
orc pawn
orc pawn
Posts: 28
Joined: Tue Apr 20, 2004 11:30 am

searching for the code to add a "BEP" sound on tel

Post by utrero » Sat Jul 24, 2004 12:10 pm

a little time ago before last destroy on macro ( eq pararms) where relñeased i usually enjoy with my bard macro that maked a BEP sound when any tell where recieved. i hav been searching inside new macros and plugins but so far i ahvent find any similar function.
If any of you can post the code for this sound here ill include in the macro for all of us that where using this in old days..

thx for the help anyway :)

utrero
orc pawn
orc pawn
Posts: 28
Joined: Tue Apr 20, 2004 11:30 am

new info

Post by utrero » Sat Jul 24, 2004 12:31 pm

i have found this form my oldder macro

Sub Event_Tell
/beep
/mp3 play
/return

but this doesnt work from now..any idea whats wrong? using the bard macro for chant kitting if need more info only post please :)

EPIC
decaying skeleton
decaying skeleton
Posts: 8
Joined: Thu Jul 15, 2004 3:04 am

Post by EPIC » Sat Jul 24, 2004 12:36 pm

Sub Event_Tell
/beep
/mp3 play
/return
well thats an event, its called in macro, the problem its that you must destructure the macro and put the call to event in form to make it to recognise if you recive a tell

fantum409
a ghoul
a ghoul
Posts: 141
Joined: Fri Nov 14, 2003 10:03 pm

Post by fantum409 » Sat Jul 24, 2004 1:12 pm

In the beginning of the macro, where events are defined, add this:

Code: Select all

#Chat Tell
Then somewhere in the macro:

Code: Select all

/doevents
or

Code: Select all

/doevents Chat
Then the event sub itself:

Code: Select all

Sub Event_Chat
   /beep
/return

Alterbatively, in a macro with other chat event parsing you might have a line something like:

Code: Select all

Sub Event_Chat(string ChatType,string Sender,string ChatText) 
That would be followed by /if statements that describe how to handle different chat. If your macro is using stuff like that, just add something like:

Code: Select all

/if (${ChatType.Equal[TELL]}) /beep

utrero
orc pawn
orc pawn
Posts: 28
Joined: Tue Apr 20, 2004 11:30 am

umm...this?

Post by utrero » Sat Jul 24, 2004 1:29 pm

maybe somethign like this??

#Event Tell


sub Event_Tell
/beep
/mp3 play
/return

User avatar
aChallenged1
a grimling bloodguard
a grimling bloodguard
Posts: 1804
Joined: Mon Jun 28, 2004 10:12 pm

Post by aChallenged1 » Sat Jul 24, 2004 2:12 pm

Code: Select all

#event Tell "tells you"

sub Event_Tell
 /beep
 /mp3 play
 /return (or goto :xyz)
Not sure that /mp3 play will do anything, unless you have something in there ready to play.

events using text require you to use quotes around the text you will be looking for. "Johnny tells you, '#*#'"
Fuck writing MQ2 macros. Go with IS scripts; IS Rules!

Eryi
orc pawn
orc pawn
Posts: 19
Joined: Sat Feb 28, 2004 11:24 am

Existing Tell Macro

Post by Eryi » Sun Jul 25, 2004 2:45 pm

This may help you find what your looking for. Its a macro that Beeps the system PC speaker when you receive a tell..

Code: Select all

|============================================================================= 
|------------------------------- Tell Alert v1.2 ----------------------------- 
|--------------------------- Audio /tell Notification ------------------------ 
|----------------------------------------------------------------------------- 
|--- Spouts out endless beeps when you've recieved a tell. Useful for 
|--- being semi-AFK or in another process window while LFG, for example. 
|--- USAGE: /macro Tell 
|---    Hit <ENTER> after the alert is triggered to end the macro. 
|---    Otherwise, '/endmacro' as normal. 
|--- Don't forget to change YOURNAMEHERE to your toon's name. 
|----------------------------------------------------------------------------- 
|--- By: a_troll_01 (5/15/04) 
|---    Last Updated (5/25/04) 
|--- Special Thanks to Lax for help with the custom binds. 
|--- Enjoy! 
|============================================================================= 

#event Tell "#*#tells you,#*#" 
#event Invite "#*#invites you to join#*#" 
#event Hail "#*#Hail, YOURNAMEHERE#*#" 

|============================================================================= 

Sub Main 
   /echo Beep Tell-Alert Activated! 
   :MainLoop 
      /doevents 
      /delay 2s 
      /goto :MainLoop 
/endmacro 

|============================================================================= 

Sub Event_Tell 
   /custombind add EndMacro 
   /custombind set EndMacro /goto :End 
   /bind EndMacro ENTER 
   /echo You have recieved a tell. Press <ENTER>. 
   :BeepLoop 
   /beep 
   /delay 1s 
   /goto :BeepLoop 

   :End 
      /bind EndMacro clear 
      /custombind delete EndMacro 
      /echo Shutting down Tell Alert Macro ... 
/endmacro 

|============================================================================= 

Sub Event_Invite 
   /custombind add EndMacro 
   /custombind set EndMacro /goto :End 
   /bind EndMacro ENTER 
   /echo You have been invited to a group. Press <ENTER>. 
   :BeepLoop 
   /beep 
   /delay 1s 
   /goto :BeepLoop 

   :End 
      /bind EndMacro clear 
      /custombind delete EndMacro 
      /echo Shutting down Tell Alert Macro ... 
/endmacro 

|============================================================================= 

Sub Event_Hail 
   /custombind add EndMacro 
   /custombind set EndMacro /goto :End 
   /bind EndMacro ENTER 
   /echo You have been hailed. Press <ENTER>. 
   :BeepLoop 
   /beep 
   /delay 1s 
   /goto :BeepLoop 

   :End 
      /bind EndMacro clear 
      /custombind delete EndMacro 
      /echo Shutting down Tell Alert Macro ... 
/endmacro 

|=============================================================================