9
3

AlganTinmizer.lua 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  1. --[[
  2. Script Name : SpawnScripts/TheBaubbleshire/AlganTinmizer.lua
  3. Script Purpose : Algan Tinmizer
  4. Script Author : Dorbin
  5. Script Date : 2022.01.07
  6. Script Notes : Auto-Generated Conversation from PacketParser Data
  7. --]]
  8. local BagoParts = 505
  9. local TowerOfThree = 5441
  10. function spawn(NPC)
  11. ProvidesQuest(NPC, TowerOfThree)
  12. SetPlayerProximityFunction(NPC, 10, "InRange", "LeaveRange")
  13. end
  14. function respawn(NPC)
  15. spawn(NPC)
  16. end
  17. function InRange(NPC, Spawn)
  18. if not HasQuest(Spawn, TowerOfThree) and not HasCompletedQuest(Spawn, TowerOfThree) then
  19. FaceTarget(NPC, Spawn)
  20. PlayFlavor(NPC, "voiceover/english/algan_tinmizer/qey_village06/100_ebik_wobblecog_callout_f7e366da.mp3","Hello adventurer! Come hither! You must help reveal the truth about wonders in the Forest Ruins.", "wave", 3574249828,2561130909, Spawn)
  21. else
  22. PlayFlavor(NPC, "","", "ponder", 0, 0, Spawn)
  23. end
  24. end
  25. function LeaveRange(NPC, Spawn)
  26. end
  27. function hailed(NPC, Spawn)
  28. FaceTarget(NPC, Spawn)
  29. conversation = CreateConversation()
  30. PlayFlavor(NPC, "voiceover/english/algan_tinmizer/qey_village06/ebikwobblecog000.mp3", "", "", 3320741899, 2828360998, Spawn)
  31. if HasQuest(Spawn, BagoParts) and not HasCompletedQuest(Spawn, BagoParts) then
  32. AddConversationOption(conversation, "Did you drop this bag of parts I found near the dock?", "quest_complete")
  33. end
  34. if not HasQuest(Spawn, TowerOfThree) and not HasCompletedQuest(Spawn, TowerOfThree) then
  35. AddConversationOption(conversation, "No, no. Do you need something?", "TowerStart")
  36. end
  37. if GetQuestStep (Spawn, TowerOfThree) == 2 then
  38. AddConversationOption(conversation, "I found the Tower of the Three in the Forest Ruins. It has certainly seen better days.", "TowerFinish")
  39. end
  40. if GetRace(Spawn)==5 then
  41. AddConversationOption(conversation, "Not today. Thank you for the offer!")
  42. end
  43. AddConversationOption(conversation, "Wait, what? I don't want any part of this.")
  44. StartConversation(conversation, NPC, Spawn, "Greetings! Looking for a bashcogglinator or perhaps a metefozic thermogauge?")
  45. end
  46. function quest_complete(NPC, Spawn)
  47. SetStepComplete(Spawn, BagoParts, 1)
  48. conversation = CreateConversation()
  49. PlayFlavor(NPC, "voiceover/english/algan_tinmizer/qey_village06/ebikwobblecog004.mp3", "", "thank", 3506700669, 47329733, Spawn)
  50. AddConversationOption(conversation, "Thanks!")
  51. 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.")
  52. end
  53. function TowerStart(NPC, Spawn)
  54. FaceTarget(NPC, Spawn)
  55. conversation = CreateConversation()
  56. PlayFlavor(NPC, "voiceover/english/algan_tinmizer/qey_village06/ebikwobblecog001.mp3", "", "orate", 1973122055, 1074636856, Spawn)
  57. AddConversationOption(conversation, "Yes, yes- but what do you need?", "TowerMission")
  58. AddConversationOption(conversation, "I can't help you.")
  59. 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.")
  60. end
  61. function TowerMission(NPC, Spawn)
  62. FaceTarget(NPC, Spawn)
  63. conversation = CreateConversation()
  64. PlayFlavor(NPC, "voiceover/english/algan_tinmizer/qey_village06/ebikwobblecog002.mp3", "", "ponder", 331751253, 2149638636, Spawn)
  65. AddConversationOption(conversation, "Ill explore for what remains of the tower in the ruins.", "QuestStart")
  66. AddConversationOption(conversation, "Dig through some ruins? Sorry. You'll need to find someone else to wade through that rubish.")
  67. 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.")
  68. end
  69. function QuestStart (NPC, Spawn)
  70. FaceTarget(NPC, Spawn)
  71. OfferQuest(NPC, Spawn, TowerOfThree)
  72. end
  73. function TowerFinish(NPC, Spawn)
  74. FaceTarget(NPC, Spawn)
  75. conversation = CreateConversation()
  76. PlayFlavor(NPC, "voiceover/english/algan_tinmizer/qey_village06/ebikwobblecog003.mp3", "", "thank", 1222490153, 3050983577, Spawn)
  77. AddConversationOption(conversation, "No problem at all.","QuestEnd")
  78. StartConversation(conversation, NPC, Spawn, "This is wonderful news! Someday, I must explore the ruins but not today. I thank you for your service, adventurer.")
  79. end
  80. function QuestEnd(NPC, Spawn)
  81. SetStepComplete(Spawn, TowerOfThree, 2)
  82. end