<?xml version="1.0" encoding="utf-8"?><!DOCTYPE article  PUBLIC '-//OASIS//DTD DocBook XML V4.4//EN'  'http://www.docbook.org/xml/4.4/docbookx.dtd'><article><articleinfo><title>PeacetimeStatusChecker</title><revhistory><revision><revnumber>3</revnumber><date>2013-11-23 23:55:53</date><authorinitials>Inanna</authorinitials></revision><revision><revnumber>2</revnumber><date>2013-11-23 23:54:38</date><authorinitials>Inanna</authorinitials></revision><revision><revnumber>1</revnumber><date>2013-11-23 23:53:37</date><authorinitials>Inanna</authorinitials></revision></revhistory></articleinfo><para>This script checks your target coordinates every 5 minutes to see if they're in peacetime yet, and once they are announces it in alliance chat and stops. Just edit the target = line with your target's coordinates. </para><screen><![CDATA[target = "152,605"
]]><![CDATA[
// Nothing to edit below here.
label start
execute "scanmap " + target + " 5"
x = GetDetailInfo(GetFieldId(target), false, 60)
if !x repeat
if x.state != 1 goto statex
echo "*** ATTENTION *** " + x.userName + " is now in peacetime!"
execute "alliancechat *** ATTENTION *** " + x.userName + " is now in peacetime!"
end
]]><![CDATA[
label statex
echo x.userName + " is not in peacetime yet, so we'll keep checking."
sleep 300
goto start ]]></screen><!--rule (<hr>) is not applicable to DocBook--><para> <ulink url="http://guide.neatportal.com/wiki/PeacetimeStatusChecker/wiki/ScriptExamples#">ScriptExamples</ulink> </para></article>