本文整理匯總了PHP中Shadowfunc::getAttributes方法的典型用法代碼示例。如果您正苦於以下問題:PHP Shadowfunc::getAttributes方法的具體用法?PHP Shadowfunc::getAttributes怎麽用?PHP Shadowfunc::getAttributes使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Shadowfunc
的用法示例。
在下文中一共展示了Shadowfunc::getAttributes方法的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: onScanLevel2
public function onScanLevel2(SR_Player $player, SR_Player $target)
{
$message = Shadowfunc::getAttributes($target, '5304');
if ($player->isFighting()) {
$player->message($message);
} else {
Shadowrap::instance($player)->reply($message);
}
}
示例2: execute
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;
}
示例3: execute
public static function execute(SR_Player $player, array $args)
{
return self::reply($player, Shadowfunc::getAttributes($player, '5004'));
}