Special event after being stuck + Auto-restart client

Runes of Magic/Radiant Arcana (http://www.runesofmagic.com)
Post Reply
Message
Author
ichmagbotsyay
Posts: 70
Joined: Tue Aug 09, 2011 7:43 am

Special event after being stuck + Auto-restart client

#1 Post by ichmagbotsyay »

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?
User avatar
lisa
Posts: 8332
Joined: Tue Nov 09, 2010 11:46 pm
Location: Australia

Re: Special event after being stuck + Auto-restart client

#2 Post by lisa »

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

Code: Select all

function unStick3()
function unStick6()
function unStick9()
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.
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
ichmagbotsyay
Posts: 70
Joined: Tue Aug 09, 2011 7:43 am

Re: Special event after being stuck + Auto-restart client

#3 Post by ichmagbotsyay »

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()" ?
User avatar
lisa
Posts: 8332
Joined: Tue Nov 09, 2010 11:46 pm
Location: Australia

Re: Special event after being stuck + Auto-restart client

#4 Post by lisa »

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.
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
ichmagbotsyay
Posts: 70
Joined: Tue Aug 09, 2011 7:43 am

Re: Special event after being stuck + Auto-restart client

#5 Post by ichmagbotsyay »

oh okay, thank you
kanta
Posts: 424
Joined: Thu Nov 11, 2010 4:08 pm

Re: Special event after being stuck + Auto-restart client

#6 Post by kanta »

So I would create a userfunction called "userfunction_altunstick.lua"? Then within that file I'd do something like?

Code: Select all

function unstick6()
some code
more code
I saw the other thread before but have never understood how to use it exactly.
Scout/Knight/Rogue 70/66/66
User avatar
lisa
Posts: 8332
Joined: Tue Nov 09, 2010 11:46 pm
Location: Australia

Re: Special event after being stuck + Auto-restart client

#7 Post by lisa »

you can have the code any place you can place a function, userfunctions folder is one choice. onload of a WP is another

Code: Select all

function unstick6()
sendMacro("LeaveParty()")
waitForLoadingScreen();
sendMacro('InviteByName("Lalasillycharacter")');
__WPL:setWaypointIndex(__WPL:findWaypointTag("start"));
end
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".
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
kanta
Posts: 424
Joined: Thu Nov 11, 2010 4:08 pm

Re: Special event after being stuck + Auto-restart client

#8 Post by kanta »

Thanks Lisa, much appreciated
Scout/Knight/Rogue 70/66/66
Post Reply