AzerothCore 3.3.5a
OpenSource WoW Emulator
Loading...
Searching...
No Matches
npc_karynaku Class Reference
Inheritance diagram for npc_karynaku:
CreatureScript ScriptObject UpdatableScript< Creature >

Public Member Functions

 npc_karynaku ()
 
bool OnQuestAccept (Player *player, Creature *creature, Quest const *quest) override
 
- Public Member Functions inherited from CreatureScript
bool IsDatabaseBound () const override
 
virtual bool OnGossipHello (Player *, Creature *)
 
virtual bool OnGossipSelect (Player *, Creature *, uint32, uint32)
 
virtual bool OnGossipSelectCode (Player *, Creature *, uint32, uint32, const char *)
 
virtual bool OnQuestAccept (Player *, Creature *, Quest const *)
 
virtual bool OnQuestSelect (Player *, Creature *, Quest const *)
 
virtual bool OnQuestComplete (Player *, Creature *, Quest const *)
 
virtual bool OnQuestReward (Player *, Creature *, Quest const *, uint32)
 
virtual uint32 GetDialogStatus (Player *, Creature *)
 
virtual CreatureAIGetAI (Creature *) const
 
virtual void OnFfaPvpStateUpdate (Creature *, bool)
 
- Public Member Functions inherited from ScriptObject
virtual bool IsDatabaseBound () const
 
virtual bool isAfterLoadScript () const
 
virtual void checkValidity ()
 
const std::string & GetName () const
 
uint16 GetTotalAvailableHooks ()
 
- Public Member Functions inherited from UpdatableScript< Creature >
virtual void OnUpdate (Creature *, uint32)
 

Additional Inherited Members

- Protected Member Functions inherited from CreatureScript
 CreatureScript (const char *name)
 
- Protected Member Functions inherited from ScriptObject
 ScriptObject (const char *name, uint16 totalAvailableHooks=0)
 
virtual ~ScriptObject ()=default
 
- Protected Member Functions inherited from UpdatableScript< Creature >
 UpdatableScript ()=default
 

Detailed Description

Constructor & Destructor Documentation

◆ npc_karynaku()

npc_karynaku::npc_karynaku ( )
inline
791: CreatureScript("npc_karynaku") { }
Definition: CreatureScript.h:25

Member Function Documentation

◆ OnQuestAccept()

bool npc_karynaku::OnQuestAccept ( Player player,
Creature creature,
Quest const *  quest 
)
inlineoverridevirtual

Reimplemented from CreatureScript.

794 {
795 if (quest->GetQuestId() == QUEST_ALLY_OF_NETHER)
797
798 if (quest->GetQuestId() == QUEST_ZUHULED_THE_WACK)
799 creature->SummonCreature(NPC_ZUHULED_THE_WACKED, -4204.94f, 316.397f, 122.508f, 1.309f, TEMPSUMMON_TIMED_OR_DEAD_DESPAWN, 300000);
800
801 return true;
802 }
@ QUEST_ALLY_OF_NETHER
Definition: zone_shadowmoon_valley.cpp:780
@ TAXI_PATH_ID
Definition: zone_shadowmoon_valley.cpp:785
@ QUEST_ZUHULED_THE_WACK
Definition: zone_shadowmoon_valley.cpp:781
@ NPC_ZUHULED_THE_WACKED
Definition: zone_shadowmoon_valley.cpp:783
@ TEMPSUMMON_TIMED_OR_DEAD_DESPAWN
Definition: Object.h:46
TempSummon * SummonCreature(uint32 id, const Position &pos, TempSummonType spwtype=TEMPSUMMON_MANUAL_DESPAWN, uint32 despwtime=0, uint32 vehId=0, SummonPropertiesEntry const *properties=nullptr, bool visibleBySummonerOnly=false) const
Definition: Object.cpp:2366
bool ActivateTaxiPathTo(std::vector< uint32 > const &nodes, Creature *npc=nullptr, uint32 spellid=1)
Definition: Player.cpp:10265

References Player::ActivateTaxiPathTo(), Quest::GetQuestId(), NPC_ZUHULED_THE_WACKED, QUEST_ALLY_OF_NETHER, QUEST_ZUHULED_THE_WACK, WorldObject::SummonCreature(), TAXI_PATH_ID, and TEMPSUMMON_TIMED_OR_DEAD_DESPAWN.