9
3

MasteroftheHunt.lua 3.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. --[[
  2. Script Name : SpawnScripts/Commonlands/MasteroftheHunt.lua
  3. Script Author : Premierio015
  4. Script Date : 2020.11.10 06:11:15
  5. Script Purpose : Provides "Dirty Sneaky Rats!"(428) quest
  6. :
  7. --]]
  8. local DirtySneakyRats = 428
  9. function spawn(NPC)
  10. ProvidesQuest(NPC, DirtySneakyRats)
  11. SetPlayerProximityFunction(NPC, 10, "InRange", "LeaveRange", Spawn)
  12. end
  13. function hailed(NPC, Spawn)
  14. FaceTarget(NPC, Spawn)
  15. conversation = CreateConversation()
  16. if not HasQuest(Spawn, DirtySneakyRats) and not HasCompletedQuest(Spawn, DirtySneakyRats) then
  17. PlayFlavor(NPC, "voiceover/english/optional2/master_of_the_hunt/commonlands/quests/master_hunter/master_hunter.mp3", "", "", 2932372965, 3983598891, Spawn)
  18. AddConversationOption(conversation, "I wasn't sent by anyone.", "dlg1")
  19. AddConversationOption(conversation, "No, I was just passing through.")
  20. StartConversation(conversation, NPC, Spawn, "What is it? Did Iziran send you to check up on me?")
  21. elseif HasQuest(Spawn, DirtySneakyRats) and not GetQuestStep(Spawn, DirtySneakyRats, 2) then
  22. PlayFlavor(NPC, "voiceover/english/optional2/master_of_the_hunt/commonlands/quests/master_hunter/master_hunter002.mp3", "", "", 3406942964, 85702594, Spawn)
  23. AddConversationOption(conversation, "All right, okay.")
  24. StartConversation(conversation, NPC, Spawn, "If this task was too difficult, you should not have agreed to help me. I don't want to see your face until you have my journal.")
  25. elseif GetQuestStep(Spawn, DirtySneakyRats) == 2 then
  26. SetStepComplete(Spawn,DirtySneakyRats,2)
  27. PlayFlavor(NPC, "voiceover/english/optional2/master_of_the_hunt/commonlands/quests/master_hunter/master_hunter003.mp3", "", "", 127957399, 301564099, Spawn)
  28. AddConversationOption(conversation, "When will that be?", "dlg2")
  29. StartConversation(conversation, NPC, Spawn, "You have my journal, yes? Ahh, I am in your debt. When you are ready, I will show you what it means to be the Master of the Hunt!")
  30. elseif HasCompletedQuest(Spawn, DirtySneakyRats) then
  31. PlayFlavor(NPC, "voiceover/english/master_of_the_hunt/commonlands/quest/016_quest_hunter_druid_aoi_callout_4b78dcf3.mp3", "Stay clear of that lot down there.", "", 1493660051, 776533557, Spawn)
  32. end
  33. end
  34. function dlg1(NPC, Spawn)
  35. FaceTarget(NPC, Spawn)
  36. conversation = CreateConversation()
  37. PlayFlavor(NPC, "voiceover/english/optional2/master_of_the_hunt/commonlands/quests/master_hunter/master_hunter000.mp3", "", "", 3752586911, 3752586911, Spawn)
  38. AddConversationOption(conversation, "For the right price, always." , "offer")
  39. AddConversationOption(conversation, "Not right now.")
  40. StartConversation(conversation, NPC, Spawn, "That's the first lot of good news I've heard all day. These undead orcs have no strategy, no rhyme or reason to their actions; they just continue to relentlessly, albeit feebly, attack our city. Huh? Say, since Iziran didn't send you, are your skills for hire?")
  41. end
  42. function dlg2(NPC, Spawn)
  43. FaceTarget(NPC, Spawn)
  44. conversation = CreateConversation()
  45. PlayFlavor(NPC, "voiceover/english/optional2/master_of_the_hunt/commonlands/quests/master_hunter/master_hunter004.mp3", "", "", 2085181382, 2198930821, Spawn)
  46. AddConversationOption(conversation, "Ok then.")
  47. StartConversation(conversation, NPC, Spawn, "Why, when you're ready of course.")
  48. end
  49. function offer(NPC, Spawn)
  50. FaceTarget(NPC, Spawn)
  51. OfferQuest(NPC, Spawn, DirtySneakyRats)
  52. end
  53. function InRange(NPC, Spawn)
  54. if not HasQuest(Spawn, DirtySneakyRats) and not HasCompletedQuest(Spawn, DirtySneakyRats) then
  55. PlayFlavor(NPC, "voiceover/english/master_of_the_hunt/commonlands/quest/016_quest_hunter_druid_aoi_callout_4b78dcf3.mp3", "Stay clear of that lot down there.", "", 1493660051, 776533557, Spawn)
  56. end
  57. end
  58. function respawn(NPC)
  59. end