Kbot - looking to improve

viliden

Active Member
So I have been looking over the code and although I am not very good with coding atm I am learning. I am looking to improve a few aspects of kbot, namely I would like to improve its ability to skin corpses for now. Seems like it is checking to quick for a corpse to be harvestable and moving on. I have messed with the harvesting functionality a little bit and got it to be more reliable by disabling the blacklist check at the begining of the harvest function.

If anyone has a suggestion for a way to get skinning to be more reliable please pm me or post it here!

ps. kbot still works great for a generic hunter/harvester, very nice :)
 

viliden

Active Member
I believe I have solved this issue...

I added a longer wait before the skinning check to allow for the mob to become flagged as harvestable. This does lengthen the total loot time however since it will run the wait each 'corpse' it finds but its really not anything that makes the bot less desirable.
 

Zandros

Script Author: VGA
I believe I have solved this issue...

I added a longer wait before the skinning check to allow for the mob to become flagged as harvestable. This does lengthen the total loot time however since it will run the wait each 'corpse' it finds but its really not anything that makes the bot less desirable.
Here is a small snippet of the routine I used to skin corpses. Look at the pause, perhaps it may help you with your routine. Of course, there are better ways to do this such as when a Copse spawns nearby.... :)

After looting, it takes the computer a random X amount of time before you lose target and the corpse becomes harvestable. This will detect it the moment that happens. The down fall is if the corpse is not harvestable then it is going to wait a full 5 seconds before resuming.

Code:
	wait 50 !${Me.Target(exists)}
	wait 5		

	Pawn[corpse,radius,5,notid,${CorpseID}]:Target
	wait 5

	if ${Me.Target.Name.Left[10].Equal["remains of"]}
	{
		CorpseID:Set[${Me.Target.ID}]
		VGExecute /cleartargets
		wait 3
	}

	if !${Me.Target.IsHarvestable}
	{
		VGExecute /cleartargets
		wait 5
	}
	
	if ${Me.Target(exists)}
	{
		call HarvestIt
	}
 
Top Bottom