QCAFallenBrigandSkeletonScript1.lua 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. --[[
  2. Script Name : SpawnScripts/QueensColony/QCAFallenBrigandSkeletonScript1.lua
  3. Script Purpose : SkeletonScript1
  4. Script Author : premierio015
  5. Script Date : 2020.04.10
  6. Script Notes :
  7. --]]
  8. function spawn(NPC)
  9. x = GetX(NPC)
  10. y = GetY(NPC)
  11. z = GetZ(NPC)
  12. MovementLoopAddLocation(NPC, x - 7 , y, z + 8 , 2, math.random(5, 15))
  13. MovementLoopAddLocation(NPC, x + 5 , y, z + 10, 2, math.random(5, 15))
  14. MovementLoopAddLocation(NPC, x + 10, y, z - 9 , 2, math.random(5, 15))
  15. MovementLoopAddLocation(NPC, x - 5 , y, z - 8 , 2, math.random(5, 15))
  16. end
  17. function respawn(NPC)
  18. spawn(NPC)
  19. end
  20. function hailed(NPC, Spawn)
  21. FaceTarget(NPC, Spawn)
  22. end
  23. function attacked(NPC, Spawn)
  24. local choice = math.random(1, 3)
  25. if choice == 1 then
  26. PlayFlavor(NPC, "voiceover/english/skeleton_base_1/ft/skeleton/skeleton_base_1_1_aggro_c77d7bff.mp3", "Your eyes are so pretty.", "", 1412152942, 873988632, Spawn)
  27. elseif choice == 2 then
  28. 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)
  29. elseif choice == 3 then
  30. PlayFlavor(NPC, "voiceover/english/skeleton_base_1/ft/skeleton/skeleton_base_1_1_aggro_8bc7a2cc.mp3", "Your blood calls to me.", "", 1242322025, 1154999668, Spawn)
  31. end
  32. end
  33. function death(NPC, Spawn)
  34. local choice = math.random(1, 2)
  35. if choice == 1 then
  36. PlayFlavor(NPC, "voiceover/english/skeleton_base_1/ft/skeleton/skeleton_base_1_1_death_ff39f327.mp3", "Final death comes at last.", "", 3768284332, 62777040, Spawn)
  37. elseif choice == 2 then
  38. PlayFlavor(NPC, "voiceover/english/skeleton_base_1/ft/skeleton/skeleton_base_1_1_death_fbcb503b.mp3", "Rest in peace.", "", 3591309093, 1423656405, Spawn)
  39. end
  40. end