diff --git a/includes/class.achievement.php b/includes/class.achievement.php index b8d9d939..e8c89318 100644 --- a/includes/class.achievement.php +++ b/includes/class.achievement.php @@ -189,18 +189,18 @@ class AchievementList extends BaseType case ACHIEVEMENT_CRITERIA_TYPE_LEARN_SPELL: case ACHIEVEMENT_CRITERIA_TYPE_CAST_SPELL2: if (!$crtName) - $crtName = Spell::getName($crt['value1']); + $crtName = SpellList::getName($crt['value1']); break; case ACHIEVEMENT_CRITERIA_TYPE_OWN_ITEM: case ACHIEVEMENT_CRITERIA_TYPE_USE_ITEM: case ACHIEVEMENT_CRITERIA_TYPE_LOOT_ITEM: case ACHIEVEMENT_CRITERIA_TYPE_EQUIP_ITEM: if (!$crtName) - $crtName = Util::getItemName($crt['value1']); + $crtName = ItemList::getName($crt['value1']); break; case ACHIEVEMENT_CRITERIA_TYPE_GAIN_REPUTATION: if (!$crtName) - $crtName = Faction::getName($crt['value1']); + $crtName = FactionList::getName($crt['value1']); $crtName .= ' ('.Lang::getReputationLevelForPoints($crt['value2']).')'; break; } diff --git a/includes/class.faction.php b/includes/class.faction.php index 84f6f394..a64d0de2 100644 --- a/includes/class.faction.php +++ b/includes/class.faction.php @@ -4,7 +4,7 @@ if (!defined('AOWOW_REVISION')) die('illegal access'); -class Faction +class FactionList extends BaseType { public static function getName($id) { @@ -33,7 +33,12 @@ class Faction -1: hostile */ } - + + public function getListviewData() { } + public function addGlobalsToJScript(&$refs) { } + public function addRewardsToJScript(&$refs) { } + public function renderTooltip() { } + } ?> diff --git a/includes/class.item.php b/includes/class.item.php index 04750b67..a74d1b08 100644 --- a/includes/class.item.php +++ b/includes/class.item.php @@ -995,7 +995,8 @@ class ItemList extends BaseType { $json = array( 'id' => $this->id, - 'name' => (ITEM_QUALITY_HEIRLOOM - $this->curTpl['Quality']).$this->names[$this->id], + 'name' => $this->names[$this->id], + 'quality' => ITEM_QUALITY_HEIRLOOM - $this->curTpl['Quality'], 'icon' => $this->curTpl['icon'], 'classs' => $this->curTpl['class'], 'subclass' => $this->curTpl['subclass'], @@ -1066,4 +1067,54 @@ class ItemList extends BaseType public function addRewardsToJScript(&$ref) { } } + +/* +teaches + $teaches = array(); + for($j=1;$j<=4;$j++) + if($Row['spellid_'.$j]==483) + $teaches[] = spellinfo($Row['spellid_'.($j+1)]); + if($teaches) + { + $item['teaches'] = $teaches; + unset($teaches); + unset($spellrow); + } + +unlocks + $locks_row = $DB->selectCol(' + SELECT lockID + FROM ?_lock + WHERE + (type1=1 AND lockproperties1=?d) OR + (type2=1 AND lockproperties2=?d) OR + (type3=1 AND lockproperties3=?d) OR + (type4=1 AND lockproperties4=?d) OR + (type5=1 AND lockproperties5=?d) + ', + $item['entry'], $item['entry'], $item['entry'], $item['entry'], $item['entry'] + ); + if($locks_row) + { + // ??????? ??????? ? ????? ????? ?????: + $item['unlocks'] = $DB->select(' + SELECT ?# + FROM gameobject_template + WHERE + ( + ((type IN (?a)) AND (data0 IN (?a))) + OR + ((type IN (?a)) AND (data0 IN (?a))) + ) + ', + $object_cols[0], + array(GAMEOBJECT_TYPE_QUESTGIVER, GAMEOBJECT_TYPE_CHEST, GAMEOBJECT_TYPE_TRAP, GAMEOBJECT_TYPE_GOOBER, GAMEOBJECT_TYPE_CAMERA, GAMEOBJECT_TYPE_FLAGSTAND, GAMEOBJECT_TYPE_FLAGDROP), + $locks_row, + array(GAMEOBJECT_TYPE_DOOR, GAMEOBJECT_TYPE_BUTTON), + $locks_row + ); + if(!$item['unlocks']) + unset($item['unlocks']); +*/ + ?> diff --git a/template/bricks/item_table.tpl b/template/bricks/item_table.tpl index deb7268c..52328fb6 100644 --- a/template/bricks/item_table.tpl +++ b/template/bricks/item_table.tpl @@ -16,7 +16,7 @@ data:[ {foreach name=i from=$data item=curr} {ldelim} - name:'{$curr.name|escape:"quotes"}', + name:'{$curr.quality}{$curr.name|escape:"quotes"}', {if isset($curr.level)} level:{$curr.level}, {/if}