Openkore.com

OpenKore Forums
It is currently 17 Nov 2018, 15:32

All times are UTC - 5 hours [ DST ]





Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 posts ] 
Author Message
 Post subject: Need Help: how to check whether the quest is taken?
PostPosted: 25 Dec 2016, 15:54 
Offline
Human
Human

Joined: 09 Dec 2016, 09:05
Posts: 30
Hello, my macro:

Code:
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:
$Active = @eval ($::questList->{62567}->{active} == 0)

unrecognized argument
Pls help, how to check whether the quest is taken?

it does not work:
Code:
$Active = @eval ($::questList->{62567}->{missions}->{active} == 0)

unrecognized argument


Top
 Profile  
 
 Post subject: Re: Need Help: how to check whether the quest is taken?
PostPosted: 25 Dec 2016, 23:47 
Offline
Been there done that!
Been there done that!

Joined: 24 Mar 2012, 04:13
Posts: 124
how about this one
$Active = @eval (($::questList->{62567}->{active})?1:0)
log $Active


Top
 Profile  
 
 Post subject: Re: Need Help: how to check whether the quest is taken?
PostPosted: 26 Dec 2016, 09:03 
Offline
Human
Human

Joined: 09 Dec 2016, 09:05
Posts: 30
c4c1n6kr3m1 wrote:
how about this one
$Active = @eval (($::questList->{62567}->{active})?1:0)
log $Active


Thx you! Macro work :D


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 posts ] 

All times are UTC - 5 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group