mirror of
https://github.com/ZhengPeiRu21/mod-individual-progression
synced 2025-11-29 23:44:51 +08:00
Require Sceptre of Celebras for Maraudon Shortcut
This commit is contained in:
@@ -8,6 +8,9 @@ REPLACE INTO `dungeon_access_requirements` (`dungeon_access_id`, `requirement_ty
|
|||||||
REPLACE INTO `dungeon_access_requirements` (`dungeon_access_id`, `requirement_type`, `requirement_id`, `requirement_note`, `faction`, `priority`, `leader_only`, `comment`) VALUES (63, 1, 10277, 'You must complete the quest "The Caverns of Time" to enter Old Hillsbrad.', 2, NULL, 0, NULL);
|
REPLACE INTO `dungeon_access_requirements` (`dungeon_access_id`, `requirement_type`, `requirement_id`, `requirement_note`, `faction`, `priority`, `leader_only`, `comment`) VALUES (63, 1, 10277, 'You must complete the quest "The Caverns of Time" to enter Old Hillsbrad.', 2, NULL, 0, NULL);
|
||||||
REPLACE INTO `dungeon_access_requirements` (`dungeon_access_id`, `requirement_type`, `requirement_id`, `requirement_note`, `faction`, `priority`, `leader_only`, `comment`) VALUES (64, 2, 32649, 'You must possess the Medallion of Karabor to enter the Black Temple.', 2, NULL, 0, NULL);
|
REPLACE INTO `dungeon_access_requirements` (`dungeon_access_id`, `requirement_type`, `requirement_id`, `requirement_note`, `faction`, `priority`, `leader_only`, `comment`) VALUES (64, 2, 32649, 'You must possess the Medallion of Karabor to enter the Black Temple.', 2, NULL, 0, NULL);
|
||||||
|
|
||||||
|
/* Maraudon Portal Requirement Script */
|
||||||
|
UPDATE `gameobject_template` SET `ScriptName` = 'go_mara_portal' WHERE `entry` = 178404;
|
||||||
|
|
||||||
/* TBC Attunement Quests - Restore pre-3.0 version */
|
/* TBC Attunement Quests - Restore pre-3.0 version */
|
||||||
DELETE FROM `creature_questender` WHERE `id`=22421 AND `quest`=13431;
|
DELETE FROM `creature_questender` WHERE `id`=22421 AND `quest`=13431;
|
||||||
DELETE FROM `creature_questender` WHERE `id`=22421 AND `quest`=10901;
|
DELETE FROM `creature_questender` WHERE `id`=22421 AND `quest`=10901;
|
||||||
|
|||||||
@@ -33,6 +33,7 @@ void AddSC_npc_omarion();
|
|||||||
void AddSC_Ipp_Wotlk_Modded_Scripts();
|
void AddSC_Ipp_Wotlk_Modded_Scripts();
|
||||||
void AddSC_aq_scripts();
|
void AddSC_aq_scripts();
|
||||||
void AddSC_cot_scripts();
|
void AddSC_cot_scripts();
|
||||||
|
void AddSC_misc_scripts();
|
||||||
void AddSC_ipp_spell_scripts();
|
void AddSC_ipp_spell_scripts();
|
||||||
void AddSC_individualProgression_commandscript();
|
void AddSC_individualProgression_commandscript();
|
||||||
void AddSC_mod_individual_progression_awareness();
|
void AddSC_mod_individual_progression_awareness();
|
||||||
@@ -72,6 +73,7 @@ void Addmod_individual_progressionScripts()
|
|||||||
AddSC_Ipp_Wotlk_Modded_Scripts();
|
AddSC_Ipp_Wotlk_Modded_Scripts();
|
||||||
AddSC_aq_scripts();
|
AddSC_aq_scripts();
|
||||||
AddSC_cot_scripts();
|
AddSC_cot_scripts();
|
||||||
|
AddSC_misc_scripts();
|
||||||
AddSC_ipp_spell_scripts();
|
AddSC_ipp_spell_scripts();
|
||||||
AddSC_individualProgression_commandscript();
|
AddSC_individualProgression_commandscript();
|
||||||
AddSC_mod_individual_progression_awareness();
|
AddSC_mod_individual_progression_awareness();
|
||||||
|
|||||||
39
src/vanillaScripts/misc_scripts.cpp
Normal file
39
src/vanillaScripts/misc_scripts.cpp
Normal file
@@ -0,0 +1,39 @@
|
|||||||
|
#include "IndividualProgression.h"
|
||||||
|
#include "ScriptMgr.h"
|
||||||
|
#include "Player.h"
|
||||||
|
#include "GameObjectAI.h"
|
||||||
|
#include "ScriptedCreature.h"
|
||||||
|
#include "ScriptedGossip.h"
|
||||||
|
|
||||||
|
class go_mara_portal : public GameObjectScript
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
go_mara_portal() : GameObjectScript("go_mara_portal") { }
|
||||||
|
|
||||||
|
struct go_mara_portalAI : GameObjectAI
|
||||||
|
{
|
||||||
|
|
||||||
|
explicit go_mara_portalAI(GameObject *object) : GameObjectAI(object) { };
|
||||||
|
|
||||||
|
bool CanBeSeen(Player const* player) override
|
||||||
|
{
|
||||||
|
if (player->IsGameMaster())
|
||||||
|
{
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
return player->HasItemCount(17191, 1, false); // Require Sceptre of Celebras
|
||||||
|
}
|
||||||
|
|
||||||
|
};
|
||||||
|
|
||||||
|
GameObjectAI *GetAI(GameObject *object) const override
|
||||||
|
{
|
||||||
|
return new go_mara_portalAI(object);
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
void AddSC_misc_scripts()
|
||||||
|
{
|
||||||
|
new go_mara_portal();
|
||||||
|
}
|
||||||
|
|
||||||
Reference in New Issue
Block a user