afallenassassin133770256.lua 5.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122
  1. --[[
  2. Script Name : SpawnScripts/QueensColony/afallenassassin133770256.lua
  3. Script Purpose : Waypoint Path for afallenassassin133770256.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, -123.59, 4.52, -38.77, 7.5, 3)
  19. MovementLoopAddLocation(NPC, -132.05, 4.37, -86.94, 7.5, 0)
  20. MovementLoopAddLocation(NPC, -108.87, 4.28, -103.37, 7.5, 0)
  21. MovementLoopAddLocation(NPC, -94.43, 4.23, -118.95, 7.5, 0)
  22. MovementLoopAddLocation(NPC, -69.58, 4.09, -133.64, 7.5, 0)
  23. MovementLoopAddLocation(NPC, -49.02, 2.16, -153.7, 7.5, 0)
  24. MovementLoopAddLocation(NPC, -69.58, 4.09, -133.64, 7.5, 0)
  25. MovementLoopAddLocation(NPC, -94.43, 4.23, -118.95, 7.5, 0)
  26. MovementLoopAddLocation(NPC, -108.87, 4.28, -103.37, 7.5, 0)
  27. MovementLoopAddLocation(NPC, -132.05, 4.37, -86.94, 7.5, 0)
  28. MovementLoopAddLocation(NPC, -123.73, 4.4, -40.89, 7.5, 0)
  29. MovementLoopAddLocation(NPC, -132.05, 4.37, -86.94, 7.5, 0)
  30. MovementLoopAddLocation(NPC, -108.87, 4.28, -103.37, 7.5, 0)
  31. MovementLoopAddLocation(NPC, -94.43, 4.23, -118.95, 7.5, 0)
  32. MovementLoopAddLocation(NPC, -69.58, 4.09, -133.64, 7.5, 0)
  33. MovementLoopAddLocation(NPC, -49.02, 2.16, -153.7, 7.5, 0)
  34. MovementLoopAddLocation(NPC, -69.58, 4.09, -133.64, 7.5, 0)
  35. MovementLoopAddLocation(NPC, -94.43, 4.23, -118.95, 7.5, 0)
  36. MovementLoopAddLocation(NPC, -108.87, 4.28, -103.37, 7.5, 0)
  37. MovementLoopAddLocation(NPC, -132.05, 4.37, -86.94, 7.5, 0)
  38. MovementLoopAddLocation(NPC, -123.73, 4.4, -40.89, 7.5, 0)
  39. MovementLoopAddLocation(NPC, -132.05, 4.37, -86.94, 7.5, 0)
  40. MovementLoopAddLocation(NPC, -108.87, 4.28, -103.37, 7.5, 0)
  41. MovementLoopAddLocation(NPC, -94.43, 4.23, -118.95, 7.5, 0)
  42. MovementLoopAddLocation(NPC, -69.58, 4.09, -133.64, 7.5, 0)
  43. MovementLoopAddLocation(NPC, -49.02, 2.16, -153.7, 7.5, 0)
  44. MovementLoopAddLocation(NPC, -69.58, 4.09, -133.64, 7.5, 0)
  45. MovementLoopAddLocation(NPC, -94.43, 4.23, -118.95, 7.5, 0)
  46. MovementLoopAddLocation(NPC, -108.87, 4.28, -103.37, 7.5, 0)
  47. MovementLoopAddLocation(NPC, -132.05, 4.37, -86.94, 7.5, 0)
  48. MovementLoopAddLocation(NPC, -123.73, 4.4, -40.89, 7.5, 0)
  49. MovementLoopAddLocation(NPC, -132.05, 4.37, -86.94, 7.5, 0)
  50. MovementLoopAddLocation(NPC, -108.87, 4.28, -103.37, 7.5, 0)
  51. MovementLoopAddLocation(NPC, -94.43, 4.23, -118.95, 7.5, 0)
  52. MovementLoopAddLocation(NPC, -69.58, 4.09, -133.64, 7.5, 0)
  53. MovementLoopAddLocation(NPC, -49.02, 2.16, -153.7, 7.5, 0)
  54. MovementLoopAddLocation(NPC, -69.58, 4.09, -133.64, 7.5, 0)
  55. MovementLoopAddLocation(NPC, -94.43, 4.23, -118.95, 7.5, 0)
  56. MovementLoopAddLocation(NPC, -108.87, 4.28, -103.37, 7.5, 0)
  57. MovementLoopAddLocation(NPC, -132.05, 4.37, -86.94, 7.5, 0)
  58. end
  59. --[[
  60. function aggro(NPC, Spawn)
  61. math.randomseed(os.time())
  62. local choice = math.random (1,6)
  63. if choice == 1 then
  64. 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)
  65. elseif choice == 2 then
  66. PlayFlavor(NPC, "voiceover/english/skeleton_base_1/ft/skeleton/skeleton_base_1_1_aggro_c77d7bff.mp3", "Your eyes are so pretty.", "", 1412152942, 873988632, Spawn)
  67. elseif choice == 3 then
  68. 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)
  69. elseif choice == 4 then
  70. PlayFlavor(NPC, "voiceover/english/skeleton_base_1/ft/skeleton/skeleton_base_1_1_aggro_8bc7a2cc.mp3", "Your blood calls to me.", "", 1242322025, 1154999668, Spawn)
  71. elseif choice == 5 then
  72. 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)
  73. elseif choice == 6 then
  74. 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)
  75. end
  76. end
  77. --]]
  78. --[[
  79. function death(NPC, Spawn)
  80. if IsPlayer(Spawn) then
  81. local chance = math.random(1,3)
  82. if chance == 3 then
  83. local skull = SpawnMob(GetZone(Spawn), 2530192, false, GetX(NPC), GetY(NPC), GetZ(NPC))
  84. if skull ~= nil then
  85. SpawnSet(skull, "expire", "1000")
  86. end
  87. end
  88. end
  89. Following is Jab's original code:
  90. if IsPlayer(Spawn) then
  91. local chance = math.random(1, 100)
  92. if chance <= 35 then
  93. local skull = SpawnMob(GetZone(Spawn), 2530192, false, GetX(NPC), GetY(NPC), GetZ(NPC))
  94. if skull ~= nil then
  95. SpawnSet(skull, "expire", "1000")
  96. math.randomseed(os.time())
  97. local choice = math.random(1,4)
  98. if choice == 1 then
  99. PlayFlavor(NPC, "voiceover/english/skeleton_base_1/ft/skeleton/skeleton_base_1_1_death_ff39f327.mp3", "Final death comes at last.", "", 3768284332, 62777040, Spawn)
  100. elseif choice == 2 then
  101. PlayFlavor(NPC, "voiceover/english/skeleton_base_1/ft/skeleton/skeleton_base_1_1_death_fbcb503b.mp3", "Rest in peace.", "", 3591309093, 1423656405, Spawn)
  102. elseif choice == 3 then
  103. PlayFlavor(NPC, "voiceover/english/optional3/skeleton_base_2/ft/skeleton/skeleton_base_2_1_death_bb6b2b8e.mp3", "You cannot eliminate us!", "", 897103301, 541292352, Spawn)
  104. elseif choice == 4 then
  105. 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)
  106. end
  107. end
  108. --]]