9
3

aQeynosianscout.lua 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. --[[
  2. Script Name : SpawnScripts/Commonlands/aQeynosianscout.lua
  3. Script Author : cynnar
  4. Script Date : 2023.04.10 04:04:21
  5. Script Purpose :
  6. :
  7. --]]
  8. function spawn(NPC)
  9. AddTimer(NPC,MakeRandomInt(5000,11000),"Action")
  10. end
  11. function respawn(NPC)
  12. spawn(NPC)
  13. end
  14. function Action(NPC)
  15. local choice = MakeRandomInt(1, 4)
  16. if IsInCombat(NPC)== false then
  17. if choice == 1 then
  18. PlayFlavor(NPC, "", "", "peer", 0, 0)
  19. elseif choice == 2 then
  20. PlayFlavor(NPC, "", "", "stare", 0, 0)
  21. elseif choice == 3 then
  22. PlayFlavor(NPC, "", "", "yawn", 0, 0)
  23. elseif choice == 4 then
  24. PlayFlavor(NPC, "", "", "doubletake", 0, 0)
  25. end
  26. end
  27. AddTimer(NPC,MakeRandomInt(7000,11000),"Action")
  28. end
  29. function death(NPC,Spawn)
  30. local choice = MakeRandomInt(1,3)
  31. if choice == 1 then
  32. PlayFlavor(NPC, "voiceover/english/optional3/human_foresters/ft/human/human_foresters_1_death_gm_c8e6f923.mp3", "My friend may have fallen like a rotten tree but I will not.", "", 1442503118, 3414327424, Spawn, 0)
  33. elseif choice == 2 then
  34. PlayFlavor(NPC, "voiceover/english/optional3/human_foresters/ft/human/human_foresters_1_halfhealth_gm_6a01659b.mp3", "You will not fell me like some lumberjack!", "", 3082129005, 2882113499, Spawn, 0)
  35. elseif choice == 3 then
  36. PlayFlavor(NPC, "voiceover/english/optional3/human_foresters/ft/human/human_foresters_1_death_gm_3b153248.mp3", "You cannot kill us all, despoiler!", "", 321437922, 3533387413, Spawn, 0)
  37. end
  38. end