Page 1 of 1

Need "leaveparty on stuck" function

Posted: Sun May 01, 2011 9:21 am
by M4gm4
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.

Re: Need "leaveparty on stuck" function

Posted: Sun May 01, 2011 9:56 am
by Alkaiser

Code: Select all

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

Re: Need "leaveparty on stuck" function

Posted: Mon May 02, 2011 3:21 pm
by M4gm4
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 ?

Re: Need "leaveparty on stuck" function

Posted: Mon May 02, 2011 9:30 pm
by lisa
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.

Re: Need "leaveparty on stuck" function

Posted: Tue May 03, 2011 10:50 am
by M4gm4
that helps me very well, thank you :P