Mercurial > traipse_dev
comparison plugins/xxooc.py @ 245:682032381be8 beta
Traipse Beta 'OpenRPG' {101130-00}
Traipse is a distribution of OpenRPG that is designed to be easy to setup and go. Traipse also makes it easy for developers to work on code without fear of sacrifice. 'Ornery-Orc' continues the trend of 'Grumpy' and adds fixes to the code. 'Ornery-Orc's main goal is to offer more advanced features and enhance the productivity of the user.
Update Summary (Closing/Closed)
New Features:
New to Map, can re-order Grid, Miniatures, and Whiteboard layer draw order
New to Server GUI, can now clear log
New Earthdawn Dieroller
New IronClaw roller, sheet, and image
Updates:
Update to Warhammer PC Sheet. Rollers set as macros. Should work with little maintanence.
Update to Browser Server window. Display rooms with ' " & cleaner
Update to Server. Handles ' " & cleaner
Update to Dieroller. Cleaner, more effecient expression system
Update to Hidden Die plugin, allows for non standard dice rolls
Fixes:
Fix to InterParse that was causing an Infernal Loop with Namespace Internal
Fix to XML data, removed old Minidom and switched to Element Tree
Fix to Server that was causing eternal attempt to find a Server ID, in Register Rooms thread
Fix to metaservers.xml file not being created
Fix to Single and Double quotes in Whiteboard text
Fix to Background images not showing when using the Image Server
Fix to Duplicate chat names appearing
Fix to Server GUI's logging output
Fix to FNB.COLORFUL_TABS bug
Fix to Gametree for XSLT Sheets
Fix to Gametree for locating gametree files
Fix to Send to Chat from Gametree
Fix to Gametree, renaming and remapping operates correctly
Fix to aliaslib, prevents error caused when SafeHTML is sent None
author | sirebral |
---|---|
date | Tue, 30 Nov 2010 02:34:58 -0600 |
parents | 4385a7d0efd1 |
children |
comparison
equal
deleted
inserted
replaced
244:be04d07341f3 | 245:682032381be8 |
---|---|
1 import os | 1 from orpg.tools.InterParse import Parse |
2 import orpg.pluginhandler | 2 import orpg.pluginhandler |
3 | 3 |
4 class Plugin(orpg.pluginhandler.PluginHandler): | 4 class Plugin(orpg.pluginhandler.PluginHandler): |
5 # Initialization subroutine. | 5 # Initialization subroutine. |
6 # | 6 # |
7 # !self : instance of self | 7 # !self : instance of self |
8 # !chat : instance of the chat window to write to | 8 # !chat : instance of the chat window to write to |
9 def __init__(self, plugindb, parent): | 9 def __init__(self, plugindb, parent): |
10 orpg.pluginhandler.PluginHandler.__init__(self, plugindb, parent) | 10 orpg.pluginhandler.PluginHandler.__init__(self, plugindb, parent) |
11 | |
12 # The Following code should be edited to contain the proper information | 11 # The Following code should be edited to contain the proper information |
13 self.name = 'OOC Comments Tool' | 12 self.name = 'OOC Comments Tool' |
14 self.author = 'mDuo13' | 13 self.author = 'mDuo13' |
15 self.help = "Type '/ooc *message*' to send '(( *message* ))' -- it just preformats\n" | 14 self.help = "Type '/ooc *message*' to send '(( *message* ))' -- it just preformats\n" |
16 self.help += "out of character comments for you." | 15 self.help += "out of character comments for you." |
17 | 16 |
18 def plugin_enabled(self): | 17 def plugin_enabled(self): |
19 #This is where you set any variables that need to be initalized when your plugin starts | 18 #This is where you set any variables that need to be initalized when your plugin starts |
20 | |
21 self.plugin_addcommand('/ooc', self.on_ooc, 'message - This puts (( message )) to let other players know you are talking out of character') | 19 self.plugin_addcommand('/ooc', self.on_ooc, 'message - This puts (( message )) to let other players know you are talking out of character') |
22 | 20 |
23 | 21 |
24 def plugin_disabled(self): | 22 def plugin_disabled(self): |
25 #Here you need to remove any commands you added, and anything else you want to happen when you disable the plugin | 23 #Here you need to remove any commands you added, and anything else you want to happen when you disable the plugin |
26 #such as closing windows created by the plugin | 24 #such as closing windows created by the plugin |
27 | |
28 self.plugin_removecmd('/ooc') | 25 self.plugin_removecmd('/ooc') |
29 | 26 |
30 def on_ooc(self, cmdargs): | 27 def on_ooc(self, cmdargs): |
31 #this is just an example function for a command you create create your own | 28 #this is just an example function for a command you create create your own |
32 self.chat.ParsePost('(( ' + cmdargs + ' ))', 1, 1) | 29 Parse.Post('(( ' + cmdargs + ' ))', False, True, True) |