RebikSprocketrock.lua 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. --[[
  2. Script Name : SpawnScripts/Baubbleshire/RebikSprocketrock.lua
  3. Script Purpose : Rebik Sprocketrock
  4. Script Author : Dorbin
  5. Script Date : 2022.01.15
  6. Script Notes :
  7. --]]
  8. local Acidic = 5449
  9. function spawn(NPC)
  10. SetInfoStructString(NPC, "action_state", "tapfoot")
  11. end
  12. function respawn(NPC)
  13. spawn(NPC)
  14. end
  15. function hailed(NPC, Spawn)
  16. FaceTarget(NPC, Spawn)
  17. conversation = CreateConversation()
  18. PlayFlavor(NPC, "voiceover/english/rebik_sprocketrock/qey_village06/rebiksprocketrock000.mp3", "", "", 2926752471, 973291816, Spawn)
  19. if GetQuestStep (Spawn, Acidic) == 1 then
  20. AddConversationOption(conversation, "I wonder if your lock would stand up to this stuff I found.", "Offer")
  21. end
  22. AddConversationOption(conversation, "Well then, I guess I'll let you get back to your work.")
  23. StartConversation(conversation, NPC, Spawn, "Well met, good friend! I'm busy working on this new lock here! I think it'll be unpickable once I'm done!")
  24. end
  25. function Offer(NPC, Spawn)
  26. FaceTarget(NPC, Spawn)
  27. PlayFlavor(NPC, "", "", "nod", 0, 0, Spawn)
  28. conversation = CreateConversation()
  29. AddConversationOption(conversation, "I think you'd be interested in this liquid then...", "Delivered2")
  30. AddConversationOption(conversation, "Wait, forget I said anything.")
  31. StartConversation(conversation, NPC, Spawn, "What stuff? You know there isn't anyone who can open this without the key! It's perfect. Completely impervious to tampering fingers! You know, I made it because things keep going missing around here.")
  32. end
  33. function Delivered(NPC, Spawn)
  34. FaceTarget(NPC, Spawn)
  35. -- PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  36. conversation = CreateConversation()
  37. AddConversationOption(conversation, "Take a look for yourself - pour a bit on the lock...", "Delivered2")
  38. AddConversationOption(conversation, "Wait, nevermind.")
  39. StartConversation(conversation, NPC, Spawn, "What's this stuff supposed to do anyway, hmm? Does it go into the lock and swim around to open the tumblers? Release tiny little tinkered men in to open up the lock from the inside? If not, I'm positive this will hold up!")
  40. end
  41. function Delivered2(NPC, Spawn)
  42. FaceTarget(NPC, Spawn)
  43. PlayAnimation(NPC, "10748",Spawn)
  44. --PlayFlavor(NPC, "", "", "boggle", 0, 0, Spawn)
  45. conversation = CreateConversation()
  46. AddConversationOption(conversation, "Okay... here goes...", "Delivered3")
  47. StartConversation(conversation, NPC, Spawn, "Fine, fine. I'll give it a shot, but I'm sure, sure, SURE that it will hold up to whatever you can throw at it! Pour a bit on the lock. You'll see!")
  48. end
  49. function Delivered3(NPC, Spawn)
  50. FaceTarget(NPC, Spawn)
  51. PlayFlavor(NPC, "", "", "boggle", 0, 0, Spawn)
  52. conversation = CreateConversation()
  53. AddConversationOption(conversation, "Erm... okay... I guess I won't turn the coin down.", "Reward")
  54. StartConversation(conversation, NPC, Spawn, "Oh, my! That stuff is eating the whole lock! And the table leg! I MUST HAVE IT! How much? How much!?! Hand it here! I'll pay you ten times its worth! Here! Take all my coins! Oh what could I possibly make with this? The possibilities are endless!")
  55. end
  56. function Reward(NPC, Spawn)
  57. SetStepComplete(Spawn, Acidic, 1)
  58. end