aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authormegamage <none@none>2008-12-13 09:57:59 -0600
committermegamage <none@none>2008-12-13 09:57:59 -0600
commit328e5a1bdecd31f2411232a6f27adf96c96a716e (patch)
tree6de10a82f1139a9665bec7db7c5d3ec963fd71c0 /src
parent3ed8472e7bd99b90762ebd84bcfe158bf5e77ab6 (diff)
parent02d85668b6c28ebc08dbcfe3d422f3cd852cf170 (diff)
*Merge with 480.
--HG-- branch : trunk
Diffstat (limited to 'src')
-rw-r--r--src/bindings/scripts/scripts/npc/npcs_special.cpp46
1 files changed, 46 insertions, 0 deletions
diff --git a/src/bindings/scripts/scripts/npc/npcs_special.cpp b/src/bindings/scripts/scripts/npc/npcs_special.cpp
index 5fc234b7e7a..cc8629a1dfb 100644
--- a/src/bindings/scripts/scripts/npc/npcs_special.cpp
+++ b/src/bindings/scripts/scripts/npc/npcs_special.cpp
@@ -890,6 +890,42 @@ CreatureAI* GetAI_npc_tonk_mine(Creature *_Creature)
return new npc_tonk_mineAI(_Creature);
}
+/*####
+## npc_winter_reveler
+####*/
+
+bool ReceiveEmote_npc_winter_reveler( Player *player, Creature *_Creature, uint32 emote )
+{
+ //TODO: check auralist.
+ //if()
+ // return false;
+
+ if( emote == TEXTEMOTE_KISS )
+ {
+ _Creature->CastSpell(_Creature, 26218, false);
+ player->CastSpell(player, 26218, false);
+ switch(rand()%3)
+ {
+ case 0: _Creature->CastSpell(player, 26207, false); break;
+ case 1: _Creature->CastSpell(player, 26206, false); break;
+ case 2: _Creature->CastSpell(player, 45036, false); break;
+ }
+ }
+ return true;
+}
+
+/*####
+## npc_brewfest_reveler
+####*/
+
+bool ReceiveEmote_npc_brewfest_reveler( Player *player, Creature *_Creature, uint32 emote )
+{
+ if( emote == TEXTEMOTE_DANCE )
+ _Creature->CastSpell(player, 41586, false);
+
+ return true;
+}
+
void AddSC_npcs_special()
{
Script *newscript;
@@ -950,4 +986,14 @@ void AddSC_npcs_special()
newscript->Name="npc_tonk_mine";
newscript->GetAI = &GetAI_npc_tonk_mine;
newscript->RegisterSelf();
+
+ newscript = new Script;
+ newscript->Name="npc_winter_reveler";
+ newscript->pReceiveEmote = &ReceiveEmote_npc_winter_reveler;
+ newscript->RegisterSelf();
+
+ newscript = new Script;
+ newscript->Name="npc_brewfest_reveler";
+ newscript->pReceiveEmote = &ReceiveEmote_npc_brewfest_reveler;
+ newscript->RegisterSelf();
}