9
3

HunterLatharForestdeep.lua 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. --[[
  2. Script Name : SpawnScripts/qeynos_combined02/HunterLatharForestdeep.lua
  3. Script Author : Rylec
  4. Script Date : 2021.09.06 08:09:43
  5. Script Purpose :
  6. :
  7. --]]
  8. local count = 1
  9. function spawn(NPC)
  10. end
  11. function hailed(NPC, Spawn)
  12. if count == 1 then
  13. stand(NPC, Spawn)
  14. elseif count > 1 and count < 6 then
  15. count = count + 1
  16. else
  17. count = 1
  18. end
  19. conversation = CreateConversation()
  20. PlayFlavor(NPC, "voiceover/english/hunter_lathar_forestdeep/qey_village05/quests/hunter_forestdeep/hunter_forestdeep.mp3", "", "", 1771449207, 2174692031, Spawn)
  21. AddConversationOption(conversation, "Sorry to have bothered you.")
  22. StartConversation(conversation, NPC, Spawn, "What do you need? I'm very busy.")
  23. AddTimer(NPC, 60000, "countReset")
  24. end
  25. function stand(NPC, Spawn)
  26. SpawnSet(NPC, "visual_state", "0")
  27. PlayAnimation(NPC, "220")
  28. AddTimer(NPC, 1000, "turn", 1, Spawn)
  29. count = count + 1
  30. end
  31. function turn(NPC, Spawn)
  32. FaceTarget(NPC, Spawn)
  33. AddTimer(NPC, 10000, "crouch")
  34. end
  35. function crouch(NPC)
  36. PlayAnimation(NPC, "219")
  37. AddTimer(NPC, 800, "crouchIdle")
  38. end
  39. function crouchIdle(NPC)
  40. SpawnSet(NPC, "visual_state", "221")
  41. end
  42. function respawn(NPC)
  43. spawn(NPC)
  44. end
  45. function countReset(NPC)
  46. count = 1
  47. end