Пример #1
0
    def func(self):
        "Handle command"

        caller = self.caller
        if not caller:
            return

        MATCH_QUEUE_HANDLER.reject(caller)
Пример #2
0
    def func(self):
        "Handle command"

        caller = self.caller
        if not caller:
            return
        
        MATCH_QUEUE_HANDLER.reject(caller)
Пример #3
0
 def func(self):
     "Handle command"
     caller = self.caller
     if not caller:
         return
         
     if caller.db.level < settings.MIN_HONOUR_LEVEL:
         caller.msg({"alert":_("You need to reach level %s." % settings.MIN_HONOUR_LEVEL)})
         return
     
     MATCH_QUEUE_HANDLER.add(caller)
Пример #4
0
    def at_pre_unpuppet(self):
        """
        Called just before beginning to un-connect a puppeting from
        this Player.
        
        """
        if not self.solo_mode:
            # notify its location
            if self.location:
                change = {"dbref": self.dbref,
                          "name": self.get_name()}
                self.location.msg_contents({"player_offline":change}, exclude=self)

        MATCH_QUEUE_HANDLER.remove(self)
Пример #5
0
    def func(self):
        "Handle command"
        caller = self.caller
        if not caller:
            return

        if caller.db.level < settings.MIN_HONOUR_LEVEL:
            caller.msg({
                "alert":
                _("You need to reach level %s." % settings.MIN_HONOUR_LEVEL)
            })
            return

        MATCH_QUEUE_HANDLER.add(caller)