Just a simple command I made because I was sick of shift-upping to cycle through races in-game.
Note: If you want to see races on a higher scale there's a race viewer in EoC with all of them.
global_player.pl under sub EVENT_SAY
Code:
if($text=~/#racebrowse/i) {
my $CT = $client->GetTarget();
my $CTR = $CT->GetRace();
my $report = $CTR - 1;
if($status > 100) {
if($CT->IsNPC()) {
$CT->SetRace($CTR + 1);
$client->Message(15, "Current Race: $report");
}
else {
$client->Message(13, "Error: Invalid Use");
}
}
else {
$client->Message(13, "You are unable to use this command.");
}
}