Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/sfoyston/public_html/TextStorm/Wiki/inc/init.php on line 560

Warning: Cannot modify header information - headers already sent by (output started at /home/sfoyston/public_html/TextStorm/Wiki/inc/init.php:560) in /home/sfoyston/public_html/TextStorm/Wiki/inc/auth.php on line 495

Warning: Cannot modify header information - headers already sent by (output started at /home/sfoyston/public_html/TextStorm/Wiki/inc/init.php:560) in /home/sfoyston/public_html/TextStorm/Wiki/inc/actions.php on line 210
functions - TextStorm Wiki

The Wiki is still in development, please bare with us while we add and update content.

This is an old revision of the document!



Warning: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in /home/sfoyston/public_html/TextStorm/Wiki/inc/parser/handler.php on line 1458

Warning: preg_match(): Compilation failed: invalid range in character class at offset 3093 in /home/sfoyston/public_html/TextStorm/Wiki/inc/parser/lexer.php on line 118
A PCRE internal error occured. This might be caused by a faulty plugin

====== TextStorm Functions ====== Below you will find the details of TextStorms in-built functions and their usage. You will need to instantiate the User class to access these functions. <file php AccessClass.php> $user = new User; </file> **Note: If you are developing a plugin, $user is already available to you!** ===== Modify a User's Coins ===== This allows you to give or take coins from a user. **Function:** public function ModCoins($db, $user, $operation, $amount) To give a user coins: <file php GiveCoins.php> $user->ModCoins($db, $username, "+", 1000000); </file> To take coins from a user: <file php TakeCoins.php> $user->ModCoins($db, $username, "-", 1000000); </file> ===== Modify a User's Experience ===== This allows you to give or take experience from a user. ===== Give a User a Vehicle ===== This allows you to give the user a new vehicle from the Vehicle Store ===== Give a User a Weapon ===== This allows you to give the user a new weapon from the Weapon Store ===== Give a User a Chest ===== This allows you to give a user a chest that is configured in the Administration Panel ===== Send a User a System Message ===== This allows you to send a user a message from the System user ===== Generate a Tooltip ===== This allows you to generate a tooltip - when text is hovered over a CSS box will display with more information.


QR Code
QR Code functions (generated for current page)