OpenKore / openkore

A free/open source client and automation tool for Ragnarok Online
http://openkore.com
Other
1.28k stars 1.04k forks source link

eventMacro error. (got orphaned, its orphan method is 'terminate'.) #1325

Closed oleokoong closed 6 years ago

oleokoong commented 6 years ago

[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) ?

sctnightcore commented 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.
oleokoong commented 6 years ago

@sctnightcore still have the error, and the automacro must have timeout , if not will keep spamming same automacro

sctnightcore commented 6 years ago

@oleokoong test it again ! timeout > pause

oleokoong commented 6 years ago

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

sctnightcore commented 6 years ago

ok sir @oleokoong test it again ! . Not sure if it will work. XD

oleokoong commented 6 years ago

need someone can explaine what the error means.

Running macro 'izc' got orphaned, its orphan method is 'terminate'.

sctnightcore commented 6 years ago
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. = =

Nipodemos commented 6 years ago

The problem is the hook , it is in the wrong place inside the source code of Openkore

That's why it is happening this

oleokoong commented 6 years ago

@Nipodemos thanks for the information. @lututui need your help here..

oleokoong commented 6 years ago

issue solve.. move hook down 2 line AI::dequeue; Plugins::callHook('AI_buy_auto_done'); if ($ai_v{'temp'}{'var'} && $config{storageAuto}) {