Skip to content

Commit

Permalink
This gonna be my first commit, so don't blame me ^^
Browse files Browse the repository at this point in the history
- henze faulk script (long time broken i think)
- added dashel stonefist script
- Neltharaku's Tale
- Shattered Rumbler
- Blood Knight Stillblade (Bloodelf Pala quest)

Also added a new filter for Silvermoon!

git-svn-id: https://scriptdev2.svn.sourceforge.net/svnroot/scriptdev2@123 5f9c896b-1e26-0410-94da-f77f675e2462
  • Loading branch information
darkman1983 committed Sep 8, 2007
1 parent d4ef3f5 commit 4c7f74c
Show file tree
Hide file tree
Showing 13 changed files with 536 additions and 11 deletions.
3 changes: 3 additions & 0 deletions Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -234,9 +234,12 @@ scripts/zone/scholomance/boss_the_ravenian.cpp \
scripts/zone/scholomance/boss_vectus.cpp \
scripts/zone/searing_gorge/npc_lothos_riftwalker.cpp \
scripts/zone/shadowmoon_valley/boss_doomwalker.cpp \
scripts/zone/shadowmoon_valley/npc_neltharaku.cpp \
scripts/zone/silithus/npcs_captains_blackanvil_and_skullsplit.cpp \
scripts/zone/silithus/npcs_rutgar_and_frankal.cpp \
scripts/zone/silvermoon/npc_blood_knight_stillblade.cpp \
scripts/zone/stormwind/npc_bartleby.cpp \
scripts/zone/stormwind/npc_dashel_stonefist.cpp \
scripts/zone/stratholme/boss_archivist_galford.cpp \
scripts/zone/stratholme/boss_baron_rivendare.cpp \
scripts/zone/stratholme/boss_baroness_anastari.cpp \
Expand Down
15 changes: 15 additions & 0 deletions ScriptMgr.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -261,6 +261,8 @@ extern void AddSC_npc_great_bear_spirit();
extern void AddSC_skorn_whitecloud();

//Nagrand
extern void AddSC_mob_shattered_rumbler();

//Naxxramas
extern void AddSC_boss_anubrekhan();
extern void AddSC_boss_maexxna();
Expand Down Expand Up @@ -315,15 +317,21 @@ extern void AddSC_boss_vectus();
extern void AddSC_npc_lothos_riftwalker();

//Shadowfang keep
//Shadowmoon Valley
extern void AddSC_neltharaku();
//Silithus
extern void AddSC_npcs_captains_blackanvil_and_skullsplit();
extern void AddSC_npcs_rutgar_and_frankal();

//Silvermoon
extern void AddSC_npc_blood_knight_stillblade();

//Silverpine forest
//Stockade
//Stonetalon mountains
//Stormwind City
extern void AddSC_npc_bartleby();
extern void AddSC_npc_dashel_stonefist();

//Stratholme
extern void AddSC_boss_fras_siabi();
Expand Down Expand Up @@ -612,6 +620,7 @@ void ScriptsInit()
AddSC_skorn_whitecloud();

//Nagrand
AddSC_mob_shattered_rumbler();
//Naxxramas
AddSC_boss_anubrekhan();
AddSC_boss_maexxna();
Expand Down Expand Up @@ -666,15 +675,21 @@ void ScriptsInit()
//Searing gorge
AddSC_npc_lothos_riftwalker();
//Shadowfang keep
//Shadowmoon Valley
AddSC_neltharaku();
//Silithus
AddSC_npcs_captains_blackanvil_and_skullsplit();
AddSC_npcs_rutgar_and_frankal();

//Silvermoon
AddSC_npc_blood_knight_stillblade();

//Silverpine forest
//Stockade
//Stonetalon mountains
//Stormwind City
AddSC_npc_bartleby();
AddSC_npc_dashel_stonefist();

//Stratholme
AddSC_boss_fras_siabi();
Expand Down
20 changes: 20 additions & 0 deletions VC71/71ScriptDev2.vcproj
Original file line number Diff line number Diff line change
Expand Up @@ -1183,6 +1183,14 @@
>
</File>
</Filter>
<Filter
Name="Silvermoon"
>
<File
RelativePath="..\scripts\zone\silvermoon\npc_blood_knight_stillblade.cpp"
>
</File>
</Filter>
<Filter
Name="Silverpine Forest"
>
Expand Down Expand Up @@ -1442,6 +1450,10 @@
<Filter
Name="Nagrand"
>
<File
RelativePath="..\scripts\zone\nagrand\mob_shattered_rumbler.cpp"
>
</File>
</Filter>
<Filter
Name="Netherstorm"
Expand All @@ -1454,6 +1466,10 @@
RelativePath="..\scripts\zone\shadowmoon_valley\boss_doomwalker.cpp"
>
</File>
<File
RelativePath="..\scripts\zone\shadowmoon_valley\npc_neltharaku.cpp"
>
</File>
</Filter>
<Filter
Name="Tempest Keep"
Expand Down Expand Up @@ -1546,6 +1562,10 @@
RelativePath="..\scripts\zone\stormwind\npc_bartleby.cpp"
>
</File>
<File
RelativePath="..\scripts\zone\stormwind\npc_dashel_stonefist.cpp"
>
</File>
</Filter>
<Filter
Name="Coilfang Resevoir"
Expand Down
22 changes: 21 additions & 1 deletion VC80/80ScriptDev2.vcproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="windows-1250"?>
<VisualStudioProject
ProjectType="Visual C++"
Version="8.00"
Version="8,00"
Name="ScriptDev2"
ProjectGUID="{4295C8A9-79B7-4354-8064-F05FB9CA0C96}"
RootNamespace="ScriptDev2"
Expand Down Expand Up @@ -1506,6 +1506,10 @@
<Filter
Name="Nagrand"
>
<File
RelativePath="..\scripts\zone\nagrand\mob_shattered_rumbler.cpp"
>
</File>
</Filter>
<Filter
Name="Netherstorm"
Expand All @@ -1518,6 +1522,10 @@
RelativePath="..\scripts\zone\shadowmoon_valley\boss_doomwalker.cpp"
>
</File>
<File
RelativePath="..\scripts\zone\shadowmoon_valley\npc_neltharaku.cpp"
>
</File>
</Filter>
<Filter
Name="Tempest Keep"
Expand Down Expand Up @@ -1610,6 +1618,10 @@
RelativePath="..\scripts\zone\stormwind\npc_bartleby.cpp"
>
</File>
<File
RelativePath="..\scripts\zone\stormwind\npc_dashel_stonefist.cpp"
>
</File>
</Filter>
<Filter
Name="Coilfang Resevoir"
Expand Down Expand Up @@ -1651,6 +1663,14 @@
>
</Filter>
</Filter>
<Filter
Name="Silvermoon"
>
<File
RelativePath="..\scripts\zone\silvermoon\npc_blood_knight_stillblade.cpp"
>
</File>
</Filter>
</Filter>
</Filter>
<File
Expand Down
2 changes: 1 addition & 1 deletion scripts/zone/elwynn_forest/npc_henze_faulk.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ struct MANGOS_DLL_DECL henze_faulkAI : public ScriptedAI

void SpellHit(Unit *Hitter, const SpellEntry *Spellkind)
{
if(Spellkind->Id == 2050)
if(Spellkind->Id == 8593)
{
DoCast(m_creature,32343);
m_creature->SetUInt32Value(UNIT_FIELD_BYTES_1,0);
Expand Down
68 changes: 68 additions & 0 deletions scripts/zone/nagrand/mob_shattered_rumbler.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
/* Copyright (C) 2006,2007 ScriptDev2 <https://scriptdev2.svn.sourceforge.net/>
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/

#include "../../sc_defines.h"
#include "../../../../../game/Player.h"

struct MANGOS_DLL_DECL mob_shattered_rumblerAI : public ScriptedAI
{
bool Spawn;
Creature* tSpawn0;
Creature* tSpawn1;
Creature* tSpawn2;

mob_shattered_rumblerAI(Creature *c) : ScriptedAI(c) {EnterEvadeMode();}

void EnterEvadeMode()
{
Spawn = false;
m_creature->RemoveAllAuras();
m_creature->DeleteThreatList();
DoGoHome();
}

void SpellHit(Unit *Hitter, const SpellEntry *Spellkind)
{
if(Spellkind->Id == 32001 && !Spawn)
{
float x = m_creature->GetPositionX();
float y = m_creature->GetPositionY();
float z = m_creature->GetPositionZ();

tSpawn0 = Hitter->SummonCreature(18181,x+(0.7 * (rand()%30)),y+(rand()%5),z,0,TEMPSUMMON_CORPSE_TIMED_DESPAWN,60000);
tSpawn1 = Hitter->SummonCreature(18181,x+(rand()%5),y-(rand()%5),z,0,TEMPSUMMON_CORPSE_TIMED_DESPAWN,60000);
tSpawn2 = Hitter->SummonCreature(18181,x-(rand()%5),y+(0.5 *(rand()%60)),z,0,TEMPSUMMON_CORPSE_TIMED_DESPAWN,60000);
m_creature->setDeathState(CORPSE);
Spawn = true;
}
return;
}

};
CreatureAI* GetAI_mob_shattered_rumbler(Creature *_Creature)
{
return new mob_shattered_rumblerAI (_Creature);
}


void AddSC_mob_shattered_rumbler()
{
Script *newscript;
newscript = new Script;
newscript->Name="shattered_rumbler";
newscript->GetAI = GetAI_mob_shattered_rumbler;
m_scripts[nrscripts++] = newscript;
}
Loading

0 comments on commit 4c7f74c

Please sign in to comment.