public static function cmdSkills(Player $player, $numparams, $params) { $player->Send(COLOR_SKILLS_DECORATION, '-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= Skills -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-='); $buffer = ''; $bufflen = 0; for ($i = 0; $i < SKILL_MAX; $i++) { $tmp = Players::GetSkillName($i) . "[{$player->GetSkill($i)}] - "; $tmplen = strlen($tmp); if ($bufflen + $tmplen > 70) { $player->Send(COLOR_SKILLS, substr($buffer, 0, $bufflen - 3)); $buffer = ''; $bufflen = 0; } $buffer .= $tmp; $bufflen += $tmplen; } if ($bufflen > 0) { $player->Send(COLOR_SKILLS, substr($buffer, 0, $bufflen - 3)); } $player->Send(COLOR_SKILLS_DECORATION, '-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-'); if (($pts = $player->GetUpgradePoints()) > 0) { $player->Send(COLOR_YOUHAVE_UPGRADE_POINTS, "* You have {$pts} upgrade points to spend, type /upgrade to use them"); } return COMMAND_BREAK; }