SolomenStormwatch.lua 2.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. --[[
  2. Script Name : SpawnScripts/ElddarGrove/SolomenStormwatch.lua
  3. Script Purpose : Solomen Stormwatch
  4. Script Author : John Adams
  5. Script Date : 2008.09.28
  6. Script Notes : Updated dialogue 5.1.2022 Dorbin (Should be race check dialogue, but missing woodelf male)
  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. 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 LeaveRange(NPC, Spawn)
  24. end
  25. --[[function RandomGreeting(NPC, Spawn)
  26. local choice = MakeRandomInt(1,3)
  27. if choice == 1 then
  28. PlayFlavor(NPC, "", "I too long for my home in Faydark. Someday I am sure Tunare will answer us.", "", 0, 0, Spawn, 0)
  29. elseif choice == 2 then
  30. PlayFlavor(NPC, "", "The city is not the most beautiful place in Norrath, but it is at least familiar.", "", 0, 0, Spawn, 0)
  31. elseif choice == 3 then
  32. PlayFlavor(NPC, "", "To be among the highest leaves and branches of a tree is to feel free.", "", 0, 0, Spawn, 0)
  33. end
  34. end]]--
  35. function waypoints(NPC)
  36. MovementLoopAddLocation(NPC, 777.54, -21.87, -343.22, 2, math.random(0,20))
  37. MovementLoopAddLocation(NPC, 772.62, -18.87, -330.06, 2, 0)
  38. MovementLoopAddLocation(NPC, 740.87, -16.36, -299.49, 2, 0)
  39. MovementLoopAddLocation(NPC, 732.93, -17.04, -292.62, 2, 0)
  40. MovementLoopAddLocation(NPC, 722.48, -17.15, -283.36, 2, 0)
  41. MovementLoopAddLocation(NPC, 652.64, -18.32, -241.32, 2, 0)
  42. MovementLoopAddLocation(NPC, 651.35, -21.59, -292.71, 2, 0)
  43. MovementLoopAddLocation(NPC, 642.38, -13.12, -368.42, 2, 0)
  44. MovementLoopAddLocation(NPC, 650.67, -11.5, -392.98, 2, 0)
  45. MovementLoopAddLocation(NPC, 639.35, -12.48, -397.18, 2, 0)
  46. MovementLoopAddLocation(NPC, 618.26, -15.59, -401.83, 2, 0)
  47. MovementLoopAddLocation(NPC, 603.65, -17.89, -390.81, 2,1)
  48. MovementLoopAddLocation(NPC, 603.65, -17.89, -390.81, 2, math.random(8,20),"EcologyEmotes")
  49. MovementLoopAddLocation(NPC, 603.65, -17.89, -390.81, 2,0)
  50. MovementLoopAddLocation(NPC, 618.26, -15.59, -401.83, 2, 0)
  51. MovementLoopAddLocation(NPC, 639.35, -12.48, -397.18, 2, 0)
  52. MovementLoopAddLocation(NPC, 650.67, -11.5, -392.98, 2, 0)
  53. MovementLoopAddLocation(NPC, 642.38, -13.12, -368.42, 2, 0)
  54. MovementLoopAddLocation(NPC, 651.35, -21.59, -292.71, 2, 0)
  55. MovementLoopAddLocation(NPC, 652.64, -18.32, -241.32, 2, 0)
  56. MovementLoopAddLocation(NPC, 722.48, -17.15, -283.36, 2, 0)
  57. MovementLoopAddLocation(NPC, 732.93, -17.04, -292.62, 2, 0)
  58. MovementLoopAddLocation(NPC, 740.87, -16.36, -299.49, 2, 0)
  59. MovementLoopAddLocation(NPC, 772.62, -18.87, -330.06, 2, 0)
  60. MovementLoopAddLocation(NPC, 777.54, -21.87, -343.22, 2, math.random(0,20))
  61. end