<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://wiki.bebot.link/index.php?action=history&amp;feed=atom&amp;title=Core_Functions</id>
	<title>Core Functions - Revision history</title>
	<link rel="self" type="application/atom+xml" href="http://wiki.bebot.link/index.php?action=history&amp;feed=atom&amp;title=Core_Functions"/>
	<link rel="alternate" type="text/html" href="http://wiki.bebot.link/index.php?title=Core_Functions&amp;action=history"/>
	<updated>2026-05-25T22:45:28Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.35.1</generator>
	<entry>
		<id>http://wiki.bebot.link/index.php?title=Core_Functions&amp;diff=92&amp;oldid=prev</id>
		<title>B3b0tUzR: Created page with &#039;====== Functions and Interfaces provided by default core modules. ======  ====== Main Modules ====== Modules in the Main section are required for BeBot functionality. They are lo…&#039;</title>
		<link rel="alternate" type="text/html" href="http://wiki.bebot.link/index.php?title=Core_Functions&amp;diff=92&amp;oldid=prev"/>
		<updated>2020-09-16T22:43:21Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;#039;====== Functions and Interfaces provided by default core modules. ======  ====== Main Modules ====== Modules in the Main section are required for BeBot functionality. They are lo…&amp;#039;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;====== Functions and Interfaces provided by default core modules. ======&lt;br /&gt;
&lt;br /&gt;
====== Main Modules ======&lt;br /&gt;
Modules in the Main section are required for BeBot functionality. They are loaded before any other modules, and are loaded in a specific order. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===== security =====&lt;br /&gt;
**File Path:** main/03_Security.php \\ &lt;br /&gt;
**Reference:** &amp;lt;code php&amp;gt;$this -&amp;gt; bot -&amp;gt; core(&amp;quot;security&amp;quot;)&amp;lt;/code&amp;gt; &lt;br /&gt;
----&lt;br /&gt;
==== check_access ====&lt;br /&gt;
=== Description ===&lt;br /&gt;
bool **check_access** ( __string__ $character, __string__ $access_level ) \\&lt;br /&gt;
Check to see if $character meets or exceeds $access_level.&lt;br /&gt;
=== Parameters ===&lt;br /&gt;
== character ==&lt;br /&gt;
The name of the character an access check is being performed on.  &lt;br /&gt;
== access_level ==&lt;br /&gt;
The access level to check against. BANNED((Checking for banned users should be done with the is_banned() function.)), ANONYMOUS, GUEST, MAMEBER, LEADER, ADMIN, SUPERADMIN, OWNER. &lt;br /&gt;
=== Return Values ===&lt;br /&gt;
TRUE if the character meets or exceeds the give access level, otherwise false. &lt;br /&gt;
=== Examples ===&lt;br /&gt;
&amp;lt;code php&amp;gt;&lt;br /&gt;
if ($this -&amp;gt; bot -&amp;gt; core(&amp;quot;security&amp;quot;) -&amp;gt; check_access(&amp;quot;Glarawyn&amp;quot;, &amp;quot;MEMBER&amp;quot;))&lt;br /&gt;
{&lt;br /&gt;
    print_r(&amp;quot;You access level is at least MEMBER!&amp;quot;);&lt;br /&gt;
}&lt;br /&gt;
else&lt;br /&gt;
{&lt;br /&gt;
    print_r(&amp;quot;Your access level is lower than MEMBER!&amp;quot;);&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/code&amp;gt; &lt;br /&gt;
=== See Also ===&lt;br /&gt;
  * [[#is_banned|is_banned()]]&lt;br /&gt;
  &lt;br /&gt;
----&lt;br /&gt;
==== is_banned ====&lt;br /&gt;
=== Description ===&lt;br /&gt;
bool **is_banned** ( __string__ $character ) \\&lt;br /&gt;
Check to see if $character is banned. &lt;br /&gt;
=== Parameters ===&lt;br /&gt;
== character ==&lt;br /&gt;
The name of the character an access check is being performed on. &lt;br /&gt;
=== Return Values ===&lt;br /&gt;
TRUE if the character is banned, otherwise false. &lt;br /&gt;
=== Examples ===&lt;br /&gt;
&amp;lt;code php&amp;gt;&lt;br /&gt;
if ($this -&amp;gt; bot -&amp;gt; core(&amp;quot;security&amp;quot;) -&amp;gt; is_banned(&amp;quot;Glarawyn&amp;quot;))&lt;br /&gt;
{&lt;br /&gt;
    print_r(&amp;quot;You are banned!&amp;quot;);&lt;br /&gt;
}&lt;br /&gt;
else&lt;br /&gt;
{&lt;br /&gt;
    print_r(&amp;quot;You are not banned!&amp;quot;);&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/code&amp;gt; &lt;br /&gt;
=== See Also ===&lt;br /&gt;
  * [[#check_access|check_access()]]&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
===== maintenance =====&lt;br /&gt;
**File Path:** main/05_Maintenance.php&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===== prefs =====&lt;br /&gt;
**File Path:** main/06_Preferences.php&lt;br /&gt;
&amp;lt;code php&amp;gt;&lt;br /&gt;
$this -&amp;gt; bot -&amp;gt; core(&amp;quot;prefs&amp;quot;)&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
==== create ====&lt;br /&gt;
=== Description ===&lt;br /&gt;
datatype **create** ( __string__ $module, __string__ $name, __string__ $description, __mixed__ $default, __mixed__ $possible_values) \\&lt;br /&gt;
Creates a new preference definition.&lt;br /&gt;
=== Parameters ===&lt;br /&gt;
== module ==&lt;br /&gt;
Name of the module the preference is for.&lt;br /&gt;
== name ==&lt;br /&gt;
Name of the preference.&lt;br /&gt;
== description ==&lt;br /&gt;
Description of the preference.&lt;br /&gt;
== default ==&lt;br /&gt;
Default value of the preference.&lt;br /&gt;
== possible_values == &lt;br /&gt;
List/Array/Something of possible values for the preference. &lt;br /&gt;
=== Return Values ===&lt;br /&gt;
This function does not return anything. &lt;br /&gt;
=== Examples ===&lt;br /&gt;
&amp;lt;code php&amp;gt;&lt;br /&gt;
/*&lt;br /&gt;
* Enter some Example Code&lt;br /&gt;
*/&lt;br /&gt;
&amp;lt;/code&amp;gt; &lt;br /&gt;
=== See Also ===&lt;br /&gt;
&amp;lt;nowiki&amp;gt;&lt;br /&gt;
  * [[#other_function_name|other_function_name()]]&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
==== get ====&lt;br /&gt;
=== Description ===&lt;br /&gt;
array **get** ( __mixed__ $name, __mixed__ $module=false, __mixed__ $setting=false ) \\&lt;br /&gt;
Retrieve preferences for a user. If only name is give, all preferences for the user will be returned. If name and module are given, all the user&amp;#039;s preferences for that module will be returned. If name, module, and setting are given, only the specific preference will be returned. &lt;br /&gt;
=== Parameters ===&lt;br /&gt;
== name ==&lt;br /&gt;
Character name or UID of the player we want to retrieve preferences for.&lt;br /&gt;
== module ==&lt;br /&gt;
Name of the module to retrieve preferences for.&lt;br /&gt;
== setting ==&lt;br /&gt;
=== Return Values ===&lt;br /&gt;
What does this function return.&lt;br /&gt;
=== Examples ===&lt;br /&gt;
&amp;lt;code php&amp;gt;&lt;br /&gt;
/*&lt;br /&gt;
* Enter some Example Code&lt;br /&gt;
*/&lt;br /&gt;
&amp;lt;/code&amp;gt; &lt;br /&gt;
=== See Also ===&lt;br /&gt;
&amp;lt;nowiki&amp;gt;&lt;br /&gt;
  * [[#other_function_name|other_function_name()]]&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
==== change ====&lt;br /&gt;
=== Description ===&lt;br /&gt;
string **change** ( __mixed__ $name, __string__ $module, __string__ $setting, __mixed__ $value ) \\&lt;br /&gt;
Changes a preference value. &lt;br /&gt;
=== Parameters ===&lt;br /&gt;
== name ==&lt;br /&gt;
Character name or UID of the user to change a preference for.&lt;br /&gt;
== module ==&lt;br /&gt;
Name of the module where the preference exists.&lt;br /&gt;
== setting ==&lt;br /&gt;
Name of the preference to be changed.&lt;br /&gt;
== value ==&lt;br /&gt;
New value for the preference. &lt;br /&gt;
&lt;br /&gt;
=== Return Values ===&lt;br /&gt;
  * Preference for $name, {$module}-&amp;gt;{$setting} was already set to &amp;#039;$value&amp;#039;. Nothing changed.&lt;br /&gt;
  * Preferences for $name, {$module}-&amp;gt;{$setting} reset to default value &amp;#039;$value&amp;#039;&lt;br /&gt;
  * Preference was created for $name, {$module}-&amp;gt;{$setting} = $value&lt;br /&gt;
  * Preferences for $name, {$module}-&amp;gt;{$setting} changed to &amp;#039;$value&amp;#039;&lt;br /&gt;
=== Examples ===&lt;br /&gt;
&amp;lt;code php&amp;gt;&lt;br /&gt;
/*&lt;br /&gt;
* Enter some Example Code&lt;br /&gt;
*/&lt;br /&gt;
&amp;lt;/code&amp;gt; &lt;br /&gt;
=== See Also ===&lt;br /&gt;
&amp;lt;nowiki&amp;gt;&lt;br /&gt;
  * [[#other_change|other_change()]]&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
==== change_default ====&lt;br /&gt;
=== Description ===&lt;br /&gt;
datatype **change_default** ( __string__ $name, __string__ $module, __string__ $setting, __mixed__ $value ) \\&lt;br /&gt;
Changes the default value of a preference.&lt;br /&gt;
=== Parameters ===&lt;br /&gt;
== name ==&lt;br /&gt;
Name of the person changing the default value. &lt;br /&gt;
== module ==&lt;br /&gt;
Name of the module the preference exists under.&lt;br /&gt;
== setting ==&lt;br /&gt;
Name of the preference.&lt;br /&gt;
== value ==&lt;br /&gt;
New default value for the preference.&lt;br /&gt;
=== Return Values ===&lt;br /&gt;
  * The default value for {$module}-&amp;gt;{$setting} has been set to &amp;#039;$value&amp;#039;.&lt;br /&gt;
=== Examples ===&lt;br /&gt;
&amp;lt;code php&amp;gt;&lt;br /&gt;
/*&lt;br /&gt;
* Enter some Example Code&lt;br /&gt;
*/&lt;br /&gt;
&amp;lt;/code&amp;gt; &lt;br /&gt;
=== See Also ===&lt;br /&gt;
&amp;lt;nowiki&amp;gt;&lt;br /&gt;
  * [[#other_change_default|other_change_default()]]&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
==== exists ====&lt;br /&gt;
=== Description ===&lt;br /&gt;
datatype **exists** ( __string__ $module, __string__ $setting ) \\&lt;br /&gt;
Check to see if a preference exists.&lt;br /&gt;
=== Parameters ===&lt;br /&gt;
== module ==&lt;br /&gt;
Name of the module.&lt;br /&gt;
== variable2 ==&lt;br /&gt;
Name of the preference.&lt;br /&gt;
=== Return Values ===&lt;br /&gt;
TRUE if the preference exists, otherwise false. &lt;br /&gt;
=== Examples ===&lt;br /&gt;
&amp;lt;code php&amp;gt;&lt;br /&gt;
/*&lt;br /&gt;
* Enter some Example Code&lt;br /&gt;
*/&lt;br /&gt;
&amp;lt;/code&amp;gt; &lt;br /&gt;
=== See Also ===&lt;br /&gt;
&amp;lt;nowiki&amp;gt;&lt;br /&gt;
  * [[#other_exists|other_exists()]]&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===== settings =====&lt;br /&gt;
**File Path:** main/06_Settings.php&lt;br /&gt;
&amp;lt;code php&amp;gt;&lt;br /&gt;
$this -&amp;gt; bot -&amp;gt; core(&amp;quot;settings&amp;quot;)&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
==== exists ====&lt;br /&gt;
=== Description ===&lt;br /&gt;
bool **function_name** ( __string__ $module, __string__ $setting ) \\&lt;br /&gt;
Checks if a setting exists. &lt;br /&gt;
=== Parameters ===&lt;br /&gt;
== module ==&lt;br /&gt;
Name of the group/module.&lt;br /&gt;
== setting ==&lt;br /&gt;
Name of the setting.&lt;br /&gt;
=== Return Values ===&lt;br /&gt;
True if the setting exists, otherwise false. &lt;br /&gt;
=== Examples ===&lt;br /&gt;
&amp;lt;code php&amp;gt;&lt;br /&gt;
/*&lt;br /&gt;
* Enter some Example Code&lt;br /&gt;
*/&lt;br /&gt;
&amp;lt;/code&amp;gt; &lt;br /&gt;
=== See Also ===&lt;br /&gt;
&amp;lt;nowiki&amp;gt;&lt;br /&gt;
  * [[#other_function_name|other_function_name()]]&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
==== get ====&lt;br /&gt;
=== Description ===&lt;br /&gt;
mixed **get** ( __string__ $module, __string__ $setting ) \\&lt;br /&gt;
Retrives a setting from the database.&lt;br /&gt;
=== Parameters ===&lt;br /&gt;
== module ==&lt;br /&gt;
Name of the group/module.&lt;br /&gt;
== setting ==&lt;br /&gt;
Name of the setting.&lt;br /&gt;
=== Return Values ===&lt;br /&gt;
=== Return Values ===&lt;br /&gt;
Returns the value of the specified setting. &lt;br /&gt;
=== Examples ===&lt;br /&gt;
&amp;lt;code php&amp;gt;&lt;br /&gt;
/*&lt;br /&gt;
* Enter some Example Code&lt;br /&gt;
*/&lt;br /&gt;
&amp;lt;/code&amp;gt; &lt;br /&gt;
=== See Also ===&lt;br /&gt;
&amp;lt;nowiki&amp;gt;&lt;br /&gt;
  * [[#other_function_name|other_function_name()]]&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
==== create ====&lt;br /&gt;
=== Description ===&lt;br /&gt;
datatype **create** ( __string__ $module, __string__ $setting, __mixed__ $value, __string__ $longdesc, __string__ $defaultoptions=&amp;quot;&amp;quot;, __bool__ $hidden=FALSE, __int__ $disporder=1 ) \\&lt;br /&gt;
Creates a new or Updates an existing setting in the database.&lt;br /&gt;
=== Parameters ===&lt;br /&gt;
== module ==&lt;br /&gt;
Name of the settings group/module.&lt;br /&gt;
== setting ==&lt;br /&gt;
Name of the setting.&lt;br /&gt;
== value ==&lt;br /&gt;
Default value of the setting.&lt;br /&gt;
== longdesc ==&lt;br /&gt;
Description of the setting.&lt;br /&gt;
== defaultoptions ==&lt;br /&gt;
Semicolon (;) seperated list of options to display in the settings interface.&lt;br /&gt;
== hidden ==&lt;br /&gt;
If set to true, the setting will be hidden from the settings interface.&lt;br /&gt;
== disporder ==&lt;br /&gt;
Set the display order of the setting in the settings interface. By default settings are displayed alphabetically. This can override that.&lt;br /&gt;
=== Return Values ===&lt;br /&gt;
Returns an error array. &lt;br /&gt;
=== Examples ===&lt;br /&gt;
&amp;lt;code php&amp;gt;&lt;br /&gt;
/*&lt;br /&gt;
* Enter some Example Code&lt;br /&gt;
*/&lt;br /&gt;
&amp;lt;/code&amp;gt; &lt;br /&gt;
=== See Also ===&lt;br /&gt;
&amp;lt;nowiki&amp;gt;&lt;br /&gt;
  * [[#other_function_name|other_function_name()]]&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
==== del ====&lt;br /&gt;
=== Description ===&lt;br /&gt;
datatype **del** ( __string__ $module, __string__ $setting=NULL ) \\&lt;br /&gt;
Deletes a setting or group of settings from the database.&lt;br /&gt;
=== Parameters ===&lt;br /&gt;
== module ==&lt;br /&gt;
Group/Module of the setting(s) to be deleted.&lt;br /&gt;
== setting ==&lt;br /&gt;
Name of the setting to be deleted. If setting is omitted, all settings for the module will be deleted.&lt;br /&gt;
=== Return Values ===&lt;br /&gt;
Error status array. &lt;br /&gt;
=== Examples ===&lt;br /&gt;
&amp;lt;code php&amp;gt;&lt;br /&gt;
// Delete the setting named example in the setting group named TestSettings&lt;br /&gt;
$this -&amp;gt; bot -&amp;gt; core(&amp;quot;settings&amp;quot;) -&amp;gt; del(&amp;quot;TestSettings&amp;quot;, &amp;quot;Example&amp;quot;);&lt;br /&gt;
// Delete all settings in the group named TestSettings&lt;br /&gt;
$this -&amp;gt; bot -&amp;gt; core(&amp;quot;settings&amp;quot;) -&amp;gt; del(&amp;quot;TestSettings&amp;quot;);&lt;br /&gt;
&amp;lt;/code&amp;gt; &lt;br /&gt;
=== See Also ===&lt;br /&gt;
&amp;lt;nowiki&amp;gt;&lt;br /&gt;
  * [[#other_function_name|other_function_name()]]&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
===== access_control =====&lt;br /&gt;
**File Path:** main/09_AccessControl.php&lt;br /&gt;
===== roster_core =====&lt;br /&gt;
**File Path:** main/10_Roster.php&lt;br /&gt;
===== flexible_security =====&lt;br /&gt;
**File Path:** main/11_FlexibleSecurity.php&lt;br /&gt;
===== ini =====&lt;br /&gt;
**File Path:** main/12_ConfigMagik.php&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===== tools =====&lt;br /&gt;
**File Path:** main/14_Tools.php&lt;br /&gt;
&amp;lt;code php&amp;gt;&lt;br /&gt;
$this -&amp;gt; bot -&amp;gt; core(&amp;quot;tools&amp;quot;)&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
==== chatcmd ====&lt;br /&gt;
=== Description ===&lt;br /&gt;
datatype **chatcmd** ( __string__ $link, __string__ $title [, __mixed__ $origin ] ) \\&lt;br /&gt;
This function generates chat commands in front of a link, useful for inside of a text window.&lt;br /&gt;
=== Parameters ===&lt;br /&gt;
== link ==&lt;br /&gt;
Usually the chat command without prefix. &lt;br /&gt;
== title ==&lt;br /&gt;
Title of the link. &lt;br /&gt;
== origin ==&lt;br /&gt;
Origin of the original chat command, or the desired channel for the generated chat command. &lt;br /&gt;
=== Return Values ===&lt;br /&gt;
  * &amp;lt;a href=\&amp;#039;chatcmd:///&amp;#039;.$chatcmd.$link . &amp;#039;\&amp;#039;&amp;gt;&amp;#039; . $title . &amp;#039;&amp;lt;/a&amp;gt;&lt;br /&gt;
=== Examples ===&lt;br /&gt;
&amp;lt;code php&amp;gt;&lt;br /&gt;
/*&lt;br /&gt;
* Enter some Example Code&lt;br /&gt;
*/&lt;br /&gt;
&amp;lt;/code&amp;gt; &lt;br /&gt;
=== See Also ===&lt;br /&gt;
&amp;lt;nowiki&amp;gt;&lt;br /&gt;
  * [[#other_function_name|other_function_name()]]&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
==== get_site ====&lt;br /&gt;
=== Description ===&lt;br /&gt;
string **get_site** ( __string__ $url [, __bool__ [, $strip_headers [, __int__ $server_timeout [, __int__ $read_timeout ]]]]  ) \\&lt;br /&gt;
This function returns the content of the given URL as a string. If CURL is available it will be used, otherwise will use sockets.&lt;br /&gt;
=== Parameters ===&lt;br /&gt;
== url ==&lt;br /&gt;
URL to retrive. &lt;br /&gt;
== strip_headers ==&lt;br /&gt;
Optionally strip HTTP headers from the result. Default off.&lt;br /&gt;
== server_timeout ==&lt;br /&gt;
Timeout for making a connection to the remote server. Only used for socket method. Default 25.&lt;br /&gt;
== read_timeout ==&lt;br /&gt;
Timeout for reading data from the remote server. Only used for socket method. Default 30.&lt;br /&gt;
=== Return Values ===&lt;br /&gt;
Returns the content in a string. &lt;br /&gt;
=== Examples ===&lt;br /&gt;
&amp;lt;code php&amp;gt;&lt;br /&gt;
/*&lt;br /&gt;
* Enter some Example Code&lt;br /&gt;
*/&lt;br /&gt;
&amp;lt;/code&amp;gt; &lt;br /&gt;
=== See Also ===&lt;br /&gt;
&amp;lt;nowiki&amp;gt;&lt;br /&gt;
  * [[#other_get_site|other_get_site()]]&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
==== xmlparse ====&lt;br /&gt;
=== Description ===&lt;br /&gt;
string **xmlparse** ( __string__ $xml, __string__ $tag ) \\&lt;br /&gt;
Parses XML elements.&lt;br /&gt;
=== Parameters ===&lt;br /&gt;
== xml ==&lt;br /&gt;
XML to be parsed.&lt;br /&gt;
== tag ==&lt;br /&gt;
XML tag to parse.&lt;br /&gt;
=== Return Values ===&lt;br /&gt;
Returns the content of the requested XML tag. &lt;br /&gt;
=== Examples ===&lt;br /&gt;
&amp;lt;code php&amp;gt;&lt;br /&gt;
/*&lt;br /&gt;
* Enter some Example Code&lt;br /&gt;
*/&lt;br /&gt;
&amp;lt;/code&amp;gt; &lt;br /&gt;
=== See Also ===&lt;br /&gt;
&amp;lt;nowiki&amp;gt;&lt;br /&gt;
  * [[#other_function_name|other_function_name()]]&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
==== make_blob ====&lt;br /&gt;
=== Description ===&lt;br /&gt;
string **make_blob** ( __string__ $title, __string__ $content ) \\&lt;br /&gt;
This function makes a text based click window. &lt;br /&gt;
=== Parameters ===&lt;br /&gt;
== title ==&lt;br /&gt;
Title of the click window.&lt;br /&gt;
== content ==&lt;br /&gt;
Content of the click window.&lt;br /&gt;
=== Return Values ===&lt;br /&gt;
Returns a text window string. &lt;br /&gt;
=== Examples ===&lt;br /&gt;
&amp;lt;code php&amp;gt;&lt;br /&gt;
/*&lt;br /&gt;
* Enter some Example Code&lt;br /&gt;
*/&lt;br /&gt;
&amp;lt;/code&amp;gt; &lt;br /&gt;
=== See Also ===&lt;br /&gt;
&amp;lt;nowiki&amp;gt;&lt;br /&gt;
  * [[#other_make_blob|other_make_blob()]]&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
==== make_item ====&lt;br /&gt;
=== Description ===&lt;br /&gt;
string **make_item** ( __string__ $lowid, __string__ $highid, __string__ $ql, __string__ $name [, __bool__ $alternate ] ) \\&lt;br /&gt;
Creates a text blob.&lt;br /&gt;
=== Parameters ===&lt;br /&gt;
== lowid ==&lt;br /&gt;
Low Quality Item ID for the item link.&lt;br /&gt;
== highid ==&lt;br /&gt;
High Quality Item ID for the item link.&lt;br /&gt;
== ql ==&lt;br /&gt;
Quality of the item link. &lt;br /&gt;
== name ==&lt;br /&gt;
Name of the item. &lt;br /&gt;
== alternate ==&lt;br /&gt;
Setting this to TRUE will return a link with single quotes instead of double quotes.&lt;br /&gt;
=== Return Values ===&lt;br /&gt;
Returns an item link. &lt;br /&gt;
=== Examples ===&lt;br /&gt;
&amp;lt;code php&amp;gt;&lt;br /&gt;
/*&lt;br /&gt;
* Enter some Example Code&lt;br /&gt;
*/&lt;br /&gt;
&amp;lt;/code&amp;gt; &lt;br /&gt;
=== See Also ===&lt;br /&gt;
&amp;lt;nowiki&amp;gt;&lt;br /&gt;
  * [[#other_function_name|other_function_name()]]&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
==== parse_item ====&lt;br /&gt;
=== Description ===&lt;br /&gt;
array **parse_item** ( __string__ $item ) \\&lt;br /&gt;
Takes an item string and returns an array with lowid, highid, ql and name.&lt;br /&gt;
=== Parameters ===&lt;br /&gt;
== item ==&lt;br /&gt;
Description of variable1.&lt;br /&gt;
=== Return Values ===&lt;br /&gt;
Returns an array with lowid, highid, ql and name.&lt;br /&gt;
If $item is unparsable it returns a BotError&lt;br /&gt;
=== Examples ===&lt;br /&gt;
&amp;lt;code php&amp;gt;&lt;br /&gt;
/*&lt;br /&gt;
* Enter some Example Code&lt;br /&gt;
*/&lt;br /&gt;
&amp;lt;/code&amp;gt; &lt;br /&gt;
=== See Also ===&lt;br /&gt;
&amp;lt;nowiki&amp;gt;&lt;br /&gt;
  * [[#other_function_name|other_function_name()]]&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
----	&lt;br /&gt;
	&lt;br /&gt;
==== is_item ====&lt;br /&gt;
=== Description ===&lt;br /&gt;
bool **is_item** ( __string__ $item ) \\&lt;br /&gt;
Returns true if $item is an itemref, false otherwise.&lt;br /&gt;
=== Parameters ===&lt;br /&gt;
== item ==&lt;br /&gt;
An item link. &lt;br /&gt;
=== Return Values ===&lt;br /&gt;
Returns true if $item is an itemref, false otherwise.&lt;br /&gt;
=== Examples ===&lt;br /&gt;
&amp;lt;code php&amp;gt;&lt;br /&gt;
/*&lt;br /&gt;
* Enter some Example Code&lt;br /&gt;
*/&lt;br /&gt;
&amp;lt;/code&amp;gt; &lt;br /&gt;
=== See Also ===&lt;br /&gt;
&amp;lt;nowiki&amp;gt;&lt;br /&gt;
  * [[#other_is_item|other_is_item()]]&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
==== int_to_string ====&lt;br /&gt;
=== Description ===&lt;br /&gt;
string **function_name** ( __int__ $int ) \\&lt;br /&gt;
Convert an overflowed (unsigned) integer to a string with the correct positive unsigned integer value.&lt;br /&gt;
=== Parameters ===&lt;br /&gt;
== int ==&lt;br /&gt;
Overflowed integer.&lt;br /&gt;
=== Return Values ===&lt;br /&gt;
  * String with the correct positive unsigned integer value&lt;br /&gt;
  * If the passed integer is not negative, the integer is merely passed back as a string.&lt;br /&gt;
=== Examples ===&lt;br /&gt;
&amp;lt;code php&amp;gt;&lt;br /&gt;
/*&lt;br /&gt;
* Enter some Example Code&lt;br /&gt;
*/&lt;br /&gt;
&amp;lt;/code&amp;gt; &lt;br /&gt;
=== See Also ===&lt;br /&gt;
&amp;lt;nowiki&amp;gt;&lt;br /&gt;
  * [[#other_function_name|other_function_name()]]&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
==== string_to_int ====&lt;br /&gt;
=== Description ===&lt;br /&gt;
int **string_to_int** ( __string__ $string ) \\&lt;br /&gt;
Used to convert an unsigned interger in string form to an overflowed (negative) integer.&lt;br /&gt;
=== Parameters ===&lt;br /&gt;
== string ==&lt;br /&gt;
String form of an integer. &lt;br /&gt;
=== Return Values ===&lt;br /&gt;
  * An overflowed (negative) integer.&lt;br /&gt;
  * If the passed string is not an integer large enough to overflow, the string is merely passed back as an integer.&lt;br /&gt;
=== Examples ===&lt;br /&gt;
&amp;lt;code php&amp;gt;&lt;br /&gt;
/*&lt;br /&gt;
* Enter some Example Code&lt;br /&gt;
*/&lt;br /&gt;
&amp;lt;/code&amp;gt; &lt;br /&gt;
=== See Also ===&lt;br /&gt;
&amp;lt;nowiki&amp;gt;&lt;br /&gt;
  * [[#other_function_name|other_function_name()]]&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
==== validate_player ====&lt;br /&gt;
=== Description ===&lt;br /&gt;
datatype **validate_player** ( __string__ $name [ , __bool__ $check_exists ] ) \\&lt;br /&gt;
Checks if a player name is valid and if the player exists.&lt;br /&gt;
=== Parameters ===&lt;br /&gt;
== name ==&lt;br /&gt;
Name of the player we are validating. &lt;br /&gt;
== check_exists ==&lt;br /&gt;
If set to true, the function will check to see if $name is a valid character in addition to checking if it is a valid player name. &lt;br /&gt;
=== Return Values ===&lt;br /&gt;
  * Returns BotError on failure&lt;br /&gt;
  * Returns ucfirst(strtolower($name)) if the player exists.&lt;br /&gt;
=== Examples ===&lt;br /&gt;
&amp;lt;code php&amp;gt;&lt;br /&gt;
/*&lt;br /&gt;
* Enter some Example Code&lt;br /&gt;
*/&lt;br /&gt;
&amp;lt;/code&amp;gt; &lt;br /&gt;
=== See Also ===&lt;br /&gt;
&amp;lt;nowiki&amp;gt;&lt;br /&gt;
  * [[#other_function_name|other_function_name()]]&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===== chat =====&lt;br /&gt;
**File Path:** main/15_AOChatWrapper.php&lt;br /&gt;
&amp;lt;code php&amp;gt;&lt;br /&gt;
$this -&amp;gt; bot -&amp;gt; core(&amp;quot;chat&amp;quot;)&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
==== get_uid ====&lt;br /&gt;
=== Description ===&lt;br /&gt;
string **get_uid** ( __string__ $user ) \\&lt;br /&gt;
Converts a name to user id. &lt;br /&gt;
=== Parameters ===&lt;br /&gt;
== user ==&lt;br /&gt;
Name of the character to lookup. &lt;br /&gt;
=== Return Values ===&lt;br /&gt;
Returns the UID of the requested user.&lt;br /&gt;
=== Examples ===&lt;br /&gt;
&amp;lt;code php&amp;gt;&lt;br /&gt;
/*&lt;br /&gt;
* Enter some Example Code&lt;br /&gt;
*/&lt;br /&gt;
&amp;lt;/code&amp;gt; &lt;br /&gt;
=== See Also ===&lt;br /&gt;
&amp;lt;nowiki&amp;gt;&lt;br /&gt;
  * [[#other_function_name|other_function_name()]]&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
==== get_uname ====&lt;br /&gt;
=== Description ===&lt;br /&gt;
string **get_uname** ( __string__ $user ) \\&lt;br /&gt;
Gets the character name from a UID&lt;br /&gt;
=== Parameters ===&lt;br /&gt;
== UID ==&lt;br /&gt;
UID to lookup.&lt;br /&gt;
=== Return Values ===&lt;br /&gt;
Returns a UID. &lt;br /&gt;
=== Examples ===&lt;br /&gt;
&amp;lt;code php&amp;gt;&lt;br /&gt;
/*&lt;br /&gt;
* Enter some Example Code&lt;br /&gt;
*/&lt;br /&gt;
&amp;lt;/code&amp;gt; &lt;br /&gt;
=== See Also ===&lt;br /&gt;
&amp;lt;nowiki&amp;gt;&lt;br /&gt;
  * [[#other_function_name|other_function_name()]]&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
==== buddy_add ====&lt;br /&gt;
=== Description ===&lt;br /&gt;
bool **buddy_add** ( __string__ $user [ , __bool__ $queue ] ) \\ &lt;br /&gt;
Adds $user to the bot&amp;#039;s buddy list. &lt;br /&gt;
=== Parameters ===&lt;br /&gt;
== user ==&lt;br /&gt;
Name of the character to be added.&lt;br /&gt;
== queue ==&lt;br /&gt;
Use the buddy queue (Default.) Set to FALSE if you want to bypass the queue. &lt;br /&gt;
=== Return Values ===&lt;br /&gt;
Returns TRUE on success, FALSE on failure.&lt;br /&gt;
=== Examples ===&lt;br /&gt;
&amp;lt;code php&amp;gt;&lt;br /&gt;
/*&lt;br /&gt;
* Enter some Example Code&lt;br /&gt;
*/&lt;br /&gt;
&amp;lt;/code&amp;gt; &lt;br /&gt;
=== See Also ===&lt;br /&gt;
&amp;lt;nowiki&amp;gt;&lt;br /&gt;
  * [[#other_function_name|other_function_name()]]&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
==== buddy_remove ====&lt;br /&gt;
=== Description ===&lt;br /&gt;
bool **buddy_remove** ( __string__ $user ) \\&lt;br /&gt;
Removes a user from the bot&amp;#039;s buddy list. &lt;br /&gt;
=== Parameters ===&lt;br /&gt;
== user ==&lt;br /&gt;
Username to remove.&lt;br /&gt;
=== Return Values ===&lt;br /&gt;
TRUE on success, FALSE on failure. &lt;br /&gt;
=== Examples ===&lt;br /&gt;
&amp;lt;code php&amp;gt;&lt;br /&gt;
/*&lt;br /&gt;
* Enter some Example Code&lt;br /&gt;
*/&lt;br /&gt;
&amp;lt;/code&amp;gt; &lt;br /&gt;
=== See Also ===&lt;br /&gt;
&amp;lt;nowiki&amp;gt;&lt;br /&gt;
  * [[#other_function_name|other_function_name()]]&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
==== buddy_exists ====&lt;br /&gt;
=== Description ===&lt;br /&gt;
bool **buddy_exists** ( __string__ $who ) \\&lt;br /&gt;
Check to see if a buddy exists on the bot&amp;#039;s friends list.&lt;br /&gt;
=== Parameters ===&lt;br /&gt;
== who ==&lt;br /&gt;
Name of player to check for.&lt;br /&gt;
=== Return Values ===&lt;br /&gt;
TRUE if the character is on the buddy list, otherwise FALSE. &lt;br /&gt;
=== Examples ===&lt;br /&gt;
&amp;lt;code php&amp;gt;&lt;br /&gt;
/*&lt;br /&gt;
* Enter some Example Code&lt;br /&gt;
*/&lt;br /&gt;
&amp;lt;/code&amp;gt; &lt;br /&gt;
=== See Also ===&lt;br /&gt;
&amp;lt;nowiki&amp;gt;&lt;br /&gt;
  * [[#other_function_name|other_function_name()]]&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
==== buddy_online ====&lt;br /&gt;
=== Description ===&lt;br /&gt;
bool **buddy_online** ( __string__ $who ) \\&lt;br /&gt;
Checks to see if $who is online.&lt;br /&gt;
=== Parameters ===&lt;br /&gt;
== who ==&lt;br /&gt;
Name of the character to check online status for.&lt;br /&gt;
=== Return Values ===&lt;br /&gt;
TRUE if the character is online, otherwise false.&lt;br /&gt;
=== Examples ===&lt;br /&gt;
&amp;lt;code php&amp;gt;&lt;br /&gt;
/*&lt;br /&gt;
* Enter some Example Code&lt;br /&gt;
*/&lt;br /&gt;
&amp;lt;/code&amp;gt; &lt;br /&gt;
=== See Also ===&lt;br /&gt;
&amp;lt;nowiki&amp;gt;&lt;br /&gt;
  * [[#other_function_name|other_function_name()]]&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
==== pgroup_invite ====&lt;br /&gt;
=== Description ===&lt;br /&gt;
datatype **pgroup_invite** ( __string__ $user ) \\&lt;br /&gt;
Invite user to private group.&lt;br /&gt;
=== Parameters ===&lt;br /&gt;
== user ==&lt;br /&gt;
User to invite to bot&amp;#039;s private group. &lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
==== pgroup_kick ====&lt;br /&gt;
=== Description ===&lt;br /&gt;
datatype **pgroup_kick** ( __string__ $user ) \\&lt;br /&gt;
Kicks a user from the bot&amp;#039;s private group.&lt;br /&gt;
=== Parameters ===&lt;br /&gt;
== user ==&lt;br /&gt;
User who needs a #9 boot to the ass.&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
function pgroup_kick_all()&lt;br /&gt;
&lt;br /&gt;
==== pgroup_kick_all ====&lt;br /&gt;
=== Description ===&lt;br /&gt;
datatype **pgroup_kick_all** ( ) \\&lt;br /&gt;
Kicks everyone from the bot&amp;#039;s private group.&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
===== help =====&lt;br /&gt;
**File Path:** main/15_BotHelp.php&lt;br /&gt;
===== chat_queue =====&lt;br /&gt;
**File Path:** main/15_ChatQueue.php&lt;br /&gt;
===== colors =====&lt;br /&gt;
**File Path:** main/15_Colors.php&lt;br /&gt;
===== command_alias =====&lt;br /&gt;
**File Path:** main/15_CommandAlias.php&lt;br /&gt;
===== notify =====&lt;br /&gt;
**File Path:** main/15_Notify.php&lt;br /&gt;
===== online =====&lt;br /&gt;
**File Path:** main/15_OnlineDB.php&lt;br /&gt;
===== timer =====&lt;br /&gt;
**File Path:** main/15_Timer_Core.php&lt;br /&gt;
 &lt;br /&gt;
====== Common Core Modules ======&lt;br /&gt;
Common Core Modules are shared by Anarchy Online and Age of Conan. &lt;br /&gt;
===== aliis =====&lt;br /&gt;
**File Path:** core/Alias.php&lt;br /&gt;
===== alts =====&lt;br /&gt;
**File Path:** core/Alts.php&lt;br /&gt;
===== bot_statistics =====&lt;br /&gt;
**File Path:** core/BotStatistics.php&lt;br /&gt;
===== buddy_queue =====&lt;br /&gt;
**File Path:** core/Buddy_Queue.php&lt;br /&gt;
===== funfilters =====&lt;br /&gt;
**File Path:** core/FunFilters.php&lt;br /&gt;
===== irc =====&lt;br /&gt;
**File Path:** modules/IRC.php&lt;br /&gt;
===== logon_notifies =====&lt;br /&gt;
**File Path:** core/Logon_Notifies.php&lt;br /&gt;
===== module_core =====&lt;br /&gt;
**File Path:** core/ModuleCatcher.php&lt;br /&gt;
===== player_notes =====&lt;br /&gt;
**File Path:** core/PlayerNotes.php&lt;br /&gt;
===== points =====&lt;br /&gt;
**File Path:** modules/Points.php&lt;br /&gt;
===== professions =====&lt;br /&gt;
**File Path:** core/Professions.php&lt;br /&gt;
===== relay =====&lt;br /&gt;
**File Path:** modules/Relay.php&lt;br /&gt;
===== shortcuts =====&lt;br /&gt;
**File Path:** core/ShortCuts.php&lt;br /&gt;
===== statistics =====&lt;br /&gt;
**File Path:** core/Statistics.php&lt;br /&gt;
===== stringfilter =====&lt;br /&gt;
**File Path:** core/StringFilter.php&lt;br /&gt;
===== time =====&lt;br /&gt;
**File Path:** core/Time.php&lt;br /&gt;
===== user =====&lt;br /&gt;
**File Path:** core/User.php&lt;br /&gt;
&lt;br /&gt;
====== Anarchy Online Specific Modules ======&lt;br /&gt;
These modules provide functionality unique to Anarchy Online. &lt;br /&gt;
===== whois =====&lt;br /&gt;
**File Path:** core/ao/Whois.php&lt;br /&gt;
&lt;br /&gt;
====== Age of Conan Specific Modules ======&lt;br /&gt;
These modules provide functionality unique to Age of Conan.&lt;br /&gt;
===== autouseradd =====&lt;br /&gt;
**File Path:** modules/aoc/Autouseradd.php&lt;br /&gt;
===== items =====&lt;br /&gt;
**File Path:** core/aoc/Items.php&lt;br /&gt;
===== whois =====&lt;br /&gt;
**File Path:** core/aoc/Whois.php&lt;br /&gt;
&lt;br /&gt;
====== Template for Module and Function Documentation ====== &lt;br /&gt;
===== module name =====&lt;br /&gt;
==== function_name ====&lt;br /&gt;
=== Description ===&lt;br /&gt;
datatype **function_name** ( __datatype__ $variable1, __datatype__ $variable2 ) \\&lt;br /&gt;
What this function does.&lt;br /&gt;
=== Parameters ===&lt;br /&gt;
== variable1 ==&lt;br /&gt;
Description of variable1.&lt;br /&gt;
== variable2 ==&lt;br /&gt;
Description of variable2.&lt;br /&gt;
=== Return Values ===&lt;br /&gt;
What does this function return.&lt;br /&gt;
=== Examples ===&lt;br /&gt;
&amp;lt;code php&amp;gt;&lt;br /&gt;
/*&lt;br /&gt;
* Enter some Example Code&lt;br /&gt;
*/&lt;br /&gt;
&amp;lt;/code&amp;gt; &lt;br /&gt;
=== See Also ===&lt;br /&gt;
&amp;lt;nowiki&amp;gt;&lt;br /&gt;
  * [[#other_function_name|other_function_name()]]&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&lt;/div&gt;</summary>
		<author><name>B3b0tUzR</name></author>
	</entry>
</feed>