Zatzy.lua 4.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. --[[
  2. Script Name : SpawnScripts/ThievesWay/Zatzy.lua
  3. Script Author : Premierio015
  4. Script Date : 2021.06.28 09:06:20
  5. Script Purpose :
  6. :
  7. --]]
  8. local DarkBladesAndDirtyRats = 5264
  9. function spawn(NPC)
  10. SetPlayerProximityFunction(NPC, 10, "InRange", "", Spawn)
  11. ProvidesQuest(NPC, DarkBladesAndDirtyRats)
  12. end
  13. function InRange(NPC, Spawn)
  14. PlayFlavor(NPC, "", "Go! Get away from me! I'm in hiding!", "", 1689589577, 4560189, Spawn)
  15. end
  16. function hailed(NPC, Spawn)
  17. FaceTarget(NPC, Spawn)
  18. if not HasQuest(Spawn, DarkBladesAndDirtyRats) and not HasCompletedQuest(Spawn, DarkBladesAndDirtyRats) then
  19. local conversation = CreateConversation()
  20. AddConversationOption(conversation, "What are you hiding from?", "Option1")
  21. AddConversationOption(conversation, "I'll leave you alone. ")
  22. StartConversation(conversation, NPC, Spawn, "I told you to leave! I don't want to draw attention to myself! Go, go away!")
  23. PlayFlavor(NPC, "voiceover/english/zatzy/fprt_sewer01/quests/zatzy/zatzy002.mp3", "", "", 2308759245, 2308759245, Spawn)
  24. elseif GetQuestStep(Spawn, DarkBladesAndDirtyRats) == 1 then
  25. QuestProgress(NPC, Spawn)
  26. elseif GetQuestStep(Spawn, DarkBladesAndDirtyRats) == 2 then
  27. local conversation = CreateConversation()
  28. SetStepComplete(Spawn, DarkBladesAndDirtyRats, 2)
  29. PlayFlavor(NPC, "voiceover/english/zatzy/fprt_sewer01/quests/zatzy/zatzy004.mp3", "", "", 1223149553, 2435152199, Spawn)
  30. AddConversationOption(conversation, "Yeah, they're all dead.", "Option3")
  31. StartConversation(conversation, NPC, Spawn, "You're back! Did you kill them all? Are they all dead? Did you find the trinket?")
  32. end
  33. end
  34. function Option1(NPC, Spawn)
  35. FaceTarget(NPC, Spawn)
  36. local conversation = CreateConversation()
  37. PlayFlavor(NPC, "voiceover/english/zatzy/fprt_sewer01/quests/zatzy/zatzy005.mp3", "", "", 2330580280, 3278449778, Spawn)
  38. AddConversationOption(conversation, "Who did this?", "Option2")
  39. AddConversationOption(conversation, "I don't want to hear this. ")
  40. StartConversation(conversation, NPC, Spawn, "I told you to leave me alone! If they finds me, they'll kill me! They've already killed everyone else. I'm the only one left. They killed them, and there was nothing I could do. What was I supposed to do? I'm just a small ratonga, little, so little. ")
  41. end
  42. function Option2(NPC, Spawn)
  43. FaceTarget(NPC, Spawn)
  44. local conversation = CreateConversation()
  45. PlayFlavor(NPC, "voiceover/english/zatzy/fprt_sewer01/quests/zatzy/zatzy006.mp3", "", "", 4200140623, 917956186, Spawn)
  46. AddConversationOption(conversation, "I'll take care of the Darkblades.", "offer")
  47. AddConversationOption(conversation, "This is where I leave. ")
  48. StartConversation(conversation, NPC, Spawn, "The Darkblades did it! They're all killers! You find them in the sewers; it's a fitting place for filth. You do me favor and kill them, kill them all, and I'll tell you where their secret den is. You can find much wealth there. ")
  49. end
  50. function Option3(NPC, Spawn)
  51. FaceTarget(NPC, Spawn)
  52. local conversation = CreateConversation()
  53. AddConversationOption(conversation, "What?", "turn_attack")
  54. StartConversation(conversation, NPC, Spawn, "This is very good news for little me, but very bad news for you. That's no trinket, you fool! It's the key to the Darkblades' den, and now they're all dead! I can plunder to my little black heart's content.")
  55. PlayFlavor(NPC, "voiceover/english/zatzy/fprt_sewer01/quests/zatzy/zatzy008.mp3", "", "", 754496589, 2919744955, Spawn)
  56. end
  57. function turn_attack(NPC, Spawn)
  58. SpawnSet(NPC, "attackable", 1)
  59. SpawnSet(NPC, "show_level", 1)
  60. Attack(NPC, Spawn)
  61. end
  62. function offer(NPC, Spawn)
  63. OfferQuest(NPC, Spawn, DarkBladesAndDirtyRats)
  64. end
  65. function QuestProgress(NPC, Spawn)
  66. FaceTarget(NPC, Spawn)
  67. local conversation = CreateConversation()
  68. PlayFlavor(NPC, "voiceover/english/zatzy/fprt_sewer01/quests/zatzy/zatzy003.mp3", "", "", 3408941735, 1760879067, Spawn)
  69. AddConversationOption(conversation, "Alright.")
  70. StartConversation(conversation, NPC, Spawn, "What! You lie to me? That is so very mean. Don't treat me that way. ")
  71. end
  72. function respawn(NPC)
  73. spawn(NPC)
  74. end