DanaIronforge.lua 5.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  1. --[[
  2. Script Name : SpawnScripts/NorthQeynos/DanaIronforge.lua
  3. Script Purpose : Dana Ironforge <Jeweler>
  4. Script Author : Dorbin
  5. Script Date : 2022.01.11
  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,4)
  22. if choice == 1 then
  23. PlayFlavor(NPC, "voiceover/english/human_eco_good_1/ft/service/armorsmith/human_armorsmith_service_good_1_hail_gf_58a92b79.mp3", "You can never be too careful when it comes to protection. Here, try on one of these.", "agree", 3342234015, 3894819487, Spawn)
  24. elseif choice == 2 then
  25. PlayFlavor(NPC, "voiceover/english/human_eco_good_1/ft/service/armorsmith/human_armorsmith_service_good_1_hail_gf_af50709c.mp3", "I have some nice new suits of chain that have stood up very well. Would you like to see them?", "shrug", 1001561402, 2745612534, Spawn)
  26. elseif choice == 3 then
  27. PlayFlavor(NPC, "voiceover/english/human_eco_good_1/ft/service/armorsmith/human_armorsmith_service_good_1_hail_gf_bb02310.mp3", "Coin is no object when gaining protection from your enemies. What price can be put on your safety? ", "glare", 93047397, 3216144520, Spawn)
  28. elseif choice == 4 then
  29. PlayFlavor(NPC, "voiceover/english/human_eco_good_1/ft/service/armorsmith/human_armorsmith_service_good_1_hail_gf_db7232a3.mp3", "Well, that suit is looking a mite worn. Can I interest you in a new suit of fine armor? ", "ponder", 2349039589, 2731635835, Spawn)
  30. else
  31. end
  32. end
  33. --[[ Wtf is this?
  34. PlayFlavor(NPC, "voiceover/english/optional4/wesaelan_brookshadow/brookshadow_01.mp3", "", "", 2834600234, 1504715618, Spawn)
  35. AddConversationOption(conversation, "Thank you, and good day to you.")
  36. StartConversation(conversation, NPC, Spawn, "Hail traveler! All friends of the Elddar are welcome.")
  37. if convo==8 then
  38. PlayFlavor(NPC, "voiceover/english/optional4/wesaelan_brookshadow/brookshadow_01.mp3", "", "", 2834600234, 1504715618, Spawn)
  39. AddConversationOption(conversation, "Thank you, and good day to you.")
  40. StartConversation(conversation, NPC, Spawn, "Hail traveler! All friends of the Elddar are welcome.")
  41. end
  42. end
  43. function dlg_7_1(NPC, Spawn)
  44. FaceTarget(NPC, Spawn)
  45. conversation = CreateConversation()
  46. PlayFlavor(NPC, "voiceover/english/optional4/wesaelan_brookshadow/brookshadow_06.mp3", "", "", 3658794713, 1958132476, Spawn)
  47. AddConversationOption(conversation, "If only I had more time myself...")
  48. StartConversation(conversation, NPC, Spawn, "I've uncovered the location of a tome hidden by Karana's followers long before the gods left this world. I recently discovered its location with the aid of Duvos. My duties here do not permit the time to recover the tome. I can charge you with recovering this treasure - if you're capable of such an invaluable task.")
  49. end
  50. function dlg_8_1(NPC, Spawn)
  51. FaceTarget(NPC, Spawn)
  52. conversation = CreateConversation()
  53. PlayFlavor(NPC, "voiceover/english/optional4/wesaelan_brookshadow/brookshadow_06.mp3", "", "", 3658794713, 1958132476, Spawn)
  54. AddConversationOption(conversation, "If only I had more time myself...")
  55. StartConversation(conversation, NPC, Spawn, "I've uncovered the location of a tome hidden by Karana's followers long before the gods left this world. I recently discovered its location with the aid of Duvos. My duties here do not permit the time to recover the tome. I can charge you with recovering this treasure - if you're capable of such an invaluable task.")
  56. end
  57. function dlg_8_2(NPC, Spawn)
  58. FaceTarget(NPC, Spawn)
  59. conversation = CreateConversation()
  60. PlayFlavor(NPC, "voiceover/english/optional4/wesaelan_brookshadow/brookshadow_07.mp3", "", "", 2198545159, 1480496199, Spawn)
  61. AddConversationOption(conversation, "I can do this.", "dlg_8_3")
  62. StartConversation(conversation, NPC, Spawn, "You will need to venture to the great oak in the fields outside the city where the tomb has been hidden for many decades. You must thoroughly search the tree. Remember, the tome has been missing for many years. Use care when handling this precious treasure. ")
  63. end
  64. function dlg_8_3(NPC, Spawn)
  65. FaceTarget(NPC, Spawn)
  66. conversation = CreateConversation()
  67. PlayFlavor(NPC, "voiceover/english/optional4/wesaelan_brookshadow/brookshadow_04.mp3", "", "", 1096830596, 4200711932, Spawn)
  68. AddConversationOption(conversation, "I will return with the tome.", "dlg_8_4")
  69. StartConversation(conversation, NPC, Spawn, "Please, you must recover the tome! Qeynos depends on you!")
  70. end
  71. ]]--
  72. --[[ raw_conversations
  73. PlayFlavor(NPC, "voiceover/english/human_eco_good_1/ft/service/armorsmith/human_armorsmith_service_good_1_hail_gf_af50709c.mp3", "I have some nice new suits of chain that have stood up very well. Would you like to see them?", "shrug", 1001561402, 2745612534, Spawn)
  74. PlayFlavor(NPC, "voiceover/english/human_eco_good_1/ft/service/armorsmith/human_armorsmith_service_good_1_hail_gf_db7232a3.mp3", "Well, that suit is looking a mite worn. Can I interest you in a new suit of fine armor? ", "ponder", 2349039589, 2731635835, Spawn)
  75. PlayFlavor(NPC, "voiceover/english/human_eco_good_1/ft/service/armorsmith/human_armorsmith_service_good_1_hail_gf_58a92b79.mp3", "You can never be too careful when it comes to protection. Here, try on one of these.", "agree", 3342234015, 3894819487, Spawn)
  76. PlayFlavor(NPC, "voiceover/english/human_eco_good_1/ft/service/armorsmith/human_armorsmith_service_good_1_hail_gf_bb02310.mp3", "Coin is no object when gaining protection from your enemies. What price can be put on your safety? ", "glare", 93047397, 3216144520, Spawn)
  77. --]]