本文整理汇总了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'));
}