Difference between revisions of "UO.ScanJournal"
From OpenEUO
TheGreenGod (Talk | contribs) |
TheGreenGod (Talk | contribs) m |
||
Line 1: | Line 1: | ||
local nNewRef,nCnt = UO.ScanJournal(nOldRef) | 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. | + | 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 | Simple code to print the values of nNewRef, nCnt, and the last journal entry | ||
− | + | local nNewRef,nCnt= UO.ScanJournal(0) | |
− | local | + | local sLine = UO.GetJournal(0) |
− | print( | + | print(sLine) |
print(nNewRef) | print(nNewRef) | ||
print(nCnt) | print(nCnt) |
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.