IssakTeech.lua 3.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. --[[
  2. Script Name : SpawnScripts/Nettleville/IssakTeech.lua
  3. Script Author : Dorbin
  4. Script Date : 2022.06.21 08:06:54
  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. GenericRaceCheckHail(NPC, Spawn, faction)
  15. end
  16. function InRange(NPC,Spawn)
  17. GenericRaceCheckCallout(NPC, Spawn, faction)
  18. end
  19. function FaceStreet(NPC)
  20. SpawnSet(NPC, "heading", "250")
  21. end
  22. function waypoints(NPC)
  23. MovementLoopAddLocation(NPC, 627.34, -22.48, 363.65, 2, 1)
  24. MovementLoopAddLocation(NPC, 627.34, -22.48, 363.65, 2, 55,"EcologyEmotes")
  25. MovementLoopAddLocation(NPC, 627.85, -22.48, 363.98, 2, 0)
  26. MovementLoopAddLocation(NPC, 631.53, -22.53, 363.98, 2, 0)
  27. MovementLoopAddLocation(NPC, 632.12, -22.5, 362.6, 2, 0)
  28. MovementLoopAddLocation(NPC, 637.9, -22.33, 348.51, 2, 0)
  29. MovementLoopAddLocation(NPC, 640.59, -22.32, 345.05, 2, 0)
  30. MovementLoopAddLocation(NPC, 642.37, -22.32, 342.3, 2, 0)
  31. MovementLoopAddLocation(NPC, 638.14, -21.35, 336.49, 2, 1,"FaceStreet")
  32. MovementLoopAddLocation(NPC, 638.14, -21.35, 336.49, 2, 45,"EcologyEmotes")
  33. MovementLoopAddLocation(NPC, 638.14, -21.35, 336.49, 2, 45,"EcologyEmotes")
  34. MovementLoopAddLocation(NPC, 638.34, -21.35, 337.13, 2, 0)
  35. MovementLoopAddLocation(NPC, 639.83, -22.32, 341.67, 2, 0)
  36. MovementLoopAddLocation(NPC, 633.67, -22.38, 357.69, 2, 0)
  37. MovementLoopAddLocation(NPC, 636.25, -22.31, 368.73, 2, 0)
  38. MovementLoopAddLocation(NPC, 639.86, -23.52, 366.85, 2, 0)
  39. MovementLoopAddLocation(NPC, 642.62, -24.8, 364.49, 2, 0)
  40. MovementLoopAddLocation(NPC, 647.99, -24.84, 361.9, 2, 0)
  41. MovementLoopAddLocation(NPC, 653.52, -24.79, 364.01, 2, 0)
  42. MovementLoopAddLocation(NPC, 662.15, -24.43, 370.67, 2, 0)
  43. MovementLoopAddLocation(NPC, 662.84, -24.43, 370.82, 2, 1)
  44. MovementLoopAddLocation(NPC, 662.84, -24.43, 370.82, 2, 35,"Drink")
  45. MovementLoopAddLocation(NPC, 662.84, -24.43, 370.82, 2, 35,"Drink")
  46. MovementLoopAddLocation(NPC, 662.84, -24.43, 370.82, 2, 35,"Drink")
  47. MovementLoopAddLocation(NPC, 663.14, -24.44, 369.71, 2, 0)
  48. MovementLoopAddLocation(NPC, 657.77, -24.6, 369.07, 2, 0)
  49. MovementLoopAddLocation(NPC, 642.95, -24.79, 367.11, 2, 0)
  50. MovementLoopAddLocation(NPC, 640.62, -23.71, 368.52, 2, 0)
  51. MovementLoopAddLocation(NPC, 637.43, -22.27, 370.29, 2, 0)
  52. MovementLoopAddLocation(NPC, 635, -22.34, 369.13, 2, 0)
  53. MovementLoopAddLocation(NPC, 634.12, -22.42, 366.3, 2, 0)
  54. MovementLoopAddLocation(NPC, 631.24, -22.55, 364.34, 2, 0)
  55. MovementLoopAddLocation(NPC, 626.7, -22.41, 362.63, 2, 0)
  56. end
  57. function Drink(NPC)
  58. PlayFlavor(NPC,"","","drinking_idle",0,0)
  59. AddTimer(NPC,8000, "Drink2")
  60. end
  61. function Drink2(NPC)
  62. choice = math.random(1,3)
  63. if choice == 1 then
  64. PlayFlavor(NPC,"","","yawn",0,0)
  65. elseif choice == 2 then
  66. PlayFlavor(NPC,"","","drinking_idle",0,0)
  67. elseif choice == 3 then
  68. PlayFlavor(NPC,"","","happy",0,0)
  69. end
  70. AddTimer(NPC,6000, "Drink3")
  71. end
  72. function Drink3(NPC)
  73. PlayFlavor(NPC,"","","drinking_idle",0,0)
  74. end