Changeset 517


Ignore:
Timestamp:
Mar 23, 2009, 10:37:36 PM (16 years ago)
Author:
barny
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/pages/online.php

    r516 r517  
    3737  $db -> select_db($db_characters);
    3838  $sql = $db -> query("SELECT guid,name,race,class,zone,map,
    39                                 CAST( SUBSTRING_INDEX(SUBSTRING_INDEX(`characters`.`data`, ' ', ".(CHAR_DATA_OFFSET_HONOR_POINTS+1)."), ' ', -1) AS UNSIGNED) AS honor ,
    40                                 CAST( SUBSTRING_INDEX(SUBSTRING_INDEX(`characters`.`data`, ' ', ".(CHAR_DATA_OFFSET_LEVEL+1)."), ' ', -1) AS UNSIGNED) AS level,
    41                                 CAST( SUBSTRING_INDEX(SUBSTRING_INDEX(`characters`.`data`, ' ', ".(PLAYER_FIELD_ARENA_CURRENCY +1)."), ' ', -1) AS UNSIGNED) as GNAME,
    42                                 mid(lpad( hex( CAST(substring_index(substring_index(data,' ',".(CHAR_DATA_OFFSET_GENDER+1)."),' ',-1) as unsigned) ),8,'0'),4,1) as gender
     39  CAST( SUBSTRING_INDEX(SUBSTRING_INDEX(`data`, ' ', 1498+1), ' ', -1) AS UNSIGNED) AS highest_rank,
     40  CAST( SUBSTRING_INDEX(SUBSTRING_INDEX(`data`, ' ', ".(UNIT_FIELD_LEVEL+1)."), ' ', -1) AS UNSIGNED) AS level,
     41  CAST( SUBSTRING_INDEX(SUBSTRING_INDEX(`data`, ' ', ".(PLAYER_FIELD_ARENA_CURRENCY+1)."), ' ', -1) AS UNSIGNED) AS arena_points,
     42  mid(lpad( hex( CAST(substring_index(substring_index(data,' ',36+1),' ',-1) as unsigned) ),8,'0'),4,1) AS gender
    4343  FROM `characters` WHERE `online`= 1 ORDER BY `".$order_by."` $order_dir;");
    4444while($row = $sql -> fetch_array())
Note: See TracChangeset for help on using the changeset viewer.