9
3

ClanChiefMalachiSleetsaberBeggarsCourtVersion2.lua 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. --[[
  2. Script Name : SpawnScripts/BeggarsCourt2/ClanChiefMalachiSleetsaberBeggarsCourtVersion2.lua
  3. Script Author : Premierio015
  4. Script Date : 2020.09.03 06:09:17
  5. Script Purpose :
  6. :
  7. --]]
  8. QUEST = 579
  9. function spawn(NPC)
  10. SetPlayerProximityFunction(NPC, 10, "InRange", "OutRange")
  11. end
  12. function InRange(NPC, Spawn)
  13. hailed(NPC, Spawn)
  14. if not HasQuest(Spawn, QUEST) or GetQuestStep(Spawn, QUEST) == 8 then
  15. Despawn(NPC)
  16. end
  17. end
  18. function OutRange(NPC, Spawn)
  19. end
  20. function hailed(NPC, Spawn)
  21. FaceTarget(NPC, Spawn)
  22. if GetQuestStep(Spawn, QUEST) == 6 then
  23. local conversation = CreateConversation()
  24. PlayFlavor(NPC, "clan_chief_malachi_sleetsaber/freeport_combined/quest/racial/barbarian/chief_malachi_sleetsaber_005.mp3", "", "", 3795501104, 75086374, Spawn)
  25. AddConversationOption(conversation, "I think not, Clan Chief. Your bluster does not fool me!", "dlg1")
  26. StartConversation(conversation, NPC, Spawn, "Stand down, little cub, else I'll paint my stoop with yer blood!")
  27. elseif GetQuestStep(Spawn, QUEST) == 7 then
  28. PlayFlavor(NPC, "", "Return to the meeting room. I will do as you wish.", "", 1689589577, 4560189, Spawn)
  29. end
  30. end
  31. function dlg1(NPC, Spawn)
  32. FaceTarget(NPC, Spawn)
  33. local conversation = CreateConversation()
  34. PlayFlavor(NPC, "clan_chief_malachi_sleetsaber/freeport_combined/quest/racial/barbarian/chief_malachi_sleetsaber_006.mp3", "", "", 3195621340, 4264838561, Spawn)
  35. AddConversationOption(conversation, "Yes, and I will be forced to gut you, too, along side your wife, unless you do as I say.", "dlg2")
  36. StartConversation(conversation, NPC, Spawn, "You... you killed my wolves!")
  37. end
  38. function dlg2(NPC, Spawn)
  39. FaceTarget(NPC, Spawn)
  40. local conversation = CreateConversation()
  41. PlayFlavor(NPC, "clan_chief_malachi_sleetsaber/freeport_combined/quest/racial/barbarian/chief_malachi_sleetsaber_007.mp3", "", "scold", 402926634, 867712435, Spawn)
  42. AddConversationOption(conversation, "You must use your charisma and title to convince our barbarian brethren to stay within Freeport.", "dlg3")
  43. StartConversation(conversation, NPC, Spawn, "What is this? What do you demand of me?")
  44. end
  45. function dlg3(NPC, Spawn)
  46. FaceTarget(NPC, Spawn)
  47. local conversation = CreateConversation()
  48. PlayFlavor(NPC, "clan_chief_malachi_sleetsaber/freeport_combined/quest/racial/barbarian/chief_malachi_sleetsaber_008.mp3", "", "", 1635002950, 918148220, Spawn)
  49. AddConversationOption(conversation, "For the good of those you know and love.", "dlg4")
  50. StartConversation(conversation, NPC, Spawn, "Why should I, aside from saving my own skin?")
  51. end
  52. function dlg4(NPC, Spawn)
  53. FaceTarget(NPC, Spawn)
  54. SetStepComplete(Spawn, QUEST, 6)
  55. local conversation = CreateConversation()
  56. PlayFlavor(NPC, "clan_chief_malachi_sleetsaber/freeport_combined/quest/racial/barbarian/chief_malachi_sleetsaber_009.mp3", "", "", 2982382707, 225924876, Spawn)
  57. AddConversationOption(conversation, "Wise decision.")
  58. StartConversation(conversation, NPC, Spawn, "Return to the meeting room. I will do as you wish.")
  59. end
  60. function respawn(NPC)
  61. spawn(NPC)
  62. end