Skip to content

Commit 4cb95c7

Browse files
author
NoFantasy
committed
[1844] Add script for GO 195308.
Add script for GO 195308. Note it is not fully correct regarding summons (see comments for details) git-svn-id: https://scriptdev2.svn.sourceforge.net/svnroot/scriptdev2@1844 5f9c896b-1e26-0410-94da-f77f675e2462
1 parent 9ad6a54 commit 4cb95c7

4 files changed

Lines changed: 41 additions & 2 deletions

File tree

scripts/world/go_scripts.cpp

Lines changed: 37 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
/* ScriptData
1818
SDName: GO_Scripts
1919
SD%Complete: 100
20-
SDComment: Quest support: 4285,4287,4288(crystal pylons), 4296, 5088, 5097, 5098, 6481, 10990, 10991, 10992. Field_Repair_Bot->Teaches spell 22704. Barov_journal->Teaches spell 26089
20+
SDComment: Quest support: 4285,4287,4288(crystal pylons), 4296, 5088, 5097, 5098, 6481, 10990, 10991, 10992, 14092/14076. Field_Repair_Bot->Teaches spell 22704. Barov_journal->Teaches spell 26089
2121
SDCategory: Game Objects
2222
EndScriptData */
2323

@@ -30,6 +30,7 @@ go_barov_journal
3030
go_ethereum_prison
3131
go_ethereum_stasis
3232
go_field_repair_bot_74A
33+
go_mysterious_snow_mound
3334
go_orb_of_command
3435
go_resonite_cask
3536
go_sacred_fire_of_life
@@ -269,6 +270,36 @@ bool GOHello_go_jump_a_tron(Player* pPlayer, GameObject* pGo)
269270
return false;
270271
}
271272

273+
/*######
274+
## go_mysterious_snow_mound
275+
######*/
276+
277+
enum
278+
{
279+
SPELL_SUMMON_DEEP_JORMUNGAR = 66510,
280+
SPELL_SUMMON_MOLE_MACHINE = 66492,
281+
SPELL_SUMMON_MARAUDER = 66491,
282+
};
283+
284+
bool GOHello_go_mysterious_snow_mound(Player* pPlayer, GameObject* pGo)
285+
{
286+
if (urand(0,1))
287+
{
288+
pPlayer->CastSpell(pPlayer, SPELL_SUMMON_DEEP_JORMUNGAR, true);
289+
}
290+
else
291+
{
292+
// This is basically wrong, but added for support.
293+
// Mole machine would summon, along with unkonwn GO (a GO trap?) and then
294+
// the npc would summon with base of that location.
295+
pPlayer->CastSpell(pPlayer, SPELL_SUMMON_MOLE_MACHINE, true);
296+
pPlayer->CastSpell(pPlayer, SPELL_SUMMON_MARAUDER, true);
297+
}
298+
299+
pGo->SetLootState(GO_JUST_DEACTIVATED);
300+
return true;
301+
}
302+
272303
/*######
273304
## go_orb_of_command
274305
######*/
@@ -560,6 +591,11 @@ void AddSC_go_scripts()
560591
pNewScript->pGOHello = &GOHello_go_jump_a_tron;
561592
pNewScript->RegisterSelf();
562593

594+
pNewScript = new Script;
595+
pNewScript->Name = "go_mysterious_snow_mound";
596+
pNewScript->pGOHello = &GOHello_go_mysterious_snow_mound;
597+
pNewScript->RegisterSelf();
598+
563599
pNewScript = new Script;
564600
pNewScript->Name = "go_orb_of_command";
565601
pNewScript->pGOHello = &GOHello_go_orb_of_command;

sql/Updates/Makefile.am

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,5 +164,6 @@ pkgdata_DATA = \
164164
r1836_mangos.sql \
165165
r1842_scriptdev2.sql \
166166
r1843_mangos.sql \
167-
r1843_scriptdev2.sql
167+
r1843_scriptdev2.sql \
168+
r1844_mangos.sql
168169

sql/Updates/r1844_mangos.sql

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
UPDATE gameobject_template SET ScriptName='go_mysterious_snow_mound' WHERE entry=195308;

sql/mangos_scriptname_full.sql

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ UPDATE gameobject_template SET ScriptName='go_ethereum_stasis' WHERE entry BETWE
6464
UPDATE gameobject_template SET ScriptName='go_field_repair_bot_74A' where entry=179552;
6565
UPDATE gameobject_template SET ScriptName='go_gilded_brazier' WHERE entry=181956;
6666
UPDATE gameobject_template SET ScriptName='go_jump_a_tron' WHERE entry=183146;
67+
UPDATE gameobject_template SET ScriptName='go_mysterious_snow_mound' WHERE entry=195308;
6768
UPDATE gameobject_template SET ScriptName='go_orb_of_command' WHERE entry=179879;
6869
UPDATE gameobject_template SET ScriptName='go_resonite_cask' WHERE entry=178145;
6970
UPDATE gameobject_template SET ScriptName='go_sacred_fire_of_life' WHERE entry=175944;

0 commit comments

Comments
 (0)