Ejemplo n.º 1
0
 public function onMerchandize(SR_TalkingNPC $npc, SR_Player $player)
 {
     $npc->reply($this->lang('m_' . rand(0, 4)));
     if ($this->isInQuest($player)) {
         $this->increaseAmount(1);
         $player->message($this->lang('one_more', array($this->getAmount(), $this->getNeededAmount())));
         // 			$player->message(sprintf('You now told %d/%d citizens about the Redmond Temple.', $this->getAmount(), $this->getNeededAmount()));
         $npc->reply($this->lang('bye'));
         $npc->onByeChat($player);
     }
 }