9
3

aConcordiumPupilAdept.lua 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119
  1. --[[
  2. Script Name : SpawnScripts/Darklight/aConcordiumPupilAdept.lua
  3. Script Purpose : a Concordium Pupil Adept
  4. Script Author : John Adams
  5. Script Date : 2009.01.31
  6. Script Notes : Auto-Generated Conversation from PacketParser Data
  7. --]]
  8. function spawn(NPC)
  9. SetPlayerProximityFunction(NPC, 10, "InRange", "LeaveRange")
  10. end
  11. function respawn(NPC)
  12. spawn(NPC)
  13. end
  14. function InRange(NPC, Spawn)
  15. end
  16. function LeaveRange(NPC, Spawn)
  17. end
  18. function hailed(NPC, Spawn)
  19. FaceTarget(NPC, Spawn)
  20. conversation = CreateConversation()
  21. choice = math.random(1,2)
  22. if choice == 1 then
  23. PlayFlavor(NPC, "", "", "", 1689589577, 4560189, Spawn)
  24. elseif choice == 2 then
  25. PlayFlavor(NPC, "", "Such storms! The elders were right! We must rise up and fight these invaders together!", "", 1689589577, 4560189, Spawn)
  26. else
  27. end
  28. PlayFlavor(NPC, "voiceover/english/voice_emotes/greetings/greetings_3_1005.mp3", "", "", 0, 0, Spawn)
  29. AddConversationOption(conversation, "You've reported this to the Concordium?", "dlg_0_1")
  30. AddConversationOption(conversation, "This is no time to stand back and gawk!")
  31. StartConversation(conversation, NPC, Spawn, "First these Void storms were tainting Norrath. Now they are spitting out forces of attacking beasts!")
  32. if convo==1 then
  33. PlayFlavor(NPC, "voiceover/english/voice_emotes/greetings/greetings_3_1005.mp3", "", "", 0, 0, Spawn)
  34. AddConversationOption(conversation, "You've reported this to the Concordium?", "dlg_1_1")
  35. AddConversationOption(conversation, "This is no time to stand back and gawk!")
  36. StartConversation(conversation, NPC, Spawn, "First these Void storms were tainting Norrath. Now they are spitting out forces of attacking beasts!")
  37. end
  38. if convo==2 then
  39. PlayFlavor(NPC, "voiceover/english/voice_emotes/greetings/greetings_2_1005.mp3", "", "", 0, 0, Spawn)
  40. AddConversationOption(conversation, "You've reported this to the Concordium?", "dlg_2_1")
  41. AddConversationOption(conversation, "This is no time to stand back and gawk!")
  42. StartConversation(conversation, NPC, Spawn, "First these Void storms were tainting Norrath. Now they are spitting out forces of attacking beasts!")
  43. end
  44. end
  45. function dlg_0_1(NPC, Spawn)
  46. FaceTarget(NPC, Spawn)
  47. conversation = CreateConversation()
  48. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  49. AddConversationOption(conversation, "I can help.", "dlg_0_2")
  50. AddConversationOption(conversation, "Pardon me as I find someplace to hide.")
  51. StartConversation(conversation, NPC, Spawn, "Oh, yes! The elders are sending out adventurers to help battle them. But they just keep coming!")
  52. end
  53. function dlg_0_2(NPC, Spawn)
  54. FaceTarget(NPC, Spawn)
  55. conversation = CreateConversation()
  56. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  57. AddConversationOption(conversation, "You got it.", "dlg_0_3")
  58. StartConversation(conversation, NPC, Spawn, "Good, good! If you find anything of interest while you battle the Void storm creatures, anything that can help us in our research, I would appreciate it!")
  59. end
  60. function dlg_1_1(NPC, Spawn)
  61. FaceTarget(NPC, Spawn)
  62. conversation = CreateConversation()
  63. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  64. AddConversationOption(conversation, "Yes, I am!")
  65. AddConversationOption(conversation, "If I find any.", "dlg_1_2")
  66. AddConversationOption(conversation, "I don't think so.")
  67. StartConversation(conversation, NPC, Spawn, "Right you are! And if I had any fighting skills I would be in the thick of it, myself. Are you going to fight the Void creatures!?")
  68. end
  69. function dlg_1_2(NPC, Spawn)
  70. FaceTarget(NPC, Spawn)
  71. conversation = CreateConversation()
  72. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  73. AddConversationOption(conversation, "You got it.", "dlg_1_3")
  74. StartConversation(conversation, NPC, Spawn, "Good, good! If you find anything of interest while you battle the Void storm creatures, anything that can help us in our research, I would appreciate it!")
  75. end
  76. function dlg_2_1(NPC, Spawn)
  77. FaceTarget(NPC, Spawn)
  78. conversation = CreateConversation()
  79. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  80. AddConversationOption(conversation, "I can help.", "dlg_2_2")
  81. AddConversationOption(conversation, "Pardon me as I find someplace to hide.")
  82. StartConversation(conversation, NPC, Spawn, "Oh, yes! The elders are sending out adventurers to help battle them. But they just keep coming!")
  83. end
  84. function dlg_2_2(NPC, Spawn)
  85. FaceTarget(NPC, Spawn)
  86. conversation = CreateConversation()
  87. PlayFlavor(NPC, "voiceover/english/voice_emotes/greetings/greetings_1_1005.mp3", "", "", 0, 0, Spawn)
  88. AddConversationOption(conversation, "You've reported this to the Concordium?")
  89. AddConversationOption(conversation, "This is no time to stand back and gawk!")
  90. StartConversation(conversation, NPC, Spawn, "First these Void storms were tainting Norrath. Now they are spitting out forces of attacking beasts!")
  91. end
  92. --[[ raw_conversations
  93. PlayFlavor(NPC, "", "", "", 1689589577, 4560189, Spawn)
  94. PlayFlavor(NPC, "", "Such storms! The elders were right! We must rise up and fight these invaders together!", "", 1689589577, 4560189, Spawn)
  95. --]]