an_important_meeting.lua 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. --[[
  2. Script Name : Quests/Oakmyst/an_important_meeting.lua
  3. Script Purpose : Handles the quest, "An Important Meeting"
  4. Script Author : Scatman
  5. Script Date : 2009.05.03
  6. Zone : Oakmyst Forest
  7. Quest Giver: Lieutenant Charlin
  8. Preceded by: A Citizen's Request (a_citizens_request.lua)
  9. Followed by: Clean Up (clean_up.lua)
  10. --]]
  11. function Init(Quest)
  12. AddQuestStepKill(Quest, 1, "I need to interrupt the meeting being held on the small hill that overlooks the falls just west of The Western Falls.", 1, 100, ".", 0, 1950066)
  13. AddQuestStepCompleteAction(Quest, 1, "Step1_Complete_KilledGilrix")
  14. end
  15. function Accepted(Quest, QuestGiver, Player)
  16. FaceTarget(QuestGiver, Player)
  17. conversation = CreateConversation()
  18. PlayFlavor(QuestGiver, "voiceover/english/tutorial_revamp/lieutenant_charlin/qey_adv01_oakmyst/quests/charlin/charlin019a.mp3", "", "", 1345224197, 2287197630, Player)
  19. AddConversationOption(conversation, "Thanks.")
  20. StartConversation(conversation, QuestGiver, Player, "Be safe. They won't appreciate this, heh.")
  21. end
  22. function Declined(Quest, QuestGiver, Player)
  23. end
  24. function Step1_Complete_KilledGilrix(Quest, QuestGiver, Player)
  25. UpdateQuestStepDescription(Quest, 1, "I have interrupted the meeting.")
  26. -- A Gnollish Contingency Book
  27. SummonItem(Player, 210027, 1)
  28. AddQuestStepChat(Quest, 2, "I need to return to Lieutenant Charlin and tell him what happened.", 1, ".", 0, 1950015)
  29. AddQuestStepCompleteAction(Quest, 2, "QuestComplete")
  30. end
  31. function QuestComplete(Quest, QuestGiver, Player)
  32. UpdateQuestStepDescription(Quest, 1, "I have spoken with Lieutenant Charlin.")
  33. UpdateQuestDescription(Quest, "I interrupted the meeting just as planned. It was between a few gnolls and a gnome. The gnome ran off but the gnolls were slain. The information found on them will help deconstruct their plans in Oakmyst Forest.")
  34. GiveQuestReward(Quest, Player)
  35. end
  36. function Reload(Quest, QuestGiver, Player, Step)
  37. if Step == 1 then
  38. Step1_Complete_KilledGilrix(Quest, QuestGiver, Player)
  39. end
  40. end