Ejemplo n.º 1
0
 public function onNPCQuestTalkB(SR_TalkingNPC $npc, SR_Player $player, $word, array $args = NULL)
 {
     switch ($word) {
         case 'confirm':
             $npc->reply($this->lang($word));
             // 				$npc->reply('Could you please help me?');
             break;
         case 'shadowrun':
             $npc->reply($this->lang('shadowrun1'));
             // 				$npc->reply('I have been robbed by a horde of AngryElves and Orks. Again. There is not much left.');
             //				sleep(2);
             $npc->reply($this->lang('shadowrun2'));
             // 				$npc->reply('If you could only organize me some unstatted swords to get back in business, I could only spare a few rare items, though.');
             $npc->reply($this->lang('shadowrun3', array($npc->getName())));
             // 				$player->message($npc->getName().' looks at you questioning.');
             break;
         case 'yes':
             $npc->reply($this->lang($word, array(self::NEED_LONG, self::NEED_BROAD, self::NEED_SHORT)));
             // 				$npc->reply(sprintf('Please bring me %s LongSword, %s BroadSword and %s ShortSword.', self::NEED_LONG, self::NEED_BROAD, self::NEED_SHORT));
             break;
         case 'no':
             $npc->reply($this->lang($word));
             // 				$npc->reply('Feel free to trade then.');
             break;
     }
     return true;
 }
Ejemplo n.º 2
0
 public function getName()
 {
     return $this->getPartyID() > 0 ? parent::getName() : 'Larry';
 }
Ejemplo n.º 3
0
 public function getName()
 {
     return $this->getPartyID() > 0 ? parent::getName() : 'Mr.Stolemeyer';
 }