aChrykoriguard_patroller1.lua 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. --[[
  2. Script Name : SpawnScripts/TimorousDeep/aChrykoriguard_patroller1.lua
  3. Script Purpose : Roaming guards
  4. Script Author : Scatman
  5. Script Date : 2008-09-01
  6. Script Notes :
  7. --]]
  8. function spawn(NPC)
  9. MovementLoopAddLocation(NPC, -291.45, 13.40, -26.39, 2, 0)
  10. MovementLoopAddLocation(NPC, -318.23, 13.18, -46.63, 2, 0)
  11. MovementLoopAddLocation(NPC, -340.02, 9.96, -50.15, 2, 0)
  12. MovementLoopAddLocation(NPC, -358.45, 7.20, -44.42, 2, 0)
  13. MovementLoopAddLocation(NPC, -372.86, 2.94, -34.74, 2, 0)
  14. MovementLoopAddLocation(NPC, -367.47, 2.96, -20.96, 2, 0)
  15. MovementLoopAddLocation(NPC, -358.31, 2.28, -14.16, 2, 0)
  16. MovementLoopAddLocation(NPC, -370.31, 3.35, -25.42, 2, 0)
  17. MovementLoopAddLocation(NPC, -372.35, 2.83, -38.54, 2, 0)
  18. MovementLoopAddLocation(NPC, -349.62, 8.50, -50.10, 2, 0)
  19. MovementLoopAddLocation(NPC, -305.64, 13.16, -41.70, 2, 0)
  20. MovementLoopAddLocation(NPC, -282.62, 16.61, -17.80, 2, 0)
  21. MovementLoopAddLocation(NPC, -279.62, 20.50, -9.87, 2, 0)
  22. end
  23. function hailed(NPC, Spawn)
  24. FaceTarget(NPC, Spawn)
  25. choice = math.random(1, 2)
  26. if choice == 1 then
  27. PlayFlavor(NPC, "voiceover/english/rok_questvo/a_chrykori_lookout/_exp04/exp04_rgn_timorous_deep/sarnak/sarnak_lookout_hail_a639754.mp3", "We can converse later if you like.", "", 2866606885, 2815871155, Spawn)
  28. elseif choice == 2 then
  29. PlayFlavor(NPC, "voiceover/english/rok_questvo/a_chrykori_lookout/_exp04/exp04_rgn_timorous_deep/sarnak/sarnak_lookout_hail_dd9a183e.mp3", "Now is not the time.", "", 1408102759, 3899540373, Spawn)
  30. end
  31. end
  32. function respawn(NPC)
  33. spawn(NPC)
  34. end