<?xml version="1.0" encoding="utf-8"?>
<s1 title="Player"><p><p>Contents</p>
<ol><li>
<link anchor="m">m_context.truced</link></li>
<li>
<link anchor="c">currentDateTime</link></li>
<li>
<link anchor="c-1">currentTime</link></li>
<li>
<link anchor="p">playerInfo.createrTime</link></li>
<li>
<link anchor="p-1">playerInfo.office</link></li>
<li>
<link anchor="p-2">playerInfo.castleCount</link></li>
<li>
<link anchor="p-3">playerInfo.honor</link></li>
<li>
<link anchor="p-4">playerInfo.levelId</link></li>
<li>
<link anchor="p-5">playerInfo.medal</link></li>
<li>
<link anchor="p-6">playerInfo.sex</link></li>
<li>
<link anchor="p-7">playerInfo.accountName</link></li>
<li>
<link anchor="p-8">playerInfo.faceUrl</link></li>
<li>
<link anchor="p-9">playerInfo.id</link></li>
<li>
<link anchor="p-10">playerInfo.allianceLevel</link></li>
<li>
<link anchor="p-11">playerInfo.population</link></li>
<li>
<link anchor="p-12">playerInfo.flag</link></li>
<li>
<link anchor="p-13">playerInfo.prestige</link></li>
<li>
<link anchor="p-14">playerInfo.userName</link></li>
<li>
<link anchor="p-15">playerInfo.userId</link></li>
<li>
<link anchor="p-16">playerInfo.titleId</link></li>
<li>
<link anchor="p-17">playerInfo.ranking</link></li>
<li>
<link anchor="p-18">playerInfo.alliance</link></li>
<li>
<link anchor="c-2">castleSignBeanArray</link></li>
</ol>
</li>
</ol>
<p> </p>
<p></p>
<s2 id="m_context.truced" title="m_context.truced">
<table><strong class="highlight"><![CDATA[]]></strong><tr><td><strong class="highlight"><![CDATA[]]></strong><p>Usage: </p>
</td><td><strong class="highlight"><![CDATA[]]></strong><p>m_context.truced </p>
</td></tr><tr><td><strong class="highlight"><![CDATA[]]></strong><p>Example: </p>
</td><td><strong class="highlight"><![CDATA[]]></strong><p>if m_context.truced echo &quot;This account is in truce&quot; </p>
</td></tr></table><p>returns Boolean (True/False) True if account is in truce </p>
<p></p>
</s2>
<s2 id="currentDateTime" title="currentDateTime">
<table><strong class="highlight"><![CDATA[]]></strong><tr><td><strong class="highlight"><![CDATA[]]></strong><p>Usage: </p>
</td><td><strong class="highlight"><![CDATA[]]></strong><p>player.currentDateTime </p>
</td></tr><tr><td><strong class="highlight"><![CDATA[]]></strong><p>Example: </p>
</td><td><strong class="highlight"><![CDATA[]]></strong><p>player.currentDateTime </p>
</td></tr></table><p>returns string containing the readable format of &quot;currentTime&quot; (see below) which is actually not current time, but time of last login. </p>
<p>example: echo player.currentDateTime </p>
<p>output: </p>
<p>2013.07.30 18.19.51 </p>
<p></p>
</s2>
<s2 id="currentTime" title="currentTime">
<table><strong class="highlight"><![CDATA[]]></strong><tr><td><strong class="highlight"><![CDATA[]]></strong><p>Usage: </p>
</td><td><strong class="highlight"><![CDATA[]]></strong><p>player.currentTime </p>
</td></tr><tr><td><strong class="highlight"><![CDATA[]]></strong><p>Example: </p>
</td><td><strong class="highlight"><![CDATA[]]></strong><p>player.currentTime </p>
</td></tr></table><p>this is not actually currentTime... this is time of last login (in UNIX timestamp format) </p>
<p></p>
</s2>
<s2 id="playerInfo.createrTime" title="playerInfo.createrTime">
<table><strong class="highlight"><![CDATA[]]></strong><tr><td><strong class="highlight"><![CDATA[]]></strong><p>Usage: </p>
</td><td><strong class="highlight"><![CDATA[]]></strong><p>player.playerInfo.createrTime </p>
</td></tr><tr><td><strong class="highlight"><![CDATA[]]></strong><p>Example: </p>
</td><td><strong class="highlight"><![CDATA[]]></strong><p>player.playerInfo.createrTime </p>
</td></tr></table><p>date the account was created, in UNIX timestamp format. </p>
<p>you can subtract that from timestamp of now and you have account age in milliseconds... you can divide that by (1k milliseconds * 60 seconds * 60 minutes * 24 hrs )= time in days</p>
<source><![CDATA[echo "account is {floor((date().time-player.playerInfo.createrTime)/1000/60/60/24)} days old."]]></source><p></p>
</s2>
<s2 id="playerInfo.office" title="playerInfo.office">
<table><strong class="highlight"><![CDATA[]]></strong><tr><td><strong class="highlight"><![CDATA[]]></strong><p>Usage: </p>
</td><td><strong class="highlight"><![CDATA[]]></strong><p>player.playerInfo.office </p>
</td></tr><tr><td><strong class="highlight"><![CDATA[]]></strong><p>Example: </p>
</td><td><strong class="highlight"><![CDATA[]]></strong><p>player.playerInfo.office </p>
</td></tr></table><p>This will return a string containing current player office/ rank eg &quot;Civilian&quot;, &quot;Lieutenant&quot;,&quot;Captain&quot;,&quot;Major&quot;,&quot;Colonel&quot;,&quot;General&quot; </p>
<p></p>
</s2>
<s2 id="playerInfo.castleCount" title="playerInfo.castleCount">
<table><strong class="highlight"><![CDATA[]]></strong><tr><td><strong class="highlight"><![CDATA[]]></strong><p>Usage: </p>
</td><td><strong class="highlight"><![CDATA[]]></strong><p>player.playerInfo.castleCount </p>
</td></tr><tr><td><strong class="highlight"><![CDATA[]]></strong><p>Example: </p>
</td><td><strong class="highlight"><![CDATA[]]></strong><p>player.playerInfo.castleCount </p>
</td></tr></table><p>returns count of player&apos;s castles </p>
<p></p>
</s2>
<s2 id="playerInfo.honor" title="playerInfo.honor">
<table><strong class="highlight"><![CDATA[]]></strong><tr><td><strong class="highlight"><![CDATA[]]></strong><p>Usage: </p>
</td><td><strong class="highlight"><![CDATA[]]></strong><p>player.playerInfo.honor </p>
</td></tr><tr><td><strong class="highlight"><![CDATA[]]></strong><p>Example: </p>
</td><td><strong class="highlight"><![CDATA[]]></strong><p>player.playerInfo.honor </p>
</td></tr></table><p>returns player&apos;s honor points </p>
<p></p>
</s2>
<s2 id="playerInfo.levelId" title="playerInfo.levelId">
<table><strong class="highlight"><![CDATA[]]></strong><tr><td><strong class="highlight"><![CDATA[]]></strong><p>Usage: </p>
</td><td><strong class="highlight"><![CDATA[]]></strong><p>player.playerInfo.levelId </p>
</td></tr><tr><td><strong class="highlight"><![CDATA[]]></strong><p>Example: </p>
</td><td><strong class="highlight"><![CDATA[]]></strong><p>player.playerInfo.levelId </p>
</td></tr></table><p>returns a number which represents position in alliance: </p>
<p>4 = Host </p>
<p>5 = Vice Host </p>
<p>6 = Presbyter </p>
<p>7 = Officer </p>
<p>8 = Member 0 = not in an alliance </p>
<p></p>
</s2>
<s2 id="playerInfo.medal" title="playerInfo.medal">
<table><strong class="highlight"><![CDATA[]]></strong><tr><td><strong class="highlight"><![CDATA[]]></strong><p>Usage: </p>
</td><td><strong class="highlight"><![CDATA[]]></strong><p>player.playerInfo.medal </p>
</td></tr><tr><td><strong class="highlight"><![CDATA[]]></strong><p>Example: </p>
</td><td><strong class="highlight"><![CDATA[]]></strong><p>player.playerInfo.medal </p>
</td></tr></table><p>returns number of cents on account </p>
<p></p>
</s2>
<s2 id="playerInfo.sex" title="playerInfo.sex">
<table><strong class="highlight"><![CDATA[]]></strong><tr><td><strong class="highlight"><![CDATA[]]></strong><p>Usage: </p>
</td><td><strong class="highlight"><![CDATA[]]></strong><p>player.playerInfo.sex </p>
</td></tr><tr><td><strong class="highlight"><![CDATA[]]></strong><p>Example: </p>
</td><td><strong class="highlight"><![CDATA[]]></strong><p>player.playerInfo.sex </p>
</td></tr></table><p>returns a boolean value indicating player sex. (0=Male, 1=Female) </p>
<p></p>
</s2>
<s2 id="playerInfo.accountName" title="playerInfo.accountName">
<table><strong class="highlight"><![CDATA[]]></strong><tr><td><strong class="highlight"><![CDATA[]]></strong><p>Usage: </p>
</td><td><strong class="highlight"><![CDATA[]]></strong><p>player.playerInfo.accountName </p>
</td></tr><tr><td><strong class="highlight"><![CDATA[]]></strong><p>Example: </p>
</td><td><strong class="highlight"><![CDATA[]]></strong><p>player.playerInfo.accountName </p>
</td></tr></table><p>returns string containing login email address. </p>
<p></p>
</s2>
<s2 id="playerInfo.faceUrl" title="playerInfo.faceUrl">
<table><strong class="highlight"><![CDATA[]]></strong><tr><td><strong class="highlight"><![CDATA[]]></strong><p>Usage: </p>
</td><td><strong class="highlight"><![CDATA[]]></strong><p>player.playerInfo.faceUrl </p>
</td></tr><tr><td><strong class="highlight"><![CDATA[]]></strong><p>Example: </p>
</td><td><strong class="highlight"><![CDATA[]]></strong><p>player.playerInfo.faceUrl </p>
</td></tr></table><p>returns string containing path to player avatar icon picture. </p>
<p></p>
</s2>
<s2 id="playerInfo.id" title="playerInfo.id">
<table><strong class="highlight"><![CDATA[]]></strong><tr><td><strong class="highlight"><![CDATA[]]></strong><p>Usage: </p>
</td><td><strong class="highlight"><![CDATA[]]></strong><p>player.playerInfo.id </p>
</td></tr><tr><td><strong class="highlight"><![CDATA[]]></strong><p>Example: </p>
</td><td><strong class="highlight"><![CDATA[]]></strong><p>player.playerInfo.id </p>
</td></tr></table><p>returns number indicating player&apos;s internal ID on game database. </p>
<p></p>
</s2>
<s2 id="playerInfo.allianceLevel" title="playerInfo.allianceLevel">
<table><strong class="highlight"><![CDATA[]]></strong><tr><td><strong class="highlight"><![CDATA[]]></strong><p>Usage: </p>
</td><td><strong class="highlight"><![CDATA[]]></strong><p>player.playerInfo.allianceLevel </p>
</td></tr><tr><td><strong class="highlight"><![CDATA[]]></strong><p>Example: </p>
</td><td><strong class="highlight"><![CDATA[]]></strong><p>player.playerInfo.allianceLevel </p>
</td></tr></table><p>returns string containing player&apos;s position in alliance (or null if unallied) eg. &quot;Member&quot;,&quot;Officer&quot;,&quot;Presbyter&quot;,&quot;Vice Host&quot; or &quot;Host&quot;. </p>
<p></p>
</s2>
<s2 id="playerInfo.population" title="playerInfo.population">
<table><strong class="highlight"><![CDATA[]]></strong><tr><td><strong class="highlight"><![CDATA[]]></strong><p>Usage: </p>
</td><td><strong class="highlight"><![CDATA[]]></strong><p>player.playerInfo.population </p>
</td></tr><tr><td><strong class="highlight"><![CDATA[]]></strong><p>Example: </p>
</td><td><strong class="highlight"><![CDATA[]]></strong><p>player.playerInfo.population </p>
</td></tr></table><p>returns number which indicates player&apos;s total population for all cities. </p>
<p></p>
</s2>
<s2 id="playerInfo.flag" title="playerInfo.flag">
<table><strong class="highlight"><![CDATA[]]></strong><tr><td><strong class="highlight"><![CDATA[]]></strong><p>Usage: </p>
</td><td><strong class="highlight"><![CDATA[]]></strong><p>player.playerInfo.flag </p>
</td></tr><tr><td><strong class="highlight"><![CDATA[]]></strong><p>Example: </p>
</td><td><strong class="highlight"><![CDATA[]]></strong><p>player.playerInfo.flag </p>
</td></tr></table><p>returns string containing player&apos;s flag. </p>
<p></p>
</s2>
<s2 id="playerInfo.prestige" title="playerInfo.prestige">
<table><strong class="highlight"><![CDATA[]]></strong><tr><td><strong class="highlight"><![CDATA[]]></strong><p>Usage: </p>
</td><td><strong class="highlight"><![CDATA[]]></strong><p>player.playerInfo.prestige </p>
</td></tr><tr><td><strong class="highlight"><![CDATA[]]></strong><p>Example: </p>
</td><td><strong class="highlight"><![CDATA[]]></strong><p>player.playerInfo.prestige </p>
</td></tr></table><p>returns number containing player&apos;s prestige </p>
<p></p>
</s2>
<s2 id="playerInfo.userName" title="playerInfo.userName">
<table><strong class="highlight"><![CDATA[]]></strong><tr><td><strong class="highlight"><![CDATA[]]></strong><p>Usage: </p>
</td><td><strong class="highlight"><![CDATA[]]></strong><p>player.playerInfo.userName </p>
</td></tr><tr><td><strong class="highlight"><![CDATA[]]></strong><p>Example: </p>
</td><td><strong class="highlight"><![CDATA[]]></strong><p>player.playerInfo.userName </p>
</td></tr></table><p>Returns string containing player&apos;s lord name. </p>
<p></p>
</s2>
<s2 id="playerInfo.userId" title="playerInfo.userId">
<table><strong class="highlight"><![CDATA[]]></strong><tr><td><strong class="highlight"><![CDATA[]]></strong><p>Usage: </p>
</td><td><strong class="highlight"><![CDATA[]]></strong><p>player.playerInfo.userId </p>
</td></tr><tr><td><strong class="highlight"><![CDATA[]]></strong><p>Example: </p>
</td><td><strong class="highlight"><![CDATA[]]></strong><p>player.playerInfo.userId </p>
</td></tr></table><p>returns yet another internal Id number for the player on the game server. </p>
<p></p>
</s2>
<s2 id="playerInfo.titleId" title="playerInfo.titleId">
<table><strong class="highlight"><![CDATA[]]></strong><tr><td><strong class="highlight"><![CDATA[]]></strong><p>Usage: </p>
</td><td><strong class="highlight"><![CDATA[]]></strong><p>player.playerInfo.titleId </p>
</td></tr><tr><td><strong class="highlight"><![CDATA[]]></strong><p>Example: </p>
</td><td><strong class="highlight"><![CDATA[]]></strong><p>player.playerInfo.titleId </p>
</td></tr></table><p>returns a number from 0-9 indicating player&apos;s current title. </p>
<p>example to return player&apos;s title in string format: </p>
<p>titleName=[&quot;Civilian,Knight,Baronet,Baron,Viscount,Earl,Marquis,Duke,Furstin,Prinzessin&quot;] </p>
<p>echo titleName[player.playerInfo.titleId] </p>
<p></p>
</s2>
<s2 id="playerInfo.ranking" title="playerInfo.ranking">
<table><strong class="highlight"><![CDATA[]]></strong><tr><td><strong class="highlight"><![CDATA[]]></strong><p>Usage: </p>
</td><td><strong class="highlight"><![CDATA[]]></strong><p>player.playerInfo.ranking </p>
</td></tr><tr><td><strong class="highlight"><![CDATA[]]></strong><p>Example: </p>
</td><td><strong class="highlight"><![CDATA[]]></strong><p>player.playerInfo.ranking </p>
</td></tr></table><p>returns number indicating player&apos;s rank on server (according to prestige) ie: top prestige player on server is ranked 1 </p>
<p></p>
</s2>
<s2 id="playerInfo.alliance" title="playerInfo.alliance">
<table><strong class="highlight"><![CDATA[]]></strong><tr><td><strong class="highlight"><![CDATA[]]></strong><p>Usage: </p>
</td><td><strong class="highlight"><![CDATA[]]></strong><p>player.playerInfo.alliance </p>
</td></tr><tr><td><strong class="highlight"><![CDATA[]]></strong><p>Example: </p>
</td><td><strong class="highlight"><![CDATA[]]></strong><p>player.playerInfo.alliance </p>
</td></tr></table><p>returns string containing player&apos;s alliance name (or null if unallied) </p>
<p></p>
</s2>
<s2 id="castleSignBeanArray" title="castleSignBeanArray">
<table><strong class="highlight"><![CDATA[]]></strong><tr><td><strong class="highlight"><![CDATA[]]></strong><p>Usage: </p>
</td><td><strong class="highlight"><![CDATA[]]></strong><p>player.castleSignBeanArray </p>
</td></tr><tr><td><strong class="highlight"><![CDATA[]]></strong><p>Example: </p>
</td><td><strong class="highlight"><![CDATA[]]></strong><p>json_encode(player.castleSignBeanArray) </p>
</td></tr></table><p>Returns an array containing your saved coords (ID, Name, X coords, Y coords). </p>
<p></p>

<br/>------------------------------------------------------------------------------<br/>
<p> <jump href="/wiki/ScriptObjects">ScriptObjects</jump> </p>
</s2></s1>