rev 572, profile event <onUnstickFailure> intro
Posted: Wed Jun 01, 2011 7:14 pm
New in rev 572 is an addition of an event in profile.xml
The new addition is
This event will occur when the maximum unstick trials is reached, the default value for this is 10, can be changed by user in profile options. So any code added inbetween these tags will be executed upon reaching the max unstick tries.
If the code doesn't fix the issue and there is another unstick then it will execute the default which is set by user profile with LOGOUT_SHUTDOWN, LOGOUT_WHEN_STUCK and CLOSE_WHEN_STUCK.
If no code is added to the profile between the new tags then the bot will perform it's usual actions once maximum unstick tries is reached.
One utilisation would be to log next character but the posibilities are now endless.
The new addition is
Code: Select all
<onUnstickFailure><![CDATA[
-- Lua code to execute when MAX_UNSTICK_TRIALS is reached.
]]></onUnstickFailure>
If the code doesn't fix the issue and there is another unstick then it will execute the default which is set by user profile with LOGOUT_SHUTDOWN, LOGOUT_WHEN_STUCK and CLOSE_WHEN_STUCK.
If no code is added to the profile between the new tags then the bot will perform it's usual actions once maximum unstick tries is reached.
One utilisation would be to log next character but the posibilities are now endless.