当前位置: 首页>>代码示例>>PHP>>正文


PHP SR_Player::levelupFieldTo方法代码示例

本文整理汇总了PHP中SR_Player::levelupFieldTo方法的典型用法代码示例。如果您正苦于以下问题:PHP SR_Player::levelupFieldTo方法的具体用法?PHP SR_Player::levelupFieldTo怎么用?PHP SR_Player::levelupFieldTo使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在SR_Player的用法示例。


在下文中一共展示了SR_Player::levelupFieldTo方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: onQuestSolve

 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".');
     }
 }
开发者ID:sinfocol,项目名称:gwf3,代码行数:19,代码来源:Redmond_Shrine.php

示例2: teachNinja

 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.");
     }
 }
开发者ID:sinfocol,项目名称:gwf3,代码行数:20,代码来源:Ninja.php


注:本文中的SR_Player::levelupFieldTo方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。