本文整理汇总了Python中BetterMUD.account方法的典型用法代码示例。如果您正苦于以下问题:Python BetterMUD.account方法的具体用法?Python BetterMUD.account怎么用?Python BetterMUD.account使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类BetterMUD
的用法示例。
在下文中一共展示了BetterMUD.account方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: setup
# 需要导入模块: import BetterMUD [as 别名]
# 或者: from BetterMUD import account [as 别名]
def setup( id ):
c = BetterMUD.character( id )
a = BetterMUD.account( c.GetAccount() )
l = a.AccessLevel();
if( l >= 0 ):
c.AddCommand( "north" )
c.AddCommand( "east" )
c.AddCommand( "south" )
c.AddCommand( "west" )
c.AddCommand( "northeast" )
c.AddCommand( "northwest" )
c.AddCommand( "southeast" )
c.AddCommand( "southwest" )
c.AddCommand( "up" )
c.AddCommand( "down" )
c.AddCommand( "ne" )
c.AddCommand( "nw" )
c.AddCommand( "se" )
c.AddCommand( "sw" )
c.AddCommand( "get" )
c.AddCommand( "give" )
c.AddCommand( "drop" )
c.AddCommand( "go" )
c.AddCommand( "commands" )
c.AddCommand( "look" )
c.AddCommand( "quit" )
c.AddCommand( "action" )
c.AddCommand( "chat" )
c.AddCommand( "say" )
c.AddCommand( "quiet" )
c.AddCommand( "receive" )
c.AddCommand( "pies" )
c.AddCommand( "inventory" )
c.AddCommand( "arm" )
c.AddCommand( "disarm" )
c.AddCommand( "read" )
c.AddCommand( "attack" )
c.AddCommand( "breakattack" )
if( l >= 2 ):
c.AddCommand( "kick" )
c.AddCommand( "announce" )
if( l >= 3 ):
c.AddCommand( "emulate" )
c.AddCommand( "shutdown" )
c.AddCommand( "addcommand" )
c.AddCommand( "delcommand" )
c.AddCommand( "addplayerlogic" )
c.AddCommand( "delplayerlogic" )
c.AddCommand( "reloadscript" )
c.AddCommand( "pythonexec" )
c.AddCommand( "spawnitem" )
c.AddCommand( "spawncharacter" )
c.AddCommand( "destroyitem" )
c.AddCommand( "destroyitem" )
c.AddCommand( "visual" )
c.AddCommand( "loaddatabase" )
c.AddCommand( "savedatabase" )
c.SetRoom( 1 )
c.SetRegion( 1 )