Guest User

Untitled

a guest
Sep 3rd, 2015
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.09 KB | None | 0 0
  1. --[[
  2. Script Name : SpawnScripts/Everfrost/BurmGrunthor.lua
  3. Script Author : Flunklesnarkin
  4. Script Date : 2015.09.03 10:09:57
  5. Script Purpose :
  6. :
  7. --]]
  8.  
  9. local Fish_For_Grunther = 136
  10.  
  11. function spawn(NPC)
  12. SetPlayerProximityFunction(NPC, 10, "InRange", "LeaveRange")
  13. ProvidesQuest(NPC, Fish_For_Grunther)
  14. end
  15.  
  16. function respawn(NPC)
  17. end
  18.  
  19. function InRange(NPC, Spawn)
  20. end
  21.  
  22. function LeaveRange(NPC, Spawn)
  23. end
  24.  
  25. function hailed(NPC, Spawn)
  26. FaceTarget(NPC, Spawn)
  27. conversation = CreateConversation()
  28. if HasQuest(Spawn, Fish_For_Grunther) == false and HasCompletedQuest(Spawn, Fish_For_Grunther) == false then
  29. Quest1Chat_1(NPC, Spawn)
  30. elseif GetQuestStep(Spawn, Fish_For_Grunther) == 1 then
  31. Quest1Chat_3(NPC, Spawn)
  32. elseif HasQuest(Spawn, Fish_For_Grunther) == false and HasCompletedQuest(Spawn, Fish_For_Grunther) == true then
  33. Quest1Chat_4(NPC, Spawn)
  34. end
  35. end
  36.  
  37. function Quest1Chat_1(NPC, Spawn)
  38. FaceTarget(NPC, Spawn)
  39. conversation = CreateConversation()
  40.  
  41. AddConversationOption(conversation, "Oh?", "Quest1Chat_2")
  42. StartConversation(conversation, NPC, Spawn, "Arh! The fish just aren't biting!")
  43. end
  44.  
  45. function Quest1Chat_2(NPC, Spawn)
  46. FaceTarget(NPC, Spawn)
  47. conversation = CreateConversation()
  48.  
  49. AddConversationOption(conversation, "Perhaps I could fish some for you?", "Offer_Fish_For_Grunther")
  50. AddConversationOption(conversation, "Sounds like you should work on your fishing skills.")
  51. StartConversation(conversation, NPC, Spawn, "Nay, I've been at it for hours, but nuthin'. And I've mouths to feed...")
  52. end
  53.  
  54.  
  55. function Quest1Chat_3(NPC, Spawn)
  56. FaceTarget(NPC, Spawn)
  57. conversation = CreateConversation()
  58.  
  59. AddConversationOption(conversation, "I do not.")
  60. StartConversation(conversation, NPC, Spawn, "Have ye the fish?")
  61. end
  62.  
  63. function Quest1Chat_4(NPC, Spawn)
  64. FaceTarget(NPC, Spawn)
  65. conversation = CreateConversation()
  66.  
  67. AddConversationOption(conversation, "I most certainly would.", "Offer_Fish_For_Grunther")
  68. AddConversationOption(conversation, "Nah, I've got better things to do with my time.")
  69. StartConversation(conversation, NPC, Spawn, "I could always use some'mere fish if ye'd be up fer it.")
  70. end
  71.  
  72. function Offer_Fish_For_Grunther(NPC, Spawn)
  73. if HasQuest(Spawn, Fish_For_Grunther) == false and HasCompletedQuest(Spawn, Fish_For_Grunther) == false then
  74. OfferQuest(NPC, Spawn, Fish_For_Grunther)
  75. FaceTarget(NPC, Spawn)
  76. conversation = CreateConversation()
  77.  
  78. AddConversationOption(conversation, "Not to worry.")
  79. StartConversation(conversation, NPC, Spawn, "That'd truly be a blessing from the gods, thank ye.")
  80.  
  81. elseif HasQuest(Spawn, Fish_For_Grunther) == false and HasCompletedQuest(Spawn, Fish_For_Grunther) == true then
  82. OfferQuest(NPC, Spawn, Fish_For_Grunther)
  83. FaceTarget(NPC, Spawn)
  84. conversation = CreateConversation()
  85.  
  86. AddConversationOption(conversation, "You're welcome.")
  87. StartConversation(conversation, NPC, Spawn, "A fine young adventurer ye be, thank ye.")
  88.  
  89. end
  90.  
  91. end
Advertisement
Add Comment
Please, Sign In to add comment