9
3

Lexhin.lua 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. --[[
  2. Script Name : SpawnScripts/TempleSt/Lexhin.lua
  3. Script Author : Dorbin
  4. Script Date : 2023.10.28 04:10:40
  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. GenericEcology2Hail(NPC, Spawn, faction)
  16. end
  17. function InRange(NPC,Spawn)
  18. GenericEcology2Callout(NPC, Spawn, faction)
  19. end
  20. function respawn(NPC)
  21. spawn(NPC)
  22. end
  23. function waypoints(NPC)
  24. MovementLoopAddLocation(NPC, -8.14, 3, 116.58, 1, 1)
  25. MovementLoopAddLocation(NPC, -8.14, 3, 116.58, 1, MakeRandomInt(20,35),"Dig")
  26. MovementLoopAddLocation(NPC, -8.14, 3, 116.58, 1, 0)
  27. MovementLoopAddLocation(NPC, -4.47, 3, 114.29, 1, 0)
  28. MovementLoopAddLocation(NPC, 7.44, 3, 106.62, 1, 1)
  29. MovementLoopAddLocation(NPC, 7.44, 3, 106.62, 1, 30,"EcologyEmotes")
  30. MovementLoopAddLocation(NPC, 8.53, 3, 111.42, 1, 1)
  31. MovementLoopAddLocation(NPC, 8.53, 3, 111.42, 1, 30,"EcologyEmotes")
  32. MovementLoopAddLocation(NPC, 12.62, 3, 105.88, 1, 0)
  33. MovementLoopAddLocation(NPC, 13.12, 3, 105.84, 1, 1)
  34. MovementLoopAddLocation(NPC, 13.12, 3, 105.84, 1, MakeRandomInt(20,35),"Dig")
  35. MovementLoopAddLocation(NPC, 13.12, 3, 105.84, 1, 0)
  36. MovementLoopAddLocation(NPC, 10.88, 3, 106.13, 1, 0)
  37. MovementLoopAddLocation(NPC, 6.87, 3, 107.69, 1, 0)
  38. MovementLoopAddLocation(NPC, -4.56, 3, 114.4, 1, 1)
  39. MovementLoopAddLocation(NPC, -4.56, 3, 114.4, 1, 30,"EcologyEmotes")
  40. MovementLoopAddLocation(NPC, -5.92, 3, 117.5, 1, 1)
  41. MovementLoopAddLocation(NPC, -5.92, 3, 117.5, 1, 30,"EcologyEmotes")
  42. end
  43. function Dig(NPC, Spawn)
  44. PlayFlavor(NPC, "","","gathering_search",0,0)
  45. end