anArcaneScienceapprentice.lua 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102
  1. --[[
  2. Script Name : SpawnScripts/EnchantedLands/anArcaneScienceapprentice.lua
  3. Script Purpose : an Arcane Science apprentice
  4. Script Author : Cynnar
  5. Script Date : 2015.02.17
  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. local choice = math.random(1,3)
  22. if choice == 1 then
  23. PlayFlavor(NPC, "", "Now the storms are bringing invading forces into Norrath!", "", 1689589577, 4560189, Spawn)
  24. elseif choice == 2 then
  25. PlayFlavor(NPC, "", "", "", 1689589577, 4560189, Spawn)
  26. elseif choice == 3 then
  27. PlayFlavor(NPC, "", "I will honor the masters back at the academy with every detail that I can record for them.", "", 1689589577, 4560189, Spawn)
  28. else
  29. end
  30. PlayFlavor(NPC, "voiceover/english/voice_emotes/greetings/greetings_2_1008.mp3", "", "", 0, 0, Spawn)
  31. AddConversationOption(conversation, "You've reported this to the Academy?", "dlg_9_1")
  32. AddConversationOption(conversation, "This is no time to stand back and gawk!")
  33. StartConversation(conversation, NPC, Spawn, "This is not good. These Void tempests have been tainting Norrath, but now attacking beasts are being expelled from them!")
  34. if convo==10 then
  35. PlayFlavor(NPC, "voiceover/english/voice_emotes/greetings/greetings_1_1008.mp3", "", "", 0, 0, Spawn)
  36. AddConversationOption(conversation, "You've reported this to the Academy?", "dlg_10_1")
  37. AddConversationOption(conversation, "This is no time to stand back and gawk!")
  38. StartConversation(conversation, NPC, Spawn, "This is not good. These Void tempests have been tainting Norrath, but now attacking beasts are being expelled from them!")
  39. end
  40. if convo==11 then
  41. PlayFlavor(NPC, "voiceover/english/voice_emotes/greetings/greetings_1_1008.mp3", "", "", 0, 0, Spawn)
  42. AddConversationOption(conversation, "You've reported this to the Academy?", "dlg_11_1")
  43. AddConversationOption(conversation, "This is no time to stand back and gawk!")
  44. StartConversation(conversation, NPC, Spawn, "This is not good. These Void tempests have been tainting Norrath, but now attacking beasts are being expelled from them!")
  45. end
  46. end
  47. function dlg_9_1(NPC, Spawn)
  48. FaceTarget(NPC, Spawn)
  49. conversation = CreateConversation()
  50. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  51. AddConversationOption(conversation, "Yes, I will!")
  52. AddConversationOption(conversation, "If I find any.", "dlg_9_2")
  53. AddConversationOption(conversation, "I don't think so.")
  54. StartConversation(conversation, NPC, Spawn, "That is for certain! If I had any fighting skills I would proudly be in the thick of it, myself. Will you join in the battle against the Void creatures?")
  55. end
  56. function dlg_9_2(NPC, Spawn)
  57. FaceTarget(NPC, Spawn)
  58. conversation = CreateConversation()
  59. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  60. AddConversationOption(conversation, "I sure will.")
  61. StartConversation(conversation, NPC, Spawn, "Excellent! If you find anything of interest to our research while you battle the onslaught, alert me.")
  62. end
  63. function dlg_10_1(NPC, Spawn)
  64. FaceTarget(NPC, Spawn)
  65. conversation = CreateConversation()
  66. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  67. AddConversationOption(conversation, "I can help.", "dlg_10_2")
  68. AddConversationOption(conversation, "Pardon me as I find someplace to hide.")
  69. StartConversation(conversation, NPC, Spawn, "Of course! The masters are recruiting adventurers to battle them. But they are tenacious!")
  70. end
  71. function dlg_10_2(NPC, Spawn)
  72. FaceTarget(NPC, Spawn)
  73. conversation = CreateConversation()
  74. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  75. AddConversationOption(conversation, "I sure will.", "dlg_10_3")
  76. StartConversation(conversation, NPC, Spawn, "Excellent! If you find anything of interest to our research while you battle the onslaught, alert me.")
  77. end
  78. --[[ raw_conversations
  79. PlayFlavor(NPC, "", "Now the storms are bringing invading forces into Norrath!", "", 1689589577, 4560189, Spawn)
  80. PlayFlavor(NPC, "", "", "", 1689589577, 4560189, Spawn)
  81. PlayFlavor(NPC, "", "I will honor the masters back at the academy with every detail that I can record for them.", "", 1689589577, 4560189, Spawn)
  82. --]]