DurkixKizzkin.lua 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. --[[
  2. Script Name : SpawnScripts/Graveyard/DurkixKizzkin.lua
  3. Script Author : Premierio015
  4. Script Date : 2020.11.11 09:11:16
  5. Script Purpose :
  6. :
  7. --]]
  8. local BoneDust = 583
  9. function spawn(NPC)
  10. ProvidesQuest(NPC, BoneDust)
  11. end
  12. function hailed(NPC, Spawn)
  13. FaceTarget(NPC, Spawn)
  14. conversation = CreateConversation()
  15. if not HasQuest(Spawn, BoneDust) and not HasCompletedQuest(Spawn, BoneDust) then
  16. PlayFlavor(NPC, "voiceover/english/voice_emotes/greetings/greetings_2_1040.mp3", "", "", 0, 0, Spawn)
  17. AddConversationOption(conversation, "What?", "dlg1")
  18. AddConversationOption(conversation, "Indeed...")
  19. StartConversation(conversation, NPC, Spawn, "Fragments to dust. I'm a genius!")
  20. elseif HasQuest(Spawn, BoneDust) and GetQuestStep(Spawn, BoneDust) == 1 then
  21. PlayFlavor(NPC, "voiceover/english/voice_emotes/greetings/greetings_3_1040.mp3", "", "", 0, 0, Spawn)
  22. AddConversationOption(conversation, "Not yet.")
  23. StartConversation(conversation, NPC, Spawn, "Did you get the fragments?")
  24. elseif HasQuest(Spawn, BoneDust) and GetQuestStep(Spawn, BoneDust) == 2 then
  25. PlayFlavor(NPC, "voiceover/english/voice_emotes/greetings/greetings_1_1040.mp3", "", "", 0, 0, Spawn)
  26. AddConversationOption(conversation, "Yes.", "complete")
  27. StartConversation(conversation, NPC, Spawn, "Did you get the fragments?")
  28. elseif HasCompletedQuest(Spawn, BoneDust) then
  29. PlayFlavor(NPC, "", "Durkix, remember the name!", "", 1689589577, 4560189, Spawn)
  30. end
  31. end
  32. function dlg1(NPC, Spawn)
  33. FaceTarget(NPC, Spawn)
  34. conversation = CreateConversation()
  35. AddConversationOption(conversation, "A muddy bone golem?", "dlg2")
  36. AddConversationOption(conversation, "A boney mud golem?", "dlg2")
  37. StartConversation(conversation, NPC, Spawn, "A bonemud golem! Or maybe a mudbone golem. I'll be famous!")
  38. end
  39. function dlg2(NPC, Spawn)
  40. FaceTarget(NPC, Spawn)
  41. conversation = CreateConversation()
  42. AddConversationOption(conversation, "To mix with mud...", "dlg3")
  43. StartConversation(conversation, NPC, Spawn, "No, no, no! A golem made from mud that has ground bones in it! Maybe it will increase the potency of the creature, or maybe it will make it more resistant to certain attacks! Or maybe it won't do anything at all! I need some bone fragments to grind up!")
  44. end
  45. function dlg3(NPC, Spawn)
  46. FaceTarget(NPC, Spawn)
  47. conversation = CreateConversation()
  48. AddConversationOption(conversation, "Sure... I'll help.", "dlg4")
  49. AddConversationOption(conversation, "No thanks.")
  50. StartConversation(conversation, NPC, Spawn, "Exactly! You should help me, then you can be famous too.")
  51. end
  52. function dlg4(NPC, Spawn)
  53. FaceTarget(NPC, Spawn)
  54. conversation = CreateConversation()
  55. AddConversationOption(conversation, "I can get your fragments.", "offer")
  56. StartConversation(conversation, NPC, Spawn, "Great! Get me one hundred bone fragments. That should be enough. Don't bring me anything fresh, either. I need brittle bones so I can grind them... just bring me back bones from anything undead, that should do the trick.")
  57. end
  58. function offer(NPC, Spawn)
  59. FaceTarget(NPC, Spawn)
  60. OfferQuest(NPC, Spawn, BoneDust)
  61. end
  62. function complete(NPC, Spawn)
  63. FaceTarget(NPC, Spawn)
  64. SetStepComplete(Spawn, BoneDust, 2)
  65. conversation = CreateConversation()
  66. AddConversationOption(conversation, "Ok.")
  67. AddConversationOption(conversation, "Heh... right.")
  68. AddConversationOption(conversation, "I won't hold my breath.")
  69. StartConversation(conversation, NPC, Spawn, "Excellent! Now I just need some mud! I think I can collect that myself! I am quite familiar with mud! Thanks for your help! If I ever get rich and famous I'll let you know!")
  70. end
  71. function respawn(NPC)
  72. end