9
3

GurpkayeMarrcap.lua 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103
  1. --[[
  2. Script Name : SpawnScripts/Castleview/GurpkayeMarrcap.lua
  3. Script Author : Dorbin
  4. Script Date : 2022.10.29 04:10:38
  5. Script Purpose :
  6. :
  7. --]]
  8. dofile("SpawnScripts/Generic/GenericEcologyVoiceOvers.lua")
  9. function spawn(NPC)
  10. waypoints(NPC)
  11. SetPlayerProximityFunction(NPC, 7, "InRange", "LeaveRange")
  12. end
  13. function hailed(NPC, Spawn)
  14. FaceTarget(NPC, Spawn)
  15. GenericRaceCheckHail(NPC, Spawn)
  16. end
  17. function InRange(NPC,Spawn)
  18. GenericRaceCheckCallout(NPC, Spawn)
  19. end
  20. function waypoints(NPC)
  21. MovementLoopAddLocation(NPC, 740.49, -15.21, -162.69, 2, 1)
  22. MovementLoopAddLocation(NPC, 740.49, -15.21, -162.69, 2, 25,"EcologyEmotes")
  23. MovementLoopAddLocation(NPC, 739.38, -15.21, -163.17, 2, 0)
  24. MovementLoopAddLocation(NPC, 739.42, -15.21, -164.05, 2, 0)
  25. MovementLoopAddLocation(NPC, 741.5, -15.2, -163.84, 2, 0)
  26. MovementLoopAddLocation(NPC, 744.53, -15.2, -163.7, 2, 0)
  27. MovementLoopAddLocation(NPC, 747.2, -15.19, -164.75, 2, 0)
  28. MovementLoopAddLocation(NPC, 751.4, -15.24, -166.39, 2, 0)
  29. MovementLoopAddLocation(NPC, 755.57, -15.22, -166.64, 2, 0)
  30. MovementLoopAddLocation(NPC, 763.6, -18.94, -166.34, 2, 0)
  31. MovementLoopAddLocation(NPC, 766.01, -18.95, -166.4, 2, 0)
  32. MovementLoopAddLocation(NPC, 767.38, -18.96, -166.2, 2, 0)
  33. MovementLoopAddLocation(NPC, 768.2, -18.96, -163.08, 2, 0)
  34. MovementLoopAddLocation(NPC, 768.4, -19.21, -155.41, 2, 0)
  35. MovementLoopAddLocation(NPC, 768.34, -19.96, -142.22, 2, 0)
  36. MovementLoopAddLocation(NPC, 767.93, -20.45, -135.31, 2, 0)
  37. MovementLoopAddLocation(NPC, 769.73, -20.01, -130.35, 2, 0)
  38. MovementLoopAddLocation(NPC, 767.64, -19.98, -124.57, 2, 1)
  39. MovementLoopAddLocation(NPC, 767.64, -19.98, -124.57, 2, 25,"EcologyEmotes")
  40. -- MovementLoopAddLocation(NPC, 765.75, -19.94, -124.61, 2, 0)
  41. MovementLoopAddLocation(NPC, 758.48, -20.04, -123.47, 2, 0)
  42. MovementLoopAddLocation(NPC, 756.21, -20.08, -122.58, 2, 0)
  43. MovementLoopAddLocation(NPC, 748.82, -21.25, -120.36, 2, 0)
  44. MovementLoopAddLocation(NPC, 746.64, -21.23, -116.42, 2, 0)
  45. MovementLoopAddLocation(NPC, 745.71, -21.24, -114.73, 2, 0)
  46. MovementLoopAddLocation(NPC, 746.24, -21.21, -110.15, 2, 0)
  47. MovementLoopAddLocation(NPC, 746.05, -21.22, -110, 2, 1)
  48. MovementLoopAddLocation(NPC, 746.05, -21.22, -110, 2, 30,"Drink")
  49. MovementLoopAddLocation(NPC, 746.05, -21.22, -110, 2, 30,"Drink")
  50. MovementLoopAddLocation(NPC, 745.12, -21.24, -109.23, 2, 0)
  51. MovementLoopAddLocation(NPC, 744.54, -21.25, -110.29, 2, 0)
  52. MovementLoopAddLocation(NPC, 745.46, -21.21, -116.51, 2, 0)
  53. MovementLoopAddLocation(NPC, 746.54, -21.29, -118.46, 2, 0)
  54. MovementLoopAddLocation(NPC, 755.89, -20.04, -120.85, 2, 0)
  55. MovementLoopAddLocation(NPC, 759.64, -19.97, -124.46, 2, 0)
  56. MovementLoopAddLocation(NPC, 763.28, -19.94, -127.07, 2, 0)
  57. MovementLoopAddLocation(NPC, 765.89, -20.5, -133.75, 2, 0)
  58. MovementLoopAddLocation(NPC, 766.22, -20.45, -134.59, 2, 0)
  59. MovementLoopAddLocation(NPC, 766.45, -20.22, -138.85, 2, 0)
  60. MovementLoopAddLocation(NPC, 766.96, -19.99, -142.56, 2, 0)
  61. MovementLoopAddLocation(NPC, 767.02, -19.99, -145.89, 2, 0)
  62. MovementLoopAddLocation(NPC, 766.13, -19.46, -150.47, 2, 0)
  63. MovementLoopAddLocation(NPC, 766.45, -18.97, -158.58, 2, 0)
  64. MovementLoopAddLocation(NPC, 766.32, -18.98, -164.09, 2, 0)
  65. MovementLoopAddLocation(NPC, 764.74, -18.97, -164.91, 2, 0)
  66. MovementLoopAddLocation(NPC, 755.53, -15.22, -164.68, 2, 0)
  67. MovementLoopAddLocation(NPC, 753.45, -15.2, -164.64, 2, 0)
  68. MovementLoopAddLocation(NPC, 753.58, -15.19, -163.21, 2, 0)
  69. MovementLoopAddLocation(NPC, 756.07, -15.19, -157.72, 2, 1)
  70. MovementLoopAddLocation(NPC, 756.07, -15.19, -157.72, 2, 25,"EcologyEmotes")
  71. MovementLoopAddLocation(NPC, 754.58, -15.19, -158.74, 2, 0)
  72. MovementLoopAddLocation(NPC, 749.22, -15.18, -161.24, 2, 0)
  73. MovementLoopAddLocation(NPC, 746.8, -15.19, -161.39, 2, 0)
  74. MovementLoopAddLocation(NPC, 743.52, -15.2, -163.22, 2, 0)
  75. end
  76. function Drink(NPC)
  77. PlayAnimation(NPC,11422)
  78. AddTimer(NPC,8000, "Drink2")
  79. end
  80. function Drink2(NPC)
  81. choice = math.random(1,3)
  82. if choice == 1 then
  83. PlayAnimation(NPC,891)
  84. elseif choice == 2 then
  85. PlayAnimation(NPC,11422)
  86. else
  87. PlayAnimation(NPC,11668)
  88. end
  89. AddTimer(NPC,6000, "Drink3")
  90. end
  91. function Drink3(NPC)
  92. PlayAnimation(NPC,11422)
  93. end