HanneSleetsaber.lua 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. --[[
  2. Script Name : SpawnScripts/BeggarsCourt2/HanneSleetsaber.lua
  3. Script Author : Premierio015
  4. Script Date : 2020.09.02 04:09:41
  5. Script Purpose :
  6. :
  7. --]]
  8. local QUEST = 579
  9. local Pup1LocationID = 133770922
  10. local Pup2LocationID = 133770923
  11. local HubbyID = 133770925
  12. function spawn(NPC)
  13. end
  14. function hailed(NPC, Spawn)
  15. SetTempVariable(NPC, "HAILED1", "true")
  16. FaceTarget(NPC, Spawn)
  17. if GetQuestStep(Spawn, QUEST) == 5 and GetTempVariable(NPC, "HAILED1") == "true" then
  18. local conversation = CreateConversation()
  19. PlayFlavor(NPC, "hanne_sleetsaber/freeport_combined/quest/racial/barbarian/hanne_sleetsaber_001.mp3", "", "", 503980699, 1320517162, Spawn)
  20. AddConversationOption(conversation, "Your husband needs to convince our brethren to stay within Freeport.", "pups")
  21. StartConversation(conversation, NPC, Spawn, "Who are you?! What do you want?")
  22. elseif GetQuestStep(Spawn, QUEST) == 6 then
  23. PlayFlavor(NPC, "", "You killed them! You killed my pups, you monster!", "cry", 1689589577, 4560189, Spawn)
  24. end
  25. end
  26. function pups(NPC, Spawn)
  27. SetTempVariable(NPC, "HAILED1", "false")
  28. SetStepComplete(Spawn, QUEST, 5)
  29. PlayFlavor(NPC, "", "You won't come into my house and threaten us, without a fight! Attack them, my pups!", "point", 1689589577, 4560189, Spawn)
  30. local zone = GetZone(NPC)
  31. local Wife = GetSpawnByLocationID(zone, NPC)
  32. if Wife ~= nil then
  33. local Pup1 = SpawnByLocationID(zone, Pup1LocationID)
  34. local Pup2 = SpawnByLocationID(zone, Pup2LocationID)
  35. local Hubby = SpawnByLocationID(zone, HubbyID)
  36. end
  37. end
  38. function respawn(NPC)
  39. end