示例#1
0
 public function onEnter(SR_Player $player)
 {
     $p = $player->getParty();
     $names = array();
     foreach ($p->getMembers() as $member) {
         if (!$member->hasConst('SEATTLE_BM')) {
             $names[] = $member->getName();
         }
     }
     if (count($names) === 0) {
         return parent::onEnter($player);
     }
     $this->partyMessage($player, 'oops', array(GWF_Array::implodeHuman($names)));
     return false;
 }
示例#2
0
 public function onEnter(SR_Player $player)
 {
     $p = $player->getParty();
     $names = array();
     foreach ($p->getMembers() as $member) {
         if (!$member->hasConst('SEATTLE_BM')) {
             $names[] = $member->getName();
         }
     }
     if (count($names) === 0) {
         return parent::onEnter($player);
     }
     $this->partyMessage($player, 'nonono', array(GWF_Array::implodeHuman($names)));
     return false;
     // 		$p->notice(sprintf('One of the guards come to you. Seems like %s lack(s) the permission to enter. You decide to turn around and leave.', GWF_Array::implodeHuman($names)));
 }