9
3

SentryTrillis.lua 3.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. --[[
  2. Script Name : SpawnScripts/GreaterFaydark/SentryTrillis.lua
  3. Script Purpose : Sentry Trillis
  4. Script Author : John Adams
  5. Script Date : 2009.02.05
  6. Script Notes : Auto-Generated Conversation from PacketParser Data
  7. --]]
  8. function spawn(NPC)
  9. SetPlayerProximityFunction(NPC, 10, "InRange", "LeaveRange")
  10. ProvidesQuest(NPC, 160)
  11. end
  12. function respawn(NPC)
  13. Spawn(NPC)
  14. end
  15. function InRange(NPC, Spawn)
  16. end
  17. function LeaveRange(NPC, Spawn)
  18. end
  19. function hailed(NPC, Spawn)
  20. FaceTarget(NPC, Spawn)
  21. conversation = CreateConversation()
  22. if HasCompletedQuest(Spawn, 137) then
  23. if HasQuest(Spawn, 160) then
  24. if GetQuestStep(Spawn, 160) == 1 then
  25. -- quest not yet complete
  26. Say(NPC, "Quest not complete yet", Spawn)
  27. end
  28. else
  29. -- does not have Sentry Trellis' quest
  30. SentryTrellisReport_dlg_2(NPC, Spawn)
  31. end
  32. else
  33. -- completing Matron quest
  34. MessageFromTheMatron(NPC, Spawn)
  35. end
  36. end
  37. function MessageFromTheMatron(NPC, Spawn)
  38. FaceTarget(NPC, Spawn)
  39. conversation = CreateConversation()
  40. PlayFlavor(NPC, "voiceover/english/exp03_questvo2/sentry_trillis/_exp03/exp03_rgn_greater_faydark/sentry_trillis/sentry_trillis000.mp3", "", "", 3549519021, 54059459, Spawn)
  41. AddConversationOption(conversation, "The Matron of the Nursery has a message for you.", "SentryTrellisReport")
  42. AddConversationOption(conversation, "Just admiring the view.")
  43. StartConversation(conversation, NPC, Spawn, "Greetings, young one. What brings you to my post?")
  44. end
  45. -- PlayFlavor(NPC, "voiceover/english/exp03_questvo2/sentry_trillis/_exp03/exp03_rgn_greater_faydark/quest/sentry_trillis_careful_a49efdc.mp3", "Be careful out there. The Faydark can be a very dangerous place.", "hello", 1238010868, 445756514, Spawn)
  46. function SentryTrellisReport(NPC, Spawn)
  47. if HasQuest(Spawn, 137) then
  48. SetStepComplete(Spawn, 137, 1)
  49. end
  50. FaceTarget(NPC, Spawn)
  51. conversation = CreateConversation()
  52. PlayFlavor(NPC, "voiceover/english/exp03_questvo2/sentry_trillis/_exp03/exp03_rgn_greater_faydark/sentry_trillis/sentry_trillis001.mp3", "", "", 46388781, 2562325140, Spawn)
  53. AddConversationOption(conversation, "Where did they go?", "SentryTrellisReport_dlg_2")
  54. StartConversation(conversation, NPC, Spawn, "She does? Hmmm... she's worried about the grobins, but she should rest easy. I spotted where the grobins ran off to when you scared them away from the pond. I already alerted my friend, Captain Steelforge.")
  55. end
  56. function SentryTrellisReport_dlg_2(NPC, Spawn)
  57. FaceTarget(NPC, Spawn)
  58. conversation = CreateConversation()
  59. PlayFlavor(NPC, "voiceover/english/exp03_questvo2/sentry_trillis/_exp03/exp03_rgn_greater_faydark/sentry_trillis/sentry_trillis002.mp3", "", "", 1624769357, 1800752258, Spawn)
  60. AddConversationOption(conversation, "Sure. I can take the report for you.", "OfferQuest1")
  61. AddConversationOption(conversation, "No thanks. I don't want to get involved in any caves.")
  62. StartConversation(conversation, NPC, Spawn, "If you look west of here you might be able to make out the cave the grobins ran into. Captain Steelforge has been dispatched to investigate. If you want to help, you could take my report to him. ")
  63. end
  64. function OfferQuest1(NPC, Spawn)
  65. OfferQuest(NPC, Spawn, 160)
  66. end