Getting Started
Rules
Character Mover
Optimization Guide
EZ Wiki
EZ Guide
Magelo
Zone List
Spell Recipes
T10.5 Spell Recipes
Crafting Recipes
Donate
EZ Player Discord
EZ Server Files
EZ Client Downloads
Custom UF MiniMap
Custom UF Inventory
EQEmulator Home
Allakhazam Home
UFMissingFilesList
TwitchTV
my $hptotal = $client->GetMaxHP();my $manatotal = $client->GetMaxMana();my $actotal = $client->GetAC();
my $baserace = $client->GetBaseRace();my %racelist = (1 => ["Human"],2 => ["Barbarian"],3 => ["Erudite"],4 => ["Wood Elf"],5 => ["High Elf"],6 => ["Dark Elf"],7 => ["Half Elf"],8 => ["Dwarf"],9 => ["Troll"],10 => ["Ogre"],11 => ["Halfling"],12 => ["Gnome"],330 => ["Froglok"],522 => ["Drakkin"],);my $baserace2 = $racelist{$baserace}[0];
my $query = "SELECT name, level, race, class, hp, mana, ac, played FROM leaderboards ORDER BY $ORDER_BY DESC LIMIT 10"; my $query_handle = $connect->prepare($query); $query_handle->execute(); # GET THE 10 RECORDS my $place_count = 1; while(my $ref = $query_handle->fetchrow_hashref) { $GET_NAME = $ref->{'name'}; $GET_LEVEL = $ref->{'level'}; $GET_RACE = $ref->{'race'}; $GET_CLASS = $ref->{'class'}; $GET_HP = commify2($ref->{'hp'}); $GET_MANA = commify2($ref->{'mana'}); $GET_AC = commify2($ref->{'ac'}); $GET_PLAYED = $ref->{'played'}; $GetDays = commify2(int($GET_PLAYED/(24*60*60))); $GetDays = "Blocked"; push(@table, "<TR><TD>$place_count <TD><c \"#FE2E2E\"> $GET_NAME </c> <TD><c \"#DF7401\"> $GET_LEVEL </c> <TD><c \"#868A08\"> $GET_RACE </c> <TD><c \"#088A08\"> $GET_CLASS </c> <TD><c \"#0B615E\"> $GET_HP </c> <TD><c \"#0431B4\"> $GET_MANA </c> <TD><c \"#8904B1\"> $GET_AC </c> <TD><c \"#DF013A\"> $GetDays </c> <TD>"); $place_count++; } push(@table, "</table>"); quest::popup("Top Ten Players by $ORDER_BY", "@table");
mysql> set global max_allowed_packet=100000000;Query OK, 0 rows affected (0.00 sec)
$sth = $dbh->prepare("SELECT name, hp, mana, class, level, armor, aa, race FROM leaderboard ORDER BY hp DESC LIMIT 10,10");
128 => ["Iksar"],130 => ["Vah Shir"],