comparison orpg/chat/commands.py @ 212:13054be69834 beta

Traipse Beta 'OpenRPG' {100428-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 (Patch-2) New Features: New Namespace method with two new syntaxes New Namespace Internal is context sensitive, always! New Namespace External is 'as narrow as you make it' New Namespace FutureCheck helps ensure you don't receive an incorrect node New PluginDB access for URL2Link plugin New to Forms, they now show their content in Design Mode New to Update Manager, checks Repo for updates on software start Fixes: Fix to Server GUI startup errors Fix to Server GUI Rooms tab updating Fix to Chat and Settings if non existant die roller is picked Fix to Dieroller and .open() used with .vs(). Successes are correctly calculated Fix to Alias Lib's Export to Tree, Open, Save features Fix to alias node, now works properly Fix to Splitter node, minor GUI cleanup Fix to Backgrounds not loading through remote loader Fix to Node name errors Fix to rolling dice in chat Whispers Fix to Splitters Sizing issues Fix to URL2Link plugin, modified regex compilation should remove memory leak Fix to mapy.py, a roll back due to zoomed grid issues Fix to whiteboard_handler, Circles work by you clicking the center of the circle Fix to Servers parse_incoming_dom which was outdated and did not respect XML Fix to a broken link in the server welcome message Fix to InterParse and logger requiring traceback Fix to Update Manager Status Bar Fix to failed image and erroneous pop up
author sirebral
date Wed, 28 Apr 2010 08:08:09 -0500
parents dcae32e219f1
children a00b40ee92fc
comparison
equal deleted inserted replaced
194:44ef45e77880 212:13054be69834
212 "<br />GMT: "+time.strftime(format_string,gmt_time)) 212 "<br />GMT: "+time.strftime(format_string,gmt_time))
213 213
214 def on_dieroller(self, cmdargs): 214 def on_dieroller(self, cmdargs):
215 args = string.split(cmdargs,None,-1) 215 args = string.split(cmdargs,None,-1)
216 rm = component.get('DiceManager') 216 rm = component.get('DiceManager')
217 cur_die = rm.getRoller()
217 try: 218 try:
218 rm.setRoller(args[0]) 219 rm.setRoller(args[0])
219 self.chat.SystemPost("You have changed your die roller to the <b>\"" + args[0] + "\"</b> roller.") 220 self.chat.SystemPost('You have changed your die roller to the <b>"' +rm.getRoller()+ '"</b> roller.')
220 self.settings.set_setting('dieroller',args[0]) 221 self.settings.change('dieroller', rm.getRoller())
221 except Exception, e: 222 except Exception, e:
222 print e 223 rm.setRoller(cur_die)
223 self.chat.InfoPost("Available die rollers: " + str(rm.listRollers())) 224 self.settings.change('dieroller', str(cur_die))
224 self.chat.InfoPost("You are using the <b>\"" + rm.getRoller() + "\"</b> die roller.") 225 if args[0] != '': self.chat.SystemPost(args[0]+ ' is an invalid roller.')
226 self.chat.InfoPost('Available die rollers: ' +str(rm.listRollers()) )
227 self.chat.InfoPost('You are using the <b>"' +cur_die+ '"</b> die roller.')
225 228
226 def on_ping(self, cmdargs): 229 def on_ping(self, cmdargs):
227 ct = time.clock() 230 ct = time.clock()
228 msg = "<ping player='"+self.session.id+"' time='"+str(ct)+"' />" 231 msg = "<ping player='"+self.session.id+"' time='"+str(ct)+"' />"
229 self.session.outbox.put(msg) 232 self.session.outbox.put(msg)