AzeorthCore 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
 
- 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)
 
virtual ~ScriptObject ()=default
 
- Protected Member Functions inherited from UpdatableScript< Creature >
 UpdatableScript ()=default
 

Detailed Description

Constructor & Destructor Documentation

◆ npc_karynaku()

npc_karynaku::npc_karynaku ( )
inline
800: CreatureScript("npc_karynaku") { }
Definition: ScriptMgr.h:718

Member Function Documentation

◆ OnQuestAccept()

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

Reimplemented from CreatureScript.

803 {
804 if (quest->GetQuestId() == QUEST_ALLY_OF_NETHER)
806
807 if (quest->GetQuestId() == QUEST_ZUHULED_THE_WACK)
808 creature->SummonCreature(NPC_ZUHULED_THE_WACKED, -4204.94f, 316.397f, 122.508f, 1.309f, TEMPSUMMON_TIMED_OR_DEAD_DESPAWN, 300000);
809
810 return true;
811 }
@ TEMPSUMMON_TIMED_OR_DEAD_DESPAWN
Definition: Object.h:42
@ QUEST_ALLY_OF_NETHER
Definition: zone_shadowmoon_valley.cpp:789
@ TAXI_PATH_ID
Definition: zone_shadowmoon_valley.cpp:794
@ QUEST_ZUHULED_THE_WACK
Definition: zone_shadowmoon_valley.cpp:790
@ NPC_ZUHULED_THE_WACKED
Definition: zone_shadowmoon_valley.cpp:792
TempSummon * SummonCreature(uint32 id, const Position &pos, TempSummonType spwtype=TEMPSUMMON_MANUAL_DESPAWN, uint32 despwtime=0, uint32 vehId=0, SummonPropertiesEntry const *properties=nullptr) const
Definition: Object.cpp:2304
bool ActivateTaxiPathTo(std::vector< uint32 > const &nodes, Creature *npc=nullptr, uint32 spellid=1)
Definition: Player.cpp:9960

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.