9
3

SergeantTillin.lua 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. --[[
  2. Script Name : SpawnScripts/Antonica/SergeantTillin.lua
  3. Script Author : Premierio015
  4. Script Date : 2021.08.12 06:08:07
  5. Script Purpose :
  6. :
  7. --]]
  8. local TillinGnollWoes = 5336
  9. function spawn(NPC)
  10. ProvidesQuest(NPC, TillinGnollWoes)
  11. end
  12. function hailed(NPC, Spawn)
  13. local count = GetQuestCompleteCount(Spawn, TillinGnollWoes)
  14. FaceTarget(NPC, Spawn)
  15. if not HasQuest(Spawn, TillinGnollWoes) and count <= 5 then
  16. local conversation = CreateConversation()
  17. PlayFlavor(NPC, "voiceover/english/sergeant_tillin/antonica/sergeant_tillin001.mp3", "", "shrug", 2442572025, 2186334114, Spawn)
  18. AddConversationOption(conversation, "Sure, why not?", "offer")
  19. AddConversationOption(conversation, "No thanks.")
  20. StartConversation(conversation, NPC, Spawn, "Hah! We've so many adventurers out these days that I think the gnolls decided to push back a bit. We heard that they're plotting inside Blackburrow. Think you could help us out?")
  21. elseif GetQuestStep(Spawn, TillinGnollWoes) == 1 then
  22. Quest_Progress(NPC, Spawn)
  23. elseif GetQuestStep(Spawn, TillinGnollWoes) == 2 then
  24. Quest_Finish(NPC, Spawn)
  25. end
  26. end
  27. function offer(NPC, Spawn)
  28. OfferQuest(NPC, Spawn, TillinGnollWoes)
  29. end
  30. function Quest_Progress(NPC, Spawn)
  31. FaceTarget(NPC, Spawn)
  32. local conversation = CreateConversation()
  33. PlayFlavor(NPC, "voiceover/english/sergeant_tillin/antonica/sergeant_tillin003.mp3", "", "pout", 1151226967, 1843284130, Spawn)
  34. AddConversationOption(conversation, "Not yet, no...")
  35. StartConversation(conversation, NPC, Spawn, "Naaa! What're you doing back so soon? You haven't found what we're looking for!")
  36. end
  37. function Quest_Finish(NPC, Spawn)
  38. SetStepComplete(Spawn, TillinGnollWoes, 2)
  39. FaceTarget(NPC, Spawn)
  40. local conversation = CreateConversation()
  41. PlayFlavor(NPC, "voiceover/english/sergeant_tillin/antonica/sergeant_tillin004.mp3", "", "", 2966124609, 2660592034, Spawn)
  42. AddConversationOption(conversation, "Sure, I could stand some.", "offer")
  43. AddConversationOption(conversation, "Not right now, thanks.")
  44. StartConversation(conversation, NPC, Spawn, "Ahh, well done! Here's that coin I promised. Looking for more work?")
  45. end
  46. function respawn(NPC)
  47. spawn(NPC)
  48. end