Posts: 34
Threads: 13
Joined: Nov 2018
Reputation:
0
I'm having problems with the fullcheck of Task, my Script looks like this:
Point (33309 32285 7:Hunt)
Point (33309 32285 7)
Point (33309 32283 6)
Point (33306 32286 6)
Point (33306 32285 6)
Point (33306 32283 5)
Point (33311 32284 5)
Point (33307 32284 5)
Point (33306 32285 6)
Point (33309 32282 6)
Point (33309 32283 6)
Point (33309 32285 7)
Point (33314 32284 7)
Point (33314 32279 7)
Point (33312 32280 7)
Point (33312 32282 8)
Point (33310 32285 8)
Point (33305 32285 8)
Point (33303 32289 8)
Point (33300 32289 8)
Point (33300 32291 9)
Point (33304 32289 9)
Point (33308 32287 9)
Point (33307 32282 9)
Point (33310 32279 9)
Point (33315 32280 9)
Point (33315 32282 9)
Point (33315 32284 10)
Point (33310 32285 10)
Point (33310 32281 10)
Point (33309 32277 10)
Point (33304 32281 10)
Point (33300 32283 10)
Point (33299 32284 10)
Point (33299 32286 11)
Point (33301 32282 11)
Point (33300 32286 11)
Point (33299 32286 11)
Point (33299 32284 10)
Point (33304 32285 10)
Point (33306 32288 10)
Point (33306 32289 10)
Point (33306 32291 11)
Point (33301 32292 11)
Point (33306 32292 11)
Point (33306 32291 11)
Point (33306 32289 10)
Point (33304 32285 10)
Point (33305 32281 10)
Point (33309 32282 10)
Point (33311 32286 10)
Point (33313 32289 10)
Point (33315 32290 10)
Point (33315 32292 11)
Point (33313 32288 11)
Point (33314 32291 11)
Point (33315 32290 10)
Point (33314 32285 10)
Point (33315 32284 10)
Point (33315 32282 9)
Point (33311 32280 9)
Point (33307 32281 9)
Point (33308 32286 9)
Point (33305 32289 9)
Point (33301 32291 9)
Point (33300 32291 9)
Point (33300 32289 8)
Point (33304 32287 8)
Point (33307 32285 8)
Point (33312 32284 8)
Point (33312 32282 8)
Point (33312 32280 7)
Point (33307 32281 7)
Point (33303 32283 7)
Point (33302 32287 7)
FullCheck (33302 32287 7:Hunt Else Leave Code ~Minotaur~Minotaur Guard~Minotaur Archer~Minotaur Mage>=10)
Label (33300 32291 7:Leave)
Point (33300 32291 7)
Point (33295 32292 7)
even having killed 10 minotaurs, he returns to the "Label" Hunt, he does not follow to the "Label" Leave
Can someone help me? I'm learning to deal with Fullcheck Task
Posts: 1,518
Threads: 151
Joined: Mar 2012
Reputation:
0
Code: FullCheck (33302 32287 7:Leave Else Hunt Code ~Minotaur~Minotaur Guard~Minotaur Archer~Minotaur Mage>=10)
you're welcome
Posts: 1,630
Threads: 103
Joined: Sep 2015
Reputation:
0
04-30-2019, 03:28 PM
(This post was last modified: 04-30-2019, 03:30 PM by Catar.)
either what erleo, or switch > into <, you just did it other way around
Posts: 34
Threads: 13
Joined: Nov 2018
Reputation:
0
I tested both ways, and even having killed 10 minotaurs, it will not go to "Label" Leave, would it have any macros to use and resolve it?
i tested with
FullCheck (33302 32287 7:Leave Else Hunt Code ~Minotaur~Minotaur Guard~Minotaur Archer~Minotaur Mage>=10)
and
FullCheck (33302 32287 7:Leave Else Hunt Code ~Minotaur~Minotaur Guard~Minotaur Archer~Minotaur Mage<=10)
he always ends up returning to the "Label" Hunt
Posts: 1,630
Threads: 103
Joined: Sep 2015
Reputation:
0
04-30-2019, 06:51 PM
(This post was last modified: 04-30-2019, 06:57 PM by Catar.)
try separating each monster with its own condition or just make check macro for it ( check how i made fullcheck macros in my scripts)
also remember, labels are case sensitive, so if u use captial L in Leave make sure u use it like that everywhere
Posts: 34
Threads: 13
Joined: Nov 2018
Reputation:
0
I would like to try something simple, but it seems that this fullcheck for creatures does not work as expected, I did the download of your Task Serpent Spawn script, but the Language disturbs me a bit, and also the potions check, weak creatures, and it will not be nescessario potion just kill them and when finished go to report
could you help me with something simpler? so I can study what you use for me to adapt, and get to create my tasks checks
I thank you and I will consider you, for the enormous help, I am reading your script's and learning every day more
Posts: 34
Threads: 13
Joined: Nov 2018
Reputation:
0
05-04-2019, 07:41 PM
(This post was last modified: 05-04-2019, 07:54 PM by micheel15.)
@catar
@erleo
I tested like this
Variables :
#number SS need to be killed to reset task
minotaur=5000
minotaurguard=5000
minotaurarcher=5000
minotaurmage=5000
Macro :
0 {checktask}
task:=Creatures.TaskKilled(Minotaur)
task1:=Creatures.TaskKilled(Minotaur Guard)
task2:=Creatures.TaskKilled(Minotaur Archer)
task3:=Creatures.TaskKilled(Minotaur Mage)
!task!>=!minotaur! [else1]
CaveBot.GoLabel(Leave)
exit()
{else1}
!task1!>=!minotaurguard! [else2]
CaveBot.GoLabel(Leave)
exit()
{else2}
!task2!>=!minotaurarcher! [else3]
CaveBot.GoLabel(Leave)
exit()
{else3}
!task3!>=!minotaurmage! [else4]
CaveBot.GoLabel(Leave)
exit()
{else4}
CaveBot.GoLabel(Hunt)
exit()
the problem now is that even without having killed the 5000 minotaurs the character ends up leaving the hunt, can anyone help me?
the script is this way:
Point (33309 32285 7:Hunt)
Point (33309 32285 7)
Point (33309 32283 6)
Point (33306 32286 6)
Point (33306 32285 6)
Point (33306 32283 5)
Point (33311 32284 5)
Point (33307 32284 5)
Point (33306 32285 6)
Point (33309 32282 6)
Point (33309 32283 6)
Point (33309 32285 7)
Point (33314 32284 7)
Point (33314 32279 7)
Point (33312 32280 7)
Point (33312 32282 8)
Point (33310 32285 8)
Point (33305 32285 8)
Point (33303 32289 8)
Point (33300 32289 8)
Point (33300 32291 9)
Point (33304 32289 9)
Point (33308 32287 9)
Point (33307 32282 9)
Point (33310 32279 9)
Point (33315 32280 9)
Point (33315 32282 9)
Point (33315 32284 10)
Point (33310 32285 10)
Point (33310 32281 10)
Point (33309 32277 10)
Point (33304 32281 10)
Point (33300 32283 10)
Point (33299 32284 10)
Point (33299 32286 11)
Point (33301 32282 11)
Point (33300 32286 11)
Point (33299 32286 11)
Point (33299 32284 10)
Point (33304 32285 10)
Point (33306 32288 10)
Point (33306 32289 10)
Point (33306 32291 11)
Point (33301 32292 11)
Point (33306 32292 11)
Point (33306 32291 11)
Point (33306 32289 10)
Point (33304 32285 10)
Point (33305 32281 10)
Point (33309 32282 10)
Point (33311 32286 10)
Point (33313 32289 10)
Point (33315 32290 10)
Point (33315 32292 11)
Point (33313 32288 11)
Point (33314 32291 11)
Point (33315 32290 10)
Point (33314 32285 10)
Point (33315 32284 10)
Point (33315 32282 9)
Point (33311 32280 9)
Point (33307 32281 9)
Point (33308 32286 9)
Point (33305 32289 9)
Point (33301 32291 9)
Point (33300 32291 9)
Point (33300 32289 8)
Point (33304 32287 8)
Point (33307 32285 8)
Point (33312 32284 8)
Point (33312 32282 8)
Point (33312 32280 7)
Point (33307 32281 7)
Point (33303 32283 7)
Point (33302 32287 7)
Macro (33302 32287 7:checktask)
Label (33300 32291 7:Leave)
Point (33300 32291 7)
Point (33295 32292 7)
Point (33292 32295 7)
Posts: 1,630
Threads: 103
Joined: Sep 2015
Reputation:
0
05-06-2019, 06:17 AM
(This post was last modified: 05-06-2019, 06:20 AM by Catar.)
I understand there has to be 5000 minos killed in total, so just sum them up in one variable, try this:
Code: 0 {checktask}
MinoKills:=Creatures.TaskKilled(Minotaur)
mk2:=Creatures.TaskKilled(Minotaur Mage)
mk3:=Creatures.TaskKilled(Minotaur Guard)
mk4:=Creatures.TaskKilled(Minotaur Archer)
VarAdd(MinoKills, !mk2)
VarAdd(MinoKills, !mk3)
VarAdd(MinoKills, !mk4)
!MinoKills>=5000 [stay]
CaveBot.GoLabel(Leave)
exit()
{stay}
CaveBot.GoLabel(Hunt)
exit()
To make sure, i'd set it to kill 5500 minos, because bbot will count every mino that you were suppose to attack, even if someone else killed it.
Posts: 34
Threads: 13
Joined: Nov 2018
Reputation:
0
Do I need to change anything else? or just this macro? I tested and he even without killing the 5000 minotaurs ends up leaving the hunt, it replaces only the macro
Posts: 1,630
Threads: 103
Joined: Sep 2015
Reputation:
0
05-06-2019, 07:35 PM
(This post was last modified: 05-06-2019, 07:37 PM by Catar.)
Does correct amount of killed even shows up in variable list (in right table) after character passes through that waypoint with macro?
Also when you on for spawn and killed few minos, can you click debug on macro and copy here what shows up
Posts: 34
Threads: 13
Joined: Nov 2018
Reputation:
0
05-08-2019, 03:43 PM
(This post was last modified: 05-08-2019, 03:46 PM by micheel15.)
I found my error, at the beginning of the script I was like Point and not Label, I thank you for all your help, this was a great inattention
Posts: 1,630
Threads: 103
Joined: Sep 2015
Reputation:
0
Oh hah didn't even pay attention to that
|