Отображение предметов с флагом Heroic
PHP код:
Index: include/item_table.php
===================================================================
--- include/item_table.php (revision 29)
+++ include/item_table.php (working copy)
@@ -50,6 +50,7 @@
define('ITEM_FLAGS_CONJURED', 0x00000002);
define('ITEM_FLAGS_OPENABLE', 0x00000004);
define('ITEM_FLAGS_WRAPPED', 0x00000008);
+define('ITEM_FLAGS_HEROIC', 0x00000008);
define('ITEM_FLAGS_WRAPPER', 0x00000200); // used or not used wrapper
define('ITEM_FLAGS_PARTY_LOOT', 0x00000800); // determines if item is party loot or not
define('ITEM_FLAGS_CHARTER', 0x00002000); // arena/guild charter
@@ -285,6 +286,10 @@
// Вывод имени
echo '<tr><td class=name><SPAN class='.$Quality***91;$colorname***93;.'>'.$item***91;'name'***93;.'</SPAN></td></tr>';
+ // Heroic item (green)
+ if ($item***91;'Flags'***93;& ITEM_FLAGS_HEROIC || ((isset($item***91;'itemset'***93;) && $item***91;'itemset'***93; > 0 && $item***91;'Flags'***93; == 4104)) )
+ echo '<tr><td class=SpellStat>'.$game_text***91;'item_heroic'***93;.'</td></tr>';
+
if ($item***91;'area'***93;)
echo '<tr><td>'.getAreaName($item***91;'area'***93;).'</td></tr>';
@@ -300,7 +305,7 @@
if ($item***91;'Flags' ***93;& ITEM_FLAGS_OPENABLE)
echo '<tr><td class=SpellStat>'.$game_text***91;'right_click'***93;.'</td></tr>';
// <Right Click to Read>
-
+
// Вывод уникальности вещи
if ($item***91;'maxcount'***93;==1)echo '<tr><td class=Unique>'.$game_text***91;'unique'***93;.'</td></tr>';
if ($item***91;'maxcount'***93; >1)echo '<tr><td class=Unique>'.$game_text***91;'unique'***93;.'('.$item***91;'maxcount'***93;.')</td></tr>';
Index: lang/game_text.en.php
===================================================================
--- lang/game_text.en.php (revision 29)
+++ lang/game_text.en.php (working copy)
@@ -620,5 +620,6 @@
'talent_req_points'=>'Require <num> points in <name> tree',
'other_faction'=>'Other',
+'item_heroic'=>'Heroic',
);
?>
\ No newline at end of file
Index: lang/game_text.ru.php
===================================================================
--- lang/game_text.ru.php (revision 29)
+++ lang/game_text.ru.php (working copy)
@@ -618,6 +618,7 @@
'talent_next_rank'=>'Следующий ранг:',
'talent_req_points'=>'Требует <num> талант(ов) в ветке <name>',
-'other_faction'=>'Остальные'
+'other_faction'=>'Остальные',
+'item_heroic'=>'Героический',
);
?>
Не работал поиск персонажей из-за лишней скобки:
PHP код:
Index: module/search/search_player.php
===================================================================
--- module/search/search_player.php (revision 29)
+++ module/search/search_player.php (working copy)
@@ -55,7 +55,6 @@
else if ($number == 1) // Перенаправляем
echo '<meta http-equiv="refresh" content=1;URL=?player='.$p_search->data_array***91;0***93;***91;'guid'***93;.'>';
else
- {
$p_search->createReport($lang***91;'search_results'***93;.' - '.$lang***91;'found'***93;.' '.$number);
}
?>
\ No newline at end of file