AzerothCore 3.3.5a
OpenSource WoW Emulator
Loading...
Searching...
No Matches
pet_generic.cpp File Reference
#include "CreatureScript.h"
#include "CreatureTextMgr.h"
#include "Group.h"
#include "PassiveAI.h"
#include "Player.h"
#include "ScriptedCreature.h"
#include "ScriptedGossip.h"
#include "SpellAuras.h"
#include "SpellScript.h"
#include "SpellScriptLoader.h"

Go to the source code of this file.

Classes

struct  npc_pet_gen_soul_trader_beacon
 
struct  argentPonyBanner
 
struct  npc_pet_gen_argent_pony_bridle
 
struct  npc_pet_gen_target_following_bomb
 
struct  npc_pet_gen_gnomish_flame_turret
 
struct  npc_pet_gen_valkyr_guardian
 
class  spell_pet_gen_valkyr_guardian_smite
 
struct  npc_pet_gen_imp_in_a_bottle
 
struct  npc_pet_gen_wind_rider_cub
 
struct  npc_pet_gen_plump_turkey
 
struct  npc_pet_gen_toxic_wasteling
 
struct  npc_pet_gen_fetch_ball
 
struct  npc_pet_gen_moth
 
struct  npc_pet_darting_hatchling
 

Enumerations

enum  soulTrader {
  SPELL_STEAL_ESSENCE_VISUAL = 50101 ,
  SPELL_CREATE_TOKEN = 50063 ,
  SPELL_PROC_TRIGGER_ON_KILL_AURA = 50051 ,
  SPELL_OWNER_KILLED_INFORM = 50050 ,
  SPELL_EMOTE_STATE_SWIM_RUN = 47127 ,
  EVENT_INITIAL_TALK = 1 ,
  EVENT_ADD_TOKEN = 2
}
 
enum  eArgentPony {
  ARGENT_PONY_STATE_NONE = 0 ,
  ARGENT_PONY_STATE_ENCH = 1 ,
  ARGENT_PONY_STATE_VENDOR = 2 ,
  ARGENT_PONY_STATE_BANK = 3 ,
  ARGENT_PONY_STATE_MAILBOX = 4 ,
  SPELL_PONY_MOUNT = 16083 ,
  SPELL_AURA_POSTMAN_S = 67376 ,
  SPELL_AURA_SHOP_S = 67377 ,
  SPELL_AURA_BANK_S = 67368 ,
  SPELL_AURA_TIRED_S = 67401 ,
  SPELL_AURA_BANK_G = 68849 ,
  SPELL_AURA_POSTMAN_G = 68850 ,
  SPELL_AURA_SHOP_G = 68851 ,
  SPELL_AURA_TIRED_G = 68852 ,
  ACHIEVEMENT_PONY_UP = 3736 ,
  GOSSIP_ACTION_MAILBOX = 1001 ,
  NPC_ARGENT_SQUIRE = 33238 ,
  NPC_ARGENT_GRUNTLING = 33239
}
 
enum  eTargetFollowingBomb {
  NPC_EXPLOSIVE_SHEEP = 2675 ,
  SPELL_EXPLOSIVE_SHEEP = 4050 ,
  NPC_GOBLIN_BOMB = 8937 ,
  SPELL_EXPLOSIVE_GOBLIN = 13259 ,
  NPC_HIGH_EXPLOSIVE_SHEEP = 24715 ,
  SPELL_HIGH_EXPLOSIVE_SHEEP = 44279
}
 
enum  turkey {
  GO_BASIC_CAMPFIRE = 29784 ,
  SPELL_TURKEY_STARTS_TO_BURN = 61768
}
 
enum  FetchBall {
  SPELL_PET_TOY_FETCH_BALL_COME_HERE = 48649 ,
  SPELL_PET_TOY_FETCH_BALL_HAS_BALL = 48708
}
 
enum  Darting {
  SPELL_DARTING_ON_SPAWN = 62586 ,
  SPELL_DARTING_FEAR = 62585
}
 

Functions

void AddSC_generic_pet_scripts ()
 

Variables

static uint32 argentPonyService [2][3]
 
static argentPonyBanner argentBanners [MAX_RACES]
 

Enumeration Type Documentation

◆ Darting

enum Darting
Enumerator
SPELL_DARTING_ON_SPAWN 
SPELL_DARTING_FEAR 
783{
784 SPELL_DARTING_ON_SPAWN = 62586, // Applied on spawn via creature_template_addon
785 SPELL_DARTING_FEAR = 62585, // Applied every 20s from SPELL_DARTING_ON_SPAWN
786};
@ SPELL_DARTING_ON_SPAWN
Definition: pet_generic.cpp:784
@ SPELL_DARTING_FEAR
Definition: pet_generic.cpp:785

◆ eArgentPony

Enumerator
ARGENT_PONY_STATE_NONE 
ARGENT_PONY_STATE_ENCH 
ARGENT_PONY_STATE_VENDOR 
ARGENT_PONY_STATE_BANK 
ARGENT_PONY_STATE_MAILBOX 
SPELL_PONY_MOUNT 
SPELL_AURA_POSTMAN_S 
SPELL_AURA_SHOP_S 
SPELL_AURA_BANK_S 
SPELL_AURA_TIRED_S 
SPELL_AURA_BANK_G 
SPELL_AURA_POSTMAN_G 
SPELL_AURA_SHOP_G 
SPELL_AURA_TIRED_G 
ACHIEVEMENT_PONY_UP 
GOSSIP_ACTION_MAILBOX 
NPC_ARGENT_SQUIRE 
NPC_ARGENT_GRUNTLING 
91{
97
98 SPELL_PONY_MOUNT = 16083,
99
100 SPELL_AURA_POSTMAN_S = 67376,
101 SPELL_AURA_SHOP_S = 67377,
102 SPELL_AURA_BANK_S = 67368,
103 SPELL_AURA_TIRED_S = 67401,
104
105 SPELL_AURA_BANK_G = 68849,
106 SPELL_AURA_POSTMAN_G = 68850,
107 SPELL_AURA_SHOP_G = 68851,
108 SPELL_AURA_TIRED_G = 68852,
109
110 ACHIEVEMENT_PONY_UP = 3736,
111
113
114 NPC_ARGENT_SQUIRE = 33238,
115 NPC_ARGENT_GRUNTLING = 33239,
116};
@ ARGENT_PONY_STATE_MAILBOX
Definition: pet_generic.cpp:96
@ ACHIEVEMENT_PONY_UP
Definition: pet_generic.cpp:110
@ SPELL_AURA_BANK_G
Definition: pet_generic.cpp:105
@ SPELL_AURA_POSTMAN_S
Definition: pet_generic.cpp:100
@ ARGENT_PONY_STATE_BANK
Definition: pet_generic.cpp:95
@ SPELL_PONY_MOUNT
Definition: pet_generic.cpp:98
@ SPELL_AURA_SHOP_S
Definition: pet_generic.cpp:101
@ ARGENT_PONY_STATE_VENDOR
Definition: pet_generic.cpp:94
@ ARGENT_PONY_STATE_NONE
Definition: pet_generic.cpp:92
@ NPC_ARGENT_GRUNTLING
Definition: pet_generic.cpp:115
@ SPELL_AURA_TIRED_G
Definition: pet_generic.cpp:108
@ ARGENT_PONY_STATE_ENCH
Definition: pet_generic.cpp:93
@ NPC_ARGENT_SQUIRE
Definition: pet_generic.cpp:114
@ SPELL_AURA_BANK_S
Definition: pet_generic.cpp:102
@ SPELL_AURA_SHOP_G
Definition: pet_generic.cpp:107
@ SPELL_AURA_TIRED_S
Definition: pet_generic.cpp:103
@ SPELL_AURA_POSTMAN_G
Definition: pet_generic.cpp:106
@ GOSSIP_ACTION_MAILBOX
Definition: pet_generic.cpp:112

◆ eTargetFollowingBomb

Enumerator
NPC_EXPLOSIVE_SHEEP 
SPELL_EXPLOSIVE_SHEEP 
NPC_GOBLIN_BOMB 
SPELL_EXPLOSIVE_GOBLIN 
NPC_HIGH_EXPLOSIVE_SHEEP 
SPELL_HIGH_EXPLOSIVE_SHEEP 
344{
345 NPC_EXPLOSIVE_SHEEP = 2675,
347
348 NPC_GOBLIN_BOMB = 8937,
350
353};
@ SPELL_EXPLOSIVE_SHEEP
Definition: pet_generic.cpp:346
@ NPC_GOBLIN_BOMB
Definition: pet_generic.cpp:348
@ NPC_HIGH_EXPLOSIVE_SHEEP
Definition: pet_generic.cpp:351
@ SPELL_HIGH_EXPLOSIVE_SHEEP
Definition: pet_generic.cpp:352
@ NPC_EXPLOSIVE_SHEEP
Definition: pet_generic.cpp:345
@ SPELL_EXPLOSIVE_GOBLIN
Definition: pet_generic.cpp:349

◆ FetchBall

enum FetchBall
Enumerator
SPELL_PET_TOY_FETCH_BALL_COME_HERE 
SPELL_PET_TOY_FETCH_BALL_HAS_BALL 
722{
725};
@ SPELL_PET_TOY_FETCH_BALL_COME_HERE
Definition: pet_generic.cpp:723
@ SPELL_PET_TOY_FETCH_BALL_HAS_BALL
Definition: pet_generic.cpp:724

◆ soulTrader

enum soulTrader
Enumerator
SPELL_STEAL_ESSENCE_VISUAL 
SPELL_CREATE_TOKEN 
SPELL_PROC_TRIGGER_ON_KILL_AURA 
SPELL_OWNER_KILLED_INFORM 
SPELL_EMOTE_STATE_SWIM_RUN 
EVENT_INITIAL_TALK 
EVENT_ADD_TOKEN 
34{
36 SPELL_CREATE_TOKEN = 50063,
40
43};
@ EVENT_ADD_TOKEN
Definition: pet_generic.cpp:42
@ SPELL_PROC_TRIGGER_ON_KILL_AURA
Definition: pet_generic.cpp:37
@ SPELL_EMOTE_STATE_SWIM_RUN
Definition: pet_generic.cpp:39
@ SPELL_OWNER_KILLED_INFORM
Definition: pet_generic.cpp:38
@ SPELL_CREATE_TOKEN
Definition: pet_generic.cpp:36
@ EVENT_INITIAL_TALK
Definition: pet_generic.cpp:41
@ SPELL_STEAL_ESSENCE_VISUAL
Definition: pet_generic.cpp:35

◆ turkey

enum turkey
Enumerator
GO_BASIC_CAMPFIRE 
SPELL_TURKEY_STARTS_TO_BURN 
619{
620 GO_BASIC_CAMPFIRE = 29784,
622};
@ GO_BASIC_CAMPFIRE
Definition: pet_generic.cpp:620
@ SPELL_TURKEY_STARTS_TO_BURN
Definition: pet_generic.cpp:621

Function Documentation

◆ AddSC_generic_pet_scripts()

void AddSC_generic_pet_scripts ( )
825{
839}
#define RegisterCreatureAI(ai_name)
Definition: CreatureScript.h:71
#define RegisterSpellScript(spell_script)
Definition: SpellScriptLoader.h:88
Definition: pet_generic.cpp:46
Definition: pet_generic.cpp:148
Definition: pet_generic.cpp:356
Definition: pet_generic.cpp:406
Definition: pet_generic.cpp:442
Definition: pet_generic.cpp:491
Definition: pet_generic.cpp:512
Definition: pet_generic.cpp:579
Definition: pet_generic.cpp:625
Definition: pet_generic.cpp:683
Definition: pet_generic.cpp:728
Definition: pet_generic.cpp:772
Definition: pet_generic.cpp:789

References RegisterCreatureAI, and RegisterSpellScript.

Referenced by AddPetScripts().

Variable Documentation

◆ argentBanners

argentPonyBanner argentBanners[MAX_RACES]
static
Initial value:
=
{
{0, 0, ""},
{2781, 62594, "Stormwind Champion's Pennant"},
{2783, 63433, "Orgrimmar Champion's Pennant"},
{2780, 63427, "Ironforge Champion's Pennant"},
{2777, 63406, "Darnassus Champion's Pennant"},
{2787, 63430, "Forsaken Champion's Pennant"},
{2786, 63436, "Thunder Bluff Champion's Pennant"},
{2779, 63396, "Gnomeregan Champion's Pennant"},
{2784, 63399, "Darkspear Champion's Pennant"},
{0, 0, ""},
{2785, 63403, "Silvermoon Champion's Pennant"},
{2778, 63423, "Exodar Champion's Pennant"}
}

Referenced by npc_pet_gen_argent_pony_bridle::OnGossipHello(), and npc_pet_gen_argent_pony_bridle::Reset().

◆ argentPonyService