本文整理汇总了PHP中Shadowfunc::displayASL方法的典型用法代码示例。如果您正苦于以下问题:PHP Shadowfunc::displayASL方法的具体用法?PHP Shadowfunc::displayASL怎么用?PHP Shadowfunc::displayASL使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Shadowfunc
的用法示例。
在下文中一共展示了Shadowfunc::displayASL方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: onASLShowPlayer
public static function onASLShowPlayer(SR_Player $player, array $args)
{
$b = chr(2);
if ($player->getBase('age') > 0) {
return self::rply($player, '5012', array(Shadowfunc::displayASL($player), self::translate('asl')));
// return self::reply($player, sprintf("Your asl: %s. Use #asl [<age|bmi|height>] for party sums.", Shadowfunc::displayASL($player)));
} else {
$player->msg('1011', array(self::translate('aslset')));
// $player->message(sprintf("You did not setup your asl with {$b}#aslset{$b} yet. You need to do this to start moving in the game."));
return false;
}
}
示例2: onASLSetCustom
public static function onASLSetCustom(SR_Player $player, $age, $bmi, $height)
{
$age = abs((int) $age);
$bmi = abs((int) $bmi);
$height = abs((int) $height);
if (false === $player->saveVars(array('sr4pl_age' => $age, 'sr4pl_bmi' => $bmi, 'sr4pl_height' => $height))) {
self::reply($player, 'Database errror 12!');
return false;
}
$player->modify();
return self::rply($player, '5266', array(Shadowfunc::displayASL($player)));
// return self::reply($player, sprintf('Your asl has been set to %s.', Shadowfunc::displayASL($player)));
}