当前位置: 首页>>代码示例>>PHP>>正文


PHP GetQuestInfo函数代码示例

本文整理汇总了PHP中GetQuestInfo函数的典型用法代码示例。如果您正苦于以下问题:PHP GetQuestInfo函数的具体用法?PHP GetQuestInfo怎么用?PHP GetQuestInfo使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了GetQuestInfo函数的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: GetQuestInfo

            $object['starts'][] = GetQuestInfo($row, 0xffffff);
        }
    }
    unset($rows_qs);
    // Заканчивают квесты...
    $rows_qe = $DB->select('
		SELECT ?#
		FROM gameobject_involvedrelation i, quest_template q
		WHERE
			i.id = ?d
			AND q.entry = i.quest
		', $quest_cols[2], $id);
    if ($rows_qe) {
        $object['ends'] = array();
        foreach ($rows_qe as $numRow => $row) {
            $object['ends'][] = GetQuestInfo($row, 0xffffff);
        }
    }
    unset($rows_qe);
    // Положения объектофф:
    $data = $DB->select('SELECT position_y as y, position_x as x, map as m, spawntimesecs FROM gameobject WHERE id = ?d', $id);
    position($data);
    save_cache(3, $object['entry'], $object);
}
global $page;
$page = array('Mapper' => false, 'Book' => false, 'Title' => $object['name'] . ' - ' . $smarty->get_config_vars('Objects'), 'tab' => 0, 'type' => 2, 'typeid' => $object['entry'], 'path' => '[0,5,' . $object['type'] . ']');
if ($object['pagetext']) {
    $page['Book'] = true;
}
$page['Mapper'] = true;
$smarty->assign('page', $page);
开发者ID:OregonCore,项目名称:AoWoW,代码行数:31,代码来源:object.php

示例2: unset

if (!($quests = load_cache(12, $cache_str))) {
    unset($quests);
    global $DB, $quest_class, $quest_cols;
    $rows = $DB->select('
		SELECT ?#
		FROM ?_quest_template q
		WHERE
			1 = 1
			{ AND ZoneOrSort = ? }
			{ AND ZoneOrSort IN (?a) }
		ORDER BY Title
		{LIMIT ?d}
		', $quest_cols[2], isset($ZoneOrSort) ? $ZoneOrSort : DBSIMPLE_SKIP, (!isset($ZoneOrSort) and $Type) ? $quest_class[$Type] : DBSIMPLE_SKIP, $UDWBaseconf['limit'] > 0 ? $UDWBaseconf['limit'] : DBSIMPLE_SKIP);
    $quests = array();
    foreach ($rows as $numRow => $row) {
        $quests[] = GetQuestInfo($row, QUEST_DATAFLAG_LISTINGS);
    }
    save_cache(12, $cache_str, $quests);
}
global $page;
$page = array('Mapper' => false, 'Book' => false, 'Title' => $smarty->get_config_vars('Quests'), 'tab' => 0, 'type' => 0, 'typeid' => 0, 'path' => '[0, 3,' . $Type . ' ,' . $ZoneOrSort . ']');
$smarty->assign('page', $page);
// Если хоть одна информация о вещи найдена - передаём массив с информацией о вещях шаблонизатору
if ($allitems) {
    $smarty->assign('allitems', $allitems);
}
if ($quests) {
    $smarty->assign('quests', $quests);
}
// Количество MySQL запросов
$smarty->assign('mysql', $DB->getStatistics());
开发者ID:Refuge89,项目名称:World-of-Warcraft-Trinity-Core-MaNGOS,代码行数:31,代码来源:quests.php

示例3: foreach

    foreach ($tmp as $t) {
        $m[] = $t['entry'];
    }
}
$rows = $DB->select('
		SELECT *
			{, l.Title_loc?d AS `Title_loc`}
		FROM quest_template q
			{LEFT JOIN (locales_quest l) ON l.entry=q.entry AND ?d}
		WHERE Title LIKE ? {OR q.entry IN (?a)}
	', $m ? $_SESSION['locale'] : DBSIMPLE_SKIP, $m ? 1 : DBSIMPLE_SKIP, $nsearch, $m ? $m : DBSIMPLE_SKIP);
unset($m);
unset($t);
unset($tmp);
foreach ($rows as $numRow => $row) {
    $found['quest'][] = GetQuestInfo($row, 0xffffff);
}
// Ищем наборы вещей
$rows = $DB->select('
		SELECT *
		FROM ?_itemset
		WHERE name LIKE ?
	', $nsearch);
foreach ($rows as $numRow => $row) {
    $found['itemset'][] = itemsetinfo2($row);
}
// Ищем спеллы
$rows = $DB->select('
		SELECT ?#, spellID
		FROM ?_spell s, ?_spellicons i
		WHERE
开发者ID:hearthstone-wow,项目名称:AoWoW,代码行数:31,代码来源:search.php

示例4: unset

    }
    unset($rows_qe);
    // Необходимы для квеста..
    $rows_qo = $DB->select('
		SELECT ?#
		FROM ?_quest_template
		WHERE
			ReqCreatureOrGOId1=?
			OR ReqCreatureOrGOId2=?
			OR ReqCreatureOrGOId3=?
			OR ReqCreatureOrGOId4=?
		', $quest_cols[2], $id, $id, $id, $id);
    if ($rows_qo) {
        $npc['objectiveof'] = array();
        foreach ($rows_qo as $numRow => $row) {
            $npc['objectiveof'][] = GetQuestInfo($row, 0xffffff);
        }
    }
    unset($rows_qo);
    // Положения созданий божих:
    position($npc['entry'], 'creature');
    save_cache(1, $npc['entry'], $npc);
}
global $page;
$page = array('Mapper' => true, 'Book' => false, 'Title' => $npc['name'] . ' - ' . $smarty->get_config_vars('NPCs'), 'tab' => 0, 'type' => 1, 'typeid' => $npc['entry'], 'path' => '[0,4,' . $npc['type'] . ']');
$smarty->assign('page', $page);
// Комментарии
$smarty->assign('comments', getcomments($page['type'], $page['typeid']));
// Если хоть одна информация о вещи найдена - передаём массив с информацией о вещях шаблонизатору
if (isset($allitems)) {
    $smarty->assign('allitems', $allitems);
开发者ID:Refuge89,项目名称:World-of-Warcraft-Trinity-Core-MaNGOS,代码行数:31,代码来源:npc.php

示例5: allquestinfo

function allquestinfo($id)
{
    global $allquests;
    if (!$allquests[$id]) {
        $allquests[$id] = GetQuestInfo($id, QUEST_DATAFLAG_MINIMUM);
    }
    return $allquests[$id];
}
开发者ID:saqar,项目名称:tc_aowow,代码行数:8,代码来源:allquests.php

示例6: unset

            unset($creature_rows);
        }
        // Квесты для этой фракции
        $quests_rows = $DB->select('
			SELECT ?#
			FROM quest_template
			WHERE
				RewRepFaction1=?d
				OR RewRepFaction2=?d
				OR RewRepFaction3=?d
				OR RewRepFaction4=?d
			', $quest_cols[2], $id, $id, $id, $id);
        if ($quests_rows) {
            $faction['quests'] = array();
            foreach ($quests_rows as $i => $row) {
                $faction['quests'][] = GetQuestInfo($row, 0xffffff);
            }
            unset($quests_rows);
        }
        // Faction cache
        save_cache(18, $faction['entry'], $faction);
    }
}
$page = array('Mapper' => false, 'Book' => false, 'Title' => $faction['name'] . ' - ' . $smarty->get_config_vars('Factions'), 'tab' => 0, 'type' => 8, 'typeid' => $faction['entry'], 'path' => '[0, 7, 0]');
$smarty->assign('page', $page);
// Комментарии
$smarty->assign('comments', getcomments($page['type'], $page['typeid']));
// Данные о квесте
$smarty->assign('faction', $faction);
// Если хоть одна информация о вещи найдена - передаём массив с информацией о вещях шаблонизатору
if (isset($allitems)) {
开发者ID:hearthstone-wow,项目名称:AoWoW,代码行数:31,代码来源:faction.php

示例7: array

		WHERE
			RewItemId1=?d
			OR RewItemId2=?d
			OR RewItemId3=?d
			OR RewItemId4=?d
			OR RewChoiceItemId1=?d
			OR RewChoiceItemId2=?d
			OR RewChoiceItemId3=?d
			OR RewChoiceItemId4=?d
			OR RewChoiceItemId5=?d
			OR RewChoiceItemId6=?d
		', $quest_cols[2], $item['entry'], $item['entry'], $item['entry'], $item['entry'], $item['entry'], $item['entry'], $item['entry'], $item['entry'], $item['entry'], $item['entry']);
    if ($rows_qrw) {
        $item['rewardof'] = array();
        foreach ($rows_qrw as $numRow => $row) {
            $item['rewardof'][] = GetQuestInfo($row, 0xffffff);
        }
    }
    unset($rows_qrw);
    // Поиск вещей, в которых находятся эти вещи
    $drops_cii = drop('?_item_loot_template', $item['entry']);
    if ($drops_cii) {
        $item['containedinitem'] = array();
        foreach ($drops_cii as $lootid => $drop) {
            $rows = $DB->select('
				SELECT c.?#, c.entry, maxcount
				{ , l.name_loc?d AS `name_loc`}
				FROM ?_udwbase_icons, ?_item_template c
				{ LEFT JOIN (?_locales_item l) ON l.entry=c.entry AND ? }
				WHERE
					c.entry=?d
开发者ID:ryancheung,项目名称:aowow-1,代码行数:31,代码来源:item.php

示例8: unset

            unset($usedbyitemset);
        }
        // Спелл - награда за квест
        $questreward = $DB->select('
			SELECT c.?#
			{ , Title_loc?d AS Title_loc }
			FROM quest_template c
			{ LEFT JOIN (locales_quest l) ON c.entry = l.entry AND ? }
			WHERE
				RewSpell = ?d
				OR RewSpellCast = ?d
			', $quest_cols[2], $_SESSION['locale'] > 0 ? $_SESSION['locale'] : DBSIMPLE_SKIP, $_SESSION['locale'] > 0 ? 1 : DBSIMPLE_SKIP, $spell['entry'], $spell['entry']);
        if ($questreward) {
            $spell['questreward'] = array();
            foreach ($questreward as $i => $row) {
                $spell['questreward'][] = GetQuestInfo($row, 0xffffff);
            }
            unset($questreward);
        }
        // Проверяем на пустые массивы
        if (!$spell['taughtbyitem']) {
            unset($spell['taughtbyitem']);
        }
        if (!$spell['taughtbynpc']) {
            unset($spell['taughtbynpc']);
        }
        // Цель критерии
        $rows = $DB->select('
				SELECT a.id, a.faction, a.name_loc?d AS name, a.description_loc?d AS description, a.category, a.points, s.iconname, z.areatableID
				FROM ?_spellicons s, ?_achievementcriteria c, ?_achievement a
				LEFT JOIN (?_zones z) ON a.map != -1 AND a.map = z.mapID
开发者ID:Reved,项目名称:aowow,代码行数:31,代码来源:spell.php

示例9: unset

    unset($object);
    // Данные об объекте:
    $object = array();
    $object = objectinfo($id, 1);
    // Начиниают квесты...
    $rows_qs = $DB->select('
		SELECT o.?#
		FROM gameobject_questrelation q, quest_template o
		WHERE
			q.id = ?d
			AND o.entry = q.quest
		', $quest_cols[2], $id);
    if ($rows_qs) {
        $object['starts'] = array();
        foreach ($rows_qs as $numRow => $row) {
            $object['starts'][] = GetQuestInfo($row, 0xffffff);
        }
    }
    unset($rows_qs);
    // Заканчивают квесты...
    /*$rows_qe = $DB->select('
    		SELECT ?#
    		FROM gameobject_involvedrelation i, quest_template q
    		WHERE
    			i.id = ?d
    			AND q.entry = i.quest
    		',
    		$quest_cols[2],
    		$id
    	);
    	if($rows_qe)
开发者ID:BACKUPLIB,项目名称:Infinity_MaNGOS,代码行数:31,代码来源:object.php

示例10: GetDBQuestInfo

function GetDBQuestInfo($id, $dataflag = QUEST_DATAFLAG_MINIMUM)
{
    global $DB, $questcols, $quest_class;
    $data = $DB->selectRow('
			SELECT
				1
				{, ?# } {, ?# } {, ?# } {, ?# } {, ?# }
			FROM quest_template
			WHERE entry=?d
			LIMIT 1
		', $dataflag & QUEST_DATAFLAG_MINIMUM ? $questcols[QUEST_DATAFLAG_MINIMUM] : DBSIMPLE_SKIP, $dataflag & QUEST_DATAFLAG_STRINGS ? $questcols[QUEST_DATAFLAG_STRINGS] : DBSIMPLE_SKIP, $dataflag & QUEST_DATAFLAG_SERIES ? $questcols[QUEST_DATAFLAG_SERIES] : DBSIMPLE_SKIP, $dataflag & QUEST_DATAFLAG_PROPS ? $questcols[QUEST_DATAFLAG_PROPS] : DBSIMPLE_SKIP, $dataflag & QUEST_DATAFLAG_REWARDS ? $questcols[QUEST_DATAFLAG_REWARDS] : DBSIMPLE_SKIP, $id);
    if (!$data) {
        return false;
    } else {
        return GetQuestInfo($data, $dataflag);
    }
}
开发者ID:OregonCore,项目名称:AoWoW,代码行数:17,代码来源:allquests.php


注:本文中的GetQuestInfo函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。