示例#1
0
 public function onQuestSolve(SR_Player $player)
 {
     $player->message($this->lang('impressed'));
     // 		$player->message("The monk smiles. I am very impressed my $son. May the spirit of Buddah guide your path...");
     if ($player->hasSkill('searching')) {
         $player->message($this->lang('strong'));
         // 			$player->message('The monk says: "You are really strong my '.$son.', please take this donation as a sign of deep respect to your greatful skills and patience."');
         $player->message($this->lang('nyward', array(300)));
         $player->giveNuyenEvent(300);
         // 			$player->message('You received a donation of 300 nuyen.');
     } else {
         $player->message($this->lang('reward1'));
         // 			$player->message('The monk says: "I will now teach you a real skill, the skill of seeing the invisible and finding the hidden paths."');
         $player->levelupFieldTo('searching', 0);
         $skillname = Shadowfunc::translateVariable($player, 'searching');
         $player->message($this->lang('reward2', array($skillname)));
         // 			$player->message('You have learned the skill "searching".');
     }
 }
示例#2
0
文件: Ninja.php 项目: sinfocol/gwf3
 private function teachNinja(SR_Player $player, $price)
 {
     $p = Shadowfunc::displayNuyen($price);
     if ($player->hasSkill('ninja')) {
         $this->rply('enough');
         // 			$this->reply('Thank you, but you already donated enough :)');
     } elseif ($player->hasNuyen($price)) {
         $player->pay($price);
         $player->levelupFieldTo('ninja', 0);
         // 			$player->updateField('ninja', 0);
         $this->rply('come');
         $player->message($this->langNPC('teaching'));
         // 			$this->reply("Thank you my friend. Come with me...");
         // 			$player->message('The monk teaches you the Ninja Skill. This will improve attack and damage for ninja weapons.');
         $player->modify();
     } else {
         $this->rply('sry', array($p));
         // 			$this->reply("I am sorry, but learning the ninja skill cost $p.");
     }
 }