Kbot needs a "close" command"

soxz

Active Member
First, I've been using kbot as a harvester. GREAT SCRIPT!! BZ to the author.

With this latest game update, a new window was introduced when the item being harvested drops additional trash. An example - I cut down tree - It drops the normal timber/lumber -in addition it drops loot which is shown in separate window.
To continue harvesting I must hit the "close" button or the bot will just sit there.
The bot was working fine before the update.

1. - Have I overlooked a setting
or
2. - Where would I put the "close" command in the script to close the information window after cutting the tree down, retrieve the loot/lumber and continue harvesting?

The "new" trash/loot window was working fine prior to this update

Assistance would be appreciated
 

rusty

Active Member
Not sure if this will work find the lootall in kbot and add after

VGExecute /hidewindow harvesting
VGExecute /hidewindow bonus yield
VGExecute /hidewindow depletion bonus yield

hope that helps
 

kumpel100

Active Member
rusty said:
Not sure if this will work find the lootall in kbot and add after

VGExecute /hidewindow harvesting
VGExecute /hidewindow bonus yield
VGExecute /hidewindow depletion bonus yield

hope that helps
No this didnt help still stuck when the extras comes up.
your idear just hide the windows we need a close command or like that.
this is the part we talk about:

;echo Did start harvesting, waiting till finished
do
{
waitframe
}
while ${GV[bool,bHarvesting]} && (${Me.HealthPct} > 86) && ${Me.Encounter} == 0
HarvestBlackList:Set[${Me.Target.ID},${Me.Target.ID}]
wait 5
VGExecute /cleartargets
; Then loot!
Me.Target:LootAll
wait 5
VGExecute /cleartargets
}
}
anyone can here add anything that can help to fix this issue.

ty

this seems a easy fix imo:

function Harvest()
{
if ${HarvestBlackList.Element[${Me.Target.ID}](exists)}
return

if "(${Me.Target.Type.Equal[Resource]} || ${Me.Target.IsHarvestable}) && ${Me.Target.Distance}<5 && ${Me.ToPawn.CombatState}==0 && ${doHarvest}"
{
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
wait 210
VGExecute /hidewindow harvesting
VGExecute /hidewindow bonus yield
VGExecute /hidewindow depletion bonus yield
wait 5
VGExecute /cleartargets
; Then loot!
Me.Target:LootAll
wait 5
VGExecute /cleartargets
}
}
 
Last edited:

Amadeus

The Maestro
Staff member
If you want things to be added/changed/modified with kbot, you'll probably have to make the adjustments yourself. The person that wrote is is no longer playing VG.

In fact, almost every script on these forums was written by folks that are no longer playing the game. So, it's time for new people to step up, learn the language and release new scripts or take over development of the old ones.

It's not hard to learn -- just start reading through the scripts and stop any time you don't understand something (research it until you do) and then move forward. After a couple of months you'll be a pro.
 

vah shir

Active Member
i did a 'find' in kbot.iss, kbotui.xml and port.xml looking for 'lootall'.. yet to find where this info needs to be copy/pasted. Sorry.. not too experienced with this, but i'm trying.
 
Top Bottom