Difference between revisions of "UO.ScanJournal"
From OpenEUO
TheGreenGod (Talk | contribs) m |
|||
(5 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
local nNewRef,nCnt = UO.ScanJournal(nOldRef) | local nNewRef,nCnt = UO.ScanJournal(nOldRef) | ||
− | See Kal In Ex's [http://www.easyuo.com/forum/viewtopic.php?p=367537#367537 Journal Scanning Routine]. | + | Used to scan content of journal for use by [[UO.GetJournal]]. nNewRef gives a unique numeric code every time the journal changes. nCnt Gives the number of lines in the journal. nOldRef need to be set to a number. |
+ | |||
+ | |||
+ | Simple code to print the values of nNewRef, nCnt, and the last journal entry | ||
+ | |||
+ | local nNewRef,nCnt= UO.ScanJournal(0) | ||
+ | local sLine = UO.GetJournal(0) | ||
+ | print(sLine) | ||
+ | print(nNewRef) | ||
+ | print(nCnt) | ||
+ | |||
+ | |||
+ | |||
+ | See Kal In Ex's [http://www.easyuo.com/forum/viewtopic.php?p=367537#367537 Journal Scanning Routine]. See Stuby085's [http://www.easyuo.com/forum/viewtopic.php?p=376150#376150 Journal Class]. | ||
+ | |||
+ | [[UO.SysMsg]] | ||
[[UO.GetJournal]] | [[UO.GetJournal]] |
Latest revision as of 17:10, 4 April 2012
local nNewRef,nCnt = UO.ScanJournal(nOldRef)
Used to scan content of journal for use by UO.GetJournal. nNewRef gives a unique numeric code every time the journal changes. nCnt Gives the number of lines in the journal. nOldRef need to be set to a number.
Simple code to print the values of nNewRef, nCnt, and the last journal entry
local nNewRef,nCnt= UO.ScanJournal(0) local sLine = UO.GetJournal(0) print(sLine) print(nNewRef) print(nCnt)
See Kal In Ex's Journal Scanning Routine. See Stuby085's Journal Class.