Advertisement
jackpoz

monster say

Oct 15th, 2011
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Diff 1.29 KB | None | 0 0
  1. Index: src/arcemu-world/Creature.h
  2. ===================================================================
  3. --- src/arcemu-world/Creature.h (revision 4634)
  4. +++ src/arcemu-world/Creature.h (working copy)
  5. @@ -81,6 +81,8 @@
  6.      MONSTER_SAY_EVENT_ON_COMBAT_STOP   = 3,
  7.      MONSTER_SAY_EVENT_ON_DAMAGE_TAKEN  = 4,
  8.      MONSTER_SAY_EVENT_ON_DIED          = 5,
  9. +   MONSTER_SAY_EVENT_ON_QUEST_STARTED  = 6,
  10. +   MONSTER_SAY_EVENT_ON_QUEST_FINISHED = 7,
  11.      NUM_MONSTER_SAY_EVENTS,
  12.  };
  13.  
  14. Index: src/arcemu-world/QuestMgr.cpp
  15. ===================================================================
  16. --- src/arcemu-world/QuestMgr.cpp   (revision 4634)
  17. +++ src/arcemu-world/QuestMgr.cpp   (working copy)
  18. @@ -1039,7 +1039,8 @@
  19.  
  20.  void QuestMgr::OnQuestAccepted(Player* plr, Quest* qst, Object* qst_giver)
  21.  {
  22. -
  23. +   if( qst_giver->IsCreature() )
  24. +       TO<Creature*>(qst_giver)->HandleMonsterSayEvent(MONSTER_SAY_EVENT_ON_QUEST_STARTED);
  25.  }
  26.  
  27.  void QuestMgr::OnQuestFinished(Player* plr, Quest* qst, Object* qst_giver, uint32 reward_slot)
  28. @@ -1370,6 +1371,10 @@
  29.                 plr->AddToFinishedQuests((*iter));
  30.         }
  31.     }
  32. +
  33. +   //Some Quest givers talk in the end of the quest.
  34. +   if( qst_giver->IsCreature() )
  35. +       TO<Creature*>(qst_giver)->HandleMonsterSayEvent(MONSTER_SAY_EVENT_ON_QUEST_FINISHED);
  36.  }
  37.  
  38.  /////////////////////////////////////
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement