<?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/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Neqste</id>
		<title>Hercules Wiki - User contributions [en]</title>
		<link rel="self" type="application/atom+xml" href="https://wiki.herc.ws/w/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Neqste"/>
		<link rel="alternate" type="text/html" href="https://wiki.herc.ws/wiki/Special:Contributions/Neqste"/>
		<updated>2026-05-01T23:23:59Z</updated>
		<subtitle>User contributions</subtitle>
		<generator>MediaWiki 1.21.11</generator>

	<entry>
		<id>https://wiki.herc.ws/wiki/Readparam</id>
		<title>Readparam</title>
		<link rel="alternate" type="text/html" href="https://wiki.herc.ws/wiki/Readparam"/>
				<updated>2013-06-28T10:05:51Z</updated>
		
		<summary type="html">&lt;p&gt;Neqste: Created page with &amp;quot;==Syntax== *'''readparam'''(&amp;lt;parameter number&amp;gt;);  ==Description== This function will return the basic stats of an invoking character,  referred to by the parameter number. Ins...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Syntax==&lt;br /&gt;
*'''readparam'''(&amp;lt;parameter number&amp;gt;);&lt;br /&gt;
&lt;br /&gt;
==Description==&lt;br /&gt;
This function will return the basic stats of an invoking character, &lt;br /&gt;
referred to by the parameter number. Instead of a number, you can use a &lt;br /&gt;
parameter name if it is defined in '[https://github.com/HerculesWS/Hercules/blob/master/db/const.txt db/const.txt]'.&lt;br /&gt;
&lt;br /&gt;
Example parameters:&lt;br /&gt;
&lt;br /&gt;
    StatusPoint, BaseLevel, SkillPoint, Class, Upper, Zeny, Sex, Weight, &lt;br /&gt;
    MaxWeight, JobLevel, BaseExp, JobExp, NextBaseExp, NextJobExp, Hp, MaxHp, &lt;br /&gt;
    Sp, MaxSp, BaseJob, Karma, Manner, bVit, bDex, bAgi, bStr, bInt, bLuk&lt;br /&gt;
&lt;br /&gt;
All of these also behave as variables, but don't expect to be able to just &lt;br /&gt;
'set' them - some will not work for various internal reasons.&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
===Example 1:===&lt;br /&gt;
&lt;br /&gt;
    // Returns how many status points you haven't spent yet.&lt;br /&gt;
    mes &amp;quot;Unused status points: &amp;quot;+readparam(9);&lt;br /&gt;
&lt;br /&gt;
Using this particular information as a function call is not required. &lt;br /&gt;
Typing this will return the same result:&lt;br /&gt;
&lt;br /&gt;
	mes &amp;quot;Unused status points: &amp;quot;+StatusPoint;&lt;br /&gt;
&lt;br /&gt;
===Example 2:===&lt;br /&gt;
&lt;br /&gt;
You can also use this command to get stat values.&lt;br /&gt;
&lt;br /&gt;
    if (readparam(bVit) &amp;gt; 77)&lt;br /&gt;
    	mes &amp;quot;Only people with over 77 Vit are reading this!&amp;quot;;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
* '[https://github.com/HerculesWS/Hercules/blob/master/db/const.txt db/const.txt]'&lt;br /&gt;
&lt;br /&gt;
[[Category:Script Command]]&lt;/div&gt;</summary>
		<author><name>Neqste</name></author>	</entry>

	<entry>
		<id>https://wiki.herc.ws/wiki/Freeloop</id>
		<title>Freeloop</title>
		<link rel="alternate" type="text/html" href="https://wiki.herc.ws/wiki/Freeloop"/>
				<updated>2013-06-28T09:58:33Z</updated>
		
		<summary type="html">&lt;p&gt;Neqste: Created page with &amp;quot;==Syntax== *'''freeloop'''(&amp;lt;toggle&amp;gt;);  ==Description== Toggling this to enabled (1) allows the script instance to bypass the  infinite loop protection, allowing your script to...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Syntax==&lt;br /&gt;
*'''freeloop'''(&amp;lt;toggle&amp;gt;);&lt;br /&gt;
&lt;br /&gt;
==Description==&lt;br /&gt;
Toggling this to enabled (1) allows the script instance to bypass the &lt;br /&gt;
infinite loop protection, allowing your script to loop as much as it may &lt;br /&gt;
need. Disabling (0) will warn you if an infinite loop is detected.&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
    freeloop(1); // enable script to loop freely&lt;br /&gt;
    &lt;br /&gt;
    //Be aware with what you do here.&lt;br /&gt;
    for ( set .@i,0; .@i&amp;lt;.@bigloop; set .@i, .@i+1 ) {&lt;br /&gt;
    	dothis;&lt;br /&gt;
    	// will sleep the script for 1ms when detect an infinity loop to &lt;br /&gt;
    	// let Hercules do what it need to do (socket, timer, process, &lt;br /&gt;
    	// etc.)&lt;br /&gt;
    }&lt;br /&gt;
    &lt;br /&gt;
    freeloop(0); // disable&lt;br /&gt;
    &lt;br /&gt;
    for ( set .@i,0; .@i&amp;lt;.@bigloop; set .@i, .@i+1 ) {&lt;br /&gt;
    	dothis;&lt;br /&gt;
    	// throw an infinity loop error&lt;br /&gt;
    }&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
* [[while]]&lt;br /&gt;
* [[for]]&lt;br /&gt;
&lt;br /&gt;
[[Category:Script Command]]&lt;/div&gt;</summary>
		<author><name>Neqste</name></author>	</entry>

	<entry>
		<id>https://wiki.herc.ws/wiki/Getcastledata</id>
		<title>Getcastledata</title>
		<link rel="alternate" type="text/html" href="https://wiki.herc.ws/wiki/Getcastledata"/>
				<updated>2013-06-28T08:11:38Z</updated>
		
		<summary type="html">&lt;p&gt;Neqste: Created page with &amp;quot;==Syntax== *'''getcastledata'''(&amp;quot;&amp;lt;map name&amp;gt;&amp;quot;,&amp;lt;type of data&amp;gt;); *'''setcastledata''' &amp;quot;&amp;lt;map name&amp;gt;&amp;quot;,&amp;lt;type of data&amp;gt;,&amp;lt;value&amp;gt;;   ==Description== This function returns the castle owne...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Syntax==&lt;br /&gt;
*'''getcastledata'''(&amp;quot;&amp;lt;map name&amp;gt;&amp;quot;,&amp;lt;type of data&amp;gt;);&lt;br /&gt;
*'''setcastledata''' &amp;quot;&amp;lt;map name&amp;gt;&amp;quot;,&amp;lt;type of data&amp;gt;,&amp;lt;value&amp;gt;;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Description==&lt;br /&gt;
This function returns the castle ownership information for the castle &lt;br /&gt;
referred to by its map name. Castle information is stored in &lt;br /&gt;
`guild_castle` SQL table.&lt;br /&gt;
&lt;br /&gt;
Types of data correspond to `guild_castle` table columns:&lt;br /&gt;
     1 - `guild_id`   - Guild ID.&lt;br /&gt;
     2 - `economy`    - Castle Economy score.&lt;br /&gt;
     3 - `defense`    - Castle Defense score.&lt;br /&gt;
     4 - `triggerE`   - Number of times the economy was invested in today.&lt;br /&gt;
     5 - `triggerD`   - Number of times the defense was invested in today.&lt;br /&gt;
     6 - `nextTime`   - unused&lt;br /&gt;
     7 - `payTime`    - unused&lt;br /&gt;
     8 - `createTime` - unused&lt;br /&gt;
     9 - `visibleC`   - Is 1 if a Kafra was hired for this castle, 0 otherwise.&lt;br /&gt;
    10 - `visibleG0`  - Is 1 if the 1st guardian is present (Soldier Guardian)&lt;br /&gt;
    11 - `visibleG1`  - Is 1 if the 2nd guardian is present (Soldier Guardian)&lt;br /&gt;
    12 - `visibleG2`  - Is 1 if the 3rd guardian is present (Soldier Guardian)&lt;br /&gt;
    13 - `visibleG3`  - Is 1 if the 4th guardian is present (Archer Guardian)&lt;br /&gt;
    14 - `visibleG4`  - Is 1 if the 5th guardian is present (Archer Guardian)&lt;br /&gt;
    15 - `visibleG5`  - Is 1 if the 6th guardian is present (Knight Guardian)&lt;br /&gt;
    16 - `visibleG6`  - Is 1 if the 7th guardian is present (Knight Guardian)&lt;br /&gt;
    17 - `visibleG7`  - Is 1 if the 8th guardian is present (Knight Guardian)&lt;br /&gt;
&lt;br /&gt;
All types of data have their meaning determined by War of Emperium &lt;br /&gt;
scripts, with exception of:&lt;br /&gt;
    - `guild_id` that is always the ID of the guild that owns the castle,&lt;br /&gt;
    - `defense` that is used in Guardians &amp;amp; Emperium HP calculations,&lt;br /&gt;
    - `visibleG` that is always considered to hold guardian presence bits.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The '''setcastledata''' command will behave identically, but instead of &lt;br /&gt;
returning values for the specified types of accessible data, it will alter &lt;br /&gt;
them and cause them to be sent to the char-server for storage.&lt;br /&gt;
&lt;br /&gt;
Changing Guild ID or Castle Defense will trigger additional actions, like &lt;br /&gt;
recalculating guardians' HP.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category:Script Command]]&lt;/div&gt;</summary>
		<author><name>Neqste</name></author>	</entry>

	<entry>
		<id>https://wiki.herc.ws/wiki/Getguildmasterid</id>
		<title>Getguildmasterid</title>
		<link rel="alternate" type="text/html" href="https://wiki.herc.ws/wiki/Getguildmasterid"/>
				<updated>2013-06-28T08:08:56Z</updated>
		
		<summary type="html">&lt;p&gt;Neqste: Created page with &amp;quot;==Syntax== *'''getguildmasterid'''(&amp;lt;guild id&amp;gt;);  ==Description== This function will return the character ID number of the guild master of  the guild specified by the ID. 0 if ...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Syntax==&lt;br /&gt;
*'''getguildmasterid'''(&amp;lt;guild id&amp;gt;);&lt;br /&gt;
&lt;br /&gt;
==Description==&lt;br /&gt;
This function will return the character ID number of the guild master of &lt;br /&gt;
the guild specified by the ID. 0 if the character is not a guild master of &lt;br /&gt;
any guild.&lt;br /&gt;
&lt;br /&gt;
==Examples==&lt;br /&gt;
    prontera,155,180,5	script	guildmasterID	89,{&lt;br /&gt;
    	if (getcharid(2)!=0) {&lt;br /&gt;
    		mes getguildmasterid(getcharid(2))+&amp;quot; it's  your guildmaster id&amp;quot;;&lt;br /&gt;
    		close;&lt;br /&gt;
    	}&lt;br /&gt;
    }&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
* [[getguildmaster]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category:Script Command]]&lt;/div&gt;</summary>
		<author><name>Neqste</name></author>	</entry>

	<entry>
		<id>https://wiki.herc.ws/wiki/Getguildmaster</id>
		<title>Getguildmaster</title>
		<link rel="alternate" type="text/html" href="https://wiki.herc.ws/wiki/Getguildmaster"/>
				<updated>2013-06-28T08:04:42Z</updated>
		
		<summary type="html">&lt;p&gt;Neqste: Created page with &amp;quot;==Syntax== *'''getguildmaster'''(&amp;lt;guild id&amp;gt;);  ==Description== This function return the name of the master of the guild which has the  specified ID number. If there is no such...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Syntax==&lt;br /&gt;
*'''getguildmaster'''(&amp;lt;guild id&amp;gt;);&lt;br /&gt;
&lt;br /&gt;
==Description==&lt;br /&gt;
This function return the name of the master of the guild which has the &lt;br /&gt;
specified ID number. If there is no such guild, &amp;quot;null&amp;quot; will be returned.&lt;br /&gt;
&lt;br /&gt;
// Would return the guild master of guild 10007, whatever that might be.&lt;br /&gt;
    mes getguildmaster(10007)+&amp;quot; runs &amp;quot;+getguildname(10007);&lt;br /&gt;
&lt;br /&gt;
Can be used to check if the character is the guild master of the specified &lt;br /&gt;
guild.&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
Maybe you want to make a room only guild masters can enter:&lt;br /&gt;
    &lt;br /&gt;
    	set @GID,getcharid(2);&lt;br /&gt;
    	if(@GID==0) goto L_NoGuild;&lt;br /&gt;
    	if(strcharinfo(0)==getguildmaster(@GID)) goto L_GuildMaster;&lt;br /&gt;
    	mes &amp;quot;Sorry you don't own the guild you are in&amp;quot;;&lt;br /&gt;
    	close;&lt;br /&gt;
    L_NoGuild:&lt;br /&gt;
    	mes &amp;quot;Sorry you are not in a guild&amp;quot;;&lt;br /&gt;
    	close;&lt;br /&gt;
    L_GuildMaster:&lt;br /&gt;
    	mes &amp;quot;Welcome guild master of &amp;quot;+GetGuildName(@GID);&lt;br /&gt;
    	close;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
* [[getguildmasterid]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category:Script Command]]&lt;/div&gt;</summary>
		<author><name>Neqste</name></author>	</entry>

	<entry>
		<id>https://wiki.herc.ws/wiki/Viewpoint</id>
		<title>Viewpoint</title>
		<link rel="alternate" type="text/html" href="https://wiki.herc.ws/wiki/Viewpoint"/>
				<updated>2013-06-24T10:35:50Z</updated>
		
		<summary type="html">&lt;p&gt;Neqste: Created page with &amp;quot;==Syntax== *'''viewpoint''' &amp;lt;action&amp;gt;,&amp;lt;x&amp;gt;,&amp;lt;y&amp;gt;,&amp;lt;point number&amp;gt;,&amp;lt;color&amp;gt;;  ==Description== This command will mark places on the mini map in the client connected to  the invoking ch...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Syntax==&lt;br /&gt;
*'''viewpoint''' &amp;lt;action&amp;gt;,&amp;lt;x&amp;gt;,&amp;lt;y&amp;gt;,&amp;lt;point number&amp;gt;,&amp;lt;color&amp;gt;;&lt;br /&gt;
&lt;br /&gt;
==Description==&lt;br /&gt;
This command will mark places on the mini map in the client connected to &lt;br /&gt;
the invoking character. It uses the normal X and Y coordinates from the &lt;br /&gt;
main map. The colors of the marks are defined using a hexadecimal number, &lt;br /&gt;
same as the ones used to color text in 'mes' output, but are written as &lt;br /&gt;
hexadecimal numbers in C. (They look like 0x&amp;lt;six numbers&amp;gt;.)&lt;br /&gt;
&lt;br /&gt;
Action is what you want to do with a point, 1 will set it, while 2 will &lt;br /&gt;
clear it. 0 will also set it, but automatically removes the point after 15 &lt;br /&gt;
seconds.&lt;br /&gt;
Point number is the number of the point - you can have several. If more &lt;br /&gt;
than one point is drawn at the same coordinates, they will cycle, which &lt;br /&gt;
can be used to create flashing marks.&lt;br /&gt;
&lt;br /&gt;
==Examples==&lt;br /&gt;
This command will show a mark at coordinates X 30 Y 40, is mark &lt;br /&gt;
number 1, and will be red.&lt;br /&gt;
    viewpoint 1,30,40,1,0xFF0000;&lt;br /&gt;
&lt;br /&gt;
This will create three points:&lt;br /&gt;
&lt;br /&gt;
    viewpoint 1,30,40,1,0xFF0000;&lt;br /&gt;
    viewpoint 1,35,45,2,0xFF0000;&lt;br /&gt;
    viewpoint 1,40,50,3,0xFF0000;&lt;br /&gt;
&lt;br /&gt;
And this is how you remove them:&lt;br /&gt;
&lt;br /&gt;
    viewpoint 2,30,40,1,0xFF0000;&lt;br /&gt;
    viewpoint 2,35,45,2,0xFF0000;&lt;br /&gt;
    viewpoint 2,40,50,3,0xFF0000;&lt;br /&gt;
&lt;br /&gt;
[[Category:Script Command]]&lt;/div&gt;</summary>
		<author><name>Neqste</name></author>	</entry>

	<entry>
		<id>https://wiki.herc.ws/wiki/Setitemscript</id>
		<title>Setitemscript</title>
		<link rel="alternate" type="text/html" href="https://wiki.herc.ws/wiki/Setitemscript"/>
				<updated>2013-06-24T10:31:54Z</updated>
		
		<summary type="html">&lt;p&gt;Neqste: Created page with &amp;quot;==Syntax== *'''setitemscript'''(&amp;lt;item id&amp;gt;,&amp;lt;&amp;quot;{ new item script }&amp;quot;&amp;gt;{,&amp;lt;type&amp;gt;});  ==Description== Set a new script bonus to the Item. Very useful for game events. You can remove a...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Syntax==&lt;br /&gt;
*'''setitemscript'''(&amp;lt;item id&amp;gt;,&amp;lt;&amp;quot;{ new item script }&amp;quot;&amp;gt;{,&amp;lt;type&amp;gt;});&lt;br /&gt;
&lt;br /&gt;
==Description==&lt;br /&gt;
Set a new script bonus to the Item. Very useful for game events.&lt;br /&gt;
You can remove an item's itemscript by leaving the itemscript argument &lt;br /&gt;
empty. Returns 1 on success, or 0 on fail (item_id not found or new item &lt;br /&gt;
script is invalid).&lt;br /&gt;
&lt;br /&gt;
Type can optionally be used indicates which script to set (default is 0):&lt;br /&gt;
    0 - Script&lt;br /&gt;
    1 - OnEquip_Script&lt;br /&gt;
    2 - OnUnequip_Script&lt;br /&gt;
&lt;br /&gt;
==Examples==&lt;br /&gt;
    [[setitemscript]] 2637,&amp;quot;{ if(isequipped(2236)==0)end; if(getskilllv(26)){skill 40,1;}else{skill 26,1+isequipped(2636);} }&amp;quot;; // new bonus&lt;br /&gt;
    [[setitemscript]] 2637,&amp;quot;&amp;quot;; // now without bonus.&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
* [[setiteminfo]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category:Script Command]]&lt;/div&gt;</summary>
		<author><name>Neqste</name></author>	</entry>

	<entry>
		<id>https://wiki.herc.ws/wiki/Setiteminfo</id>
		<title>Setiteminfo</title>
		<link rel="alternate" type="text/html" href="https://wiki.herc.ws/wiki/Setiteminfo"/>
				<updated>2013-06-24T10:28:48Z</updated>
		
		<summary type="html">&lt;p&gt;Neqste: Created page with &amp;quot;==Syntax== *'''setiteminfo'''(&amp;lt;item id&amp;gt;,&amp;lt;type&amp;gt;,&amp;lt;value&amp;gt;);  ==Description== This function will set some value of an item. Returns the new value on success, or -1 on fail (item_i...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Syntax==&lt;br /&gt;
*'''setiteminfo'''(&amp;lt;item id&amp;gt;,&amp;lt;type&amp;gt;,&amp;lt;value&amp;gt;);&lt;br /&gt;
&lt;br /&gt;
==Description==&lt;br /&gt;
This function will set some value of an item.&lt;br /&gt;
Returns the new value on success, or -1 on fail (item_id not found or &lt;br /&gt;
invalid type).&lt;br /&gt;
&lt;br /&gt;
'''Valid types are:'''&lt;br /&gt;
     0 - Buy Price; &lt;br /&gt;
     1 - Sell Price; &lt;br /&gt;
     2 - Item Type;&lt;br /&gt;
     3 - maxchance (Max drop chance of this item e.g. 1 = 0.01% , etc..&lt;br /&gt;
         if = 0, then monsters don't drop it at all (rare or a quest item)&lt;br /&gt;
         if = 10000, then this item is sold in NPC shops only&lt;br /&gt;
     4 - sex; &lt;br /&gt;
     5 - equip; &lt;br /&gt;
     6 - weight; &lt;br /&gt;
     7 - atk; &lt;br /&gt;
     8 - def; &lt;br /&gt;
     9 - range;&lt;br /&gt;
     10 - slot; &lt;br /&gt;
     11 - look; &lt;br /&gt;
     12 - elv; &lt;br /&gt;
     13 - wlv; &lt;br /&gt;
     14 - view id&lt;br /&gt;
&lt;br /&gt;
==Examples==&lt;br /&gt;
    [[setiteminfo]] 7049,6,9990; // Stone now weighs 999.0&lt;br /&gt;
    [[setiteminfo]] 512,0,3000; // Apple Buy Price is 3000&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
* [[setitemscript]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category:Script Command]]&lt;/div&gt;</summary>
		<author><name>Neqste</name></author>	</entry>

	<entry>
		<id>https://wiki.herc.ws/wiki/Escape_sql</id>
		<title>Escape sql</title>
		<link rel="alternate" type="text/html" href="https://wiki.herc.ws/wiki/Escape_sql"/>
				<updated>2013-06-24T10:23:47Z</updated>
		
		<summary type="html">&lt;p&gt;Neqste: Created page with &amp;quot;==Syntax== *'''escape_sql'''(&amp;lt;value&amp;gt;);  ==Description== Converts the value to a string and escapes special characters so that it's  safe to use in query_sql(). Returns the esc...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Syntax==&lt;br /&gt;
*'''escape_sql'''(&amp;lt;value&amp;gt;);&lt;br /&gt;
&lt;br /&gt;
==Description==&lt;br /&gt;
Converts the value to a string and escapes special characters so that it's &lt;br /&gt;
safe to use in query_sql(). Returns the escaped form of the given value.&lt;br /&gt;
&lt;br /&gt;
==Examples==&lt;br /&gt;
	[[set]] .@str$, &amp;quot;John's Laptop&amp;quot;;&lt;br /&gt;
	[[set]] .@esc_str$, [[escape_sql]](.@name$); // Escaped string: John\'s Laptop&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
* [[query_sql]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category:Script Command]]&lt;/div&gt;</summary>
		<author><name>Neqste</name></author>	</entry>

	<entry>
		<id>https://wiki.herc.ws/wiki/Query_sql</id>
		<title>Query sql</title>
		<link rel="alternate" type="text/html" href="https://wiki.herc.ws/wiki/Query_sql"/>
				<updated>2013-06-24T10:21:54Z</updated>
		
		<summary type="html">&lt;p&gt;Neqste: Created page with &amp;quot;==Syntax== *'''query_sql'''(&amp;quot;your MySQL query&amp;quot;{, &amp;lt;array variable&amp;gt;{, &amp;lt;array variable&amp;gt;{, ...}}}); *'''query_logsql'''(&amp;quot;your MySQL query&amp;quot;{, &amp;lt;array variable&amp;gt;{, &amp;lt;array variable&amp;gt;{, ...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Syntax==&lt;br /&gt;
*'''query_sql'''(&amp;quot;your MySQL query&amp;quot;{, &amp;lt;array variable&amp;gt;{, &amp;lt;array variable&amp;gt;{, ...}}});&lt;br /&gt;
*'''query_logsql'''(&amp;quot;your MySQL query&amp;quot;{, &amp;lt;array variable&amp;gt;{, &amp;lt;array variable&amp;gt;{, ...}}});&lt;br /&gt;
&lt;br /&gt;
==Description==&lt;br /&gt;
Executes an SQL query. A 'select' query can fill array variables with up &lt;br /&gt;
to 128 rows of values, and will return the number of rows (the array size).&lt;br /&gt;
&lt;br /&gt;
Note that 'query_sql' runs on the main database while 'query_logsql' runs &lt;br /&gt;
on the log database.&lt;br /&gt;
&lt;br /&gt;
==Examples==&lt;br /&gt;
    [[set]] @nb, [[query_sql]](&amp;quot;select name,fame from `char` ORDER BY fame DESC LIMIT 5&amp;quot;, @name$, @fame);&lt;br /&gt;
    [[mes]] &amp;quot;Hall Of Fame: TOP5&amp;quot;;&lt;br /&gt;
    [[mes]] &amp;quot;1.&amp;quot;+@name$[0]+&amp;quot;(&amp;quot;+@fame[0]+&amp;quot;)&amp;quot;; // Will return a person with the biggest fame value.&lt;br /&gt;
    [[mes]] &amp;quot;2.&amp;quot;+@name$[1]+&amp;quot;(&amp;quot;+@fame[1]+&amp;quot;)&amp;quot;;&lt;br /&gt;
    [[mes]] &amp;quot;3.&amp;quot;+@name$[2]+&amp;quot;(&amp;quot;+@fame[2]+&amp;quot;)&amp;quot;;&lt;br /&gt;
    [[mes]] &amp;quot;4.&amp;quot;+@name$[3]+&amp;quot;(&amp;quot;+@fame[3]+&amp;quot;)&amp;quot;;&lt;br /&gt;
    [[mes]] &amp;quot;5.&amp;quot;+@name$[4]+&amp;quot;(&amp;quot;+@fame[4]+&amp;quot;)&amp;quot;;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
* http://dev.mysql.com/doc/refman/5.6/en/&lt;br /&gt;
* [[escape_sql]];&lt;br /&gt;
&lt;br /&gt;
[[Category:Script Command]]&lt;/div&gt;</summary>
		<author><name>Neqste</name></author>	</entry>

	<entry>
		<id>https://wiki.herc.ws/wiki/Getusers</id>
		<title>Getusers</title>
		<link rel="alternate" type="text/html" href="https://wiki.herc.ws/wiki/Getusers"/>
				<updated>2013-06-24T09:08:20Z</updated>
		
		<summary type="html">&lt;p&gt;Neqste: /* Syntax */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=Syntax=&lt;br /&gt;
*[[getusers]](&amp;lt;type&amp;gt;)&lt;br /&gt;
&lt;br /&gt;
=Description=&lt;br /&gt;
This function will return a number of users on a map or the whole server. What &lt;br /&gt;
it returns is specified by Type.&lt;br /&gt;
&lt;br /&gt;
Type can be one of the following values, which control what will be returned:&lt;br /&gt;
&lt;br /&gt;
    0 - Count of all characters on the map of the invoking character.&lt;br /&gt;
    1 - Count of all characters in the entire server.&lt;br /&gt;
    8 - Count of all characters on the map of the NPC the script is&lt;br /&gt;
        running in.&lt;br /&gt;
=Example=&lt;br /&gt;
&lt;br /&gt;
    [[mes]] getusers(1)+&amp;quot; players on the server&amp;quot;;&lt;br /&gt;
    [[close]];&lt;br /&gt;
&lt;br /&gt;
=See Also=&lt;br /&gt;
*[[getmapusers]];&lt;br /&gt;
*[[getareausers]];&lt;/div&gt;</summary>
		<author><name>Neqste</name></author>	</entry>

	<entry>
		<id>https://wiki.herc.ws/wiki/Getusers</id>
		<title>Getusers</title>
		<link rel="alternate" type="text/html" href="https://wiki.herc.ws/wiki/Getusers"/>
				<updated>2013-06-24T09:08:08Z</updated>
		
		<summary type="html">&lt;p&gt;Neqste: /* See Also */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=Syntax=&lt;br /&gt;
:[[getusers]](&amp;lt;type&amp;gt;)&lt;br /&gt;
=Description=&lt;br /&gt;
This function will return a number of users on a map or the whole server. What &lt;br /&gt;
it returns is specified by Type.&lt;br /&gt;
&lt;br /&gt;
Type can be one of the following values, which control what will be returned:&lt;br /&gt;
&lt;br /&gt;
    0 - Count of all characters on the map of the invoking character.&lt;br /&gt;
    1 - Count of all characters in the entire server.&lt;br /&gt;
    8 - Count of all characters on the map of the NPC the script is&lt;br /&gt;
        running in.&lt;br /&gt;
=Example=&lt;br /&gt;
&lt;br /&gt;
    [[mes]] getusers(1)+&amp;quot; players on the server&amp;quot;;&lt;br /&gt;
    [[close]];&lt;br /&gt;
&lt;br /&gt;
=See Also=&lt;br /&gt;
*[[getmapusers]];&lt;br /&gt;
*[[getareausers]];&lt;/div&gt;</summary>
		<author><name>Neqste</name></author>	</entry>

	<entry>
		<id>https://wiki.herc.ws/wiki/Getguildname</id>
		<title>Getguildname</title>
		<link rel="alternate" type="text/html" href="https://wiki.herc.ws/wiki/Getguildname"/>
				<updated>2013-06-24T09:07:20Z</updated>
		
		<summary type="html">&lt;p&gt;Neqste: Created page with &amp;quot;==Syntax== *getguildname(&amp;lt;guild id&amp;gt;)  ==Description== This function returns a guild's name given an ID number. If there is no such  guild, &amp;quot;null&amp;quot; will be returned;  This is us...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Syntax==&lt;br /&gt;
*getguildname(&amp;lt;guild id&amp;gt;)&lt;br /&gt;
&lt;br /&gt;
==Description==&lt;br /&gt;
This function returns a guild's name given an ID number. If there is no such &lt;br /&gt;
guild, &amp;quot;null&amp;quot; will be returned;&lt;br /&gt;
&lt;br /&gt;
This is used all over the WoE controlling scripts. You could also use it for a &lt;br /&gt;
guild-based event.&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
   // Would print what ever guild 10007 is, in my case this would return &amp;quot;AlcoROhics&amp;quot;&lt;br /&gt;
   mes &amp;quot;The guild &amp;quot;+GetGuildName(10007)+&amp;quot; are all nice people.&amp;quot;;&lt;br /&gt;
&lt;br /&gt;
   // This will do the same as above:&lt;br /&gt;
   set @var,10007;&lt;br /&gt;
   mes &amp;quot;We have some friends in &amp;quot;+GetGuildName(@var)+&amp;quot;, you know.&amp;quot;;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
*[[getguildmaster]]&lt;br /&gt;
[[Category:Script Command]]&lt;/div&gt;</summary>
		<author><name>Neqste</name></author>	</entry>

	<entry>
		<id>https://wiki.herc.ws/wiki/Getareausers</id>
		<title>Getareausers</title>
		<link rel="alternate" type="text/html" href="https://wiki.herc.ws/wiki/Getareausers"/>
				<updated>2013-06-24T09:04:17Z</updated>
		
		<summary type="html">&lt;p&gt;Neqste: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Syntax ==&lt;br /&gt;
* getareausers(&amp;quot;&amp;lt;map name&amp;gt;&amp;quot;,&amp;lt;x1&amp;gt;,&amp;lt;y1&amp;gt;,&amp;lt;x2&amp;gt;,&amp;lt;y2&amp;gt;)&lt;br /&gt;
&lt;br /&gt;
== Description ==&lt;br /&gt;
This function will return the count of connected characters which are located &lt;br /&gt;
within the specified area - an x1/y1-x2/y2 square on the specified map.&lt;br /&gt;
&lt;br /&gt;
This is useful for maps that are split into many buildings, such as all the &lt;br /&gt;
&amp;quot;*_in&amp;quot; maps, due to all the shops and houses.&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
*[[getmapusers;]]&lt;br /&gt;
*[[getareausers;]]&lt;br /&gt;
[[Category:Script Command]]&lt;/div&gt;</summary>
		<author><name>Neqste</name></author>	</entry>

	<entry>
		<id>https://wiki.herc.ws/wiki/Getusers</id>
		<title>Getusers</title>
		<link rel="alternate" type="text/html" href="https://wiki.herc.ws/wiki/Getusers"/>
				<updated>2013-06-24T09:01:29Z</updated>
		
		<summary type="html">&lt;p&gt;Neqste: Created page with &amp;quot;=Syntax= :getusers(&amp;lt;type&amp;gt;) =Description= This function will return a number of users on a map or the whole server. What  it returns is specified by Type.  Type can be one ...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=Syntax=&lt;br /&gt;
:[[getusers]](&amp;lt;type&amp;gt;)&lt;br /&gt;
=Description=&lt;br /&gt;
This function will return a number of users on a map or the whole server. What &lt;br /&gt;
it returns is specified by Type.&lt;br /&gt;
&lt;br /&gt;
Type can be one of the following values, which control what will be returned:&lt;br /&gt;
&lt;br /&gt;
    0 - Count of all characters on the map of the invoking character.&lt;br /&gt;
    1 - Count of all characters in the entire server.&lt;br /&gt;
    8 - Count of all characters on the map of the NPC the script is&lt;br /&gt;
        running in.&lt;br /&gt;
=Example=&lt;br /&gt;
&lt;br /&gt;
    [[mes]] getusers(1)+&amp;quot; players on the server&amp;quot;;&lt;br /&gt;
    [[close]];&lt;br /&gt;
&lt;br /&gt;
=See Also=&lt;br /&gt;
:[[getmapusers]];&lt;br /&gt;
:[[getareausers]];&lt;/div&gt;</summary>
		<author><name>Neqste</name></author>	</entry>

	<entry>
		<id>https://wiki.herc.ws/wiki/Getmapusers</id>
		<title>Getmapusers</title>
		<link rel="alternate" type="text/html" href="https://wiki.herc.ws/wiki/Getmapusers"/>
				<updated>2013-06-24T08:55:58Z</updated>
		
		<summary type="html">&lt;p&gt;Neqste: Created page with &amp;quot;=Syntax= getmapusers  (&amp;quot;&amp;lt;map name&amp;gt;&amp;quot;) =Description= Returns the amount of persons from the given guild that are on the given map. =Example= &amp;lt;pre&amp;gt; //Will set the @persons va...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=Syntax=&lt;br /&gt;
[[getmapusers]]  (&amp;quot;&amp;lt;map name&amp;gt;&amp;quot;)&lt;br /&gt;
=Description=&lt;br /&gt;
Returns the amount of persons from the given guild that are on the given map.&lt;br /&gt;
=Example=&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
//Will set the @persons variable to the amount of persons from the guild&lt;br /&gt;
//which ID's = 10 and are at prontera.&lt;br /&gt;
  set @persons,getMapGuildUsers(&amp;quot;prontera&amp;quot;,10);&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Neqste</name></author>	</entry>

	<entry>
		<id>https://wiki.herc.ws/wiki/Category:Installation</id>
		<title>Category:Installation</title>
		<link rel="alternate" type="text/html" href="https://wiki.herc.ws/wiki/Category:Installation"/>
				<updated>2013-06-23T19:16:32Z</updated>
		
		<summary type="html">&lt;p&gt;Neqste: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This category is used as a place for all pages covering installation of Hercules or its dependancies to be found. If you want to include a page here, and it covers installation of rAthena in any way, shape or form, or one of it's major dependancies, such as SQL or possibly SVN, tag it with the following:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;[[Category:Installation]]&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Please do not create duplicate articles. Thank you.&lt;/div&gt;</summary>
		<author><name>Neqste</name></author>	</entry>

	<entry>
		<id>https://wiki.herc.ws/wiki/Setarray</id>
		<title>Setarray</title>
		<link rel="alternate" type="text/html" href="https://wiki.herc.ws/wiki/Setarray"/>
				<updated>2013-06-23T19:09:10Z</updated>
		
		<summary type="html">&lt;p&gt;Neqste: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:Script_Command]]&lt;br /&gt;
==Syntax==&lt;br /&gt;
* [[setarray]] &amp;lt;array name&amp;gt;[&amp;lt;first value&amp;gt;],&amp;lt;value&amp;gt;{,&amp;lt;value&amp;gt;...&amp;lt;value&amp;gt;};&lt;br /&gt;
==Description==&lt;br /&gt;
This command will allow you to quickly fill up an array in one go. Check the &lt;br /&gt;
Kafra scripts in the distribution to see this used a lot.&lt;br /&gt;
&lt;br /&gt;
First value is the index of the first element of the array to alter.&lt;br /&gt;
==Examples==&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
    [[setarray]] .@array[0],200,200,200;&lt;br /&gt;
    [[setarray]] .@array[1],300,150;&lt;br /&gt;
    // will produce:&lt;br /&gt;
    // .@array[0]=200&lt;br /&gt;
    // .@array[1]=300&lt;br /&gt;
    // .@array[2]=150&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==String Array==&lt;br /&gt;
 [[setarray]] @array$[0],&amp;quot;word1&amp;quot;,&amp;quot;word2&amp;quot;,&amp;quot;word3&amp;quot;,&amp;quot;word4&amp;quot;;&lt;br /&gt;
 // will produce:&lt;br /&gt;
 // @array$[0] = word1&lt;br /&gt;
 // @array$[1] = word2&lt;br /&gt;
 // @array$[2] = word3&lt;br /&gt;
 // @array$[3] = word4&lt;br /&gt;
&lt;br /&gt;
 // Example&lt;br /&gt;
  [[setarray]] .@maps$[0],&amp;quot;guild_vs1&amp;quot;,&amp;quot;guild_vs2&amp;quot;;&lt;br /&gt;
  [[if]](class &amp;lt; 10) {[[warp]] .@maps$[1],0,0; }&lt;br /&gt;
  [[if]](class &amp;gt; 10) {[[warp]] .@maps$[2],0,0; }&lt;/div&gt;</summary>
		<author><name>Neqste</name></author>	</entry>

	<entry>
		<id>https://wiki.herc.ws/wiki/Switch</id>
		<title>Switch</title>
		<link rel="alternate" type="text/html" href="https://wiki.herc.ws/wiki/Switch"/>
				<updated>2013-06-23T19:02:58Z</updated>
		
		<summary type="html">&lt;p&gt;Neqste: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Syntax ==&lt;br /&gt;
* [[switch]](&amp;lt;expression&amp;gt;);&lt;br /&gt;
== Description ==&lt;br /&gt;
The switch statement is similar to a series of [[if]] statements on the same expression. In many occasions, you may want to compare the same variable (or expression) with many different values, and execute a different piece of code depending on which value it equals to. This is exactly what the [[switch]] statement is for. &lt;br /&gt;
&lt;br /&gt;
It is important to understand how the [[switch]] statement is executed in order to avoid mistakes. The [[switch]] statement executes line by line (actually, statement by statement). In the beginning, no code is executed. Only when a [[case]] statement is found with a value that matches the value of the switch expression the [[case]] statement(s) will to executed. The parser continues to execute the statements until the end of the [[switch]] block, or the first time it sees a [[break]] statement. If you don't write a [[break]] statement at the end of a [[case]]'s statement list, the parser will go on executing the statements of the following [[case]] (fall-through). &lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
 // Returns the number of refines on your top headgear&lt;br /&gt;
 [[set]](.@refCount, [[getequiprefinerycnt]](EQI_HEAD_TOP));&lt;br /&gt;
 // Output a message&lt;br /&gt;
 [[switch]](.@refCount) {&lt;br /&gt;
 	// 0 means no refine yet&lt;br /&gt;
 	[[case]] 0:&lt;br /&gt;
 		[[mes]](&amp;quot;No refine on your top headgear yet?&amp;quot;);&lt;br /&gt;
 		[[mes]](&amp;quot;You need to go to the refiner!&amp;quot;);&lt;br /&gt;
 		[[break]];&lt;br /&gt;
 &lt;br /&gt;
 	// +1&lt;br /&gt;
 	[[case]] 1:&lt;br /&gt;
 		[[mes]](&amp;quot;Your top headgear is +1!&amp;quot;);&lt;br /&gt;
 		[[break]];&lt;br /&gt;
 	// +2&lt;br /&gt;
 	[[case]] 2:&lt;br /&gt;
 		[[mes]](&amp;quot;Your top headgear is +2!&amp;quot;);&lt;br /&gt;
 		[[break]];&lt;br /&gt;
 &lt;br /&gt;
 	// +3&lt;br /&gt;
 	[[case]] 3:&lt;br /&gt;
 		[[mes]](&amp;quot;Your top headgear is +3!&amp;quot;);&lt;br /&gt;
 		[[break]];&lt;br /&gt;
 &lt;br /&gt;
 	// +4&lt;br /&gt;
 	[[case]] 4:&lt;br /&gt;
 		[[mes]](&amp;quot;Your top headgear is +4!&amp;quot;);&lt;br /&gt;
 		// NOTE: no break here means the code from &amp;quot;case 5&amp;quot; will be executed afterwards!&lt;br /&gt;
 	&lt;br /&gt;
 	// +5&lt;br /&gt;
 	[[case]] 5:&lt;br /&gt;
 		[[mes]](&amp;quot;Your top headgear is +5!&amp;quot;);&lt;br /&gt;
 		[[break]];&lt;br /&gt;
 &lt;br /&gt;
 	// [...]&lt;br /&gt;
 &lt;br /&gt;
 	// This case will be triggered if no other case was triggered yet&lt;br /&gt;
 	[[default]]:&lt;br /&gt;
 		[[mes]](&amp;quot;Your top headgear has upgrades above +5!&amp;quot;);&lt;br /&gt;
 		[[break]];&lt;br /&gt;
 }&lt;br /&gt;
&lt;br /&gt;
== Next Example == &lt;br /&gt;
 [[switch]]([[rand]](1,3)) {&lt;br /&gt;
 	[[case]] 1:&lt;br /&gt;
  		[[mes]] &amp;quot;Randomly Selected Number is 1&amp;quot;;&lt;br /&gt;
  		[[break]];&lt;br /&gt;
 	[[case]] 2:&lt;br /&gt;
  		[[mes]] &amp;quot;Randomly Selected Number is 2&amp;quot;;&lt;br /&gt;
  		[[break]];&lt;br /&gt;
 	[[case]] 3:&lt;br /&gt;
  		[[mes]] &amp;quot;Randomly Selected Number is 3&amp;quot;;&lt;br /&gt;
  		[[break]];&lt;br /&gt;
  }&lt;br /&gt;
&lt;br /&gt;
== Next Example == &lt;br /&gt;
 [[switch]]([[select]](&amp;quot;Menu 1:Menu 2:Menu 3&amp;quot;)) { &lt;br /&gt;
       case 1: &lt;br /&gt;
         [[mes]] &amp;quot;Menu 1 message&amp;quot;;&lt;br /&gt;
         [[close]]; &lt;br /&gt;
         [[break]];&lt;br /&gt;
       case 2: &lt;br /&gt;
         [[mes]] &amp;quot;Menu 2 message&amp;quot;;&lt;br /&gt;
         [[close]]; &lt;br /&gt;
         [[break]];&lt;br /&gt;
       case 3: &lt;br /&gt;
         [[mes]] &amp;quot;Menu 3 message&amp;quot;;&lt;br /&gt;
         [[close]]; &lt;br /&gt;
         [[break]];&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
[[Category:Script Command]]&lt;/div&gt;</summary>
		<author><name>Neqste</name></author>	</entry>

	<entry>
		<id>https://wiki.herc.ws/wiki/Getcharid</id>
		<title>Getcharid</title>
		<link rel="alternate" type="text/html" href="https://wiki.herc.ws/wiki/Getcharid"/>
				<updated>2013-06-23T18:58:41Z</updated>
		
		<summary type="html">&lt;p&gt;Neqste: /* Examples */&lt;/p&gt;
&lt;hr /&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;br /&gt;
&lt;br /&gt;
// This code will get charid from not attached player, if he is online (useful in dialogues)&lt;br /&gt;
input .@charname$;&lt;br /&gt;
  if (getcharid(.@charname$,0)&amp;gt;0) { do something } // if player online&lt;/div&gt;</summary>
		<author><name>Neqste</name></author>	</entry>

	</feed>