UO.ScanJournal

From OpenEUO
Revision as of 17:10, 4 April 2012 by TheGreenGod (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
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.

UO.SysMsg

UO.GetJournal