Page 5 of 16

Posted: Fri May 28, 2004 8:05 am
by TRex
Does anyone have a suggestion or quick code on how create an ANCHOR using the great hunter.mac.

re: anchor

Posted: Fri May 28, 2004 3:26 pm
by thunderly
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:

Posted: Fri May 28, 2004 3:54 pm
by Thornado
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.

Posted: Fri May 28, 2004 4:03 pm
by FrtyTwoIQ
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

Posted: Fri May 28, 2004 5:05 pm
by Rollerball
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?

Posted: Sat May 29, 2004 1:12 am
by DumbStruck
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

Posted: Sat May 29, 2004 12:17 pm
by Rollerball
Nm my fault, I put the mob file in MQ2 directory :oops: :(

Posted: Sat May 29, 2004 9:11 pm
by jaboo
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

Posted: Sun May 30, 2004 2:08 am
by MoonRaverX
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.

Posted: Sun May 30, 2004 2:41 am
by Chill
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.

Posted: Thu Jun 03, 2004 7:56 am
by geostone
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

array problem

Posted: Thu Jun 03, 2004 9:05 am
by nosaj969
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.

Posted: Thu Jun 03, 2004 10:36 am
by Thornado
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.

Posted: Thu Jun 03, 2004 11:36 am
by geostone
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.

looting

Posted: Thu Jun 03, 2004 1:21 pm
by nosaj969
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