UO.GetJournal
From OpenEUO
Revision as of 17:09, 4 April 2012 by TheGreenGod (Talk | contribs)
local sLine,nCol = UO.GetJournal(nIndex)
Used to reed the content fetched by UO.ScanJournal. nIndex is what line of the journal you wish to get, 0 is the most resent 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.