9
3

PriestessXaliea.lua 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. --[[
  2. Script Name : SpawnScripts/OutpostOverlord/PriestessXaliea.lua
  3. Script Author : Vo1d
  4. Script Date : 2019.10.25 06:10:47
  5. Script Purpose :
  6. :
  7. --]]
  8. local xalieas_request = 484
  9. function spawn(NPC)
  10. ProvidesQuest(NPC, xalieas_request)
  11. end
  12. function respawn(NPC)
  13. spawn(NPC)
  14. end
  15. function hailed(NPC, Spawn)
  16. if HasQuest(Spawn, xalieas_request) == false and HasCompletedQuest(Spawn, xalieas_request) == false then
  17. FaceTarget(NPC, Spawn)
  18. Conversation = CreateConversation()
  19. PlayFlavor(NPC, "voiceover/english/priestess_xaliea/tutorial_island01/xaliea/xaliea_ally_firsttalk_01.mp3", "", "", 1619628529, 3389802510, Spawn)
  20. AddConversationOption(Conversation, "You aren't?", "dlg_2")
  21. StartConversation(Conversation, NPC, Spawn, "The life of a priestess isn't all posies and butterflies, you know? We aren't just here to heal and give you blessings.")
  22. elseif HasQuest(Spawn, xalieas_request) == true and GetQuestStep(Spawn, xalieas_request) == 2 then
  23. SetStepComplete(Spawn, xalieas_request, 2)
  24. FaceTarget(NPC, Spawn)
  25. Conversation = CreateConversation()
  26. PlayFlavor(NPC, "voiceover/english/priestess_xaliea/tutorial_island01/xaliea/xaliea_ally_finaltalk_01.mp3", "", "", 3450984862, 1970143622, Spawn)
  27. AddConversationOption(Conversation, "You're welcome.", "dlg_6")
  28. StartConversation(Conversation, NPC, Spawn, "Ah, the sweet smell of death! They're so dry and brittle, just like I remembered. Thank you.")
  29. elseif HasCompletedQuest(Spawn, xalieas_request) == true then
  30. PlayFlavor(NPC, "voiceover/english/priestess_xaliea/tutorial_island02_fvo_hail1.mp3", "Yeah, yeah. Heal this, cure that. Keep moving.", "", 3735315332, 426916800, Spawn)
  31. end
  32. end
  33. function dlg_2(NPC, Spawn)
  34. FaceTarget(NPC, Spawn)
  35. Conversation = CreateConversation()
  36. PlayFlavor(NPC, "voiceover/english/priestess_xaliea/tutorial_island01/xaliea/xaliea_ally_firsttalk_02.mp3", "", "", 2464873714, 2323246094, Spawn)
  37. AddConversationOption(Conversation, "Why don't you let out some steam and go take down some skeletons or something?", "dlg_3")
  38. StartConversation(Conversation, NPC, Spawn, "No! There's so much more to our way of life. We constantly battle against the ever rising ranks of the undead. If it wasn't for us, you'd all have your brains sucked out by a legion of zombies!")
  39. end
  40. function dlg_3(NPC, Spawn)
  41. FaceTarget(NPC, Spawn)
  42. Conversation = CreateConversation()
  43. PlayFlavor(NPC, "voiceover/english/priestess_xaliea/tutorial_island01/xaliea/xaliea_ally_firsttalk_04.mp3", "", "", 585972363, 27232816, Spawn)
  44. AddConversationOption(Conversation, "Sorry to hear that.", "dlg_4")
  45. StartConversation(Conversation, NPC, Spawn, "I can't leave my post.")
  46. end
  47. function dlg_4(NPC, Spawn)
  48. FaceTarget(NPC, Spawn)
  49. Conversation = CreateConversation()
  50. PlayFlavor(NPC, "voiceover/english/priestess_xaliea/tutorial_island01/xaliea/xaliea_ally_firsttalk_05.mp3", "", "", 2300229103, 3393998851, Spawn)
  51. AddConversationOption(Conversation, "How do you propose I do that?", "dlg_5")
  52. AddConversationOption(Conversation, "Not today, sorry.")
  53. StartConversation(Conversation, NPC, Spawn, "Hmm, but you can get around freely, can't you? Maybe you could help an old priestess relive her glory days?")
  54. end
  55. function dlg_5(NPC, Spawn)
  56. FaceTarget(NPC, Spawn)
  57. Conversation = CreateConversation()
  58. PlayFlavor(NPC, "voiceover/english/priestess_xaliea/tutorial_island01/xaliea/xaliea_ally_firsttalk_06.mp3", "", "", 3310184043, 4007538840, Spawn)
  59. AddConversationOption(Conversation, "I'll do it.", "OfferQuest1")
  60. AddConversationOption(Conversation, "Not right now.")
  61. StartConversation(Conversation, NPC, Spawn, "Go find these skeletons and slay them. If you bring me three bone chips from them, I'll make this all worth your while.")
  62. end
  63. function dlg_6(NPC, Spawn)
  64. FaceTarget(NPC, Spawn)
  65. Conversation = CreateConversation()
  66. PlayFlavor(NPC, "voiceover/english/priestess_xaliea/tutorial_island01/xaliea/xaliea_ally_finaltalk_02.mp3", "", "", 1023024209, 1047449217, Spawn)
  67. AddConversationOption(Conversation, "Thank you.")
  68. StartConversation(Conversation, NPC, Spawn, "Here, take these coins. This should be more than what the merchant would give you for these beauties.")
  69. end
  70. function OfferQuest1(NPC, Spawn)
  71. OfferQuest(NPC, Spawn, xalieas_request)
  72. end