UO.ScanJournal
From OpenEUO
Revision as of 16:22, 4 April 2012 by TheGreenGod (Talk | contribs)
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 Jline = UO.GetJournal(0) print(Jline) print(nNewRef) print(nCnt)
See Kal In Ex's Journal Scanning Routine. See Stuby085's Journal Class.