<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>http://www.easyuo.com/openeuo/wiki/index.php?action=history&amp;feed=atom&amp;title=Chosen</id>
		<title>Chosen - Revision history</title>
		<link rel="self" type="application/atom+xml" href="http://www.easyuo.com/openeuo/wiki/index.php?action=history&amp;feed=atom&amp;title=Chosen"/>
		<link rel="alternate" type="text/html" href="http://www.easyuo.com/openeuo/wiki/index.php?title=Chosen&amp;action=history"/>
		<updated>2026-05-01T15:58:37Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.26.3</generator>

	<entry>
		<id>http://www.easyuo.com/openeuo/wiki/index.php?title=Chosen&amp;diff=1206&amp;oldid=prev</id>
		<title>Ximan: Created page with &quot;== Calling Convention == Call  local a, b, c, r1..r4 = sl.chosen([timeout]) Args  timeout (optional) is the number of milliseconds to wait for UO.TargCurs to return to false Resu...&quot;</title>
		<link rel="alternate" type="text/html" href="http://www.easyuo.com/openeuo/wiki/index.php?title=Chosen&amp;diff=1206&amp;oldid=prev"/>
				<updated>2011-01-09T01:18:42Z</updated>
		
		<summary type="html">&lt;p&gt;Created page with &amp;quot;== Calling Convention == Call  local a, b, c, r1..r4 = sl.chosen([timeout]) Args  timeout (optional) is the number of milliseconds to wait for UO.TargCurs to return to false Resu...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;== Calling Convention ==&lt;br /&gt;
Call&lt;br /&gt;
 local a, b, c, r1..r4 = sl.chosen([timeout])&lt;br /&gt;
Args&lt;br /&gt;
 timeout (optional) is the number of milliseconds to wait for UO.TargCurs to return to false&lt;br /&gt;
Results&lt;br /&gt;
 a is the current state of UO.TargCurs&lt;br /&gt;
 b is the amount of time transpired, in milliseconds&lt;br /&gt;
 c is the current state of UO.LTargetKind, or 4 if UO.TargCurs is still true&lt;br /&gt;
 r1 is UO.LTargetID iff UO.LTargetKind is 1&lt;br /&gt;
 otherwise&lt;br /&gt;
 r1 is UO.LTargetTile&lt;br /&gt;
 r2 is UO.LTargetX&lt;br /&gt;
 r3 is UO.LTargetY&lt;br /&gt;
 r4 is UO.LTargetZ&lt;br /&gt;
&lt;br /&gt;
== Usage Example ==&lt;br /&gt;
&lt;br /&gt;
 local targ, time = sl.target(1500)&lt;br /&gt;
 print(tostring(targ)..' '..tostring(time))&lt;br /&gt;
 local a,b,c,d, = sl.chosen(5000)&lt;br /&gt;
 print(a,b,c,d)&lt;br /&gt;
&lt;br /&gt;
 --&amp;gt; true 20&lt;br /&gt;
     false 630 1 2541&lt;br /&gt;
&lt;br /&gt;
== Description ==&lt;br /&gt;
&lt;br /&gt;
Chosen compliments the target method; waiting for UO.TargCurs to toggle to false or timing out.  Override timeout values are specified in milliseconds.  The default timeout is 3 seconds.  Chosen returns the current value of UO.TargCurs, the time elapsed (in ms) during the call, as well as the current value of UO.LTargetKind or the pseudo value 4 if the function timed out.  IF UO.LTargetKind was 1, the UO.LTargetID is also returned, otherwise UO.LTargetTile, UO.LTargetX, UO.LTargetY, and UO.LTargetZ round out the return values.&lt;br /&gt;
&lt;br /&gt;
== Upon Error ==&lt;br /&gt;
&lt;br /&gt;
A timeout argument which cannot be converted to a number is silently converted into the default timeout duration.&lt;br /&gt;
&lt;br /&gt;
== See Also ==&lt;br /&gt;
&lt;br /&gt;
* [http://www.easyuo.com/openeuo/wiki/index.php/Simplelib simplelib]&lt;br /&gt;
&lt;br /&gt;
* [[target]]&lt;/div&gt;</summary>
		<author><name>Ximan</name></author>	</entry>

	</feed>