Difference between revisions of "Luo.Cli"
From OpenEUO
m (Created page with "== Calling Convention == Call local f = sl.luo.Cli -- later local t = f() Args none Returns f is a function, which when called produces t t is a table of UO variable values...") |
m (→See Also) |
||
(One intermediate revision by the same user not shown) | |||
Line 22: | Line 22: | ||
print(vo) | print(vo) | ||
repeat | repeat | ||
− | t = l. | + | t = l.Cli() |
v = s.joinsep(" ", | v = s.joinsep(" ", | ||
t.Cnt, | t.Cnt, | ||
Line 49: | Line 49: | ||
== See Also == | == See Also == | ||
− | * [ | + | * [http://www.easyuo.com/openeuo/wiki/index.php/Simplelib simplelib] |
* [http://www.easyuo.com/openeuo/wiki/index.php/Documentation#Variables UO Variables] | * [http://www.easyuo.com/openeuo/wiki/index.php/Documentation#Variables UO Variables] | ||
+ | |||
+ | * [[luo]] |
Latest revision as of 09:43, 2 November 2010
Calling Convention
Call
local f = sl.luo.Cli -- later local t = f()
Args
none
Returns
f is a function, which when called produces t t is a table of UO variable values
Example Usage
local l = sl.luo local s = sl.str local t,vo,v = {}, "", "" while true do t = l.Cli() vo = s.joinsep(" ", t.Cnt, t.Nr, t.Logged) print(vo) repeat t = l.Cli() v = s.joinsep(" ", t.Cnt, t.Nr, t.Logged) wait(100) until v ~= vo end
Description
The live UO luo.Cli method returns a table of current UO variable values at the time when it is called. Keys and values of the resultant table:
key value Cnt UO.CliCnt Lang UO.CliLang -- since this is static for a given client, may remove Left UO.CliLeft Logged UO.CliLogged Nr UO.CliNr Top UO.CliTop Ver UO.CliVer XRes UO.CliXRes YRes UO.CliYRes