Hey Guys, me again.
I'm still running the MQ VQ Bot and just like calypso I wanted to clear the Chests as well. Thats why I added his COde he posted on page 17
Quote:
Func DoChest()
If $DeadOnTheRun = 0 then CurrentAction("Going To open This chest")
If $DeadOnTheRun = 0 then GoSignpost(-1)
local $TimeCheck = TimerInit()
If $DeadOnTheRun = 0 then $chest = GetCurrentTarget()
If $DeadOnTheRun = 0 then $oldCoordsX = DllStructGetData($chest, "X")
If $DeadOnTheRun = 0 then $oldCoordsY = DllStructGetData($chest, "Y")
If $DeadOnTheRun = 0 then
Do
rndslp(500)
Until CheckArea($oldCoordsX, $oldCoordsY) Or TimerDiff($TimeCheck) > 90000 Or $DeadOnTheRun = 1
EndIf
If $DeadOnTheRun = 0 then rndslp(1000)
If $DeadOnTheRun = 0 then OpenChest()
If $DeadOnTheRun = 0 then rndslp(1000)
If $DeadOnTheRun = 0 then TargetNearestItem()
If $DeadOnTheRun = 0 then rndslp(500)
If $DeadOnTheRun = 0 then $item = GetCurrentTarget()
If $DeadOnTheRun = 0 then
Do
If $DeadOnTheRun = 0 then rndslp(500)
If $DeadOnTheRun = 0 then PickUpItem($item)
Until DllStructGetData($item, 'AgentID') = 0 Or TimerDiff($TimeCheck) > 90000 or $DeadOnTheRun = 1
EndIf
EndFunc ;==>DoChest
Func LookForChest()
If $DeadOnTheRun = 0 then TargetNearestItem()
If $DeadOnTheRun = 0 then rndslp(500)
If DllStructGetData(GetCurrentTarget(), 'Type') = 512 and $DeadOnTheRun = 0 Then
If $DeadOnTheRun = 0 then DoChest()
If $DeadOnTheRun = 0 then rndslp(500)
EndIf
EndFunc
|
Furthermore I added the
Quote:
|
LookForChest() ;//ADD THIS LINE HERE
|
Line to the Fight-Function jsut like mhaendler suggested.
Now I tested this quite often and it's working let's say not optimally.
There are 3 spots that are problematic.
For example: After killing the first group of Yetis the Bot is searching for a CHest (as he is after every group pf enemies). The problem is, he wont find a chest but a sign which leads him back to aspenwood gate. Then the bot will target that sign goes to it and sometimes leaves the area back to aspenwood gate.
The second time this happens is after fighting the first oni-group. Sometimes they are that far down the hill, that the bot will again target the sign back to aspenwood gate. -> Run over
The third one is the most critical. After killing the last Oni-group the bot will target the sign at breaker hollow. This is a big problem, because the bot sometimes leaves the area to breaker hollow and crashes afterwards.
SOOO long story short, my question is, how do I have to adapt the bot, that when it is looking for a chest, it really is just targeting a locked chest and not a signpost. I cant seem to find an answer to that for myself :(
Maybe you awesome guys can help an amateur ^^