GruffinGoldtooth.lua 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. --[[
  2. Script Name : SpawnScripts/Graystone/GruffinGoldtooth.lua
  3. Script Purpose : Gruffin Goldtooth
  4. Script Author : John Adams
  5. Script Date : 2008.09.21 - Created file and added first hail
  6. Script Notes : Added entire DustyBlueStone Dialogue 2022.3.12 - Dorbin
  7. --]]
  8. local BlueStone = 5509
  9. function spawn(NPC)
  10. end
  11. function respawn(NPC)
  12. spawn(NPC)
  13. end
  14. function hailed(NPC, Spawn)
  15. FaceTarget(NPC, Spawn)
  16. conversation = CreateConversation()
  17. if not HasQuest(Spawn, BlueStone) or GetQuestStep(Spawn, BlueStone)==1 then
  18. PlayFlavor(NPC, "voiceover/english/gruffin_goldtooth/qey_village03/gruffingoldtooth001.mp3", "", "hello", 997482113, 2338709603, Spawn)
  19. if GetQuestStep(Spawn, BlueStone)==1 then
  20. AddConversationOption(conversation, "If you don't mind, could you look over a stone I have here?","RockFound")
  21. end
  22. AddConversationOption(conversation, "I'll leave you to your work.")
  23. StartConversation(conversation, NPC, Spawn, "Hey there, young 'in. Don't mind ole' Gruffin. I'm just inspecting these here mineral veins. This bedrock is going to be especially useful for building new homes for refugees and citizens alike.")
  24. elseif GetQuestStep(Spawn, BlueStone)==2 or GetQuestStep(Spawn, BlueStone)==3 then
  25. PlayFlavor(NPC, "", "", "hello", 997482113, 2338709603, Spawn)
  26. if GetQuestStep(Spawn, BlueStone)==3 then
  27. AddConversationOption(conversation, "Yes, I have them right here.","SamplesFound")
  28. end
  29. AddConversationOption(conversation, "Still working on it.")
  30. StartConversation(conversation, NPC, Spawn, "Hail there! Were you able to get the stone samples yet?")
  31. end
  32. end
  33. function RockFound(NPC, Spawn)
  34. FaceTarget(NPC, Spawn)
  35. conversation = CreateConversation()
  36. PlayFlavor(NPC, "", "", "happy", 0, 0, Spawn)
  37. AddConversationOption(conversation, "Yes, I can come by later and ask you what you found out.","ComeBack")
  38. StartConversation(conversation, NPC, Spawn, "Sure, sure. I'm always happy to help out a fellow rock hound. Hmm... I don't recognize this type of stone... and believe me I know my rocks. It could be described in the books I have back home. If you would be willing to let me hold on to this for a bit I'll see what I can find out for you.")
  39. end
  40. function ComeBack(NPC, Spawn)
  41. FaceTarget(NPC, Spawn)
  42. conversation = CreateConversation()
  43. PlayFlavor(NPC, "", "", "nod", 0, 0, Spawn)
  44. AddConversationOption(conversation, "I suppose I could do that to help you out.","ComeBack2")
  45. StartConversation(conversation, NPC, Spawn, "Great. I'll go check it out right after finishing up work here. Oh! I have to collect those rock samples out in the Thundering Steppes! I forgot all about that! Could you do me a favor and collect those samples for me while I study this stone of yours? I'll even pay you some coin for the extra work.")
  46. end
  47. function ComeBack2(NPC, Spawn)
  48. SetStepComplete(Spawn, BlueStone, 1)
  49. end
  50. function SamplesFound(NPC, Spawn)
  51. FaceTarget(NPC, Spawn)
  52. conversation = CreateConversation()
  53. PlayFlavor(NPC, "", "", "nod", 0, 0, Spawn)
  54. AddConversationOption(conversation, "What did you find out about the blue stone?","Stone1")
  55. StartConversation(conversation, NPC, Spawn, "Perfect! These will help greatly in finding new places to mine. Qeynos is going to need strong buildings and walls to accommodate all the new people arriving.")
  56. end
  57. function Stone1(NPC, Spawn)
  58. FaceTarget(NPC, Spawn)
  59. conversation = CreateConversation()
  60. PlayFlavor(NPC, "", "", "shrug", 0, 0, Spawn)
  61. AddConversationOption(conversation, "So what should I do with it? ","Stone2")
  62. StartConversation(conversation, NPC, Spawn, "I looked through all my books and I couldn't find one entry that matched its description. I even asked all my mining buddies hanging out at the tavern and none of them knew what it is either. The strange thing is you can't even scratch it with Bopper's diamond point pick!")
  63. end
  64. function Stone2(NPC, Spawn)
  65. FaceTarget(NPC, Spawn)
  66. conversation = CreateConversation()
  67. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  68. AddConversationOption(conversation, "Thanks for the help, Gruffin.","Stone3")
  69. StartConversation(conversation, NPC, Spawn, "My advice is to take it to a mage. My hunch is this may be an enchanted stone of some kind. My only conclusion I can draw is that your stone isn't naturally from any parts we know of. I'm sorry I couldn't tell you more. Good luck with your search!")
  70. end
  71. function Stone3(NPC, Spawn)
  72. SetStepComplete(Spawn, BlueStone, 3)
  73. end