9
3

a_delivery.lua 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. --[[
  2. Script Name : Quests/BeggarsCourt/a_delivery.lua
  3. Script Purpose : Handles the quest, "A Delivery"
  4. Script Author : Scatman (updated by Cynnar 2018.06.14 06:06:04)
  5. Script Date : 2009.04.05
  6. Zone : Beggar's Court
  7. Quest Giver: Thavian Destrus
  8. Preceded by: None
  9. Followed by: Dirty Work (dirty_work.lua)
  10. --]]
  11. local LIEUTENANT_CERVAEN = 1370037
  12. local DELCAIRN_SEBASTIAN = 1370038
  13. function Init(Quest)
  14. AddQuestStepChat(Quest, 1, "I need to deliver this report to Lieutenant Cervaen in the upstairs room in the western end of the northern half of Beggar's Court.", 1, "I need to deliver Thavian's note to Lieutenant Cervaen.", 75, LIEUTENANT_CERVAEN)
  15. AddQuestStepCompleteAction(Quest, 1, "Step1_Complete_SpokeToCervaen")
  16. end
  17. function Step1_Complete_SpokeToCervaen(Quest, QuestGiver, Player)
  18. UpdateQuestStepDescription(Quest, 1, "I have delivered the note to Lieutenant Cervaen.")
  19. AddQuestStepChat(Quest, 2, "I need to speak with Delcairn Sebastian.", 1, ".", 0, DELCAIRN_SEBASTIAN)
  20. AddQuestStepCompleteAction(Quest, 2, "Quest_Complete")
  21. end
  22. function Quest_Complete(Quest, QuestGiver, Player)
  23. UpdateQuestDescription(Quest, "I have delivered Thavian's letter. After speaking with Lieutenant Cervaen and Delcairn Sebastian they have offered me more work.")
  24. GiveQuestReward(Quest, Player)
  25. end
  26. function Accepted(Quest, QuestGiver, Player)
  27. FaceTarget(QuestGiver, Player)
  28. conversation = CreateConversation()
  29. PlayFlavor(QuestGiver, "voiceover/english/tutorial_revamp/thavian_destrus/fprt_hood04/quests/thavian/thavian014.mp3", "", "", 746734341, 3406058828, Player)
  30. AddConversationOption(conversation, "All right.")
  31. StartConversation(conversation, QuestGiver, Player, "Good. The Brotherhood Awaits.")
  32. end
  33. function Declined(Quest, QuestGiver, Player)
  34. end
  35. function Deleted(Quest, QuestGiver, Player)
  36. end
  37. function Reload(Quest, QuestGiver, Player, Step)
  38. if Step == 1 then
  39. Step1_Complete_SpokeToCervaen(Quest, QuestGiver, Player)
  40. end
  41. end