Hey,
i got two questions.
1. Is it possible to change the event after the bot is stuck for the 10th time. Whenever my bot is stuck (most times because he fell into the ground) he tries ten times to get free. After that micromacro pauses. I don't want mm to pause but I want the bot to leave his party and to continue his waypoints.
2. Is it possible to let mm start a new game after the game had a critical error?
Special event after being stuck + Auto-restart client
-
ichmagbotsyay
- Posts: 70
- Joined: Tue Aug 09, 2011 7:43 am
Re: Special event after being stuck + Auto-restart client
http://www.solarstrike.net/phpBB3/viewt ... =30&t=2336
I added in a venue for people to customise what happens at stick counter points.
If you create a userfunction and have all or any functions called
Then that code will be performed at the number, ie 3 will be at 3 unsticks, 6 for 6 and 9 for 9. If you don't have a user function with any of these names then it will do what it always does.
I added in a venue for people to customise what happens at stick counter points.
If you create a userfunction and have all or any functions called
Code: Select all
function unStick3()
function unStick6()
function unStick9()
Remember no matter you do in life to always have a little fun while you are at it 
wiki here http://www.solarstrike.net/wiki/index.php?title=Manual
wiki here http://www.solarstrike.net/wiki/index.php?title=Manual
-
ichmagbotsyay
- Posts: 70
- Joined: Tue Aug 09, 2011 7:43 am
Re: Special event after being stuck + Auto-restart client
OK, I made userfunctions to do something special when the bot gets stuck... but does it reset the stuck counter?
I want my bot to leave it's party so it gets ported out of the instance and then reset the number of times it got stuck. Because if it doesn't reset that number, it will just do the special action once, if I set it to "unStick5()" for example, because the next time it gets stuck it would try to call "unStick6()", which I haven't modified. How do I reset it, or does it do so on it's own, if I give it a custom "unStick5()" ?
I want my bot to leave it's party so it gets ported out of the instance and then reset the number of times it got stuck. Because if it doesn't reset that number, it will just do the special action once, if I set it to "unStick5()" for example, because the next time it gets stuck it would try to call "unStick6()", which I haven't modified. How do I reset it, or does it do so on it's own, if I give it a custom "unStick5()" ?
Re: Special event after being stuck + Auto-restart client
the stucks have a time out, so if you don't get stuck again within the set time in code it resets back to 0. Can't remember off hand the time but pretty sure it is less then 15 seconds.
The code is only set up for the unstick numbers I mentioned, 3 6 9, doing
function unStick5()
won't do anything.
The code is only set up for the unstick numbers I mentioned, 3 6 9, doing
function unStick5()
won't do anything.
Remember no matter you do in life to always have a little fun while you are at it 
wiki here http://www.solarstrike.net/wiki/index.php?title=Manual
wiki here http://www.solarstrike.net/wiki/index.php?title=Manual
-
ichmagbotsyay
- Posts: 70
- Joined: Tue Aug 09, 2011 7:43 am
Re: Special event after being stuck + Auto-restart client
oh okay, thank you
Re: Special event after being stuck + Auto-restart client
So I would create a userfunction called "userfunction_altunstick.lua"? Then within that file I'd do something like?
I saw the other thread before but have never understood how to use it exactly.
Code: Select all
function unstick6()
some code
more code
Scout/Knight/Rogue 70/66/66
Re: Special event after being stuck + Auto-restart client
you can have the code any place you can place a function, userfunctions folder is one choice. onload of a WP is another
Something like this in the onload for an instance run, if it gets stuck 6 times then it will leave party, invite some character, then go to the waypoint with the tag "start".
Code: Select all
function unstick6()
sendMacro("LeaveParty()")
waitForLoadingScreen();
sendMacro('InviteByName("Lalasillycharacter")');
__WPL:setWaypointIndex(__WPL:findWaypointTag("start"));
end
Remember no matter you do in life to always have a little fun while you are at it 
wiki here http://www.solarstrike.net/wiki/index.php?title=Manual
wiki here http://www.solarstrike.net/wiki/index.php?title=Manual
Re: Special event after being stuck + Auto-restart client
Thanks Lisa, much appreciated
Scout/Knight/Rogue 70/66/66