Hepsh.lua 2.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. --[[
  2. Script Name : SpawnScripts/TempleSt/Hepsh.lua
  3. Script Author : Dorbin
  4. Script Date : 2023.10.28 04:10:26
  5. Script Purpose :
  6. :
  7. --]]
  8. dofile("SpawnScripts/Generic/GenericEcologyVoiceOvers.lua")
  9. function spawn(NPC)
  10. SetPlayerProximityFunction(NPC, 6, "InRange", "LeaveRange")
  11. waypoints(NPC)
  12. end
  13. function hailed(NPC, Spawn)
  14. FaceTarget(NPC, Spawn)
  15. GenericEcologyHail(NPC, Spawn, faction)
  16. end
  17. function InRange(NPC,Spawn)
  18. GenericEcologyCallout(NPC, Spawn, faction)
  19. end
  20. function respawn(NPC)
  21. spawn(NPC)
  22. end
  23. function waypoints(NPC)
  24. MovementLoopAddLocation(NPC, -26.88, 3, 86.99, 1, 1)
  25. MovementLoopAddLocation(NPC, -26.88, 3, 86.99, 1, MakeRandomInt(25,40),"Action")
  26. MovementLoopAddLocation(NPC, -30.89, 3, 78.42, 1, 1)
  27. MovementLoopAddLocation(NPC, -30.89, 3, 78.42, 1, MakeRandomInt(25,40),"Action")
  28. MovementLoopAddLocation(NPC, -30.16, 3, 77.61, 1, 0)
  29. MovementLoopAddLocation(NPC, -29.12, 3, 79.07, 1, 0)
  30. MovementLoopAddLocation(NPC, -27.03, 3, 83, 1, 0)
  31. MovementLoopAddLocation(NPC, -26.94, 3, 86.61, 1, 1)
  32. MovementLoopAddLocation(NPC, -26.94, 3, 86.61, 1, MakeRandomInt(25,40),"EcologyEmote")
  33. MovementLoopAddLocation(NPC, -22.16, 3, 83.11, 1, 0)
  34. MovementLoopAddLocation(NPC, -18.3, 3, 80.7, 1, 0)
  35. MovementLoopAddLocation(NPC, -10.17, 3, 75.98, 1, 2,"Door")
  36. MovementLoopAddLocation(NPC, -12.6, 3.03, 71.36, 1, 0,"Door")
  37. MovementLoopAddLocation(NPC, -14.69, 3.03, 70.56, 1, 1)
  38. MovementLoopAddLocation(NPC, -14.69, 3.03, 70.56, 1, MakeRandomInt(25,40),"EcologyEmote")
  39. MovementLoopAddLocation(NPC, -14.02, 3.03, 69.37, 1, 1)
  40. MovementLoopAddLocation(NPC, -14.02, 3.03, 69.37, 1, MakeRandomInt(25,40),"EcologyEmote")
  41. MovementLoopAddLocation(NPC, -14.34, 3.03, 71.38, 1, 0)
  42. MovementLoopAddLocation(NPC, -12.94, 3.03, 71.49, 1, 2,"Door")
  43. MovementLoopAddLocation(NPC, -9.63, 3, 76.24, 1, 0,"Door")
  44. MovementLoopAddLocation(NPC, -6.65, 3, 74.89, 1, 0)
  45. MovementLoopAddLocation(NPC, -6.23, 3, 74.2, 1, 1)
  46. MovementLoopAddLocation(NPC, -6.23, 3, 74.2, 1, MakeRandomInt(25,40),"EcologyEmote")
  47. MovementLoopAddLocation(NPC, -8.12, 3, 76.54, 1, 0)
  48. MovementLoopAddLocation(NPC, -11.67, 3, 77.2, 1, 0)
  49. MovementLoopAddLocation(NPC, -16.8, 3, 81.5, 1, 0)
  50. MovementLoopAddLocation(NPC, -20.81, 3, 83.83, 1, 0)
  51. MovementLoopAddLocation(NPC, -23.52, 3.04, 84.69, 1, 0)
  52. end
  53. function Action(NPC)
  54. local choice = MakeRandomInt(1, 4)
  55. if choice == 1 then
  56. PlayFlavor(NPC, "", "", "peer", 0, 0)
  57. elseif choice == 2 then
  58. PlayFlavor(NPC, "", "", "ponder", 0, 0)
  59. elseif choice == 3 then
  60. PlayFlavor(NPC, "", "", "stare", 0, 0)
  61. elseif choice == 4 then
  62. PlayFlavor(NPC, "", "", "tapfoot", 0, 0)
  63. end
  64. end
  65. function Door(NPC,Spawn)
  66. local door = GetSpawn(NPC, 1360079)
  67. UseWidget(door)
  68. end