<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>http://wiki.easyuo.com/index.php?action=history&amp;feed=atom&amp;title=JIndex</id>
		<title>JIndex - Revision history</title>
		<link rel="self" type="application/atom+xml" href="http://wiki.easyuo.com/index.php?action=history&amp;feed=atom&amp;title=JIndex"/>
		<link rel="alternate" type="text/html" href="http://wiki.easyuo.com/index.php?title=JIndex&amp;action=history"/>
		<updated>2026-04-30T02:03:21Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.26.3</generator>

	<entry>
		<id>http://wiki.easyuo.com/index.php?title=JIndex&amp;diff=5705&amp;oldid=prev</id>
		<title>Seg: Protected &quot;JIndex&quot; [edit=sysop:move=sysop]</title>
		<link rel="alternate" type="text/html" href="http://wiki.easyuo.com/index.php?title=JIndex&amp;diff=5705&amp;oldid=prev"/>
				<updated>2008-05-05T06:18:21Z</updated>
		
		<summary type="html">&lt;p&gt;Protected &amp;quot;&lt;a href=&quot;/index.php?title=JIndex&quot; title=&quot;JIndex&quot;&gt;JIndex&lt;/a&gt;&amp;quot; [edit=sysop:move=sysop]&lt;/p&gt;
&lt;table class='diff diff-contentalign-left'&gt;
				&lt;tr style='vertical-align: top;' lang='en'&gt;
				&lt;td colspan='1' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan='1' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Revision as of 06:18, 5 May 2008&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan='2' style='text-align: center;' lang='en'&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(No difference)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>Seg</name></author>	</entry>

	<entry>
		<id>http://wiki.easyuo.com/index.php?title=JIndex&amp;diff=5704&amp;oldid=prev</id>
		<title>Seg: New page: {{header|Extended|ro|The #jIndex system variable determines the index of the current journal entry. By calling scanJournal with #jIndex as the parameter you will get the last line in t...</title>
		<link rel="alternate" type="text/html" href="http://wiki.easyuo.com/index.php?title=JIndex&amp;diff=5704&amp;oldid=prev"/>
				<updated>2008-05-05T06:18:13Z</updated>
		
		<summary type="html">&lt;p&gt;New page: {{header|Extended|ro|The #jIndex system variable determines the index of the current journal entry. By calling &lt;a href=&quot;/index.php?title=ScanJournal&quot; title=&quot;ScanJournal&quot;&gt;scanJournal&lt;/a&gt; with #jIndex as the parameter you will get the last line in t...&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{header|Extended|ro|The #jIndex system variable determines the index of the current journal entry. By calling [[scanJournal]] with #jIndex as the parameter you will get the last line in the journal. By saving the value of #jIndex at appropriate times you can scan a section of the journal without ever losing a string.}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Example ====&lt;br /&gt;
&amp;lt;pre&amp;gt;set %success #false&lt;br /&gt;
; remember the journal position before something happened&lt;br /&gt;
set %jstart #jIndex + 1&lt;br /&gt;
; do something what we want to watch&lt;br /&gt;
msg #smc TestA$&lt;br /&gt;
msg #smc TestB$&lt;br /&gt;
msg #smc TestC$&lt;br /&gt;
wait 1s&lt;br /&gt;
; remember the journal position after something has happened&lt;br /&gt;
set %jend #jIndex&lt;br /&gt;
; loop through the journal checking each line between %jstart and %jend&lt;br /&gt;
for %ji %jstart %jend&lt;br /&gt;
{&lt;br /&gt;
    scanJournal %ji&lt;br /&gt;
    if TestB in #journal&lt;br /&gt;
        set %success #true ; found it&lt;br /&gt;
    msg #smc Interference$ ; new messages don't disturb the scan&lt;br /&gt;
}&lt;br /&gt;
; examine the result and act as required&lt;br /&gt;
if %success = #true&lt;br /&gt;
    display Ok Success&lt;br /&gt;
else&lt;br /&gt;
    display Ok Failure&lt;br /&gt;
halt&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
; Here is a little snippet to explaine the usage of this variable, its scans for the&lt;br /&gt;
; phrase &amp;quot;your char has been inactive&amp;quot; and makes a party message.&lt;br /&gt;
&lt;br /&gt;
set %_jindex #jindex&lt;br /&gt;
scanloop:&lt;br /&gt;
   if #jindex &amp;gt;= %_jindex&lt;br /&gt;
   {&lt;br /&gt;
      scanjournal %_jindex&lt;br /&gt;
      if your_char_has_been_inactive in #journal&lt;br /&gt;
         msg /party stay active $&lt;br /&gt;
      set %_jindex %_jindex + 1&lt;br /&gt;
   }&lt;br /&gt;
wait 0&lt;br /&gt;
goto scanloop&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=See Also=&lt;br /&gt;
{{Extended}}&lt;/div&gt;</summary>
		<author><name>Seg</name></author>	</entry>

	</feed>