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

All resolved question will be found here. It is recommended that you browse / search through this section first and see if your question has been answered before

Moderators: Moderators, Documentation Writers

Message
Author
Glikadin
Human
Human
Posts: 29
Joined: 09 Dec 2016, 09:05
Noob?: Yes

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

#1 Post 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

c4c1n6kr3m1
The Way Of Human
The Way Of Human
Posts: 150
Joined: 24 Mar 2012, 04:13
Noob?: Yes

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

#2 Post by c4c1n6kr3m1 »

how about this one
$Active = @eval (($::questList->{62567}->{active})?1:0)
log $Active

Glikadin
Human
Human
Posts: 29
Joined: 09 Dec 2016, 09:05
Noob?: Yes

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

#3 Post by Glikadin »

c4c1n6kr3m1 wrote:how about this one
$Active = @eval (($::questList->{62567}->{active})?1:0)
log $Active
Thx you! Macro work :D

Locked