Need "leaveparty on stuck" function

Runes of Magic/Radiant Arcana (http://www.runesofmagic.com)
Post Reply
Message
Author
M4gm4
Posts: 137
Joined: Sun Jan 30, 2011 2:30 pm

Need "leaveparty on stuck" function

#1 Post by M4gm4 » Sun May 01, 2011 9:21 am

Hi, i need a function for the profile like

<option name="LEAVEPARTY_WHEN_STUCK" value="true" />

.. sendMacro("LeaveParty();"); after 10 fails

Code: Select all

		<!-- Log out and resurrect settings -->
		<option name="LOGOUT_TIME" 			value="0" />	<!-- in minutes, 0 = timer disabled -->
		<option name="LOGOUT_SHUTDOWN"		value="false" />
		<option name="LOGOUT_WHEN_STUCK"	value="false" />
		<option name="LEAVEPARTY_WHEN_STUCK"	value="true" />
		<option name="RES_AUTOMATIC_AFTER_DEATH" value="true" />
		<option name="MAX_DEATHS" value="10" /> <!-- Log out after this many deaths -->
i dont know how to do this and hope someone can help me please.

i need it for instance running, if i was stucked in the instance and can leave them, to start the waypoint again without logout.
I use the google translator, so do not be surprised if my english is funny

Alkaiser
Posts: 222
Joined: Sat Sep 25, 2010 2:03 pm

Re: Need "leaveparty on stuck" function

#2 Post by Alkaiser » Sun May 01, 2011 9:56 am

Code: Select all

<onUnstickFailure>
      -- Lua code to execute when MAX_UNSTICK_TRIALS is reached.
</onUnstickFailure>

M4gm4
Posts: 137
Joined: Sun Jan 30, 2011 2:30 pm

Re: Need "leaveparty on stuck" function

#3 Post by M4gm4 » Mon May 02, 2011 3:21 pm

if i right understanding, then its enough when i edit my profile with :

Code: Select all

<onUnstickFailure>
      sendMacro("LeaveParty();");
</onUnstickFailure>
not realy, or ?
where can i find the function "onUnstickFailure" ?
returns onUnstickFailure = 10 fails ?
I use the google translator, so do not be surprised if my english is funny

User avatar
lisa
Posts: 8332
Joined: Tue Nov 09, 2010 11:46 pm
Location: Australia

Re: Need "leaveparty on stuck" function

#4 Post by lisa » Mon May 02, 2011 9:30 pm

assuming the leaveparty function is correct then what you posted will leave the party when you reach 11 unstick attempts. If you want it to do code earlier then you can create a function depending when you want it to perform the code you require.

Do a search on the forum for
function unStick3
http://www.solarstrike.net/phpBB3/viewt ... =21&t=2336
and you will find where I have already explained the usage for the unstick functions. I think I added to the wiki aswell about the functions, can't remember.
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

M4gm4
Posts: 137
Joined: Sun Jan 30, 2011 2:30 pm

Re: Need "leaveparty on stuck" function

#5 Post by M4gm4 » Tue May 03, 2011 10:50 am

that helps me very well, thank you :P
I use the google translator, so do not be surprised if my english is funny

Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot], Google [Bot] and 0 guests