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