Ulduar
19.02.2014, 13:03
У Керноби нет флага квестгивера, следовательно квест нельзя начать.
https://github.com/scriptdev2/scriptdev2-cata/commit/06469732e78ddd67419d7881f07e49d6efc43842
DELETE FROM `creature_questrelation` WHERE `quest` = 2904;
DELETE FROM `gameobject_questrelation` WHERE `quest` = 2904;
UPDATE `item_template` SET `StartQuest`=0 WHERE `StartQuest` = 2904;
INSERT INTO `creature_questrelation` (`id`, `quest`) VALUES (7850, 2904);
UPDATE `creature_template` SET `npcflag`=`npcflag`|2 WHERE `entry` = 7850;
+bool QuestAccept_npc_kernobee(Player* pPlayer, Creature* pCreature, const Quest* pQuest)
+{
+ if (pQuest->GetQuestId() == QUEST_A_FINE_MESS)
+ pCreature->AI()->SendAIEvent(AI_EVENT_START_EVENT, pPlayer, pCreature, pQuest->GetQuestId());
+
+ return true;
+}
Блин даже квест может отправить SendAIEvent.
https://github.com/scriptdev2/scriptdev2-cata/commit/06469732e78ddd67419d7881f07e49d6efc43842
DELETE FROM `creature_questrelation` WHERE `quest` = 2904;
DELETE FROM `gameobject_questrelation` WHERE `quest` = 2904;
UPDATE `item_template` SET `StartQuest`=0 WHERE `StartQuest` = 2904;
INSERT INTO `creature_questrelation` (`id`, `quest`) VALUES (7850, 2904);
UPDATE `creature_template` SET `npcflag`=`npcflag`|2 WHERE `entry` = 7850;
+bool QuestAccept_npc_kernobee(Player* pPlayer, Creature* pCreature, const Quest* pQuest)
+{
+ if (pQuest->GetQuestId() == QUEST_A_FINE_MESS)
+ pCreature->AI()->SendAIEvent(AI_EVENT_START_EVENT, pPlayer, pCreature, pQuest->GetQuestId());
+
+ return true;
+}
Блин даже квест может отправить SendAIEvent.