afallenassassin133770256.lua 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107
  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. function aggro(NPC, Spawn)
  60. math.randomseed(os.time())
  61. local choice = math.random (1,3)
  62. if choice == 1 then
  63. PlayFlavor(NPC, "voiceover/english/skeleton_base_1/ft/skeleton/skeleton_base_1_1_aggro_c77d7bff.mp3", "Your eyes are so pretty.", "", 1412152942, 873988632, Spawn)
  64. elseif choice == 2 then
  65. 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)
  66. else
  67. PlayFlavor(NPC, "voiceover/english/skeleton_base_1/ft/skeleton/skeleton_base_1_1_aggro_8bc7a2cc.mp3", "Your blood calls to me.", "", 1242322025, 1154999668, Spawn)
  68. end
  69. end
  70. function death(NPC, Spawn)
  71. if IsPlayer(Spawn) then
  72. local chance = math.random(1, 100)
  73. if chance <= 35 then
  74. local skull = SpawnMob(GetZone(Spawn), 2530192, false, GetX(NPC), GetY(NPC), GetZ(NPC))
  75. if skull ~= nil then
  76. SpawnSet(skull, "expire", "1000")
  77. end
  78. end
  79. end
  80. math.randomseed(os.time())
  81. local choice = math.random(1,2)
  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. else
  85. PlayFlavor(NPC, "voiceover/english/skeleton_base_1/ft/skeleton/skeleton_base_1_1_death_fbcb503b.mp3", "Rest in peace.", "", 3591309093, 1423656405, Spawn)
  86. end
  87. end
  88. --[[
  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. --]]