aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sql/FULL/world_scripts_full.sql2
-rw-r--r--sql/FULL/world_spell_full.sql14
-rw-r--r--sql/updates/5524_world_scripts.sql10
-rw-r--r--src/bindings/scripts/scripts/northrend/borean_tundra.cpp97
4 files changed, 122 insertions, 1 deletions
diff --git a/sql/FULL/world_scripts_full.sql b/sql/FULL/world_scripts_full.sql
index 44a2e1142da..741f4273e0c 100644
--- a/sql/FULL/world_scripts_full.sql
+++ b/sql/FULL/world_scripts_full.sql
@@ -315,6 +315,8 @@ UPDATE `creature_template` SET `ScriptName`='npc_tiare' WHERE `entry`=30051;
UPDATE `creature_template` SET `ScriptName`='npc_sinkhole_kill_credit' WHERE `entry` IN (26248,26249);
UPDATE `creature_template` SET `ScriptName`='npc_khunok_the_behemoth' WHERE `entry`=25862;
UPDATE `creature_template` SET `ScriptName`='npc_keristrasza' WHERE `entry`=26206;
+update creature_template set ScriptName = 'npc_iruk' where entry = 26219;
+UPDATE creature_template SET ScriptName = 'npc_corastrasza' WHERE entry = 32548;
/* BURNING STEPPES */
UPDATE `creature_template` SET `ScriptName`='npc_ragged_john' WHERE `entry`=9563;
diff --git a/sql/FULL/world_spell_full.sql b/sql/FULL/world_spell_full.sql
index 06481b9100d..a36ad7c0527 100644
--- a/sql/FULL/world_spell_full.sql
+++ b/sql/FULL/world_spell_full.sql
@@ -2275,4 +2275,16 @@ DELETE FROM `spell_script_target` WHERE `entry` = '51959' and `type` = '1';
INSERT INTO `spell_script_target` ( `entry`, `type`, `targetEntry`) VALUES ('51959', '1', '28161');
# the lurker below
-update creature_template set inhabittype=3 where entry=21217; \ No newline at end of file
+update creature_template set inhabittype=3 where entry=21217;
+
+
+-- update creature_template set ScriptName = 'npc_iruk' where entry = 26219;
+-- UPDATE creature_template SET ScriptName = 'npc_corastrasza' WHERE entry = 32548;
+
+DELETE FROM `spell_script_target` WHERE entry = 61245;
+INSERT INTO `spell_script_target` (`entry`, `type`, `targetEntry`) VALUES
+(61245, 1, 32535);
+
+UPDATE creature_template SET VehicleId = 165 , spell1 = 56091,spell2 = 56092,spell3 = 57090,spell4 = 57143 ,spell5 = 57108,spell6=57403, unit_class = 1, minhealth = 100000, maxhealth = 100000 WHERE entry = 32535;
+UPDATE creature_template SET armor = 9729, mindmg = 422, maxdmg=586, minrangedmg=345, maxrangedmg=509, attackpower=642, rangedattackpower=103 WHERE entry = 32535;
+update creature set DeathState = 0 where id = 26219; \ No newline at end of file
diff --git a/sql/updates/5524_world_scripts.sql b/sql/updates/5524_world_scripts.sql
new file mode 100644
index 00000000000..22f9e6763ab
--- /dev/null
+++ b/sql/updates/5524_world_scripts.sql
@@ -0,0 +1,10 @@
+update creature_template set ScriptName = 'npc_iruk' where entry = 26219;
+UPDATE creature_template SET ScriptName = 'npc_corastrasza' WHERE entry = 32548;
+
+DELETE FROM `spell_script_target` WHERE entry = 61245;
+INSERT INTO `spell_script_target` (`entry`, `type`, `targetEntry`) VALUES
+(61245, 1, 32535);
+
+UPDATE creature_template SET VehicleId = 165 , spell1 = 56091,spell2 = 56092,spell3 = 57090,spell4 = 57143 ,spell5 = 57108,spell6=57403, unit_class = 1, minhealth = 100000, maxhealth = 100000 WHERE entry = 32535;
+UPDATE creature_template SET armor = 9729, mindmg = 422, maxdmg=586, minrangedmg=345, maxrangedmg=509, attackpower=642, rangedattackpower=103 WHERE entry = 32535;
+update creature set DeathState = 0 where id = 26219; \ No newline at end of file
diff --git a/src/bindings/scripts/scripts/northrend/borean_tundra.cpp b/src/bindings/scripts/scripts/northrend/borean_tundra.cpp
index 9f0bd982233..0788c828ba2 100644
--- a/src/bindings/scripts/scripts/northrend/borean_tundra.cpp
+++ b/src/bindings/scripts/scripts/northrend/borean_tundra.cpp
@@ -25,6 +25,8 @@ EndScriptData */
npc_fizzcrank_fullthrottle
npc_surristrasz
npc_tiare
+npc_iruk
+npc_corastrasza
EndContentData */
#include "precompiled.h"
@@ -359,6 +361,89 @@ bool GossipSelect_npc_keristrasza(Player* pPlayer, Creature* pCreature, uint32 u
return true;
}
+/*######
+## npc_corastrasza
+######*/
+
+#define GOSSIP_ITEM_C_1 "I... I think so..."
+
+enum
+{
+ SPELL_SUMMON_WYRMREST_SKYTALON = 61240,
+ SPELL_WYRMREST_SKYTALON_RIDE_PERIODIC = 61244,
+
+ QUEST_ACES_HIGH = 13414
+
+};
+
+bool GossipHello_npc_corastrasza(Player* pPlayer, Creature* pCreature)
+{
+ if (pCreature->isQuestGiver())
+ pPlayer->PrepareQuestMenu(pCreature->GetGUID());
+
+ if (pPlayer->GetQuestStatus(QUEST_ACES_HIGH) == QUEST_STATUS_INCOMPLETE)
+ {
+ pPlayer->ADD_GOSSIP_ITEM(GOSSIP_ICON_CHAT, GOSSIP_ITEM_C_1, GOSSIP_SENDER_MAIN, GOSSIP_ACTION_INFO_DEF+1);
+ }
+
+ pPlayer->SEND_GOSSIP_MENU(pCreature->GetNpcTextId(), pCreature->GetGUID());
+ return true;
+}
+
+bool GossipSelect_npc_corastrasza(Player* pPlayer, Creature* pCreature, uint32 uiSender, uint32 uiAction)
+{
+ if (uiAction == GOSSIP_ACTION_INFO_DEF+1)
+ {
+ pPlayer->CLOSE_GOSSIP_MENU();
+
+ pPlayer->CastSpell(pPlayer, SPELL_SUMMON_WYRMREST_SKYTALON, true);
+ pPlayer->CastSpell(pPlayer, SPELL_WYRMREST_SKYTALON_RIDE_PERIODIC, true);
+
+ }
+
+ return true;
+}
+
+/*######
+## npc_iruk
+######*/
+
+#define GOSSIP_ITEM_I "Give me the Issliruk's Totem" // This is not offilike.
+
+enum
+{
+
+ QUEST_SPIRITS_WATCH_OVER_US = 11961,
+
+ SPELL_CREATURE_TOTEM_OF_ISSLIRUK = 46816,
+
+ GOSSIP_TEXT_I = 12585 // This is blizzlike.
+
+};
+
+bool GossipHello_npc_iruk(Player* pPlayer, Creature* pCreature)
+{
+
+ if (pPlayer->GetQuestStatus(QUEST_SPIRITS_WATCH_OVER_US) == QUEST_STATUS_INCOMPLETE)
+ pPlayer->ADD_GOSSIP_ITEM(GOSSIP_ICON_CHAT, GOSSIP_ITEM_I, GOSSIP_SENDER_MAIN, GOSSIP_ACTION_INFO_DEF+1);
+
+ pPlayer->PlayerTalkClass->SendGossipMenu(GOSSIP_TEXT_I, pCreature->GetGUID());
+ return true;
+}
+
+bool GossipSelect_npc_iruk(Player* pPlayer, Creature* pCreature, uint32 uiSender, uint32 uiAction)
+{
+ switch(uiAction)
+ {
+ case GOSSIP_ACTION_INFO_DEF+1:
+ pPlayer->CastSpell(pPlayer, SPELL_CREATURE_TOTEM_OF_ISSLIRUK, true);
+ pPlayer->CLOSE_GOSSIP_MENU();
+ break;
+
+ }
+ return true;
+}
+
void AddSC_borean_tundra()
{
Script *newscript;
@@ -396,4 +481,16 @@ void AddSC_borean_tundra()
newscript->pGossipHello = &GossipHello_npc_keristrasza;
newscript->pGossipSelect = &GossipSelect_npc_keristrasza;
newscript->RegisterSelf();
+
+ newscript = new Script;
+ newscript->Name = "npc_corastrasza";
+ newscript->pGossipHello = &GossipHello_npc_corastrasza;
+ newscript->pGossipSelect = &GossipSelect_npc_corastrasza;
+ newscript->RegisterSelf();
+
+ newscript = new Script;
+ newscript->Name = "npc_iruk";
+ newscript->pGossipHello = &GossipHello_npc_iruk;
+ newscript->pGossipSelect = &GossipSelect_npc_iruk;
+ newscript->RegisterSelf();
}