Farming mac

Need help with a macro you are writing? Ask here!

Moderator: MacroQuest Developers

Twen
orc pawn
orc pawn
Posts: 19
Joined: Fri Dec 10, 2004 1:41 pm

Farming mac

Post by Twen » Wed Dec 22, 2004 5:06 pm

I am trying to use Overrides farming macro to farm shadowscream parts. I am not sure how to adjust it to kill skeletal hunters and lesser shades in shadeweavers, and to loot swirling shadows.
heres the text from the ini file:
[Netherbian Lair]
NotMob1=A Haven Guard
NotMob2=A Haven Customs Inspector
NotMob3=A Haven Customs Officer
NotMob4=#Legionnaire Hyuni
Mob1=A Netherbian Drone
Mob2=A Netherbian Warrior
Mob3=#A Netherbian Swarmcaller
Loot1=Porous Mineral Block
Loc1=471.62, -253.49
Loc2=375.91, -258.13
Loc3=382.94, -412.25
Loc4=478.81, -406.58
Loc5=482.48, -325.36
Loc6=385.64, -320.41
Loc7=388.33, -465.80
Loc8=215.27, -469.23
Loc9=221.23, -261.75
Loc10=387.36, -249.06
Loc11=275.78, -262.52
Loc12=219.15, -268.31
Loc13=209.90, -202.36
Loc14=214.97, -7.61
Loc15=411.70, -1.65
Loc16=470.62, -57.66

And heres the info from the .inc file:
|
| Everytime you wish to add a zone in please add this line of
| code in and update all the settings:
|
| /if (${Zone.Name.Equal[*Zone Name*]}) {
| /echo Netherbian Lair
| /varset RV_LootAllItems 1
| /varset SetMobs 1
| /varset NotMobs 1
| /varset SetRadius 12
| /varset SetZRadius 10
| }
|
| *Zone Name* = Replace this with the new zone name.
| RV_LootAllItems = Set to 1 to loot all the items or 0 if they
| are set in the ini.
| SetMobs = Set to 1 if you have specified which mobs to kill
| in the ini or 0 if you haven't.
| NotMobs = Set to 1 if you have specified which mobs to not tp kill
| even if you get aggro in the ini or 0 if you haven't.
| SetRadius = Radius around you that it will search for a mob.
| SetZRadius = The up and down radius around you that it will
| search for a mob.


Sub Setup

/if (${Zone.Name.Equal[Netherbian Lair]}) {
/echo Netherbian Lair
/varset RV_LootAllItems 0
/varset SetMobs 1
/varset NotMobs 1
/varset SetRadius 12
/varset SetZRadius 10
}


/return

I just recently started classes on VB programming so not real familiar with what needs to be done. I tried typing the /if line and down but i get and error at the RV_loot line. any assistance would be appreciated.

User avatar
KungFuHamster
a snow griffon
a snow griffon
Posts: 337
Joined: Wed Oct 02, 2002 7:47 am

Post by KungFuHamster » Thu Dec 23, 2004 2:35 pm

If you want to use this macro in a zone other than Netherbian Lair, you have to add new sections in the ini and inc files to accomodate that.

In the ini file, you need a new [Shadeweaver's Thicket] section (or whatever the zone is called exactly) with mobs you want to kill, not kill, loot you want to keep, and the locations you want to "patrol". All of these will be unique to Shadeweaver's.

The .inc file controls the variables for how you want to treat loot, etc., in that zone. You need a new section of code like the Netherbian section, but with the appropriate name for the new zone you want to farm in. You can probably just copy and paste the section and change the name of the zone and be fine with this file, although you may need to tweak the radii.

Copy your whole .ini and .inc files here if you need more help, including the exact error message you are getting.

Twen
orc pawn
orc pawn
Posts: 19
Joined: Fri Dec 10, 2004 1:41 pm

Post by Twen » Thu Dec 23, 2004 5:39 pm

ok, i thought i was suposed to add the lines in game. so thats why i was probably getting an error. will try adding to the ini and inc files. thank you so much, heres hoping it works :D

Twen
orc pawn
orc pawn
Posts: 19
Joined: Fri Dec 10, 2004 1:41 pm

Post by Twen » Thu Dec 23, 2004 6:07 pm

ok i adjusted the ini and inc to the following
ini:
[Netherbian Lair]
NotMob1=A Haven Guard
NotMob2=A Haven Customs Inspector
NotMob3=A Haven Customs Officer
NotMob4=#Legionnaire Hyuni
Mob1=A Netherbian Drone
Mob2=A Netherbian Warrior
Mob3=#A Netherbian Swarmcaller
Loot1=Porous Mineral Block
Loc1=471.62, -253.49
Loc2=375.91, -258.13
Loc3=382.94, -412.25
Loc4=478.81, -406.58
Loc5=482.48, -325.36
Loc6=385.64, -320.41
Loc7=388.33, -465.80
Loc8=215.27, -469.23
Loc9=221.23, -261.75
Loc10=387.36, -249.06
Loc11=275.78, -262.52
Loc12=219.15, -268.31
Loc13=209.90, -202.36
Loc14=214.97, -7.61
Loc15=411.70, -1.65
Loc16=470.62, -57.66

[Shadeweaver's Thicket]
NotMob1=A Haven Guard
NotMob2=A Haven Customs Inspector
NotMob3=A Haven Customs Officer
NotMob4=#Legionnaire Hyuni
Mob1=a lesser shade
Mob2=a skeletaa hunter
Mob3=#A Netherbian Swarmcaller
Loot1=Swirling Shadows
Loc 1=2052.88, - 1961.27

inc:
|
| Everytime you wish to add a zone in please add this line of
| code in and update all the settings:
|
| /if (${Zone.Name.Equal[*Zone Name*]}) {
| /echo Netherbian Lair
| /varset RV_LootAllItems 1
| /varset SetMobs 1
| /varset NotMobs 1
| /varset SetRadius 12
| /varset SetZRadius 10
| }
|
| *Zone Name* = Replace this with the new zone name.
| RV_LootAllItems = Set to 1 to loot all the items or 0 if they
| are set in the ini.
| SetMobs = Set to 1 if you have specified which mobs to kill
| in the ini or 0 if you haven't.
| NotMobs = Set to 1 if you have specified which mobs to not tp kill
| even if you get aggro in the ini or 0 if you haven't.
| SetRadius = Radius around you that it will search for a mob.
| SetZRadius = The up and down radius around you that it will
| search for a mob.


Sub Setup

/if (${Zone.Name.Equal[Netherbian Lair]}) {
/echo Netherbian Lair
/varset RV_LootAllItems 0
/varset SetMobs 1
/varset NotMobs 1
/varset SetRadius 12
/varset SetZRadius 10
}


/return

Sub Setup

/if (${Zone.Name.Equal[Shadeweaver's Thicket]}) {
/echo Netherbian Lair
/varset RV_LootAllItems 0
/varset SetMobs 1
/varset NotMobs 0
/varset SetRadius 700
/varset SetZRadius 200
}


/return
then in game in the mq2 window i typed /macro farming
it gave me the following lines
[MQ2] Attempting to Read Section "Shadeweaver's Thicket" Zone Information from farming.ini...
[MQ2] Declaring Loot Array...
[MQ2] No Loc Array Created...

think the problem is the location array, is that the Loc1, Loc2 etc lines? i only put 1 loc cause i thought it just needed where to start from and then it would use the radius from Loc1.

Twen
orc pawn
orc pawn
Posts: 19
Joined: Fri Dec 10, 2004 1:41 pm

Post by Twen » Fri Dec 24, 2004 5:21 pm

OK I got the macro to work. just some bugs now. the radius doesnt seem to work, no matter how big i make it it will only attack things that are close to the path. also instead of looting what is listed it loots everything. heres the ini and inc files
ini:

Code: Select all

[Netherbian Lair]
NotMob1=A Haven Guard
NotMob2=A Haven Customs Inspector
NotMob3=A Haven Customs Officer
NotMob4=#Legionnaire Hyuni
Mob1=A Netherbian Drone
Mob2=A Netherbian Warrior
Mob3=#A Netherbian Swarmcaller
Loot1=Porous Mineral Block 
Loc1=471.62, -253.49
Loc2=375.91, -258.13
Loc3=382.94, -412.25
Loc4=478.81, -406.58
Loc5=482.48, -325.36
Loc6=385.64, -320.41
Loc7=388.33, -465.80
Loc8=215.27, -469.23
Loc9=221.23, -261.75
Loc10=387.36, -249.06
Loc11=275.78, -262.52
Loc12=219.15, -268.31
Loc13=209.90, -202.36
Loc14=214.97, -7.61
Loc15=411.70, -1.65
Loc16=470.62, -57.66

[Shadeweaver's Thicket]
NotMob1=A Haven Guard
NotMob2=A Haven Customs Inspector
NotMob3=A Haven Customs Officer
NotMob4=#Legionnaire Hyuni
Mob1=a lesser shade
Mob2=a skeletal hunter
Mob3=#A Netherbian Swarmcaller
Loot1=Swirling Shadows
Loc1=2052.88, -1961.27
Loc2=1987.78, -2342.15
Loc3=2036, -2113
Loc4=1936, -1993
inc:

Code: Select all

|
| Everytime you wish to add a zone in please add this line of 
| code in and update all the settings:
| 
| /if (${Zone.Name.Equal[*Zone Name*]}) {
|   /echo Netherbian Lair
|   /varset RV_LootAllItems 1
|   /varset SetMobs 1
|   /varset NotMobs 1
|   /varset SetRadius 12
|   /varset SetZRadius 10
| }
|
| *Zone Name* = Replace this with the new zone name.
| RV_LootAllItems = Set to 1 to loot all the items or 0 if they 
|    are set in the ini.
| SetMobs = Set to 1 if you have specified which mobs to kill 
|    in the ini or 0 if you haven't.
| NotMobs = Set to 1 if you have specified which mobs to not tp kill 
|    even if you get aggro in the ini or 0 if you haven't.
| SetRadius = Radius around you that it will search for a mob.
| SetZRadius = The up and down radius around you that it will 
|    search for a mob.


Sub Setup

/if (${Zone.Name.Equal[Netherbian Lair]}) {
  /echo Netherbian Lair
  /varset RV_LootAllItems 0
  /varset SetMobs 1
  /varset NotMobs 1
  /varset SetRadius 1200
  /varset SetZRadius 1000
}


/return

Sub Setup

/if (${Zone.Name.Equal[Shadeweaver's Thicket]}) {
  /echo Netherbian Lair
  /varset RV_LootAllItems 0
  /varset SetMobs 1
  /varset NotMobs 0
  /varset SetRadius 7000
  /varset SetZRadius 200
}


/return
not sure whats causing the loot all thing since its set to only loot what i have listed in the ini file, and the radius i have set should pretty much allow to just have 1 loc if i wanted to and it would automatically search and destroy my listed mobs.
Last edited by Twen on Sat Dec 25, 2004 9:43 pm, edited 1 time in total.

User avatar
ieatacid
Developer
Developer
Posts: 2727
Joined: Wed Sep 03, 2003 7:44 pm

Post by ieatacid » Fri Dec 24, 2004 5:58 pm

You have two "Sub Setup". Try it like this:

Code: Select all

Sub Setup

/if (${Zone.Name.Equal[Netherbian Lair]}) {
   /echo Netherbian Lair
   /varset RV_LootAllItems 0
   /varset SetMobs 1
   /varset NotMobs 1
   /varset SetRadius 1200
   /varset SetZRadius 1000
}

/if (${Zone.Name.Equal[Shadeweaver's Thicket]}) {
   /echo Shadeweaver's Thicket
   /varset RV_LootAllItems 0
   /varset SetMobs 1
   /varset NotMobs 0
   /varset SetRadius 7000
   /varset SetZRadius 200
}

/return
Oh, and use code tags when you paste code. It's easier to read.

Twen
orc pawn
orc pawn
Posts: 19
Joined: Fri Dec 10, 2004 1:41 pm

Post by Twen » Sat Dec 25, 2004 9:36 pm

ok the kill radius works now and so does the loot thing. just have a prob with running into rocks and trees =/ any bits of code around that i could just paste in? i searched saw some things but wasnt sure if they would help or not.

User avatar
Fluffy
a ghoul
a ghoul
Posts: 81
Joined: Sun Aug 22, 2004 5:08 pm

Post by Fluffy » Sun Dec 26, 2004 7:49 am

Twen wrote:ok the kill radius works now and so does the loot thing. just have a prob with running into rocks and trees =/ any bits of code around that i could just paste in? i searched saw some things but wasnt sure if they would help or not.
The move include would help you here it has some slight error checking on getting stuck. If you need anything more in depth then you will need to write in certain paths for what you want to run to as to stop it from getting stuck.

Twen
orc pawn
orc pawn
Posts: 19
Joined: Fri Dec 10, 2004 1:41 pm

Post by Twen » Sun Dec 26, 2004 2:45 pm

move include? that a macro/plugin or just some term i dont know? also i do have a path made but sometimes the mobs spawn on rocks or on the other side of rocks and when i walk over them iand kill the mob i return to where i left the path but i could get stuck on the rock. is there a way to make certain locs with a radius, and have those locs as go around areas?

insanitywiz
a hill giant
a hill giant
Posts: 250
Joined: Mon Jul 08, 2002 7:50 am

Post by insanitywiz » Sun Dec 26, 2004 2:48 pm

It's an include (.inc) for, well, moving.

Bardlover
a lesser mummy
a lesser mummy
Posts: 52
Joined: Sun Oct 10, 2004 5:32 pm

Post by Bardlover » Sun Mar 27, 2005 5:45 pm

Is there a way to have it destroy things NOT found in the Ini? bags getting full of plain ol junk, and also set priority of kills if more than one found in radius?
Also am having problems using this with my bard, tried having it farm in LoIo and it wouldn't target anything, had 12 things on list, would just wander around. if I specifially targeted something, it would go kill it, but then wander again :(

User avatar
Override
a hill giant
a hill giant
Posts: 179
Joined: Sun Dec 29, 2002 9:19 am

Post by Override » Wed Apr 06, 2005 12:46 pm

I tried to make it the easiest I could for people to edit, but it never seems to work out that way. LOL. just post the code you have and I will look over it to see if I can figure out what is going on with your code.
Self Automated Tradeskill Macros at:
[url=http://www.override13.com/mq2/]http://www.override13.com/mq2/[/url]