Esempio n. 1
0
                                             $BossLoot['dungheroicortenman'] = Zones::GetBossLoot($NPCInfo['difficulty_entry_' . $i]['lootid']);
                                             $LootAmount = $LootAmount + count($BossLoot['dungheroicortenman']);
                                         } elseif ($i == 2) {
                                             $BossLoot['twentyfive'] = Zones::GetBossLoot($NPCInfo['difficulty_entry_' . $i]['lootid']);
                                             $LootAmount = $LootAmount + count($BossLoot['twentyfive']);
                                         } elseif ($i == 2) {
                                             $BossLoot['twentyfiveheroic'] = Zones::GetBossLoot($NPCInfo['difficulty_entry_' . $i]['lootid']);
                                             $LootAmount = $LootAmount + count($BossLoot['twentyfiveheroic']);
                                         }
                                     }
                                 }
                                 $Smarty->assign('LootAmount', $LootAmount);
                                 $Smarty->assign('BossLoot', $BossLoot);
                                 break;
                             case 'achievements':
                                 $Achievements = Zones::GetBossAchievements($NPCInfo['entry']);
                                 $Smarty->assign('AchievementsCount', count($Achievements));
                                 $Smarty->assign('Achievements', $Achievements);
                                 break;
                         }
                         $Smarty->display('fragments/boss/' . str_replace('.frag', '', $_REQUEST['datatype']));
                     }
                 } else {
                     header('Location: /zone/' . $ZoneInfo['link_name']);
                 }
             }
         }
     }
     break;
 case 'npc':
     if (Text::IsNull($_REQUEST['subcategory'])) {