Ejemplo n.º 1
0
 public function onScanLevel3(SR_Player $player, SR_Player $target)
 {
     $message = Shadowfunc::getSkills($target, '5305');
     if ($player->isFighting()) {
         $player->message($message);
     } else {
         Shadowrap::instance($player)->reply($message);
     }
 }
Ejemplo n.º 2
0
 public static function execute(SR_Player $player, array $args)
 {
     $bot = Shadowrap::instance($player);
     if (count($args) !== 1) {
         $bot->reply(Shadowhelp::getHelp($player, 'gmstats'));
         return false;
     }
     if (false !== ($npc = Shadowrun4::getPlayerByShortName($args[0]))) {
     } elseif ($npc === -1) {
         $bot->reply('The playername is ambigious.');
         return false;
     } elseif (false !== ($npc = Shadowrun4::getPlayerByPID($args[0]))) {
     } else {
         $bot->reply('The player ' . $args[0] . ' is not in memory.');
         return false;
     }
     self::reply($player, Shadowfunc::getStatus($npc, '5301'));
     self::reply($player, Shadowfunc::getEquipment($npc, '5303'));
     self::reply($player, Shadowfunc::getAttributes($npc, '5304'));
     self::reply($player, Shadowfunc::getSkills($npc, '5305'));
     //		$bot->reply(sprintf('Party: %s.', Shadowfunc::getPartyStatus($npc)));
     return true;
 }
Ejemplo n.º 3
0
 public static function execute(SR_Player $player, array $args)
 {
     return self::reply($player, Shadowfunc::getSkills($player, '5006'));
 }