9
3

afallenassassin.lua 3.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. --[[
  2. Script Name : SpawnScripts/QueensColony/afallenassassin.lua
  3. Script Purpose : Path to doom, and drop skull when killed by player
  4. Script Author : Jabantiz
  5. Script Date : 9/11/2016
  6. Script Notes : <special-instructions>
  7. --]]
  8. function spawn(NPC)
  9. MovementLoopAddLocation(NPC, -125.5, 4.64, -50.29, 4)
  10. MovementLoopAddLocation(NPC, -132.23, 4.36, -63.2, 4)
  11. MovementLoopAddLocation(NPC, -133.43, 4.37, -88.26, 4)
  12. MovementLoopAddLocation(NPC, -110.11, 4.29, -101.71, 4)
  13. MovementLoopAddLocation(NPC, -97.02, 4.24, -116.82, 4)
  14. MovementLoopAddLocation(NPC, -81.65, 4.13, -120.89, 4)
  15. MovementLoopAddLocation(NPC, -70.74, 4.09, -133.39, 4)
  16. MovementLoopAddLocation(NPC, -57.57, 2.24, -135.21, 4)
  17. MovementLoopAddLocation(NPC, -51.81, 2.03, -153.28, 4, 60)
  18. end
  19. function respawn(NPC)
  20. spawn(NPC)
  21. end
  22. function aggro(NPC, Spawn)
  23. math.randomseed(os.time())
  24. local choice = math.random (1,6)
  25. if choice == 1 then
  26. 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)
  27. elseif choice == 2 then
  28. PlayFlavor(NPC, "voiceover/english/skeleton_base_1/ft/skeleton/skeleton_base_1_1_aggro_c77d7bff.mp3", "Your eyes are so pretty.", "", 1412152942, 873988632, Spawn)
  29. elseif choice == 3 then
  30. 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)
  31. elseif choice == 4 then
  32. PlayFlavor(NPC, "voiceover/english/skeleton_base_1/ft/skeleton/skeleton_base_1_1_aggro_8bc7a2cc.mp3", "Your blood calls to me.", "", 1242322025, 1154999668, Spawn)
  33. elseif choice == 5 then
  34. 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)
  35. else
  36. 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)
  37. end
  38. end
  39. function death(NPC, Spawn)
  40. if IsPlayer(Spawn) then
  41. local chance = math.random(1, 100)
  42. if chance <= 35 then
  43. local skull = SpawnMob(GetZone(Spawn), 2530192, false, GetX(NPC), GetY(NPC), GetZ(NPC))
  44. if skull ~= nil then
  45. SpawnSet(skull, "expire", "1000")
  46. math.randomseed(os.time())
  47. local choice = math.random(1,4)
  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. elseif choice == 2 then
  51. PlayFlavor(NPC, "voiceover/english/skeleton_base_1/ft/skeleton/skeleton_base_1_1_death_fbcb503b.mp3", "Rest in peace.", "", 3591309093, 1423656405, Spawn)
  52. elseif choice == 3 then
  53. PlayFlavor(NPC, "voiceover/english/optional3/skeleton_base_2/ft/skeleton/skeleton_base_2_1_death_bb6b2b8e.mp3", "You cannot eliminate us!", "", 897103301, 541292352, Spawn)
  54. elseif choice == 4 then
  55. 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)
  56. end
  57. end
  58. end
  59. end
  60. end