Page 1 of 1

Simple macro to beep when mob spawns

Posted: Sun Oct 29, 2017 7:23 pm
by Arinor
I was farming quillmane the other day for a pegasus feather cloak and in between spawns I was alt tabbing to watch Twitch / whatever so I wrote a simple macro that *beeps* whenever a mob matching the name you enter spawns. This let me alt tab without worrying about missing the spawn. Its quite simple but I figured someone might find it useful. It will also echo out every 5 seconds with an update on how long you have been waiting.

Installation: -copy text into notepad and save the file as a .mac within your macroquest macro folder.

Usage /macro macroname "Quillmane"

Note- the macro does not automatically exit. To stop it simply type /endmacro

Code: Select all

Sub Main
   /declare waitTime int outer
   /declare waitMinutes int outer
   /declare waitSeconds int outer
   
   /varset waitTime 0
   /varset waitMinutes 0
   /varset waitSeconds 0
   
   /if (!${Defined[Param0]}) {
      /echo What npc are we waiting on?
      /echo Usage:   /spawnAlert "a fire elemental"
      /echo Be sure to use quotes!
      /return
   }   
   /goto :Loop
   
   :Loop
    /if (${SpawnCount[npc ${Param0}]}) {
      /echo ${Param0} found!
      /beep
      /target ${Param0}
      /delay 5s
      /goto :Loop
   }
   
   /if (${waitTime}>60) {
      /varcalc waitMinutes ${waitTime} / 60
      /varcalc waitSeconds ${waitTime} % 60
      /echo Nothing Found Matching -${Param0}-, wait time: ${waitMinutes} minutes and ${waitSeconds} seconds.
   } else {
      /echo Nothing Found Matching -${Param0}-, wait time: ${waitTime} seconds
   }
   
   
   /delay 5s
   /varcalc waitTime (${waitTime} + 5)
   /goto :Loop
   
   

Re: Simple macro to beep when mob spawns

Posted: Fri Nov 03, 2017 3:27 am
by Pssycho
Pretty sure this is what Control does not want you doing.
No scripts.

Re: Simple macro to beep when mob spawns

Posted: Tue Nov 07, 2017 2:04 am
by Arinor
Going against server rules was definitely not my intentions. I took it as a no scripts that play your character for you, auto pulling/killing/healing etc.