an_important_meeting.lua 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  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. Modified : 5-5-2020
  11. By : Ememjr
  12. Notes : fixed item id for A Gnollish Contingency Book
  13. --]]
  14. function Init(Quest)
  15. AddQuestStep(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)
  16. AddQuestStepCompleteAction(Quest, 1, "Step1_Complete_KilledGilrix")
  17. end
  18. function Accepted(Quest, QuestGiver, Player)
  19. FaceTarget(QuestGiver, Player)
  20. conversation = CreateConversation()
  21. PlayFlavor(QuestGiver, "voiceover/english/tutorial_revamp/lieutenant_charlin/qey_adv01_oakmyst/quests/charlin/charlin019a.mp3", "", "", 1345224197, 2287197630, Player)
  22. AddConversationOption(conversation, "Thanks.")
  23. StartConversation(conversation, QuestGiver, Player, "Be safe. They won't appreciate this, heh.")
  24. end
  25. function Declined(Quest, QuestGiver, Player)
  26. end
  27. function Step1_Complete_KilledGilrix(Quest, QuestGiver, Player)
  28. UpdateQuestStepDescription(Quest, 1, "I have interrupted the meeting.")
  29. -- A Gnollish Contingency Book
  30. SummonItem(Player, 21029, 1)
  31. AddQuestStepChat(Quest, 2, "I need to return to Lieutenant Charlin and tell him what happened.", 1, ".", 0, 1950008)
  32. AddQuestStepCompleteAction(Quest, 2, "QuestComplete")
  33. end
  34. function QuestComplete(Quest, QuestGiver, Player)
  35. UpdateQuestStepDescription(Quest, 1, "I have spoken with Lieutenant Charlin.")
  36. 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.")
  37. GiveQuestReward(Quest, Player)
  38. end
  39. function Reload(Quest, QuestGiver, Player, Step)
  40. if Step == 1 then
  41. Step1_Complete_KilledGilrix(Quest, QuestGiver, Player)
  42. end
  43. end