Page 1 of 1
Check if Quest is Active
Posted: 23 Nov 2016, 23:52
by Tesla27
would this work and show if the quest is active or not?
Code: Select all
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
Re: Check if Quest is Active
Posted: 25 Nov 2016, 14:03
by Tesla27
Update
Code: Select all
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: Select all
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
Re: Check if Quest is Active
Posted: 25 Nov 2016, 16:01
by Tesla27
Update
Fixed the Macro
Code: Select all
$xyz = @eval ($::questList->{'12345'}->{'active'} == 0)
if ($xyz == 1) do e gg
}
}
basically if quest is inactive it does /gg