Exemple #1
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(general.CmdLook())
        self.add(general.CmdGoto())
        self.add(general.CmdInventory())
        self.add(general.CmdTalk())
        self.add(general.CmdDialogue())
        self.add(general.CmdLoot())
        self.add(general.CmdUse())
        self.add(general.CmdDiscard())
        self.add(general.CmdEquip())
        self.add(general.CmdTakeOff())
        self.add(general.CmdCastSkill())
        self.add(general.CmdAttack())
        self.add(general.CmdUnlockExit())
        self.add(general.CmdGiveUpQuest())
        self.add(general.CmdShopping())
        self.add(general.CmdBuy())
        self.add(general.CmdSay())

        # Add empty login commands to the normal cmdset to
        # avoid showing wrong cmd messages.
        self.add(general.CmdConnect())
        self.add(general.CmdCreate())
        self.add(general.CmdCreateConnect())
Exemple #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(worlddata.CmdImportData())
        self.add(worlddata.CmdSetDataInfo())
        self.add(worlddata.CmdLoadWorld())

        self.add(general.CmdLook())
        self.add(general.CmdGoto())
        self.add(general.CmdInventory())
        self.add(general.CmdTalk())
        self.add(general.CmdDialogue())
        self.add(general.CmdLoot())
        self.add(general.CmdUse())
        self.add(general.CmdEquip())
        self.add(general.CmdTakeOff())
        self.add(general.CmdCastSkill())
        self.add(general.CmdAttack())
        self.add(general.CmdUnlockExit())
        self.add(combat.CmdCombatSkill())
Exemple #3
0
 def at_cmdset_creation(self):
     self.add(general.CmdLook())
     self.add(general.CmdCastSkill())
     self.add(combat.CmdCombatInfo())