public function onEnter(SR_Player $player) { if (false === parent::onEnter($player)) { return false; } return $this->teleportOutside($player, $this->getExitLocation()); }
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); }