Closed oleokoong closed 6 years ago
automacro autotrade {
SimpleHookEvent AI_buy_auto_done
timeout 30
call {
pause 1
do ai manual
do respawn
do ai on
}
}
https://github.com/sctnightcore/eventmacro-by-me-/blob/master/resetaibuysell.txt
Installation
* eventMacro plugin is now included and enabled by default in openkore.
In your OpenKore control folder, create a blank file named eventMacros.txt. In this file you will put your macros/automacros.
@sctnightcore still have the error, and the automacro must have timeout , if not will keep spamming same automacro
@oleokoong test it again ! timeout > pause
only timeout can use as condition,
automacro aibuyandsellreset { SimpleHookEvent AI_sell_auto_complete,AI_buy_auto_done timeout 10 call { do ai clear pause 1 log reset ai buy/sell } }
ok sir @oleokoong test it again ! . Not sure if it will work. XD
need someone can explaine what the error means.
Running macro 'izc' got orphaned, its orphan method is 'terminate'.
automacro autotrade {
SimpleHookEvent AI_buy_auto_done
call izc
}
macro izc {
do ai manual
do respawn
do ai on
}
@Nipodemos > I think he can answer you. I think it was all right. Why is it not working. = =
The problem is the hook , it is in the wrong place inside the source code of Openkore
That's why it is happening this
@Nipodemos thanks for the information. @lututui need your help here..
issue solve.. move hook down 2 line AI::dequeue; Plugins::callHook('AI_buy_auto_done'); if ($ai_v{'temp'}{'var'} && $config{storageAuto}) {
[eventMacro] Event of type 'hook', and of name 'AI_buy_auto_done' activated automacro 'autotrade', calling macro 'izc' [eventMacro] Running macro 'izc' got orphaned, its orphan method is 'terminate'.
Im download fresh openkore from github..
automacro autotrade { SimpleHookEvent AI_buy_auto_done timeout 30 call izc } macro izc { do ai manual do respawn do ai on }
watever how i change the macro izc, its still show error above.. should i add something like ($.SimpleHookEventLast) ?