<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="https://wiki.herc.ws/w/skins/common/feed.css?303"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>https://wiki.herc.ws/w/index.php?action=history&amp;feed=atom&amp;title=Getcharid</id>
		<title>Getcharid - Revision history</title>
		<link rel="self" type="application/atom+xml" href="https://wiki.herc.ws/w/index.php?action=history&amp;feed=atom&amp;title=Getcharid"/>
		<link rel="alternate" type="text/html" href="https://wiki.herc.ws/w/index.php?title=Getcharid&amp;action=history"/>
		<updated>2026-05-02T00:33:09Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.21.11</generator>

	<entry>
		<id>https://wiki.herc.ws/w/index.php?title=Getcharid&amp;diff=513&amp;oldid=prev</id>
		<title>Neqste: /* Examples */</title>
		<link rel="alternate" type="text/html" href="https://wiki.herc.ws/w/index.php?title=Getcharid&amp;diff=513&amp;oldid=prev"/>
				<updated>2013-06-23T18:58:41Z</updated>
		
		<summary type="html">&lt;p&gt;‎&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;Examples&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;table class='diff diff-contentalign-left'&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
			&lt;tr style='vertical-align: top;'&gt;
			&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
			&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Revision as of 18:58, 23 June 2013&lt;/td&gt;
			&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 36:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 36:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==Examples==&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==Examples==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160; [[if]]( '''getcharid'''(2) == 0 ) [[mes]] &amp;quot;Only members of a guild are allowed here!&amp;quot;;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160; [[if]]( '''getcharid'''(2) == 0 ) [[mes]] &amp;quot;Only members of a guild are allowed here!&amp;quot;;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;// This code will get charid from not attached player, if he is online (useful in dialogues)&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;input .@charname$;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;#160; if (getcharid(.@charname$,0)&amp;gt;0) { do something } // if player online&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Neqste</name></author>	</entry>

	<entry>
		<id>https://wiki.herc.ws/w/index.php?title=Getcharid&amp;diff=386&amp;oldid=prev</id>
		<title>Via: Created page with &quot;Category:Script_Command ==Syntax== * getcharid(&lt;type&gt;{,&quot;&lt;character name&gt;&quot;}); ==Description== This function will return a unique ID number of the invoking character, or...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.herc.ws/w/index.php?title=Getcharid&amp;diff=386&amp;oldid=prev"/>
				<updated>2013-06-09T05:26:04Z</updated>
		
		<summary type="html">&lt;p&gt;Created page with &amp;quot;&lt;a href=&quot;/wiki/Category:Script_Command&quot; title=&quot;Category:Script Command&quot;&gt;Category:Script_Command&lt;/a&gt; ==Syntax== * &lt;a href=&quot;/wiki/Getcharid&quot; title=&quot;Getcharid&quot;&gt;getcharid&lt;/a&gt;(&amp;lt;type&amp;gt;{,&amp;quot;&amp;lt;character name&amp;gt;&amp;quot;}); ==Description== This function will return a unique ID number of the invoking character, or...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;[[Category:Script_Command]]&lt;br /&gt;
==Syntax==&lt;br /&gt;
* [[getcharid]](&amp;lt;type&amp;gt;{,&amp;quot;&amp;lt;character name&amp;gt;&amp;quot;});&lt;br /&gt;
==Description==&lt;br /&gt;
This function will return a unique ID number of the invoking character, or, if a &lt;br /&gt;
character name is specified, of that character.&lt;br /&gt;
&lt;br /&gt;
For most purposes other than printing it, a number is better to have than a name &lt;br /&gt;
(people do horrifying things to their character names).&lt;br /&gt;
&lt;br /&gt;
If the character is not in a party or not in a guild, the function will return 0 &lt;br /&gt;
if guild or party number is requested. If a name is specified and the character &lt;br /&gt;
is not found, 0 is returned.&lt;br /&gt;
&lt;br /&gt;
If [[getcharid]](0) returns a zero, the script got called not by a character and &lt;br /&gt;
doesn't have an attached [[RID]]. Note that this will cause the map server to&lt;br /&gt;
print &amp;quot;player not attached!&amp;quot; error messages, so it is preferred to use&lt;br /&gt;
'[[playerattached]]' to check for the character attached to the script.&lt;br /&gt;
&lt;br /&gt;
==Type Values==&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
!Value&lt;br /&gt;
!Description&lt;br /&gt;
|-&lt;br /&gt;
|0||Character ID number.&lt;br /&gt;
|-&lt;br /&gt;
|1||Party ID number.&lt;br /&gt;
|-&lt;br /&gt;
|2||Guild ID number.&lt;br /&gt;
|-&lt;br /&gt;
|3||Account ID number.&lt;br /&gt;
|-&lt;br /&gt;
|4||Battleground ID number.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Examples==&lt;br /&gt;
 [[if]]( '''getcharid'''(2) == 0 ) [[mes]] &amp;quot;Only members of a guild are allowed here!&amp;quot;;&lt;/div&gt;</summary>
		<author><name>Via</name></author>	</entry>

	</feed>