GimbleCognoggin.lua 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. --[[
  2. Script Name : SpawnScripts/Commonlands/GimbleCognoggin.lua
  3. Script Author : Premierio015
  4. Script Date : 2021.07.07 09:07:15
  5. Script Purpose :
  6. :
  7. --]]
  8. local ComponentsForGimble = 5304
  9. function spawn(NPC)
  10. end
  11. function hailed(NPC, Spawn)
  12. FaceTarget(NPC, Spawn)
  13. PlayFlavor(NPC, "voiceover/english/gimble_cognoggin/commonlands/gimblecognoggin.mp3", "", "", 1003375179, 1991772442, 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...", "Option1")
  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. end
  23. function Option1(NPC, Spawn)
  24. FaceTarget(NPC, Spawn)
  25. local conversation = CreateConversation()
  26. PlayFlavor(NPC, "voiceover/english/gimble_cognoggin/commonlands/gimblecognoggin000.mp3", "", "", 237836378, 2367742938, Spawn)
  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. end
  31. function Option2(NPC, Spawn)
  32. SetStepComplete(Spawn, ComponentsForGimble, 5)
  33. FaceTarget(NPC, Spawn)
  34. local conversation = CreateConversation()
  35. PlayFlavor(NPC, "voiceover/english/gimble_cognoggin/commonlands/gimblecognoggin002.mp3", "", "", 3332459171, 1481108804, Spawn)
  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. end
  39. function offer(NPC, Spawn)
  40. OfferQuest(NPC, Spawn, ComponentsForGimble)
  41. end
  42. function respawn(NPC)
  43. spawn(NPC)
  44. end