GimbleTinkerton.lua 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. --[[
  2. Script Name : SpawnScripts/Steamfont/GimbleTinkerton.lua
  3. Script Author : Premierio015
  4. Script Date : 2021.05.22 09:05:02
  5. Script Purpose :
  6. :
  7. --]]
  8. local ComponentsForGimble = 5229
  9. function spawn(NPC)
  10. ProvidesQuest(NPC, ComponentsForGimble)
  11. end
  12. function hailed(NPC, Spawn)
  13. FaceTarget(NPC, Spawn)
  14. local conversation = CreateConversation()
  15. if not HasQuest(Spawn, ComponentsForGimble) and not HasCompletedQuest(Spawn, ComponentsForGimble) then
  16. AddConversationOption(conversation, "Perhaps, if you need something recovered, I can be of assistance...", "Option2")
  17. elseif GetQuestStep(Spawn, ComponentsForGimble) == 5 then
  18. AddConversationOption(conversation, "Oaf indeed. I've returned with what you require.", "Option2")
  19. end
  20. AddConversationOption(conversation, "Get out of my way gnome, I've no use for a runt like you. ")
  21. StartConversation(conversation, NPC, Spawn, "No, no, that won't do. Oh, whatever shall I do, it's too dangerous for me to do. But need those reagents I do! Why are you bothering me? Can't you see I'm busy thinking? No, too oblivious for that I'm sure! You oaf!")
  22. PlayFlavor(NPC, "voiceover/english/gimble_cognoggin/commonlands/gimblecognoggin.mp3", "", "", 1003375179, 1991772442, Spawn)
  23. end
  24. function Option1(NPC, Spawn)
  25. FaceTarget(NPC, Spawn)
  26. local conversation = CreateConversation()
  27. AddConversationOption(conversation, "I'll help you, but there'd better be something in it for me. I'm not cheap, either.", "offer")
  28. AddConversationOption(conversation, "I'm not sure you even know what you're talking about. I'll be on my way.")
  29. StartConversation(conversation, NPC, Spawn, "Hmm ... yes, yes, yes! You CAN help me! But what would it cost, I wonder ... I would have to divulge the components ... but I suppose I have no other choice. Will you help me or not?")
  30. PlayFlavor(NPC, "voiceover/english/gimble_cognoggin/commonlands/gimblecognoggin000.mp3", "", "", 237836378, 2367742938, Spawn)
  31. end
  32. function Option2(NPC, Spawn)
  33. SetStepComplete(Spawn, ComponentsForGimble, 5)
  34. FaceTarget(NPC, Spawn)
  35. local conversation = CreateConversation()
  36. AddConversationOption(conversation, "Whatever. Your coin's as good as anyone else's.")
  37. StartConversation(conversation, NPC, Spawn, "YES! I'll be the first gnome to create this potion! You don't know what this means to me! And I suppose you don't really care. Fine then. Here's your payment. Let it never be said that Gimble Cognoggin welshed on a deal!")
  38. PlayFlavor(NPC, "voiceover/english/gimble_cognoggin/commonlands/gimblecognoggin002.mp3", "", "", 3332459171, 1481108804, Spawn)
  39. end
  40. function offer(NPC, Spawn)
  41. OfferQuest(NPC, Spawn, ComponentsForGimble)
  42. end
  43. function respawn(NPC)
  44. spawn(NPC)
  45. end