本文整理汇总了PHP中Shadowfunc::displayETA方法的典型用法代码示例。如果您正苦于以下问题:PHP Shadowfunc::displayETA方法的具体用法?PHP Shadowfunc::displayETA怎么用?PHP Shadowfunc::displayETA使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Shadowfunc
的用法示例。
在下文中一共展示了Shadowfunc::displayETA方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: onElevate
private function onElevate(SR_Player $player, $n = 0, $btn = 'up')
{
if (false === ($floor = $this->getElevatorFloorN($n))) {
$player->message('This floor does not exist.');
return false;
}
if (false === $this->hasElevatorPermN($player, $n)) {
$player->msg('1135');
// $player->message('Somehow the elevator is blocking this floor for you.');
return false;
}
if ($floor->getName() === $this->getName()) {
$player->msg('1136');
// $player->message('You push the button but you are on the very same floor already.');
return false;
}
$eta = $this->getElevatorTime();
$player->getParty()->ntice('5177', array($btn, Shadowfunc::displayETA($eta)));
if (false === $this->teleportInside($player, $floor->getName(), $eta)) {
$player->message('Error!');
return false;
}
// $message = 'Your party pushes the '.$btn.' button and the elevator starts to move. '.Shadowfunc::displayETA($eta);
// return $player->getParty()->notice($message);
return true;
}