Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[3.3.5] DB/Quest: improvements for 'The Key to Scholomance' quests #20754

Closed
Wyreth opened this issue Oct 30, 2017 · 6 comments
Closed

[3.3.5] DB/Quest: improvements for 'The Key to Scholomance' quests #20754

Wyreth opened this issue Oct 30, 2017 · 6 comments

Comments

@Wyreth
Copy link
Contributor

Wyreth commented Oct 30, 2017

Description:

Both quests have wrong questgiver/questender and wrong offer reward text.

Also the turn-in events for the previous quests aren't scripted.

Here's the only proper video I could find about the quest chain.

Branch(es): 3.3.5

TC rev. hash/commit: 9c4ae46

TDB version: 335.63

Suggested fix:

--
UPDATE `creature_queststarter` SET `id`=11056 WHERE `quest`=5505;
UPDATE `creature_questender` SET `id`=11056 WHERE `quest`=5505;

UPDATE `creature_queststarter` SET `id`=11057 WHERE `quest`=5511;
UPDATE `creature_questender` SET `id`=11057 WHERE `quest`=5511;

DELETE FROM `smart_scripts` WHERE `entryorguid` IN (11056, 11057) AND `source_type`=0 AND `id`=8;
DELETE FROM `smart_scripts` WHERE `entryorguid`=1105600 AND `source_type`=9;
INSERT INTO `smart_scripts` (`entryorguid`, `source_type`, `id`, `link`, `event_type`, `event_phase_mask`, `event_chance`, `event_flags`, `event_param1`, `event_param2`, `event_param3`, `event_param4`, `action_type`, `action_param1`, `action_param2`, `action_param3`, `action_param4`, `action_param5`, `action_param6`, `target_type`, `target_param1`, `target_param2`, `target_param3`, `target_x`, `target_y`, `target_z`, `target_o`, `comment`) VALUES
(11056, 0, 8, 0, 20, 0, 100, 0, 5803, 0, 0, 0, 80, 1105600, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, "Alchemist Arbington - On Quest 'Araj's Scarab' Rewarded - Run Script"),
(11057, 0, 8, 0, 20, 0, 100, 0, 5804, 0, 0, 0, 80, 1105600, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, "Apothecary Dithers - On Quest 'Araj's Scarab' Rewarded - Run Script"),
(1105600, 9, 0, 0, 0, 0, 100, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, "Alchemist Arbington and Apothecary Dithers - On Quest 'Araj's Scarab' Rewarded - Say Line 0"),
(1105600, 9, 1, 0, 0, 0, 100, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, "Alchemist Arbington and Apothecary Dithers - On Quest 'Araj's Scarab' Rewarded - Say Line 1"),
(1105600, 9, 2, 0, 0, 0, 100, 0, 0, 0, 0, 0, 11, 15050, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, "Alchemist Arbington and Apothecary Dithers - On Quest 'Araj's Scarab' Rewarded - Cast 'Psychometry'");

DELETE FROM `creature_text` WHERE `CreatureID` IN (11056, 11057);
INSERT INTO `creature_text` (`CreatureID`, `GroupID`, `ID`, `Text`, `Type`, `Language`, `Probability`, `Emote`, `Duration`, `Sound`, `BroadcastTextId`, `TextRange`, `comment`) VALUES
(11056, 0, 0, "The solution is ready in my cauldron.  It's just the matter of treating both the unfinished key and the scarab.", 12, 0, 100, 0, 0, 0, 7278, 0, "Alchemist Arbington"),
(11056, 1, 0, "It's done $n, and I think you'll be satisfied with the results.", 12, 0, 100, 0, 0, 0, 7279, 0, "Alchemist Arbington"),
(11057, 0, 0, "The solution is ready in my cauldron.  It's just the matter of treating both the unfinished key and the scarab.", 12, 0, 100, 0, 0, 0, 7280, 0, "Apothecary Dithers"),
(11057, 1, 0, "It's done $n, and I think you'll be satisfied with the results.", 12, 0, 100, 0, 0, 0, 7281, 0, "Apothecary Dithers");

UPDATE `quest_offer_reward` SET `RewardText`="Well, here you are, $n - the completed Skeleton Key.  I am certain as I can be that this key will allow you within the confines of the Scholomance.  There's only one way to be absolutely sure it works, though. Waste no time in trying it out, I say.$B$BGood luck, mighty hero.  May your victories continue to bring you fame and power as you lay waste to Scholomance!" WHERE `ID` IN (5505, 5511);

@ghost
Copy link

ghost commented Oct 30, 2017

Suggestion: add a blank line for readability after each pair of UPDATE creature_queststarter like this:

UPDATE `creature_queststarter` SET `id`=11056 WHERE `quest`=5505;
UPDATE `creature_questender` SET `id`=11056 WHERE `quest`=5505;

UPDATE `creature_queststarter` SET `id`=11057 WHERE `quest`=5511;
UPDATE `creature_questender` SET `id`=11057 WHERE `quest`=5511;

DELETE FROM `smart_scripts` WHERE `entryorguid` IN (11056, 11057) AND `source_type`=0 AND `id`=8;

@Wyreth
Copy link
Contributor Author

Wyreth commented Oct 30, 2017

Makes sense :P done, thanks.

@offl
Copy link
Contributor

offl commented Oct 30, 2017

(1105600, 9, 0, 0, 0, 0, 100, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, "Alchemist Arbington and Apothecary Dithers - On Quest 'Araj's Scarab' Rewarded - Say Line 0"),

Actually you can use TARGET_INVOKER for each action with talk in similar events, not only if text contain $n. Because in each sniffed event NPC uses player as target for talk.

@Wyreth
Copy link
Contributor Author

Wyreth commented Oct 30, 2017

Yep you're right, didn't think about that and only used it when strictly needed. Changed, thanks :) will keep that in mind.

@offl
Copy link
Contributor

offl commented Oct 30, 2017

(1105600, 9, 2, 0, 0, 0, 100, 0, 0, 0, 0, 0, 11, 15050, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, "Alchemist Arbington and Apothecary Dithers - On Quest 'Araj's Scarab' Rewarded - Cast 'Psychometry'");

Here everything was correct :)
Range 0 yards (Self Only)

@Wyreth
Copy link
Contributor Author

Wyreth commented Oct 30, 2017

Ouch, went too overboard :D

@Killyana Killyana self-assigned this Oct 31, 2017
Killyana pushed a commit that referenced this issue Oct 31, 2017
Aokromes pushed a commit to Aokromes/TrinityCore that referenced this issue Nov 2, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants