示例#1
0
 public function onEnter(SR_Player $player)
 {
     if (false === parent::onEnter($player)) {
         return false;
     }
     return $this->teleportOutside($player, $this->getExitLocation());
 }
示例#2
0
文件: Renraku.php 项目: sinfocol/gwf3
 public function onEnter(SR_Player $player)
 {
     $p = $player->getParty();
     foreach ($p->getMembers() as $member) {
         $member instanceof SR_Player;
         if (!$member->getInvItemByName('IDCardA')) {
             SR_NPC::createEnemyParty('Renraku_Guard', 'Renraku_Guard', 'Renraku_Guard')->talk($p, true);
             return true;
         }
     }
     return parent::onEnter($player);
 }