AlganTinmizer.lua 5.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135
  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. local choice = math.random(1,1)
  23. if choice == 1 then
  24. PlayFlavor(NPC, "", "Greetings! Looking for a bashcogglinator or perhaps a metefozic thermogauge?", "", 1689589577, 4560189, Spawn)
  25. else
  26. end
  27. PlayFlavor(NPC, "voiceover/english/voice_emotes/greetings/greetings_3_1040.mp3", "", "", 0, 0, Spawn)
  28. AddConversationOption(conversation, "I found this bag of cogs and sprockets and I believe it belongs to you.", "dlg_1_1")
  29. AddConversationOption(conversation, "Nothing I need. I will be going now.")
  30. StartConversation(conversation, NPC, Spawn, "Greetings! Looking for a bashcogglinator or perhaps a metefozic thermogauge?")
  31. if convo==2 then
  32. PlayFlavor(NPC, "voiceover/english/voice_emotes/greetings/greetings_2_1040.mp3", "", "", 0, 0, Spawn)
  33. AddConversationOption(conversation, "Are you kidding me?", "dlg_2_1")
  34. AddConversationOption(conversation, "Nothing I need. I will be going now.")
  35. StartConversation(conversation, NPC, Spawn, "Greetings! Looking for a bashcogglinator or perhaps a metefozic thermogauge?")
  36. end
  37. if convo==3 then
  38. PlayFlavor(NPC, "voiceover/english/voice_emotes/greetings/greetings_3_1040.mp3", "", "", 0, 0, Spawn)
  39. AddConversationOption(conversation, "Are you kidding me?", "dlg_3_1")
  40. AddConversationOption(conversation, "Nothing I need. I will be going now.")
  41. StartConversation(conversation, NPC, Spawn, "Greetings! Looking for a bashcogglinator or perhaps a metefozic thermogauge?")
  42. end
  43. end
  44. function dlg_1_1(NPC, Spawn)
  45. FaceTarget(NPC, Spawn)
  46. conversation = CreateConversation()
  47. SetStepComplete(Spawn, BAG_OF_PARTS_QUEST_ID, 1)
  48. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  49. AddConversationOption(conversation, "Thanks!", "dlg_1_2")
  50. 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.")
  51. end
  52. function dlg_2_1(NPC, Spawn)
  53. FaceTarget(NPC, Spawn)
  54. conversation = CreateConversation()
  55. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  56. AddConversationOption(conversation, "If you have the work I have the time.", "dlg_2_2")
  57. AddConversationOption(conversation, "I can't help you.")
  58. 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.")
  59. end
  60. function dlg_2_2(NPC, Spawn)
  61. FaceTarget(NPC, Spawn)
  62. conversation = CreateConversation()
  63. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  64. AddConversationOption(conversation, "I will find the mage tower ruins.", "dlg_2_3")
  65. 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.")
  66. end
  67. function dlg_2_3(NPC, Spawn)
  68. FaceTarget(NPC, Spawn)
  69. conversation = CreateConversation()
  70. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  71. AddConversationOption(conversation, "I will find the mage tower ruins.", "dlg_2_4")
  72. StartConversation(conversation, NPC, Spawn, "Good! I can't wait to hear about it!")
  73. end
  74. function dlg_3_1(NPC, Spawn)
  75. FaceTarget(NPC, Spawn)
  76. conversation = CreateConversation()
  77. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  78. AddConversationOption(conversation, "If you have the work I have the time.", "dlg_3_2")
  79. AddConversationOption(conversation, "I can't help you.")
  80. 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.")
  81. end
  82. function dlg_3_1(NPC, Spawn)
  83. FaceTarget(NPC, Spawn)
  84. conversation = CreateConversation()
  85. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  86. AddConversationOption(conversation, "No problem at all.")
  87. StartConversation(conversation, NPC, Spawn, "This is wonderful news! Someday, I must explore the ruins but not today. I thank you for your service, adventurer.")
  88. end
  89. function dlg_3_2(NPC, Spawn)
  90. FaceTarget(NPC, Spawn)
  91. conversation = CreateConversation()
  92. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  93. AddConversationOption(conversation, "I will find the mage tower ruins.", "dlg_3_3")
  94. 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.")
  95. end
  96. function dlg_3_3(NPC, Spawn)
  97. FaceTarget(NPC, Spawn)
  98. conversation = CreateConversation()
  99. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  100. AddConversationOption(conversation, "I will find the mage tower ruins.", "dlg_3_4")
  101. StartConversation(conversation, NPC, Spawn, "Good! I can't wait to hear about it!")
  102. end
  103. --[[ raw_conversations
  104. PlayFlavor(NPC, "", "Greetings! Looking for a bashcogglinator or perhaps a metefozic thermogauge?", "", 1689589577, 4560189, Spawn)
  105. --]]