Page 1 of 1

Farming mac

Posted: Wed Dec 22, 2004 5:06 pm
by Twen
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.

Posted: Thu Dec 23, 2004 2:35 pm
by KungFuHamster
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.

Posted: Thu Dec 23, 2004 5:39 pm
by Twen
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

Posted: Thu Dec 23, 2004 6:07 pm
by Twen
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.

Posted: Fri Dec 24, 2004 5:21 pm
by Twen
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.

Posted: Fri Dec 24, 2004 5:58 pm
by ieatacid
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.

Posted: Sat Dec 25, 2004 9:36 pm
by Twen
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.

Posted: Sun Dec 26, 2004 7:49 am
by Fluffy
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.

Posted: Sun Dec 26, 2004 2:45 pm
by Twen
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?

Posted: Sun Dec 26, 2004 2:48 pm
by insanitywiz
It's an include (.inc) for, well, moving.

Posted: Sun Mar 27, 2005 5:45 pm
by Bardlover
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 :(

Posted: Wed Apr 06, 2005 12:46 pm
by Override
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.