Пример #1
0
 public function onNPCQuestTalkB(SR_TalkingNPC $npc, SR_Player $player, $word, array $args = NULL)
 {
     switch ($word) {
         case 'shadowrun':
             $npc->rply($this->lang('1'));
             $npc->rply($this->lang('2', $this->getQuestDescriptionStats()));
             break;
         case 'confirm':
             $npc->rply($this->lang('3'));
             break;
         case 'yes':
             $npc->rply($this->lang('4'));
             break;
         case 'no':
             $npc->rply($this->lang('5'));
             break;
     }
     return true;
 }
Пример #2
0
 public function onNPCQuestTalkB(SR_TalkingNPC $npc, SR_Player $player, $word, array $args = NULL)
 {
     switch ($word) {
         case 'shadowrun':
             $npc->rply($this->lang('sr1'));
             $npc->rply($this->lang('sr2'));
             $npc->rply($this->lang('sr3', array($this->getNeededAmount())));
             break;
         case 'confirm':
             $npc->rply($this->lang('confirm'));
             break;
         case 'yes':
             $npc->rply($this->lang('yes'));
             break;
         case 'no':
             $npc->rply($this->lang('no'));
             break;
     }
     return true;
 }