ringwar.mac - 10th Ring War Macro

Macro depository for macros written before the user variable changes that broke all of them.

Moderator: MacroQuest Developers

User avatar
Stargazer
a lesser mummy
a lesser mummy
Posts: 32
Joined: Mon Sep 30, 2002 3:30 pm

ringwar.mac - 10th Ring War Macro

Post by Stargazer » Mon Oct 07, 2002 2:29 am

This macro is for people who participate in the 10th Ring War in Great Divide. It simply calls out the direction of the next spawn wave directly to the chat channel being used for the event. This prevents trackers and spotters from missing when the next wave of giants is approaching. Any comments and improvements would be appreciated.

Code: Select all

| ringwar.mac
|
| ringwar macro for Great Divide
| automatically calls out the direction for the next spawn
| created 10/04/2002 by Stargazer
|
| note chat channel 1 has already been joined so that directions
| can be relayed to all 
|
| it is also important that you remain at the central staging location
| so that you will correctly call out the spawn direction to others

#define RWCHAN /1
|#define RWCHAN /echo

  Sub Main
    /alert clear 1
    /alert add 1 npc Warrior
    /alert add 1 npc veteran
    /alert add 1 npc recruit
    /alert add 1 npc general
    /alert add 1 npc warlord
    /alert add 1 npc priest
    :LOOP
      
      /if $alert(1)=="TRUE" {
        /target alert 1
        /face fast
        /varset v1 $char(heading)
        /call direction
        /goto :EXIT
      }
      /delay 20
    /goto :LOOP
    :EXIT
  /return  

  Sub Direction

    | determine 8 point compass heading
    | and call it out

    | MQ heading is 360 degrees 
    | but reverse of normal compass
    /if n $v1<=22.5 {
      RWCHAN spawn North!
    } else /if n $v1<=67.5 {
      RWCHAN spawn NorthWest!
    } else /if n $v1<=112.5 {
      RWCHAN spawn West!
    } else /if n $v1<=157.5 {
      RWCHAN spawn SouthWest!
    } else /if n $v1<=202.5 {
      RWCHAN spawn South!
    } else /if n $v1<=247.5 {
      RWCHAN spawn SouthEast!
    } else /if n $v1<=292.5 {
      RWCHAN spawn East!
    } else /if n $v1<=237.5 {
      RWCHAN spawn NorthEast!
    } else /if n $v1<=360.0 {
      RWCHAN spawn North!
    } else {
      /echo Error! $v1 is not a valid direction
    }
  /return
Last edited by Stargazer on Tue Oct 08, 2002 7:35 pm, edited 2 times in total.

User avatar
rizwank
Huggle Police
Huggle Police
Posts: 524
Joined: Tue Jul 23, 2002 12:07 am
Contact:

Post by rizwank » Mon Oct 07, 2002 2:39 am

SPECTACULAR!

thanks!
#macroquest op
Macroquest Official Documentarion
Macroquest Board Moderator
All around cool guy

[img]http://medicomuerte.users.btopenworld.com/images/fairy_bounce08.gif[/img]

User avatar
ap50
a snow griffon
a snow griffon
Posts: 425
Joined: Sun Aug 18, 2002 2:29 pm

10th War

Post by ap50 » Mon Oct 07, 2002 5:50 am

Thanks, I usually get the job of running our guilds 10th War, and even though I assign rangers to the job, I end up calling the spawns faster than they do...

Now I definitely will. Muahahaha.
[color=yellow][size=92][b]Just because you're paranoid, it doesn't mean everyone isn't out to get you![/b][/size][/color]

Genoius
a lesser mummy
a lesser mummy
Posts: 49
Joined: Sat Jul 13, 2002 8:20 am

Post by Genoius » Mon Oct 07, 2002 2:32 pm

Spectacular work! This could be modded to do pretty much any spawn where farming is done(ie LGuk for nameds)!

Again, spectacular work!


---Genoius---

nikeman
a lesser mummy
a lesser mummy
Posts: 70
Joined: Tue Jun 18, 2002 10:37 am

Post by nikeman » Tue Nov 19, 2002 5:47 pm

btw does this still work right? i havent got to test it in an actuly ring war yet but i tryed it in PoT and it called the warlord was east then shuts down the marco is it pose to shut it down after every call?

User avatar
ap50
a snow griffon
a snow griffon
Posts: 425
Joined: Sun Aug 18, 2002 2:29 pm

Post by ap50 » Tue Nov 19, 2002 5:52 pm

It always shut down for me when I used it in the actual ring wars.. It has to, as there are more than just 1 mob up.. if it kept cycling looking for Kromriff Warrior, it would constantly find them until the last corpse had been looted.
[color=yellow][size=92][b]Just because you're paranoid, it doesn't mean everyone isn't out to get you![/b][/size][/color]