fixed problem with item & zone

This commit is contained in:
Ulf Gebhardt 2017-01-15 13:51:56 +01:00
parent 6c1c360c23
commit 96433a7d09
3 changed files with 6 additions and 2 deletions

View File

@ -299,7 +299,7 @@ if (!$item = load_cache(5, $id)) {
FROM '.$UDWBaseconf['aowow']['db'].'.?_aowow_factiontemplate, ?_creature_template c
{ LEFT JOIN (?_locales_creature l) ON l.entry=c.entry AND ? }
WHERE
skinloot=?d
skinninglootid=?d
AND factiontemplateID=FactionAlliance
', $npc_cols[0], ($_SESSION['locale'] > 0) ? $_SESSION['locale'] : DBSIMPLE_SKIP, ($_SESSION['locale'] > 0) ? 1 : DBSIMPLE_SKIP, $lootid
);

View File

@ -102,6 +102,7 @@
<div id="listview-generic" class="listview"></div>
<script type="text/javascript">
var tabsRelated = new Tabs({ldelim}parent: ge('tabs-generic'){rdelim});
{if isset($allitems)}{include file='bricks/allitems_table.tpl' data=$allitems}{/if}
{if isset($zone.fishing)}{include file='bricks/item_table.tpl' id='fishing' name='fishing' tabsid='tabsRelated' data=$zone.fishing}{/if}
{if isset($zone.subzones)}{include file='bricks/zone_table.tpl' id='zones' name='zones' tabsid='tabsRelated' data=$zone.subzones}{/if}

View File

@ -181,6 +181,9 @@ if(!$zone = load_cache(ZONE_PAGE, $id))
)
);
}
if (IsSet($allitems))
$smarty->assign('allitems', $allitems);
/* // Положения объектофф:
$zone['position'] = position($object['entry'], 'gameobject');
@ -207,7 +210,7 @@ $page = array(
'tab' => 1,
'type' => 0,
'typeid' => 0,
'path' => null,//path(1, 1), //path(0, 6, $zone['map'])
'path' => '[1, 1, '.$zone['map'].']',
'comment' => true
);