Hunter Macro (v1.3 UPDATED 06-07-2004 12:51pm PST)

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

Moderator: MacroQuest Developers

TRex
decaying skeleton
decaying skeleton
Posts: 5
Joined: Mon Apr 19, 2004 6:14 am

Post by TRex » Fri May 28, 2004 8:05 am

Does anyone have a suggestion or quick code on how create an ANCHOR using the great hunter.mac.

thunderly
decaying skeleton
decaying skeleton
Posts: 5
Joined: Thu May 27, 2004 12:18 pm

re: anchor

Post by thunderly » Fri May 28, 2004 3:26 pm

There's another script in this forum that has anchor code built into it. Basically, add two variables to your code (anchor x, anchor y), at the start of the macro save your current coords as the anchor, then make a routine that will move you from your current spot to your anchor coords, add a call to that routine anytime you want to return to said anchor. This would be done at the completion of the battle :lol:

Thornado
orc pawn
orc pawn
Posts: 16
Joined: Wed May 12, 2004 6:59 pm

Post by Thornado » Fri May 28, 2004 3:54 pm

I am not even going to comment on the code that you wrote FrtyTwoIQ but what you need to do is have the section of code run when you are between fights. One of the best ways to understand something like this to modify it is to draw a flow diagram. Just sit down and maybe even print out the code and look at what its really doing. For example this macro pretty much checks if a GM is in zone, gets a target, moves to the target, kills the target, moves to the corpse, loots the corpse, resets a few settings, then checks if your getting attacked if so it loops back to the first move to mob sub. If not it starts the whole process over again. Each of those sections would almost need another explaination but you get the idea. The section of code you modified is designed to run during a fight and what you have to understand is when where and why certain sections of code are being run. In this case one thing could be to insert the code after the GM check but before you get a target such as this below

Code: Select all

   :Start 
   /doevents 
   /call GMCheck 
[color=red]***Insert your code HERE***[/color]
   /call GetTarget 

   :KillAdds 
   /if (${RV_HasTarget}) /call MoveToMob 
This is only one way of doing it but its up to you to decide if thats what you want it to do or not.

FrtyTwoIQ
decaying skeleton
decaying skeleton
Posts: 2
Joined: Wed May 26, 2004 7:59 pm

Post by FrtyTwoIQ » Fri May 28, 2004 4:03 pm

Thank you very very much, as you can tell I've just started dabbling into learning programming and you helped me perfectly sir, and here I thought I'd get flamed for my ignorance ha =p Thanks again

Rollerball
orc pawn
orc pawn
Posts: 12
Joined: Mon May 24, 2004 2:20 pm

Post by Rollerball » Fri May 28, 2004 5:05 pm

Went to EK today to see if its working but I get this error
"Eastern Plains of Karana" is not a Valid Section for FILE HunterMob.ini, ending macro...
For me it looks like a problem finding EK in the ini file but I copied the ini that you posted and tried to see maybe you spelled the zone wrong or something and even added at the start /echo for the zone name to be sure that it matches. It does match but it doesnt find the section.
Any ideas?

DumbStruck
a ghoul
a ghoul
Posts: 125
Joined: Fri Apr 30, 2004 8:46 am

Post by DumbStruck » Sat May 29, 2004 1:12 am

Roller ball

this is what the name should look like :

[Eastern plains of karana]
loot1=Spider Silk
loot2=Wolf meat

hope that helps not quotes but brackets

Rollerball
orc pawn
orc pawn
Posts: 12
Joined: Mon May 24, 2004 2:20 pm

Post by Rollerball » Sat May 29, 2004 12:17 pm

Nm my fault, I put the mob file in MQ2 directory :oops: :(

jaboo
orc pawn
orc pawn
Posts: 13
Joined: Mon May 24, 2004 10:42 pm

Post by jaboo » Sat May 29, 2004 9:11 pm

first i would like to thank you for your beautiful macro, works great. although i use it with my monk and he doesnt do Flying Kick. Also i was wondering if there was anyway i could get him to FD if he's about to die then get up like 3 minutes later and start again. i've died twice already because of the roaming HG's in East Karana - thank you for your help

MoonRaverX
a ghoul
a ghoul
Posts: 91
Joined: Tue Dec 16, 2003 5:09 pm
Location: Tampa, Fl

Post by MoonRaverX » Sun May 30, 2004 2:08 am

For all those that wish to customize, rather than ask it be tailored to your specific class for you, there's a file inclusded with the zip called "readme.chm" double click on it, it'll open a new window that includes everything you wanted to know about how to tailor the macro to exactly what you want it to do. if you run into problems getting a certain part to work, please post the sub in question to the "Macro Help" forum. that's how you can tailor this to EVERY class and EVERY level to do ANYTHING you want it to do.
-MoonRaverX
(Removed character from my sig due to owner of said character requesting me to.)

"ASCII stupid question, get a stupid ANSI"

Chill
Contributing Member
Contributing Member
Posts: 435
Joined: Fri May 07, 2004 5:06 pm
Location: Erie, PA

Post by Chill » Sun May 30, 2004 2:41 am

jaboo wrote:i use it with my monk and he doesnt do Flying Kick. Also i was wondering if there was anyway i could get him to FD if he's about to die ...
Check out my monk version: Monk Hunter I have made quite a few changes now to tailor it to my monk, but it started out all based on rob's code. Try it out, change anything you dont like back to his. Let me know if you make any improvements you feel like sharing.

geostone
a lesser mummy
a lesser mummy
Posts: 78
Joined: Thu Oct 31, 2002 6:16 pm

Post by geostone » Thu Jun 03, 2004 7:56 am

cant seem to get it to work. copied and pasted from the first post hunter.mac HunterMob.ini HunterLoot.ini

the readout says-
[MQ2]attempting to read section "East Commonlands" from HunterMob.ini...
[MQ2]Mob Array Creation Error, ending macro

i cant quite figure out the problem any help would be apprecieated.

thanks,
geo

User avatar
nosaj969
a lesser mummy
a lesser mummy
Posts: 33
Joined: Wed Apr 28, 2004 3:39 pm
Location: Hagerstown, MD

array problem

Post by nosaj969 » Thu Jun 03, 2004 9:05 am

I ran into the same problem last night. It looks like it is a bug with the ${String.Arg[,|]} commands. This part:

Code: Select all

   /if (!${KeySet.Arg[${nValues},|].Length}) { 
      /varcalc nValues ${nValues}-1 
      /goto :MakeArray 
   } 
To get around this and make the macro work for the time being I just hard coded the mobs into the array like so:

insert code between these lines:

Code: Select all

   :MakeArray 
   /if (!${nValues}) /return
insert this code:

Code: Select all

      /echo Declaring Mob Array... 
      /declare RV_MobArray[1]  string outer 
      /declare RV_MobStats[1]   string outer 
      /varset RV_MobArray[1]    MobName
      /varset RV_MobStats[1]     0 

for more than one mob just copy and paste then change 1 to a 2 and your good. I know this isn't the best fix, but it let me run the macro last night which is all I wanted at the time.

Thornado
orc pawn
orc pawn
Posts: 16
Joined: Wed May 12, 2004 6:59 pm

Post by Thornado » Thu Jun 03, 2004 10:36 am

geostone wrote:cant seem to get it to work. copied and pasted from the first post hunter.mac HunterMob.ini HunterLoot.ini

the readout says-
[MQ2]attempting to read section "East Commonlands" from HunterMob.ini...
[MQ2]Mob Array Creation Error, ending macro

i cant quite figure out the problem any help would be apprecieated.

thanks,
geo
Two things did you put the HunterMob.ini and HunterLoot.ini file in the macro folder? Also did you remember to add in a new section for East Commonlands? You might want to post the ini file if you still can't figure it out.

geostone
a lesser mummy
a lesser mummy
Posts: 78
Joined: Thu Oct 31, 2002 6:16 pm

Post by geostone » Thu Jun 03, 2004 11:36 am

yes they are in the macro folder. got it semi working with the fix from nosaj969 but doesnt want to seem to loot now. and yes i have the east karana section which is where im hunting. i can now target a mob and kill it just cant seem to loot it. i changed the speel used to suit my class and everything else seems to be working fine just cant loot what i kill. thanks for the help so far. i seem to be getting a vague idea of whats going on with the help so far.

User avatar
nosaj969
a lesser mummy
a lesser mummy
Posts: 33
Joined: Wed Apr 28, 2004 3:39 pm
Location: Hagerstown, MD

looting

Post by nosaj969 » Thu Jun 03, 2004 1:21 pm

I had mine set to loot everything, so no loot array was needed. You would have to do the same thing as the mob array but with the loot array.

Code: Select all

      /echo Declaring Loot Array... 
      /declare RV_LootArray[1]  string outer 
      /declare RV_LootStats[1]   string outer 
      /varset RV_LootArray[1]    LootItem 
      /varset RV_LootStats[1]     0 
just put it under where you declared the mob array

nosaj969