Different follow.mac

DemonH2

Lifetimer
Joined
May 14, 2007
Messages
1,886
Reaction score
2
Points
38
I am working on learning macro's and thought I would post this one. I wrote it because i need a better follow.mac. If it helps anyone then its not a wasted post =p

This one is a bit different than others. I would recommend only using it in instances. Basically it would only ever be warping short distances so it should be safe to use elsewhere, if you are more daring.

Basically it uses /stick as the basic follow(better if your boxing on 1 PC).

However, if the distance gets too far. It will warp to the person you are following. Which should resolve issues with things like getting stuck on walls. It will also end the macro if you zone out of the zone you started in for any reason.

Usage is:

/mac macroname followeename
Code:
#turbo 40

Sub Main
/declare Followee string outer ${Param0}
/declare sZone int outer ${Zone.ID}
/call start 

Sub Start
/call checks
     /if (!${Target.ID}) {
       /target ${Followee}
     /stick 10
}
:follow
/call checks
     /if (${Target.Distance} > 30 && ${Target.ID}) /call warp
     /if (${Target.Distance} < 31 && ${Target.ID}) /goto :follow
/return

Sub Checks
     /if (${Zone.ID}!=${sZone}) /call Rez
     /if (${Target.ID}) /call Start
/return

Sub Rez
/delay 1s
/end
/return

Sub Warp
      /if (!${Target.ID}) {
     /target ${Followee}
    /warp t
}
     /if (${Target.ID}) {
     /warp t
}
/return
 
Last edited:
?

you said you are startingn out making your own macs.... if you were startingout... howexactly do you start macs... and set up the commands and all for them.. and whatkinda program do you use to make macs....
 
There is no program it is a script specifically written for MQ2.

However! it is very similar to C++.

All you need to start is notepad.

A good guide is here:

http://www.mmobugs.com/wiki/index.php/Getting_Started

Disclaimer: I am intoxicated. If I post any offensive material or a link to gay necro midget bestiality porn I apologize.
 
Last edited:
*Edit* I so failed and posted this in the wrong thread...

http://www.mmobugs.com/forums/everq...-and-questions/17051-warpassist-mac-help.html


We'll I can't get it to work for me, idk if i just retarded it up, or if theres some sort of code problem. So I just cut up my WarpHunter alittle and figured out how I could make it follow my other toon and assist.

This is the WarpHunter
Code:
Sub Main
/declare LootTotal int outer 
/declare LootSlot  int outer
  :main
	/doevents
	/if (${SpawnCount[pc]}>=3) /goto :Pcloop
	/delay 1s
	/if (${Spawn[gm].ID}) /q
	/delay 1s
	/if (!${Target.ID})    /target a
        /if (!${Target.ID})    /target a
        /if (!${Target.ID})    /target a
        /if (!${Target.ID})    /target a
	/if (${Target.Type.Equal[Corpse]}) /hidecorpse all
	/if (${Me.PctHPs}<70) {
				 /potionbelt Activate 2

						

						
								}

	/if (${Target.ID})  /goto :move
	/goto :main



  :move
	/warp target
	/keypress back
	/delay 1s
	/keypress forward
	/stick 14
 	/goto :stick

  
  :stick
	/stick 15
	/keypress back hold
	/delay 1s
	/keypress forward
	/goto :kill


  :kill 

	/delay 1s
	/attack on
        /stick 14
	/if (${Target.ID}<3)  /hidecorpse all
	/if (${Me.PctHPs}<70) /potionbelt Activate 2
				 
					
	/goto :wait

  :wait
	/if (${Me.PctHPs}<12) {
			        /warp succor
                                /delay 1s	
 			 	/warp succor
				/fade
				/delay 10
				/sit
				/delay 90s
				/stand
				
					     }
	/doevents
	/if (!${Target.ID}) /goto :main
	/if (${Target.ID}) /goto :kill
					}





  :Pcloop
	/echo -*-*-*Checking for players-*-*-*
	/if (${SpawnCount[pc]} >3) {
	/echo -*-*-* Others in zone -*-*-*
	/echo -*-*-* Pausing *-*-*
	/afk Ration run.
	/potionbelt Activate 1
	/camp
	/endmac
	/delay 300s ${SpawnCount[PC]}==2
	/goto :Pcloop
					}
	/return

This is the WarpFollower I butchered together.
Code:
Sub Main
/declare LootTotal int outer 
/declare LootSlot  int outer
  :main
	/doevents
	/if (${SpawnCount[pc]}>=3) /goto :Pcloop
	/delay 1s
	/if (${Spawn[gm].ID}) /q
	/delay 3s
	/if (!${Target.ID})    /target PERSON2FOLLOW
	/if (${Target.Type.Equal[Corpse]}) /hidecorpse all
	/if (${Me.PctHPs}<70) {
				 /potionbelt Activate 2

						

						
								}

	/if (${Target.ID})  /goto :move
	/goto :main



  :move
	/warp target
	/delay 1s
	/assist
	/goto :kill


  :kill 

	/delay 1s
	/attack on
        /stick 14
	/if (${Me.PctHPs}<70) /potionbelt Activate 2
				 
					
	/goto :wait

  :wait
	/if (${Me.PctHPs}<12) /doability "Feign Death"
	/doevents
	/if (!${Target.ID}) /goto :main
	/if (${Target.ID}) /goto :kill
					





  :Pcloop
	/echo -*-*-*Checking for players-*-*-*
	/if (${SpawnCount[pc]} >3) {
	/echo -*-*-* Others in zone -*-*-*
	/echo -*-*-* Pausing *-*-*
	/afk Ration run.
	/potionbelt Activate 1
	/camp
	/endmac
	/delay 300s ${SpawnCount[PC]}==2
	/goto :Pcloop
					}
	/return

The WarpFollower works pretty well, I've not had alot of time to test it, but what i've done with it, its worked out well enough.

I'll try and give yours some more testing tomorrow, I'll give more details on how its being bleh tomorrow after i've had some sleep.
 
Last edited: