9
3

afallenassassin133770257.lua 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. --[[
  2. Script Name : SpawnScripts/QueensColony/afallenassassin133770257.lua
  3. Script Purpose : Waypoint Path for afallenassassin133770257.lua
  4. Script Author : Rylec, VO by Premierio015, Skull drop by Jabantiz
  5. Script Date : 07-28-2020 10:35:22
  6. Script Notes : Locations collected from Live
  7. --]]
  8. function spawn(NPC)
  9. waypoints(NPC)
  10. end
  11. function hailed(NPC, Spawn)
  12. FaceTarget(NPC, Spawn)
  13. end
  14. function respawn(NPC)
  15. spawn(NPC)
  16. end
  17. function waypoints(NPC)
  18. MovementLoopAddLocation(NPC, -146.63, 3.88, -113.81, 7.5, 3)
  19. MovementLoopAddLocation(NPC, -133.76, 4.37, -90.52, 7.5, 0)
  20. MovementLoopAddLocation(NPC, -86.05, 4.34, -114.43, 7.5, 0)
  21. MovementLoopAddLocation(NPC, -47.45, 2.21, -152.01, 7.5, 0)
  22. MovementLoopAddLocation(NPC, -56.06, 2.22, -152.09, 7.5, 0)
  23. MovementLoopAddLocation(NPC, -47.45, 2.21, -152.01, 7.5, 0)
  24. MovementLoopAddLocation(NPC, -86.05, 4.34, -114.43, 7.5, 0)
  25. MovementLoopAddLocation(NPC, -133.76, 4.37, -90.52, 7.5, 0)
  26. MovementLoopAddLocation(NPC, -86.05, 4.34, -114.43, 7.5, 0)
  27. MovementLoopAddLocation(NPC, -47.45, 2.21, -152.01, 7.5, 0)
  28. MovementLoopAddLocation(NPC, -56.06, 2.22, -152.09, 7.5, 0)
  29. MovementLoopAddLocation(NPC, -47.45, 2.21, -152.01, 7.5, 0)
  30. MovementLoopAddLocation(NPC, -86.05, 4.34, -114.43, 7.5, 0)
  31. MovementLoopAddLocation(NPC, -133.76, 4.37, -90.52, 7.5, 0)
  32. MovementLoopAddLocation(NPC, -86.05, 4.34, -114.43, 7.5, 0)
  33. MovementLoopAddLocation(NPC, -47.45, 2.21, -152.01, 7.5, 0)
  34. MovementLoopAddLocation(NPC, -56.06, 2.22, -152.09, 7.5, 0)
  35. MovementLoopAddLocation(NPC, -47.45, 2.21, -152.01, 7.5, 0)
  36. MovementLoopAddLocation(NPC, -86.05, 4.34, -114.43, 7.5, 0)
  37. MovementLoopAddLocation(NPC, -133.76, 4.37, -90.52, 7.5, 0)
  38. MovementLoopAddLocation(NPC, -86.05, 4.34, -114.43, 7.5, 0)
  39. MovementLoopAddLocation(NPC, -47.45, 2.21, -152.01, 7.5, 0)
  40. MovementLoopAddLocation(NPC, -56.06, 2.22, -152.09, 7.5, 0)
  41. MovementLoopAddLocation(NPC, -47.45, 2.21, -152.01, 7.5, 0)
  42. MovementLoopAddLocation(NPC, -86.05, 4.34, -114.43, 7.5, 0)
  43. MovementLoopAddLocation(NPC, -133.76, 4.37, -90.52, 7.5, 0)
  44. end
  45. function aggro(NPC, Spawn)
  46. math.randomseed(os.time())
  47. local choice = math.random (1,3)
  48. if choice == 1 then
  49. PlayFlavor(NPC, "voiceover/english/optional3/skeleton_base_2/ft/skeleton/skeleton_base_2_1_aggro_18d1544d.mp3", "As I rise from the grave, you will now take my place!", "", 485726074, 3646499350, Spawn)
  50. elseif choice == 2 then
  51. PlayFlavor(NPC, "voiceover/english/optional3/skeleton_base_2/ft/skeleton/skeleton_base_2_1_aggro_daf16808.mp3", "To the grave with you!", "", 958122326, 1810359159, Spawn)
  52. else
  53. PlayFlavor(NPC, "voiceover/english/optional3/skeleton_base_2/ft/skeleton/skeleton_base_2_1_aggro_c6c2672d.mp3", "Brains! It's what's for dinner.", "", 2091371377, 2422178491, Spawn)
  54. end
  55. end
  56. function death(NPC, Spawn)
  57. math.randomseed(os.time())
  58. local choice = math.random(1,2)
  59. if choice == 1 then
  60. PlayFlavor(NPC, "voiceover/english/optional3/skeleton_base_2/ft/skeleton/skeleton_base_2_1_death_bb6b2b8e.mp3", "You cannot eliminate us!", "", 897103301, 541292352, Spawn)
  61. else
  62. PlayFlavor(NPC, "voiceover/english/optional3/skeleton_base_2/ft/skeleton/skeleton_base_2_1_death_edc04fb8.mp3", "That pile of bones was my friend!", "", 2317728806, 1758283676, Spawn)
  63. end
  64. end
  65. --[[
  66. Following is Jab's original code:
  67. if IsPlayer(Spawn) then
  68. local chance = math.random(1, 100)
  69. if chance <= 35 then
  70. local skull = SpawnMob(GetZone(Spawn), 2530192, false, GetX(NPC), GetY(NPC), GetZ(NPC))
  71. if skull ~= nil then
  72. SpawnSet(skull, "expire", "1000")
  73. --]]