Discussion in 'Scripts (LavishScript)' started by Iremearde, Sep 21, 2007.

  1. Iremearde

    Iremearde Active Member

    Messages:
    24
  2. Eris

    Eris Active Member

    Messages:
    45
    Glad to see you got this finished, I look forward to trying it out.
  3. Jdnwaco

    Jdnwaco Active Member

    Messages:
    24
    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?
  4. Iremearde

    Iremearde Active Member

    Messages:
    24
    this is not an autobot and i do not plan on making it one either
  5. abndrew82

    abndrew82 Active Member

    Messages:
    44
    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
  6. Iremearde

    Iremearde Active Member

    Messages:
    24
    it will harvest any harvestable resource. that includes skinning
  7. abndrew82

    abndrew82 Active Member

    Messages:
    44
    sweeet, cant wait to test it out tonight or tomorrow
  8. OIA

    OIA Active Member

    Messages:
    4
    So what am I missing, how do I get this to work? Do I do a runscript *name* in the innerspace console?
  9. abndrew82

    abndrew82 Active Member

    Messages:
    44
    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.
  10. djvj

    djvj Active Member

    Messages:
    113
    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.
  11. abndrew82

    abndrew82 Active Member

    Messages:
    44
    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.
  12. djvj

    djvj Active Member

    Messages:
    113
    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.
  13. abndrew82

    abndrew82 Active Member

    Messages:
    44
    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
  14. djvj

    djvj Active Member

    Messages:
    113
    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.
  15. abndrew82

    abndrew82 Active Member

    Messages:
    44
    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

    Which from what I see it already checks that he is not in combat with this line

    So that appears to not be the issue.

    What I also see and am curious if I am right

    Looks like the
    Part checks to see if the target is an actual node like a Node of Pyrite or Such and the
    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: Oct 2, 2007
  16. spudman

    spudman Active Member

    Messages:
    186
    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 (Text):
    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.
  17. abndrew82

    abndrew82 Active Member

    Messages:
    44
    Thanks for the advice on this.

    I will give it a try tonight to see if it helps for sure.
  18. abndrew82

    abndrew82 Active Member

    Messages:
    44
    Thanks much for the code

    It worked great.
  19. Kelly71

    Kelly71 Active Member

    Messages:
    168
    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.
  20. abndrew82

    abndrew82 Active Member

    Messages:
    44
    You need to make sure you download moveto.iss from here also from a different post

    You can get it here

    http://isxgames.com/forums/showthread.php?t=582

    I had this problem after deleting everything once.

    Download it and place it in the folder named Common under scripts

    If you do not have a folder named common create one
  21. Kelly71

    Kelly71 Active Member

    Messages:
    168
    thx man.. Missed that post somehow
  22. BigOleDick

    BigOleDick Active Member

    Messages:
    11
    Harv bot still working for anyone? I cant get my to work since the patch.
  23. Iremearde

    Iremearde Active Member

    Messages:
    24
    Won't work until isxvg has been updated.
  24. BigOleDick

    BigOleDick Active Member

    Messages:
    11
    I see, thank you
  25. vah shir

    vah shir Active Member

    Messages:
    15
    Is there an alternative to this one?
    Last edited: Feb 5, 2009

Share This Page