Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // npc_kali_remik
- // npc_talvash_del_kissel
- /*########
- # npc_kali_remik
- #########*/
- enum
- {
- NPC_KALI_REMIK = 11814;
- QUEST_DARKSPEAR_GUMDROP = 8358;
- EMOTE_TRAIN_COMPLETE_H = -100104;
- };
- struct MANGOS_DLL_DECL npc_kali_remikAI : public ScriptedAI
- {
- npc_kali_remikAI(Creature* pCreature) : ScriptedAI(pCreature)
- {
- Reset();
- }
- void Reset() {}
- void ReceiveEmote(Player* pPlayer, uint32 uiEmote)
- {
- if (uiEmote == TEXTEMOTE_TRAIN)
- {
- if (pPlayer->GetQuestStatus(QUEST_DARKSPEAR_GUMDROP) == QUEST_STATUS_INCOMPLETE && pCreature->GetEntry() == NPC_KALI_REMIK)
- {
- DoScriptText(EMOTE_TRAIN_COMPLETE_H, m_creature);
- pPlayer->AreaExploredOrEventHappens(QUEST_DARKSPEAR_GUMDROP);
- }
- }
- }
- void UpdateAI(const uint32 uiDiff)
- {
- if (m_creature->SelectHostileTarget() && m_creature->getVictim())
- {
- DoMeleeAttackIfReady();
- }
- }
- };
- CreatureAI* GetAI_npc_kali_remik(Creature* pCreature)
- {
- return new npc_kali_remikAI(pCreature);
- }
- // Ceci vient après
- newscript = new Script;
- newscript->Name = "npc_kali_remik";
- newscript->GetAI = &GetAI_npc_kali_remik;
- newscript->RegisterSelf();
- /*########
- # npc_talvash_del_kissel
- #########*/
- enum
- {
- NPC_TALVASH_DEL_KISSEL = 6826;
- QUEST_GNOMEREGAN_GUMDROP = 8355;
- EMOTE_TRAIN_COMPLETE_A = -100105;
- };
- struct MANGOS_DLL_DECL npc_talvash_del_kisselAI : public ScriptedAI
- {
- npc_talvash_del_kisselAI(Creature* pCreature) : ScriptedAI(pCreature)
- {
- Reset();
- }
- void Reset() {}
- void ReceiveEmote(Player* pPlayer, uint32 uiEmote)
- {
- if (uiEmote == TEXTEMOTE_TRAIN)
- {
- if (pPlayer->GetQuestStatus(QUEST_DARKSPEAR_GUMDROP) == QUEST_STATUS_INCOMPLETE && pCreature->GetEntry() == NPC_TALVASH_DEL_KISSEL)
- {
- DoScriptText(EMOTE_TRAIN_COMPLETE_H, m_creature);
- pPlayer->AreaExploredOrEventHappens(QUEST_DARKSPEAR_GUMDROP);
- }
- }
- }
- void UpdateAI(const uint32 uiDiff)
- {
- if (m_creature->SelectHostileTarget() && m_creature->getVictim())
- {
- DoMeleeAttackIfReady();
- }
- }
- };
- CreatureAI* GetAI_npc_talvash_del_kissel(Creature* pCreature)
- {
- return new npc_talvash_del_kisselAI(pCreature);
- }
- // Ceci vient après
- newscript = new Script;
- newscript->Name = "npc_talvash_del_kissel";
- newscript->GetAI = &GetAI_npc_talvash_del_kissel;
- newscript->RegisterSelf();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement