Difference between revisions of "UO.GetJournal"

From OpenEUO
Jump to: navigation, search
(Created page with " local sLine,nCol = UO.GetJournal(nIndex) UO.ScanJournal")
 
m (added stuby code ref)
 
(4 intermediate revisions by 3 users not shown)
Line 1: Line 1:
 
  local sLine,nCol = UO.GetJournal(nIndex)
 
  local sLine,nCol = UO.GetJournal(nIndex)
 +
 +
Used to read the content fetched by [[UO.ScanJournal]]. nIndex is what line of the journal you wish to get, 0 is the most recent line with 1 being the next most recent and so on. sLine will hold the line of text. nCol will be the color of the text.
 +
 +
A simple block that will print the journal line and color from 0 to top of the journal.
 +
 +
  local nNewRef,nCnt= UO.ScanJournal(0)
 +
  for  i=0,nCnt  do
 +
  local sLine,nCol = UO.GetJournal(i)
 +
  print(sLine)
 +
  print(nCol)
 +
  end
 +
 
 +
 +
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.ScanJournal]]
 
[[UO.ScanJournal]]

Latest revision as of 10:11, 7 December 2012

local sLine,nCol = UO.GetJournal(nIndex)

Used to read the content fetched by UO.ScanJournal. nIndex is what line of the journal you wish to get, 0 is the most recent line with 1 being the next most recent and so on. sLine will hold the line of text. nCol will be the color of the text.

A simple block that will print the journal line and color from 0 to top of the journal.

  local nNewRef,nCnt= UO.ScanJournal(0)
  for  i=0,nCnt  do
  local sLine,nCol = UO.GetJournal(i)
  print(sLine)
  print(nCol)
  end
 

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

UO.SysMsg

UO.ScanJournal