aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBlaymoira <none@none>2008-12-13 15:39:55 +0100
committerBlaymoira <none@none>2008-12-13 15:39:55 +0100
commit02d85668b6c28ebc08dbcfe3d422f3cd852cf170 (patch)
tree5aad2429e27b16bc4c0149c104cbd7a1775d535c /src
parent3533c094d24ff98fee74e458d6131dd3126e40af (diff)
*Fix a typo in world.sql thx for pointing Transatlantic
*Added Brewfest and Winter Reveler script --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();
}