-
Notifications
You must be signed in to change notification settings - Fork 15
pluginhelper
Eric Davis edited this page Apr 2, 2018
·
1 revision
- Author: Bast
- this module is a helper module that tracks variables, settings and commands for plugins
- See the Installation Page
- post errors on the mushclient forums, I watch those forums
- see miniwin_example or any other plugins
this module will help with setting up plugin commands and variables
adding an option looks like this
phelper:add_option('plotlength' , {help="set the length of the moon plot", type="number", high=80, low=0, after=styleplotdata, default=66})
valid values in the table are:
help -- the help for this option
type -- the type of this option, valid are string, bool, colour, number
default -- the default value
high,low -- valid for numbers only, the lowest and highest values for this option
after -- the function to run after this option has been set
sortlev -- you can group options by setting this, all options with the same number will be printed together
readonly -- this is a read only variable
options already included (these do not need to be manually added)
cmd - the cmd for this plugin
plugin_colour - the colour for this plugin
tdebug - the debug variable
to change the defaults for these options
phelper:option_set_default('cmd', 'regen')
phelper:option_set_default('plugin_colour', 'orange')
adding a command looks like this
phelper:add_cmd('plot', {func=plotdata, help="plot moons"})
valid values -
func -- the function to call
the arguments are sent in this order (name, line, wildcards)
this can be set to nofunc to have this command just be a placeholder
help -- the help for this command
if this is set to "", will not show when the help prints all valid commands
default -- set this true and this will be the default cmd
send_to_world -- set this to pass this to the world
commands already included (these do not need to be manually added)
help
set
reset
debug
save
Intro
Installation
Troubleshooting
Tips For VI Users
FAQ
Creating Plugins Based On Bastmush
Bastmush Plugins
- Aardwolf_Regen<\li>
- bast_spellup<\li>
- combattracker<\li>
- bast_hunt<\li>
- eqDB<\li>
- eqSets<\li>
- miniwin_cp<\li>
- miniwin_double<\li>
- miniwin_eq<\li>
- miniwin_events<\li>
- miniwin_example<\li>
- miniwin_gq<\li>
- miniwin_help<\li>
- miniwin_map<\li>
- miniwin_moons<\li>
- miniwin_noexp<\li>
- miniwin_quest<\li>
- miniwin_spellup<\li>
- miniwin_stats<\li>
- miniwin_tabbar<\li>
- notes<\li>
- planesmobs<\li>
- pluginlist<\li>
- setupchar<\li>
- StatDB<\li>
- StatMonitor<\li>
Internal bastmush Plugins (do not load these unless needed)
- areaDB<\li>
- broadcast_cp<\li>
- broadcast_double<\li>
- broadcast_gq<\li>
- broadcast_idle<\li>
- broadcast_invmon<\li>
- broadcast_kills<\li>
- broadcast_level<\li>
- broadcast_noexp<\li>
- broadcast_quest<\li>
- broadcast_runto<\li>
- broadcast_spellsskills<\li>
- broadcast_state<\li>
- broadcast_whois<\li>
- fix<\li>
- update_checker<\li>
Support files for bastmush
- objectlua<\li>
- aardutils<\li>
- aarddb<\li>
- chardb<\li>
- eqdb<\li>
- ldplugin<\li>
- miniwin<\li>
- mastertab<\li>
- pluginhelper<\li>
- phelpobject<\li>
- stringfuncs<\li>
- sqlitedb<\li>
- verify<\li>
- tablefuncs<\li>