Fasul.lua 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. --[[
  2. Script Name : SpawnScripts/SinkingSands/Fasul.lua
  3. Script Author : premierio015
  4. Script Date : 2023.12.17 01:12:36
  5. Script Purpose :
  6. :
  7. --]]
  8. function spawn(NPC)
  9. MoveToLocation(NPC, -1123.05 -209.57, -247.38, 3, "", true)
  10. MoveToLocation(NPC, -1131.05, -210.41, -243.83, 3, "", true)
  11. MoveToLocation(NPC, -1147.28, -212.40, -236.22, 3, "", false)
  12. end
  13. function hailed(NPC, Spawn)
  14. FaceTarget(NPC, Spawn)
  15. end
  16. function aggro(NPC, Spawn)
  17. PlayFlavor(NPC, "voiceover/english/exp01/human_sand_sea_pirates_1/ft/_exp01/human/human_sand_sea_pirates_1_aggro_gm_d96d04b.mp3", "'Tis not often a mark comes to me.", "", 967500505, 3452525704)
  18. end
  19. function killed(NPC, Spawn)
  20. PlayFlavor(NPC, "voiceover/english/exp01/human_sand_sea_pirates_1/ft/_exp01/human/human_sand_sea_pirates_1_victory_gm_8f919e22.mp3", "Take anything of worth, then throw them to sea.", "", 2264125921, 3311027459)
  21. end
  22. function healthchanged(NPC, Spawn)
  23. local chance = MakeRandomInt(1, 100)
  24. if chance <= 15 then
  25. local choice = MakeRandomInt(1, 3)
  26. if choice == 1 then
  27. PlayFlavor(NPC, "voiceover/english/exp01/human_sand_sea_pirates_1/ft/_exp01/human/human_sand_sea_pirates_1_battle_gm_129582bc.mp3", "Too scared to fight on the water?", "", 3449011253, 2221154827)
  28. elseif choice == 2 then
  29. PlayFlavor(NPC, "voiceover/english/exp01/human_sand_sea_pirates_1/ft/_exp01/human/human_sand_sea_pirates_1_battle_gm_f2ef67d0.mp3", "I thought scorpions crawled, not walked.", "", 3903435859, 1056182778)
  30. end
  31. end
  32. end
  33. function death(NPC, Spawn)
  34. PlayFlavor(NPC, "voiceover/english/exp01/human_sand_sea_pirates_1/ft/_exp01/human/human_sand_sea_pirates_1_death_gm_562e1d8a.mp3", "The sea, she calls to me.", "", 1233488773, 3203009163)
  35. end
  36. function respawn(NPC)
  37. spawn(NPC)
  38. end