예제 #1
0
 def test_all_com(self):
     self.call(
         comms.CmdAllCom(),
         "",
         "Available channels (use comlist,addcom and delcom to manage",
         receiver=self.account,
     )
예제 #2
0
    def at_cmdset_creation(self):
        """Populates the cmdset"""

        # Player-specific commands
        try:
            self.add(account.CmdOOCLook())
            from commands.base_commands import overrides

            self.add(overrides.CmdWho())
            self.add(account.CmdQuit())
            self.add(account.CmdColorTest())
            self.add(account.CmdOption())
            # Help command
            self.add(help.CmdHelp())
            # Comm commands
            self.add(comms.CmdAddCom())
            self.add(comms.CmdDelCom())
            self.add(comms.CmdAllCom())
            self.add(comms.CmdChannels())
            self.add(comms.CmdCWho())
            from commands.base_commands import general

            self.add(general.CmdPage())
            from commands.base_commands import roster

            self.add(roster.CmdRosterList())
            self.add(roster.CmdAdminRoster())
            self.add(roster.CmdSheet())
            self.add(roster.CmdRelationship())
            from commands.base_commands import guest

            self.add(guest.CmdGuestLook())
            self.add(guest.CmdGuestCharCreate())
            self.add(guest.CmdGuestPrompt())
            self.add(guest.CmdGuestAddInput())
            from world.dominion import general_dominion_commands as domcommands

            self.add(domcommands.CmdFamily())
            from commands.base_commands import bboards

            self.add(bboards.CmdBBReadOrPost())
            self.add(bboards.CmdBBSub())
            from commands.base_commands import staff_commands

            self.add(staff_commands.CmdAskStaff())
            self.add(staff_commands.CmdListStaff())
            from commands.base_commands import social

            self.add(social.CmdWhere())
            self.add(social.CmdFinger())
            self.add(social.CmdCensus())
            from web.helpdesk import lore_commands

            self.add(lore_commands.CmdLoreSearch())
        except Exception as err:
            exc_type, exc_value, exc_traceback = sys.exc_info()
            traceback.print_tb(exc_traceback, limit=5, file=sys.stdout)
            print("Error encountered in loading Guest commandset: %s" % err)
예제 #3
0
    def at_cmdset_creation(self):
        "Populates the cmdset"

        # Account-specific commands
        self.add(account.CmdOOCLook())
        self.add(account.CmdIC())
        self.add(account.CmdOOC())
        self.add(account.CmdCharCreate())
        self.add(account.CmdCharDelete())
        # self.add(account.CmdSessions())
        self.add(account.CmdWho())
        self.add(account.CmdOption())
        self.add(account.CmdQuit())
        self.add(account.CmdPassword())
        self.add(account.CmdColorTest())
        self.add(account.CmdQuell())
        self.add(account.CmdStyle())

        # nicks
        self.add(general.CmdNick())

        # testing
        self.add(building.CmdExamine())

        # Help command
        self.add(help.CmdHelp())

        # system commands
        self.add(system.CmdReload())
        self.add(system.CmdReset())
        self.add(system.CmdShutdown())
        self.add(system.CmdPy())

        # Admin commands
        self.add(admin.CmdNewPassword())

        # Comm commands
        self.add(comms.CmdAddCom())
        self.add(comms.CmdDelCom())
        self.add(comms.CmdAllCom())
        self.add(comms.CmdChannels())
        self.add(comms.CmdCdestroy())
        self.add(comms.CmdChannelCreate())
        self.add(comms.CmdClock())
        self.add(comms.CmdCBoot())
        self.add(comms.CmdCemit())
        self.add(comms.CmdCWho())
        self.add(comms.CmdCdesc())
        self.add(comms.CmdPage())
        self.add(comms.CmdIRC2Chan())
        self.add(comms.CmdIRCStatus())
        self.add(comms.CmdRSS2Chan())
        self.add(comms.CmdGrapevine2Chan())
예제 #4
0
파일: player.py 프로젝트: Cloudxtreme/cMUD
    def at_cmdset_creation(self):

        # Player OOC commands
        self.add(CmdOOCLook())
        self.add(player.CmdIC())
        self.add(player.CmdOOC())
        self.add(player.CmdCharCreate())

        # Player-specific commands
        self.add(player.CmdWho())
        self.add(player.CmdOption())
        self.add(player.CmdQuit())
        self.add(player.CmdPassword())
        self.add(player.CmdColorTest())
        self.add(player.CmdQuell())

        # testing
        self.add(building.CmdExamine())

        # Help command
        self.add(help.CmdHelp())

        # system commands
        self.add(system.CmdReload())
        self.add(system.CmdReset())
        self.add(system.CmdShutdown())
        self.add(system.CmdPy())

        # Admin commands
        self.add(admin.CmdDelPlayer())
        self.add(admin.CmdNewPassword())

        # Comm commands
        self.add(comms.CmdAddCom())
        self.add(comms.CmdDelCom())
        self.add(comms.CmdAllCom())
        self.add(comms.CmdChannels())
        self.add(comms.CmdCdestroy())
        self.add(comms.CmdChannelCreate())
        self.add(comms.CmdClock())
        self.add(comms.CmdCBoot())
        self.add(comms.CmdCemit())
        self.add(comms.CmdCWho())
        self.add(comms.CmdCdesc())
        self.add(comms.CmdPage())
        self.add(comms.CmdIRC2Chan())
        self.add(comms.CmdRSS2Chan())
예제 #5
0
 def at_cmdset_creation(self):
     """
     Populates the cmdset
     """
     super(AccountCmdSet, self).at_cmdset_creation()
     # Remove all the default channel commands
     self.remove(comms.CmdChannelCreate())
     self.remove(comms.CmdCBoot())
     self.remove(comms.CmdCdesc())
     self.remove(comms.CmdCdestroy())
     self.remove(comms.CmdCemit())
     self.remove(comms.CmdClock())
     self.remove(comms.CmdCWho())
     self.remove(comms.CmdAddCom())
     self.remove(comms.CmdAllCom())
     self.remove(comms.CmdDelCom())
     self.remove(comms.CmdChannels())
예제 #6
0
    def at_cmdset_creation(self):
        """
        Populates the cmdset
        """
        super(CharacterCmdSet, self).at_cmdset_creation()
        #
        # any commands you add below will overload the default ones.
        #

        self.add(command.CmdWear())
        self.add(command.CmdRemove())
        self.add(command.CmdScore())
        self.add(command.CmdInventory())
        self.add(command.CmdWield())
        self.add(command.CmdUnwield())
        self.add(command.CmdSecure())
        self.add(command.CmdDetach())
        self.add(command.CmdSkin())
        self.add(command.CmdMap())
        self.add(command.CmdDrawMap())
        self.add(command.CmdWalkTo())
        self.add(command.CmdStat())
        self.add(command.CmdFollow())
        self.add(command.CmdLose())

        # Misc
        self.add(gametime.CmdTime())
        self.add(command.CmdHonors())
        #self.add(command.MobCalm())

        # Comm commands
        self.add(comms.CmdAddCom())
        self.add(comms.CmdDelCom())
        self.add(comms.CmdAllCom())
        self.add(comms.CmdChannels())
        self.add(comms.CmdCdestroy())
        self.add(comms.CmdChannelCreate())
        self.add(comms.CmdClock())
        self.add(comms.CmdCBoot())
        self.add(comms.CmdCemit())
        self.add(comms.CmdCWho())
        self.add(comms.CmdCdesc())
        self.add(comms.CmdPage())
        self.add(comms.CmdIRC2Chan())
        self.add(comms.CmdIRCStatus())
        self.add(comms.CmdRSS2Chan())

        # TCN: Melee (basic combat skills) go here
        self.add(melee.CmdAssess2())
        self.add(melee.CmdWielded())
        self.add(melee.CmdAttack())
        self.add(melee.CmdDefend())
        self.add(melee.CmdFeint())
        self.add(melee.CmdMaul())
        self.add(melee.CmdStop())

        # ASH: Fae_Magic skills start here
        self.add(fae_magic.Regeneration())
        self.add(fae_magic.Mend())
        self.add(fae_magic.FaeFire())
        self.add(fae_magic.Web())
        self.add(fae_magic.Wisp())
        self.add(fae_magic.Circle())
        self.add(fae_magic.Pierce())

        # TCN: Default exit error commands (incomplete)
        self.add(movecommands.CmdExitErrorNorth())
        self.add(movecommands.CmdExitErrorEast())
        self.add(movecommands.CmdExitErrorSouth())
        self.add(movecommands.CmdExitErrorWest())

        self.add(movecommands.CmdExitErrorNorthWest())
        self.add(movecommands.CmdExitErrorNorthEast())
        self.add(movecommands.CmdExitErrorSouthWest())
        self.add(movecommands.CmdExitErrorSouthEast())

        self.add(movecommands.CmdExitErrorUp())
        self.add(movecommands.CmdExitErrorDown())

        # TCN: emotes.py
        self.add(emotes.CmdSmile())
        self.add(emotes.CmdGrin())
        self.add(emotes.CmdBow())
        self.add(emotes.CmdKneel())
        self.add(emotes.CmdBeg())
        self.add(emotes.CmdPray())
        self.add(emotes.CmdAnger())
        self.add(emotes.CmdSmirk())
        self.add(emotes.CmdNod())
        self.add(emotes.CmdShake())
        self.add(emotes.CmdSalute())
        self.add(emotes.CmdWink())
        self.add(emotes.CmdDance())
        self.add(emotes.CmdPat())
        self.add(emotes.CmdWince())
        self.add(emotes.CmdApologize())
        self.add(emotes.CmdThank())
        self.add(emotes.CmdLaugh())
        self.add(emotes.CmdWave())
        self.add(emotes.CmdCurtsey())
        self.add(emotes.CmdHug())
        self.add(emotes.CmdKiss())
        self.add(emotes.CmdFrown())
        self.add(emotes.CmdMutter())
        self.add(emotes.CmdScream())
        self.add(emotes.CmdWhine())
        self.add(emotes.CmdPoke())
        self.add(emotes.CmdTear())
        self.add(emotes.CmdCry())
        self.add(emotes.CmdPoint())
        self.add(emotes.CmdFacepalm())
        self.add(emotes.CmdParagon())
        self.add(emotes.CmdSmooth())
        self.add(emotes.CmdFistBump())
        self.add(emotes.CmdHi())
        self.add(emotes.CmdHeh())
        self.add(emotes.CmdOK())
        self.add(emotes.CmdYo())
        self.add(emotes.CmdPonder())
        self.add(emotes.CmdShrug())
        self.add(emotes.CmdGreet())
        self.add(emotes.CmdPet())