Ejemplo n.º 1
0
 public function getCommands(SR_Player $player)
 {
     $c = parent::getCommands($player);
     if ($player->hasConst(self::REWARD_RUNES)) {
         $c[] = 'reward';
     }
     return $c;
 }
Ejemplo n.º 2
0
 public function getCommands(SR_Player $player)
 {
     $quest = SR_Quest::getQuest($player, 'Redmond_Blacksmith');
     return $quest->isDone($player) ? parent::getCommands($player) : array('view', 'buy', 'sell');
 }