AlganTinmizer.lua 5.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131
  1. --[[
  2. Script Name : SpawnScripts/TheBaubbleshire/AlganTinmizer.lua
  3. Script Purpose : Algan Tinmizer
  4. Script Author : Shatou
  5. Script Date : 2020.01.07
  6. Script Notes : Auto-Generated Conversation from PacketParser Data
  7. --]]
  8. local BAG_OF_PARTS_QUEST_ID = 505
  9. function spawn(NPC)
  10. SetPlayerProximityFunction(NPC, 10, "InRange", "LeaveRange")
  11. end
  12. function respawn(NPC)
  13. spawn(NPC)
  14. end
  15. function InRange(NPC, Spawn)
  16. end
  17. function LeaveRange(NPC, Spawn)
  18. end
  19. function hailed(NPC, Spawn)
  20. FaceTarget(NPC, Spawn)
  21. conversation = CreateConversation()
  22. PlayFlavor(NPC, "voiceover_new\voiceover\english\algan_tinmizer\qey_village06\ebikwobblecog000.mp3", "Greetings! Looking for a bashcogglinator or perhaps a metefozic thermogauge?", "", 1689589577, 4560189, Spawn)
  23. end
  24. PlayFlavor(NPC, "voiceover_new\voiceover\english\algan_tinmizer\qey_village06\ebikwobblecog000.mp3", "", "", 1689589577, 4560189, Spawn)
  25. AddConversationOption(conversation, "I found this bag of cogs and sprockets and I believe it belongs to you.", "dlg_1_1")
  26. AddConversationOption(conversation, "Nothing I need. I will be going now.")
  27. StartConversation(conversation, NPC, Spawn, "Greetings! Looking for a bashcogglinator or perhaps a metefozic thermogauge?")
  28. if convo==2 then
  29. PlayFlavor(NPC, "voiceover/english/voice_emotes/greetings/greetings_2_1040.mp3", "", "", 0, 0, Spawn)
  30. AddConversationOption(conversation, "Are you kidding me?", "dlg_2_1")
  31. AddConversationOption(conversation, "Nothing I need. I will be going now.")
  32. StartConversation(conversation, NPC, Spawn, "Greetings! Looking for a bashcogglinator or perhaps a metefozic thermogauge?")
  33. end
  34. if convo==3 then
  35. PlayFlavor(NPC, "voiceover/english/voice_emotes/greetings/greetings_3_1040.mp3", "", "", 0, 0, Spawn)
  36. AddConversationOption(conversation, "Are you kidding me?", "dlg_3_1")
  37. AddConversationOption(conversation, "Nothing I need. I will be going now.")
  38. StartConversation(conversation, NPC, Spawn, "Greetings! Looking for a bashcogglinator or perhaps a metefozic thermogauge?")
  39. end
  40. function dlg_1_1(NPC, Spawn)
  41. FaceTarget(NPC, Spawn)
  42. conversation = CreateConversation()
  43. SetStepComplete(Spawn, BAG_OF_PARTS_QUEST_ID, 1)
  44. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  45. AddConversationOption(conversation, "Thanks!", "dlg_1_2")
  46. StartConversation(conversation, NPC, Spawn, "Oh my, it does indeed! I thought I'd lost those parts. You've saved me a great deal of trouble, friend. Let me compensate you for your keen eyes and good nature.")
  47. end
  48. function dlg_2_1(NPC, Spawn)
  49. FaceTarget(NPC, Spawn)
  50. conversation = CreateConversation()
  51. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  52. AddConversationOption(conversation, "If you have the work I have the time.", "dlg_2_2")
  53. AddConversationOption(conversation, "I can't help you.")
  54. StartConversation(conversation, NPC, Spawn, "I see my superior intellect confuses you. Don't worry, it perplexes many people - tis' the curse of the Tinmizer name. However, I can use your help, for even simple minds contribute to the greatness of Qeynos.")
  55. end
  56. function dlg_2_2(NPC, Spawn)
  57. FaceTarget(NPC, Spawn)
  58. conversation = CreateConversation()
  59. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  60. AddConversationOption(conversation, "I will find the mage tower ruins.", "dlg_2_3")
  61. StartConversation(conversation, NPC, Spawn, "You must venture into the Forest Ruins. Tavern tales claim the remnants of the magi tower of the Order of Three exist there. You must reveal the truth of this mystery.")
  62. end
  63. function dlg_2_3(NPC, Spawn)
  64. FaceTarget(NPC, Spawn)
  65. conversation = CreateConversation()
  66. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  67. AddConversationOption(conversation, "I will find the mage tower ruins.", "dlg_2_4")
  68. StartConversation(conversation, NPC, Spawn, "Good! I can't wait to hear about it!")
  69. end
  70. function dlg_3_1(NPC, Spawn)
  71. FaceTarget(NPC, Spawn)
  72. conversation = CreateConversation()
  73. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  74. AddConversationOption(conversation, "If you have the work I have the time.", "dlg_3_2")
  75. AddConversationOption(conversation, "I can't help you.")
  76. StartConversation(conversation, NPC, Spawn, "I see my superior intellect confuses you. Don't worry, it perplexes many people - tis' the curse of the Tinmizer name. However, I can use your help, for even simple minds contribute to the greatness of Qeynos.")
  77. end
  78. function dlg_3_1(NPC, Spawn)
  79. FaceTarget(NPC, Spawn)
  80. conversation = CreateConversation()
  81. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  82. AddConversationOption(conversation, "No problem at all.")
  83. StartConversation(conversation, NPC, Spawn, "This is wonderful news! Someday, I must explore the ruins but not today. I thank you for your service, adventurer.")
  84. end
  85. function dlg_3_2(NPC, Spawn)
  86. FaceTarget(NPC, Spawn)
  87. conversation = CreateConversation()
  88. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  89. AddConversationOption(conversation, "I will find the mage tower ruins.", "dlg_3_3")
  90. StartConversation(conversation, NPC, Spawn, "You must venture into the Forest Ruins. Tavern tales claim the remnants of the magi tower of the Order of Three exist there. You must reveal the truth of this mystery.")
  91. end
  92. function dlg_3_3(NPC, Spawn)
  93. FaceTarget(NPC, Spawn)
  94. conversation = CreateConversation()
  95. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  96. AddConversationOption(conversation, "I will find the mage tower ruins.", "dlg_3_4")
  97. StartConversation(conversation, NPC, Spawn, "Good! I can't wait to hear about it!")
  98. end
  99. --[[ raw_conversations
  100. PlayFlavor(NPC, "", "Greetings! Looking for a bashcogglinator or perhaps a metefozic thermogauge?", "", 1689589577, 4560189, Spawn)
  101. --]]