Difference between revisions of "UO.ScanJournal"

From OpenEUO
Jump to: navigation, search
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.
 +
 +
 +
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 [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].
 
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].

Revision as of 17:22, 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 Jline = UO.GetJournal(0)
 print(Jline)
 print(nNewRef)
 print(nCnt)


See Kal In Ex's Journal Scanning Routine. See Stuby085's Journal Class.

UO.SysMsg

UO.GetJournal