Code: Select all
automacro onKill {
SimpleHookEvent target_died
call checkQuestCompletion
}
macro checkQuestCompletion {
if ($.SimpleHookEventLastMonster =~ /Ghoul|Jakk|Nightmare/) goto checkCompletion
stop
:checkCompletion
if (&questCompleteCount(62672,62673,62674) == 3) goto turnIn
stop
:turnIn
do ai manual
do move geffen 77 76
do talknpc 75 78 r1 r1
do talknpc 75 78 r0 r3
do ai auto
}
Code: Select all
if ($.SimpleHookEventLastMonster =~ /Ghoul|Jakk|Nightmare/) goto checkCompletion
Is there something that I'm missing?
The code is working, as I said before... I just would like to remove the sporadic errors, if possible.
Thanks!