KarakiatBonewalker.lua 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. --[[
  2. Script Name : SpawnScripts/BigBend/KarakiatBonewalker.lua
  3. Script Purpose : Karakiat Bonewalker
  4. Script Author : torsten
  5. Script Date : 2022.07.10
  6. Script Notes :
  7. --]]
  8. function spawn(NPC)
  9. waypoints(NPC)
  10. end
  11. function respawn(NPC)
  12. spawn(NPC)
  13. end
  14. function hailed(NPC, Spawn)
  15. RandomGreeting(NPC, Spawn)
  16. end
  17. function RandomGreeting(NPC, Spawn)
  18. local choice = MakeRandomInt(1,4)
  19. if choice == 1 then
  20. FaceTarget(NPC, Spawn)
  21. PlayFlavor(NPC, "voiceover/english/troll_eco_race_evil/ft/eco/evil/troll_eco_race_evil_hail_gf_417aa823.mp3", "Nasty scars and boiled tar! Warriors is what we are!", "itch", 1257994883, 3501955854, Spawn, 0)
  22. elseif choice == 2 then
  23. FaceTarget(NPC, Spawn)
  24. PlayFlavor(NPC, "voiceover/english/troll_eco_race_evil/ft/eco/evil/troll_eco_race_evil_ogre_gf_b1f3691c.mp3", "Not mess with you, not mess with me...", "wince", 1032294332, 3970520281, Spawn, 0)
  25. elseif choice == 3 then
  26. FaceTarget(NPC, Spawn)
  27. PlayFlavor(NPC, "voiceover/english/troll_eco_race_evil/ft/eco/evil/troll_eco_race_evil_darkelf_gf_50ad1ae0.mp3", "Treat us badly in Neriak! I laugh now we in same spot!", "chuckle", 3570765081, 2205040834, Spawn, 0)
  28. elseif choice == 4 then
  29. FaceTarget(NPC, Spawn)
  30. PlayFlavor(NPC, "voiceover/english/troll_eco_race_evil/ft/eco/evil/troll_eco_race_evil_hail_gf_f491bc11.mp3", "Tasty treats, lots of meats.", "nod", 357958006, 4074544132, Spawn, 0)
  31. end
  32. end
  33. function waypoints(NPC)
  34. MovementLoopAddLocation(NPC, -21.31, 3.36, -26.12, 2, 0)
  35. MovementLoopAddLocation(NPC, -27.83, 3.92, -23.14, 2, 0)
  36. MovementLoopAddLocation(NPC, -36, 4.2, -16.78, 4, 0)
  37. MovementLoopAddLocation(NPC, -51.65, 3.99, -3.32, 2, math.random(1,2))
  38. MovementLoopAddLocation(NPC, -54, 3.85, -0.35, 2, 0)
  39. MovementLoopAddLocation(NPC, -54.99, 2.49, 8.06, 2, 0)
  40. MovementLoopAddLocation(NPC, -49.58, 0.7, 19.68, 2, math.random(8,12))
  41. MovementLoopAddLocation(NPC, -42.09, -0.69, 28.2, 2, 0)
  42. MovementLoopAddLocation(NPC, -36.83, -0.4, 39.85, 2, 0)
  43. MovementLoopAddLocation(NPC, -42.44, -0.59, 27.68, 2, 0)
  44. MovementLoopAddLocation(NPC, -34.24, 0.25, 21.47, 3, 0)
  45. MovementLoopAddLocation(NPC, -20.23, 0.04, 13.24, 2, 0)
  46. MovementLoopAddLocation(NPC, -16.2, 0, 10.52, 2, 0)
  47. MovementLoopAddLocation(NPC, -2.48, 0.06, 11.85, 2, 0)
  48. MovementLoopAddLocation(NPC, 12.72, 0, 1.77, 2, math.random(8,12))
  49. MovementLoopAddLocation(NPC, 0.99, 0, -10.18, 2, 0)
  50. MovementLoopAddLocation(NPC, -14.67, 0, -8.37, 2, 0)
  51. MovementLoopAddLocation(NPC, -16.42, 0, 2.82, 2, 0)
  52. MovementLoopAddLocation(NPC, -9.46, 0, 11.77, 2, math.random(1,2))
  53. MovementLoopAddLocation(NPC, 7.12, 0.01, 9.36, 2, 0)
  54. MovementLoopAddLocation(NPC, 27.49, -0.69, 14.77, 2, math.random(8,12))
  55. MovementLoopAddLocation(NPC, 43.47, -1.41, 9.78, 2, 0)
  56. MovementLoopAddLocation(NPC, 37.62, -1.24, -10.09, 2, 0)
  57. MovementLoopAddLocation(NPC, 33.45, -0.36, -15.25, 7, 0)
  58. MovementLoopAddLocation(NPC, 20.03, 1.1, -22.55, 2, 0)
  59. MovementLoopAddLocation(NPC, 9.64, 1.85, -28.2, 2, 0)
  60. MovementLoopAddLocation(NPC, -1.57, 2.81, -29.8, 2, math.random(8,12))
  61. MovementLoopAddLocation(NPC, -17.35, 3, -29.89, 2, 0)
  62. MovementLoopAddLocation(NPC, -21.11, 3.37, -26.09, 2, 0)
  63. end