Shadow Haven Faction Macro

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

Moderator: MacroQuest Developers

armysoldier
a hill giant
a hill giant
Posts: 189
Joined: Mon Jun 27, 2005 2:13 am
Location: Florida (Stationed at FT Carson CO)

Post by armysoldier » Sun Apr 16, 2006 1:00 pm

once i get done with mistletoe and alchemy macs.. i will look at this one see if i can get it workin

ARMY

bertbert
orc pawn
orc pawn
Posts: 19
Joined: Thu May 26, 2005 5:56 pm

Post by bertbert » Mon May 01, 2006 8:09 am

To fix this macro, change the line to

Code: Select all

/if (${Ini[${FileName},${SectionName},Loc${nValues}[b],NOTFOUND].Equal[NOTFOUND]})[/b] {
Also I have noticed that more often than not I get stuck in the room with Steaon. Other times, and much worse, I have ended up in the water. Maybe this macro should have a Swimming skill up routine :D

Anyway, I find that changing the code to open the door before moving works better. I have also removed part of the delay to speed things up a bit.

Code: Select all

...
  :SHa 
  /if (${Location}>0) {    
     :MoveLoopSHa 
     /if (${Zone.Name.Equal[The Bazaar]}) /goto :DoneSH 
[b]     /face nolook loc ${SHArray[${Location}]} 
     /if (${Math.Distance[${SHArray[${Location}]}]}>4) {
        /face nolook loc ${SHArray[${Location}]} 
        /look 
        /if (${Location}==13) {
        	 /squelch /DoorTarget
        	 :OpenDoor
        	 /if (!${Switch.Open}) {
        	    /keypress u
        	    /delay 1s
        	    /goto :OpenDoor
        	 }
        }
        /nomodkey /keypress forward hold 
     } [/b]
     /if (${Math.Distance[${SHArray[${Location}]}]}<=4) { 
        /nomodkey /keypress forward 
        /goto :nextc 
     } 
     /goto :MoveLoopSHa 
     :nextc 
[b]     /delay 1[/b]
     /varset Location ${Math.Calc[${Location}-1]} 
     /goto :SHa 
  } 
  :DoneSH
... 
And lastly, to avoid the macro going past the main entrance in SH and having to backtrack change the SH loop to

Code: Select all

/for Location [b]3[/b] to ${SHArray.Size}