Difference between revisions of "Luo.Cur"
From OpenEUO
m (Created page with "== Calling Convention == Call local f = sl.luo.Cur -- 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) |
||
Line 50: | Line 50: | ||
== 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] | ||
* [[luo]] | * [[luo]] | ||
* [[luo.Max]] | * [[luo.Max]] | ||
− | |||
− |
Latest revision as of 09:42, 2 November 2010
Calling Convention
Call
local f = sl.luo.Cur -- 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.Cur() vo = s.joinsep(" ", t.Hits, t.Mana, t.Stam, t.Weight) print(vo) repeat t = l.Cur() v = s.joinsep(" ", t.Hits, t.Mana, t.Stam, t.Weight) wait(100) until v ~= vo end
Description
The live UO luo.Cur 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 Dex UO.Dex, Fol UO.Followers, Hits UO.Hits, Int UO.Int, Mana UO.Mana, Stam UO.Stamina, Str UO.Str, TP UO.TP, Weight UO.Weight