Пример #1
0
    def at_cmdset_creation(self):
        """
        This is the only method defined in a cmdset, called during
        its creation. It should populate the set with command instances.

        Note that it can also take other cmdsets as arguments, which will
        be used by the character default cmdset to add all of these onto
        the internal cmdset stack. They will then be able to removed or
        replaced as needed.
        """
        self.add(overrides.CmdInventory())
        self.add(default_general.CmdNick())
        self.add(default_general.CmdAccess())
        self.add(rolling.CmdDiceString())
        self.add(rolling.CmdDiceCheck())
        self.add(rolling.CmdSpoofCheck())
        self.add(general.CmdBriefMode())
        self.add(general.CmdTidyUp())
        self.add(extended_room.CmdGameTime())
        self.add(extended_room.CmdStudyRawAnsi())
        self.add(xp.CmdVoteXP())
        self.add(social.CmdPosebreak())
        self.add(social.CmdSocialScore())
        self.add(social.CmdFavor())
        self.add(overrides.SystemNoMatch())
Пример #2
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(syst.CmdAbout())
        self.remove(system.CmdAbout())
        self.remove(general.CmdAccess())
        self.remove(general.CmdHome())
        self.remove(general.CmdSetDesc())
        self.add(extendedcommands.CmdExtendedLook())
        self.add(extendedcommands.CmdExtendedDesc())
        self.add(extendedcommands.CmdExtendedGet())
        self.add(extendedcommands.CmdExtendedGive())
        self.add(extendedcommands.CmdExtendedDrop())
        self.add(extendedcommands.CmdWho())
        self.add(extendedcommands.CmdGameTime())
        self.add(sensorycommands.SensesCmdSet)
        self.add(movecommands.ExitErrorCmdSet)
        self.add(equip.EquipCmdSet)
        self.add(chartraits.CharTraitCmdSet)
        self.add(merchant.CmdForge())
Пример #3
0
    def at_cmdset_creation(self):
        """
        This is the only method defined in a cmdset, called during
        its creation. It should populate the set with command instances.

        Note that it can also take other cmdsets as arguments, which will
        be used by the character default cmdset to add all of these onto
        the internal cmdset stack. They will then be able to removed or
        replaced as needed.
        """
        self.add(overrides.CmdInventory())
        self.add(default_general.CmdNick())
        self.add(default_general.CmdAccess())
        self.add(rolling.CmdDiceString())
        self.add(rolling.CmdDiceCheck())
        self.add(rolling.CmdOldSpoofCheck())
        self.add(check_commands.CmdStatCheck())
        self.add(check_commands.CmdHarm())
        self.add(check_commands.CmdSpoofCheck())
        self.add(general.CmdBriefMode())
        self.add(general.CmdTidyUp())
        self.add(extended_room.CmdGameTime())
        self.add(extended_room.CmdSetGameTimescale())
        self.add(extended_room.CmdStudyRawAnsi())
        self.add(xp.CmdVoteXP())
        self.add(social.CmdPosebreak())
        self.add(social.CmdSocialNotable())
        self.add(social.CmdSocialNominate())
        self.add(social.CmdSocialReview())
        # self.add(social.CmdFavor())  #when enabled, please re-add "favor" to random_rp_command_keys in CmdRandomScene
        self.add(overrides.SystemNoMatch())
        self.add(weather_commands.CmdAdminWeather())
        self.add(roster.CmdPropriety())

        # Exploration!
        self.add(exploration_commands.CmdExplorationCmdSet())
Пример #4
0
 def test_access(self):
     self.call(general.CmdAccess(), "", "Permission Hierarchy (climbing):")
Пример #5
0
    def at_cmdset_creation(self):
        "Populates the cmdset"

        # The general commands
        self.add(general.CmdLook())
        self.add(general.CmdHome())
        self.add(general.CmdInventory())
        self.add(general.CmdPose())
        self.add(general.CmdNick())
        self.add(general.CmdDesc())
        self.add(general.CmdGet())
        self.add(general.CmdDrop())
        self.add(general.CmdGive())
        self.add(CmdSay())
        self.add(general.CmdAccess())

        # The help system
        self.add(help.CmdHelp())
        self.add(help.CmdSetHelp())

        # System commands
        self.add(system.CmdPy())
        self.add(system.CmdScripts())
        self.add(system.CmdObjects())
        self.add(system.CmdPlayers())
        self.add(system.CmdService())
        self.add(system.CmdAbout())
        self.add(system.CmdTime())
        self.add(system.CmdServerLoad())
        #self.add(system.CmdPs())
        self.add(system.CmdTickers())

        # Admin commands
        self.add(admin.CmdBoot())
        self.add(admin.CmdBan())
        self.add(admin.CmdUnban())
        self.add(admin.CmdEmit())
        self.add(admin.CmdPerm())
        self.add(admin.CmdWall())

        # Building and world manipulation
        self.add(building.CmdTeleport())
        self.add(building.CmdSetObjAlias())
        self.add(building.CmdListCmdSets())
        self.add(building.CmdWipe())
        self.add(building.CmdSetAttribute())
        self.add(building.CmdName())
        self.add(building.CmdDesc())
        self.add(building.CmdCpAttr())
        self.add(building.CmdMvAttr())
        self.add(building.CmdCopy())
        self.add(building.CmdFind())
        self.add(building.CmdOpen())
        self.add(building.CmdLink())
        self.add(building.CmdUnLink())
        self.add(building.CmdCreate())
        self.add(building.CmdDig())
        self.add(building.CmdTunnel())
        self.add(building.CmdDestroy())
        self.add(building.CmdExamine())
        self.add(building.CmdTypeclass())
        self.add(building.CmdLock())
        self.add(building.CmdScript())
        self.add(building.CmdSetHome())
        self.add(building.CmdTag())
        self.add(building.CmdSpawn())

        # Batch processor commands
        self.add(batchprocess.CmdBatchCommands())
        self.add(batchprocess.CmdBatchCode())