Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 2016-08-29T18:01:09+0000 [AMPProtocol,0,127.0.0.1] [..] Logged in: Ghost(player 4) 64.85.204.2 (1 session(s) total)
- 2016-08-29T18:01:23+0000 [AMPProtocol,0,127.0.0.1] [::] Traceback (most recent call last):
- 2016-08-29T18:01:23+0000 [AMPProtocol,0,127.0.0.1] [::] File "/home/ubuntu/evennia/evennia/commands/cmdhandler.py", line 464, in _run_command
- 2016-08-29T18:01:23+0000 [AMPProtocol,0,127.0.0.1] [::] ret = yield cmd.func()
- 2016-08-29T18:01:23+0000 [AMPProtocol,0,127.0.0.1] [::] File "/home/ubuntu/evennia/evennia/utils/evmenu.py", line 238, in func
- 2016-08-29T18:01:23+0000 [AMPProtocol,0,127.0.0.1] [::] menu._input_parser(menu, self.raw_string, caller)
- 2016-08-29T18:01:23+0000 [AMPProtocol,0,127.0.0.1] [::] File "/home/ubuntu/evennia/evennia/utils/evmenu.py", line 368, in evtable_parse_input
- 2016-08-29T18:01:23+0000 [AMPProtocol,0,127.0.0.1] [::] menuobject.callback_goto(callback, goto, raw_string)
- 2016-08-29T18:01:23+0000 [AMPProtocol,0,127.0.0.1] [::] File "/home/ubuntu/evennia/evennia/utils/evmenu.py", line 661, in callback_goto
- 2016-08-29T18:01:23+0000 [AMPProtocol,0,127.0.0.1] [::] self.callback(callback, raw_string)
- 2016-08-29T18:01:23+0000 [AMPProtocol,0,127.0.0.1] [::] File "/home/ubuntu/evennia/evennia/utils/evmenu.py", line 685, in callback
- 2016-08-29T18:01:23+0000 [AMPProtocol,0,127.0.0.1] [::] nodename(self.caller)
- 2016-08-29T18:01:23+0000 [AMPProtocol,0,127.0.0.1] [::] TypeError: <lambda>() takes no arguments (1 given)
- 2016-08-29T18:01:23+0000 [AMPProtocol,0,127.0.0.1] [::] Traceback (most recent call last):
- 2016-08-29T18:01:23+0000 [AMPProtocol,0,127.0.0.1] [::] File "/home/ubuntu/evennia/evennia/commands/cmdhandler.py", line 597, in cmdhandler
- 2016-08-29T18:01:23+0000 [AMPProtocol,0,127.0.0.1] [::] ret = yield _run_command(syscmd, syscmd.key, sysarg)
- 2016-08-29T18:01:23+0000 [AMPProtocol,0,127.0.0.1] [::] ErrorReported
- **************************************** Code *****************************************************
- def wrapper(i):
- return lambda: i
- def askLevelSelect(caller):
- xp = caller.db.xp
- num_levels = 0
- if caller.db.special == "experience":
- num_levels = xp / 90
- else:
- num_levels = xp / 100
- options = ()
- text = "Please choose the class that you wish to level in."
- for item in sorted(get_levels(caller))[:2]:
- node_dict = {"desc": item.title(), "goto": "confirm_class", "exec": wrapper(item)}
- options = options + (node_dict,)
- #options = ({"key": "escape artist", "desc": "Escape Artist", "goto": "confirm_class", "exec": set_selected_level},
- # {"desc": "Mechanic", "goto": "confirm_class", "exec": set_selected_level})
- caller.msg(str(options))
- return text, options
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement