Openkore.com

OpenKore Forums
It is currently 17 Nov 2018, 16:13

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: Check if Quest is Active
PostPosted: 23 Nov 2016, 23:52 
Offline
Noob
Noob

Joined: 19 Jan 2016, 03:03
Posts: 10
Code:
$Q = @eval($::questList->{62565})

would this work and show if the quest is active or not?

Code:
sub subQuestActive{
   my ($inputID) = @_;   
   if ($questList->{$inputID}->{active} == ""){
      return 0
   }
   return  $questList->{$inputID}->{active};

}

automacro test{
   map prt_fild05
   timeout 60
   exclusive 1
   call {
      if ($questList->{62722}->{active} == "0") call tcg
}
}

so this is the new update. no Idea if it actually works 1/4 worked still having trials


Top
 Profile  
 
 Post subject: Re: Check if Quest is Active
PostPosted: 25 Nov 2016, 14:03 
Offline
Noob
Noob

Joined: 19 Jan 2016, 03:03
Posts: 10
Update
Code:
automacro checkQuest {
hook packet/quest_update_mission_hunt
#   hook target_died
   exclusive 1
   call {
      $temp1 = @eval($::questList->{12345}->{missions}->{1234}->{count})
      if ($temp1 == 50) call gg1   

   }
}

will this work with
Code:
automacro quest{
hook packet/quest_update_mission_hunt
   map prt_fild05
   call {
   $q = @eval ($::questList->{12345}->{active}?1:0) == 1)
   if ($q != 1) call gg

}
}

Cause the autoquest checkquest doesnt trigger/check if the automacro quest
also uses hook packet/quest_update_mission_hunt
not sure though thats why i'm asking


Last edited by Tesla27 on 25 Nov 2016, 16:02, edited 1 time in total.

Top
 Profile  
 
 Post subject: Re: Check if Quest is Active
PostPosted: 25 Nov 2016, 16:01 
Offline
Noob
Noob

Joined: 19 Jan 2016, 03:03
Posts: 10
Update
Fixed the Macro
Code:
     $xyz = @eval ($::questList->{'12345'}->{'active'} == 0)
     if ($xyz == 1) do e gg
   }
}

basically if quest is inactive it does /gg


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 2 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