GeologistQuardifle.lua 3.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. --[[
  2. Script Name : SpawnScripts/Baubbleshire/GeologistQuardifle.lua
  3. Script Purpose : Geologist Quardifle
  4. Script Author : Scatman
  5. Script Date : 2009.09.27
  6. Script Notes : Speaks Gnomish/Updated 1/6/2020 by Shatou
  7. --]]
  8. local GATHERING_ROCK_SAMPLES_QUEST_ID = 504
  9. function spawn(NPC)
  10. ProvidesQuest(NPC, GATHERING_ROCK_SAMPLES_QUEST_ID)
  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/geologist_quardifle/qey_village06/geologistquardifle000.mp3", "", "", 1675886861, 3931018482, Spawn)
  19. if HasQuest(Spawn, GATHERING_ROCK_SAMPLES_QUEST_ID) and GetQuestStep(Spawn, GATHERING_ROCK_SAMPLES_QUEST_ID) == 4 then
  20. AddConversationOption(conversation, "I'm back with those samples.", "dlg_1_1")
  21. end
  22. if not HasQuest(Spawn, GATHERING_ROCK_SAMPLES_QUEST_ID) then
  23. AddConversationOption(conversation, "What's so fascinating about it? There are lots of strange phenomena in Antonica.", "dlg_0_1")
  24. end
  25. AddConversationOption(conversation, "Have fun with your rocks, I'm not interested.")
  26. StartConversation(conversation, NPC, Spawn, "These rocks here are interesting... I'm not sure where they came from. It's rather strange... they simply don't fit this area at all...")
  27. end
  28. --[[ Gathering Rock Samples QUEST (504) ]]--
  29. function dlg_0_1(NPC, Spawn)
  30. FaceTarget(NPC, Spawn)
  31. conversation = CreateConversation()
  32. AddConversationOption(conversation, "Hmm, you know, that's an interesting theory.", "dlg_0_2")
  33. AddConversationOption(conversation, "I'm not sure I buy that.")
  34. StartConversation(conversation, NPC, Spawn, "The geography of the area isn't suitable for forming this kind of rock. I'm merely curious I suppose, but understanding the world we live in often unseats presumptions we have about our existence.")
  35. end
  36. function dlg_0_2(NPC, Spawn)
  37. FaceTarget(NPC, Spawn)
  38. conversation = CreateConversation()
  39. AddConversationOption(conversation, "Sure, that sounds good.", "dlg_0_3")
  40. AddConversationOption(conversation, "No, thanks.")
  41. StartConversation(conversation, NPC, Spawn, "I'll tell you what. If you want to learn more, and help me out at the same time, I can give you something to do that might whet your appetite for more - what do you say to that?")
  42. end
  43. function dlg_0_3(NPC, Spawn)
  44. FaceTarget(NPC, Spawn)
  45. conversation = CreateConversation()
  46. OfferQuest(NPC, Spawn, GATHERING_ROCK_SAMPLES_QUEST_ID)
  47. AddConversationOption(conversation, "Alright. I'll see what I can find!")
  48. StartConversation(conversation, NPC, Spawn, "Great! You'll find that these caves are largely unexplored. Seek out intricate areas of these caves and bring me back some unique rock samples and I'll be happy!")
  49. end
  50. function dlg_1_1(NPC, Spawn)
  51. FaceTarget(NPC, Spawn)
  52. conversation = CreateConversation()
  53. SetStepComplete(Spawn, GATHERING_ROCK_SAMPLES_QUEST_ID, 4)
  54. AddConversationOption(conversation, "Thanks Quardifle!")
  55. StartConversation(conversation, NPC, Spawn, "Oooo, pass them here! These will occupy my time for quite a while! Really, you're a natural! If you find more unique rocks on your journey, return them to me and I'll reimburse you. Here, take this coin for your first discovery!")
  56. end
  57. --[[ QUEST END ]]--