adevioussunshimmerspritespirit.lua 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. --[[
  2. Script Name : SpawnScripts/Castleview/adevioussunshimmerspritespirit.lua
  3. Script Purpose : a devious sunshimmer sprite spirit
  4. Script Author : John Adams
  5. Script Date : 2008.09.21
  6. Script Notes : Auto-Generated Conversation from PacketParser Data
  7. --]]
  8. local TheCommune = 226
  9. function spawn(NPC)
  10. AddSpawnAccess(NPC, NPC)
  11. SetPlayerProximityFunction(NPC, 10, "InRange", "LeaveRange")
  12. end
  13. function InRange(NPC, Spawn)
  14. if HasQuest(Spawn, TheCommune) and GetQuestStep(Spawn, TheCommune) == 1 then
  15. AddSpawnAccess(NPC, Spawn)
  16. end
  17. end
  18. function LeaveRange(NPC, Spawn)
  19. end
  20. function respawn(NPC)
  21. spawn(NPC)
  22. end
  23. function hailed(NPC, Spawn)
  24. FaceTarget(NPC, Spawn)
  25. if HasQuest(Spawn, TheCommune) then
  26. if GetQuestStep(Spawn, TheCommune) == 1 then
  27. ForWhatIHaveDone(NPC, Spawn)
  28. else
  29. Say(NPC, "For what I have done there is no atonement.", Spawn)
  30. end
  31. end
  32. end
  33. function ForWhatIHaveDone(NPC, Spawn)
  34. FaceTarget(NPC, Spawn)
  35. conversation = CreateConversation()
  36. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/a_devious_sunshimmer_sprite_spirit/qey_village04/quests/sprite/sprite_000.mp3", "", "", 10752592, 2895198222, Spawn)
  37. AddConversationOption(conversation, "What have you done?", "dlg_24_1")
  38. StartConversation(conversation, NPC, Spawn, "For what I have done there is no atonement.")
  39. end
  40. function dlg_24_1(NPC, Spawn)
  41. FaceTarget(NPC, Spawn)
  42. conversation = CreateConversation()
  43. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/a_devious_sunshimmer_sprite_spirit/qey_village04/quests/sprite/sprite_001.mp3", "", "", 3975280832, 3208663156, Spawn)
  44. AddConversationOption(conversation, "Why were you corrupted?", "dlg_24_2")
  45. StartConversation(conversation, NPC, Spawn, "I have fallen to corruption. I will never see Oakmyst Forest again. This is a sad day.")
  46. end
  47. function dlg_24_2(NPC, Spawn)
  48. FaceTarget(NPC, Spawn)
  49. conversation = CreateConversation()
  50. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/a_devious_sunshimmer_sprite_spirit/qey_village04/quests/sprite/sprite_002.mp3", "", "", 3139966243, 521548245, Spawn)
  51. AddConversationOption(conversation, "What do you remember from when you were corrupted?", "dlg_24_3")
  52. StartConversation(conversation, NPC, Spawn, "I do not know. It was not my choice, if that is what you are asking.")
  53. end
  54. function dlg_24_3(NPC, Spawn)
  55. FaceTarget(NPC, Spawn)
  56. conversation = CreateConversation()
  57. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/a_devious_sunshimmer_sprite_spirit/qey_village04/quests/sprite/sprite_003.mp3", "", "", 2953330382, 2257771207, Spawn)
  58. AddConversationOption(conversation, "A green thread?", "dlg_24_4")
  59. StartConversation(conversation, NPC, Spawn, "Very little. The memories are dark and hazy. Through it all the only tangible thing I recall is a single, green thread, tugging at me always.")
  60. end
  61. function dlg_24_4(NPC, Spawn)
  62. SetStepComplete(Spawn, TheCommune, 1)
  63. FaceTarget(NPC, Spawn)
  64. conversation = CreateConversation()
  65. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/a_devious_sunshimmer_sprite_spirit/qey_village04/quests/sprite/sprite_004.mp3", "", "", 3927425201, 2478568698, Spawn)
  66. AddConversationOption(conversation, "Very well.")
  67. AddConversationOption(conversation, "Very well, Tunare be with you.")
  68. StartConversation(conversation, NPC, Spawn, "I must go now. Tunare be with you, Koada'Dal. I will attend to this Green Wisp, it is the least I can do. Please, I must be alone.")
  69. end