Extension System
With FreeBot [2.0] (Config.mrc v1.1) comes the ability to create your own extensions to
improve the bot, and at the same time give something back to the other FreeBot users.
After creating an extension, contacting Marius in #FreeBot on the SwiftIRC (irc.swiftirc.net) network
and giving him the extensions will enable it to be added to the extensiosn list, makign it available to all FreeBot users.
Extensions are the best solution to bot features taht some users may benefit form, but others may not, so instead of filling
the bot with features that some users may not use, this will give the users requesting one feature the ability to get this feature.
Following are the custom identifiers used by FreeBot, to simplify things should you desire to make your own
extensions at any time. You can request more custom identifiers in the above mentioned channel.
- Fetches data from the Settings.ini file (see the example settings file)
? $se(triggers,public)
* Returns the trigger for public commands
- Gets the custom set colors for the set section
? $custcol(Marius,general.base)
* Returns the custom color set for the general.base color (Extensions should use general.* by default as they haev 4 set colors)
- If RSN is entered, this will be returned, if not it checks if NickName has a stored RSN, if not returns NickName as RSN
? $rsn(Marius,zezima) | $rsn(Marius)
* Returns zezima | Returns Marius (no RSN stored)
- Used to get the AKA text set by the user for the skill item (stored in /Skills/TS.ini)
? $saka(Agility-Pyramid)
* Returns "pyramid" if that's what the Display Name is set to
- Used by the stats script (hash tables are unset after outputting data from stats_fetch.mrc)
returns level, exp or rank for the entered skill from the give hash table. ? $skill(u123456,attack).lvl
* Returns attack level for the user associated with the hash table u123456 ($hget(u123456,nick) to get nickname, $hget(u123456,name) to get RSN)
- Strips out all HTML tags from the entered text
? $nohtml(a href="moo.html">URL to a cow)
* Returns: URL to a cow
- Orders the entered values from highest to lowest (each value is seperated by a space)
? $order(3 9 6 1 0)
* Returns: 0 1 3 6 9
- Returns the exp associated with the entered level
? $exp(84)
* Returns: 2951373
- Returns the Combat Base points (part of the combat formula)
? $combat.base(40, 35, 27)
* Returns: 22
- Returns the class based combat levels (part of the combat formula)
? $combat.class(30, 21, 44, 19)
* Returns: 21.45 16.575 9.1
- Returns the combat level based on the netered stats (if no stats is available, leave field empty for prefixed lvl 1)
? $combat.final(30, 40, 21, 35, 27, 44, 19)
? Returns: 43.45
- Returns a skill name based on regex matches on the entered text
? $f2u(str)
* Returns: Strength
- Returns double digit color code based on color name
? $cntn(purple)
* Returns: 06