afallenassassin133770256.lua 2.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  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, 300)
  24. end
  25. function aggro(NPC, Spawn)
  26. math.randomseed(os.time())
  27. local choice = math.random (1,3)
  28. if choice == 1 then
  29. PlayFlavor(NPC, "voiceover/english/skeleton_base_1/ft/skeleton/skeleton_base_1_1_aggro_c77d7bff.mp3", "Your eyes are so pretty.", "", 1412152942, 873988632, Spawn)
  30. elseif choice == 2 then
  31. 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)
  32. else
  33. PlayFlavor(NPC, "voiceover/english/skeleton_base_1/ft/skeleton/skeleton_base_1_1_aggro_8bc7a2cc.mp3", "Your blood calls to me.", "", 1242322025, 1154999668, Spawn)
  34. end
  35. end
  36. function death(NPC, Spawn)
  37. if IsPlayer(Spawn) then
  38. local chance = math.random(1, 100)
  39. if chance <= 35 then
  40. local skull = SpawnMob(GetZone(Spawn), 2530192, false, GetX(NPC), GetY(NPC), GetZ(NPC))
  41. if skull ~= nil then
  42. SpawnSet(skull, "expire", "1000")
  43. end
  44. end
  45. end
  46. math.randomseed(os.time())
  47. local choice = math.random(1,2)
  48. if choice == 1 then
  49. PlayFlavor(NPC, "voiceover/english/skeleton_base_1/ft/skeleton/skeleton_base_1_1_death_ff39f327.mp3", "Final death comes at last.", "", 3768284332, 62777040, Spawn)
  50. else
  51. PlayFlavor(NPC, "voiceover/english/skeleton_base_1/ft/skeleton/skeleton_base_1_1_death_fbcb503b.mp3", "Rest in peace.", "", 3591309093, 1423656405, Spawn)
  52. end
  53. end
  54. --[[
  55. Following is Jab's original code:
  56. if IsPlayer(Spawn) then
  57. local chance = math.random(1, 100)
  58. if chance <= 35 then
  59. local skull = SpawnMob(GetZone(Spawn), 2530192, false, GetX(NPC), GetY(NPC), GetZ(NPC))
  60. if skull ~= nil then
  61. SpawnSet(skull, "expire", "1000")
  62. --]]