Harvest Assist Bot - Feedback

Jdnwaco

Active Member
Thanks Ire. Just to clarify, this doesn't harvest resources for you correct? It will only autofollow someone and assist them for group harvesting?

Xeon's Kbot still the best to harvest with?
 

abndrew82

Active Member
Ok well question on this

From some other posts, not sure if possible to do

But will he also assist on Harvesting if the target is a dead mob

I.E. skinning, or a Treant or Rock mob
 

OIA

Active Member
So what am I missing, how do I get this to work? Do I do a runscript *name* in the innerspace console?
 

abndrew82

Active Member
yes

run harv in your innerspace console to open the GUI

Now for my question.

As mentioned before, I am trying to use it to harvest mobs that die, well it works sometimes.

What I am doing is

Got my Cleric running this who is a Skinner / Miner

He follows my main around a Monk who is Quarry / Lumber

I am killing trees and stone mobs

What appears to be happening, is he is assisting and trying to harvest too early before I actually start it on my main.

I can see him trying to attack the dead mob and getting spam of invalid target.

Appears that he isnt waiting for me, part of the issue, is most times I have to loot the mobs before it can be harvested.

Sometimes if the mob drops no loot and I can harvest right as it dies, it works, but that is quite rare.

Any ideas on what I can do to fix this.
 

djvj

Active Member
Your problem is you are using it in a way that it was not designed to be used. It's scripted to help harvest resource nodes, not mobs. There is no "fixing" that.
 

abndrew82

Active Member
Hmm K, I was going by Iremearde said that it would do what I was trying.

So wanted to see if there was anything for that.
 

djvj

Active Member
Will follow any person and assist on any harvestable resource.
Well by that statement it just sounds like it's not going to know how to handle mobs and know when to join in vs a node. I've not actually used this script, but I make my assumption by the description. And the way you said it wasn't working sounds exactly like it doesn't know how to wait for resources that you have to kill/loot first.
 

abndrew82

Active Member
yeah that is what I figure the problem is

But wasnt sure, as I am newer to this stuff, if there was anyway to tell it to say pause so many secs before joining in on a harvest
 

djvj

Active Member
You can add a wait right before it starts to harvest, but there is better ways to make it work how you want. ISXVG knows when you are in combat and the bot just needs a check to see if you are, then wait till you are out.
 

abndrew82

Active Member
Guess I will do some reading

Never considered myself a coder, but have been able to figure stuff out if I read enough.

And this script is small, so I may be able to figure some stuff out.

Ok from reading this script This is the Code I see for harvesting

function Harvest()
{
if "(${Me.Target.Type.Equal[Resource]} || ${Me.Target.IsHarvestable}) && ${Me.Target.Distance}<5 && ${Me.ToPawn.CombatState}==0"
{
VGExecute /autoattack
wait 10
}
}
Which from what I see it already checks that he is not in combat with this line

${Me.ToPawn.CombatState}==0
So that appears to not be the issue.

What I also see and am curious if I am right

if "(${Me.Target.Type.Equal[Resource]} || ${Me.Target.IsHarvestable})
Looks like the
(${Me.Target.Type.Equal[Resource]}
Part checks to see if the target is an actual node like a Node of Pyrite or Such and the
${Me.Target.IsHarvestable})
Checks to see if it is a harvest able mob.

Now if I am right on that, it appears that it just isnt catching that right, cause it is going into /autoattack before the mob becomes Harvestable, which may be cause the game is able to tell ISXVG that it is harvestable, before you can actually harvest it.

Well any assistance would be greatly appreciated.
 
Last edited:

spudman

Active Member
I haven't used the bot yet, but it's basically vgshaman, slimmed down to do just harvesting. vgshaman has a big issue with harvesting stone/tree creatures because it keeps trying to loot them over and over, therefore this one suffers the same fate.

The overall issue is that the looping mechanism doesn't realize it's harvesting while it goes to try 'other' things and it ends up interrupting the harvesting process. This is my guess anyway with just a quick overview of the code. I'm not sure why it doesn't affect it on skinning mobs. Perhaps skinning mobs aren't labeled as corpses after they change to harvestable, but I know that the primary problem with tree/stone mobs is that they are tagged as both 'corpse' and 'harvestable'. So the script tends to want to loot and harvest it at the same time.

For my own customized vgshaman, I used a combination of blacklists for corpses and harvestable's and also had the script 'wait' while it harvested to continue trying to do other stuff. Here's some code I put into my vgshaman to have it actually wait until it's done harvesting before trying 'other' things (stealing from abndrew82's post to get the harvest function)...

Code:
function Harvest()
{
	if "(${Me.Target.Type.Equal[Resource]} || ${Me.Target.IsHarvestable}) && ${Me.Target.Distance}<5 && ${Me.ToPawn.CombatState}==0"
	{
		VGExecute /autoattack
		wait 10	${GV[bool,bHarvesting]}
		if !${GV[bool,bHarvesting]}
		{
;echo Did not start Harvesting - ${Me.Target.ID}
			if ${Me.AutoAttackOn}
				VGExecute /autoattack
			return
		}
;echo Did start harvesting, waiting till finished
		do
		{
			waitframe
		}
		while ${GV[bool,bHarvesting]}
	}
}
I'm not saying this will fix your issue abndrews82. There may be other issues, but it's a start.
 

Kelly71

Active Member
WHen i run this i get c:/p[rogramfiles/innerspace/scripts/harv.iss(10) Could not locate file ./common/moveto.iss for processing. Failed..


Downloaded the 2 files and put them in the correct directory.. what am i missing.
 
Top Bottom