Page 1 of 1

Need Help: how to check whether the quest is taken?

Posted: 25 Dec 2016, 15:54
by Glikadin
Hello, my macro:

Code: Select all

automacro BountyQuest {
timeout 60
console "Target died"
exclusive 1
call {
if ($.lvl > 40) goto ThreeQuest
if ($.lvl > 20) goto TwoQuest
if ($.lvl > 1) goto OneQuest
pause 1
:OneQuest
	$Active = 0
	$Active = @eval ($::questList->{62567}->{active} == 0)
	if ($Active == 0) goto StartOneQuest
	$Willow = @eval($::questList->{62644}->{missions}->{1010}->{count})
	$Snake = @eval($::questList->{62566}->{missions}->{1025}->{count})
	$Spore = @eval($::questList->{62565}->{missions}->{1014}->{count})
	if (($Willow == 150) && ($Snake == 150) && ($Spore == 150)) goto FinishOneQuest
	if ($Willow < 150) goto MapPay1
	if ($Snake < 150) goto MapPay2
	if ($Spore < 150) goto MapPay8
stop
                                                                                 ...
Errot in line:

Code: Select all

$Active = @eval ($::questList->{62567}->{active} == 0)
unrecognized argument
Pls help, how to check whether the quest is taken?

it does not work:

Code: Select all

$Active = @eval ($::questList->{62567}->{missions}->{active} == 0)
unrecognized argument

Re: Need Help: how to check whether the quest is taken?

Posted: 25 Dec 2016, 23:47
by c4c1n6kr3m1
how about this one
$Active = @eval (($::questList->{62567}->{active})?1:0)
log $Active

Re: Need Help: how to check whether the quest is taken?

Posted: 26 Dec 2016, 09:03
by Glikadin
c4c1n6kr3m1 wrote:how about this one
$Active = @eval (($::questList->{62567}->{active})?1:0)
log $Active
Thx you! Macro work :D