afallenassassin133770257.lua 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106
  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. --[[
  46. function aggro(NPC, Spawn)
  47. math.randomseed(os.time())
  48. local choice = math.random (1,6)
  49. if choice == 1 then
  50. 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)
  51. elseif choice == 2 then
  52. PlayFlavor(NPC, "voiceover/english/skeleton_base_1/ft/skeleton/skeleton_base_1_1_aggro_c77d7bff.mp3", "Your eyes are so pretty.", "", 1412152942, 873988632, Spawn)
  53. elseif choice == 3 then
  54. PlayFlavor(NPC, "voiceover/english/skeleton_base_1/ft/skeleton/skeleton_base_1_1_aggro_2168c5.mp3", "Seek death and it finds you.", "", 2988489621, 1045543573, Spawn)
  55. elseif choice == 4 then
  56. PlayFlavor(NPC, "voiceover/english/skeleton_base_1/ft/skeleton/skeleton_base_1_1_aggro_8bc7a2cc.mp3", "Your blood calls to me.", "", 1242322025, 1154999668, Spawn)
  57. elseif choice == 5 then
  58. PlayFavor(NPC, "voiceover/english/optional3/skeleton_base_2/ft/skeleton/skeleton_base_2_1_aggro_daf16808.mp3", "To the grave with you!", "", 958122326, 1810359159, Spawn)
  59. elseif choice == 6 then
  60. 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)
  61. end
  62. end
  63. function death(NPC, Spawn)
  64. if IsPlayer(Spawn) then
  65. local chance = math.random(1,3)
  66. if chance == 3 then
  67. local skull = SpawnMob(GetZone(Spawn), 2530192, false, GetX(NPC), GetY(NPC), GetZ(NPC))
  68. if skull ~= nil then
  69. SpawnSet(skull, "expire", "1000")
  70. end
  71. end
  72. end
  73. Following is Jab's original code:
  74. if IsPlayer(Spawn) then
  75. local chance = math.random(1, 100)
  76. if chance <= 35 then
  77. local skull = SpawnMob(GetZone(Spawn), 2530192, false, GetX(NPC), GetY(NPC), GetZ(NPC))
  78. if skull ~= nil then
  79. SpawnSet(skull, "expire", "1000")
  80. math.randomseed(os.time())
  81. local choice = math.random(1,4)
  82. if choice == 1 then
  83. PlayFlavor(NPC, "voiceover/english/skeleton_base_1/ft/skeleton/skeleton_base_1_1_death_ff39f327.mp3", "Final death comes at last.", "", 3768284332, 62777040, Spawn)
  84. elseif choice == 2 then
  85. PlayFlavor(NPC, "voiceover/english/skeleton_base_1/ft/skeleton/skeleton_base_1_1_death_fbcb503b.mp3", "Rest in peace.", "", 3591309093, 1423656405, Spawn)
  86. elseif choice == 3 then
  87. PlayFlavor(NPC, "voiceover/english/optional3/skeleton_base_2/ft/skeleton/skeleton_base_2_1_death_bb6b2b8e.mp3", "You cannot eliminate us!", "", 897103301, 541292352, Spawn)
  88. elseif choice == 4 then
  89. 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)
  90. end
  91. end
  92. --]]