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
====== TextStorm Functions ====== Below you will find the details of TextStorms in-built functions and their usage. ===== 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.