public function onCityEnter(SR_Party $party) { $party->giveKnowledge('places', 'Prison_Registry'); if ($party->hasNPCClassed('PrisonB2_Malois')) { $this->setAlert($party, 9000000); } $party->notice('You can see the registry from here.'); parent::onCityEnter($party); }
private function onWentTo(SR_Party $party) { $target = $party->getTarget(); $location = $this->getLocation($target); $party->giveKnowledge('places', $target); $party->pushAction(SR_Party::ACTION_OUTSIDE, $target); if ($location->isEnterAllowedParty($party)) { $location->onEnter($party->getLeader()); } }