GuardMoor.lua 5.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118
  1. --[[
  2. Script Name : SpawnScripts/PeatBog/GuardMoor.lua
  3. Script Purpose : Guard Moor <Guard>
  4. Script Author : Scatman
  5. Script Date : 2009.05.15
  6. Script Notes :
  7. --]]
  8. function spawn(NPC)
  9. MovementLoopAddLocation(NPC, 584.25, -32.33, 441.91, 2, 0)
  10. MovementLoopAddLocation(NPC, 598.15, -33.1, 445.74, 2, 0)
  11. MovementLoopAddLocation(NPC, 607.76, -33.11, 446.59, 2, 0)
  12. MovementLoopAddLocation(NPC, 612.02, -33.2, 445.92, 2, 0)
  13. MovementLoopAddLocation(NPC, 617.22, -33.22, 444.66, 2, 0)
  14. MovementLoopAddLocation(NPC, 621.62, -33.22, 442.55, 2, 0)
  15. MovementLoopAddLocation(NPC, 627.85, -33.27, 435.54, 2, 0)
  16. MovementLoopAddLocation(NPC, 636.71, -33.06, 423.79, 2, 0)
  17. MovementLoopAddLocation(NPC, 641.7, -33.35, 420.61, 2, 0)
  18. MovementLoopAddLocation(NPC, 646.74, -33.35, 419.53, 2, 0)
  19. MovementLoopAddLocation(NPC, 652.65, -33.38, 419.18, 2, 0)
  20. MovementLoopAddLocation(NPC, 657.5, -33.35, 419.74, 2, 0)
  21. MovementLoopAddLocation(NPC, 672.32, -33.37, 423.81, 2, 0)
  22. MovementLoopAddLocation(NPC, 689.76, -33.36, 425.47, 2, 0)
  23. MovementLoopAddLocation(NPC, 699.01, -33.37, 427.68, 2, 0)
  24. MovementLoopAddLocation(NPC, 704.67, -33.19, 428.52, 2, 0)
  25. MovementLoopAddLocation(NPC, 731.1, -33.27, 424.74, 2, 0)
  26. MovementLoopAddLocation(NPC, 736.09, -33.24, 423.34, 2, 0)
  27. MovementLoopAddLocation(NPC, 740.37, -33.19, 421.48, 2, 0)
  28. MovementLoopAddLocation(NPC, 744.27, -33.18, 418.17, 2, 0)
  29. MovementLoopAddLocation(NPC, 746.42, -33.22, 412.98, 2, 0)
  30. MovementLoopAddLocation(NPC, 746.44, -33.13, 408.27, 2, 0)
  31. MovementLoopAddLocation(NPC, 745.29, -32.91, 403.56, 2, 0)
  32. MovementLoopAddLocation(NPC, 742.62, -32.6, 399.85, 2, 0)
  33. MovementLoopAddLocation(NPC, 735.4, -32.26, 389.95, 2, 0)
  34. MovementLoopAddLocation(NPC, 745.03, -32.83, 403.05, 2, 0)
  35. MovementLoopAddLocation(NPC, 746.26, -33.1, 407.56, 2, 0)
  36. MovementLoopAddLocation(NPC, 746.27, -33.22, 412.85, 2, 0)
  37. MovementLoopAddLocation(NPC, 744.74, -33.2, 417.52, 2, 0)
  38. MovementLoopAddLocation(NPC, 741.14, -33.18, 420.85, 2, 0)
  39. MovementLoopAddLocation(NPC, 736.75, -33.19, 423.34, 2, 0)
  40. MovementLoopAddLocation(NPC, 731.96, -33.25, 424.64, 2, 0)
  41. MovementLoopAddLocation(NPC, 705.05, -33.18, 428.57, 2, 0)
  42. MovementLoopAddLocation(NPC, 699.7, -33.35, 427.85, 2, 0)
  43. MovementLoopAddLocation(NPC, 689.17, -33.36, 425.51, 2, 0)
  44. MovementLoopAddLocation(NPC, 673.34, -33.36, 424.36, 2, 0)
  45. MovementLoopAddLocation(NPC, 657.78, -33.32, 419.86, 2, 0)
  46. MovementLoopAddLocation(NPC, 652.59, -33.37, 419.05, 2, 0)
  47. MovementLoopAddLocation(NPC, 647.36, -33.36, 419.62, 2, 0)
  48. MovementLoopAddLocation(NPC, 642.06, -33.35, 420.83, 2, 0)
  49. MovementLoopAddLocation(NPC, 637.23, -33.12, 423.53, 2, 0)
  50. MovementLoopAddLocation(NPC, 633.44, -32.81, 427.2, 2, 0)
  51. MovementLoopAddLocation(NPC, 625.27, -33.22, 439.43, 2, 0)
  52. MovementLoopAddLocation(NPC, 621.78, -33.21, 442.6, 2, 0)
  53. MovementLoopAddLocation(NPC, 617.1, -33.25, 444.71, 2, 0)
  54. MovementLoopAddLocation(NPC, 612.48, -33.21, 446.16, 2, 0)
  55. MovementLoopAddLocation(NPC, 607.66, -33.11, 446.52, 2, 0)
  56. MovementLoopAddLocation(NPC, 603.23, -33.11, 446.57, 2, 0)
  57. MovementLoopAddLocation(NPC, 598.56, -33.11, 446.12, 2, 0)
  58. MovementLoopAddLocation(NPC, 583.64, -32.33, 441.48, 2, 0)
  59. MovementLoopAddLocation(NPC, 567.05, -32.83, 432.89, 2, 0)
  60. end
  61. function respawn(NPC)
  62. spawn(NPC)
  63. end
  64. function hailed(NPC, Spawn)
  65. end
  66. function aggro(NPC,Spawn)
  67. if math.random(1,100) <70 then
  68. local choice = MakeRandomInt(1,3)
  69. math.randomseed(os.time())
  70. if choice == 1 then
  71. PlayFlavor(NPC, "voiceover/english/human_base_1/ft/human/human_base_1_1_aggro_gm_583690dc.mp3", "Summon help! We have invaders!", "", 3340212225, 279643307)
  72. elseif choice == 2 then
  73. PlayFlavor(NPC, "voiceover/english/human_base_1/ft/human/human_base_1_1_aggro_gm_a203c9ec.mp3", "Prepare to face your doom, meddler!", "", 31496819882, 365167432)
  74. elseif choice == 3 then
  75. PlayFlavor(NPC, "voiceover/english/human_base_1/ft/human/human_base_1_1_aggro_gm_a30c4f9d.mp3", "To arms!", "", 1238020980, 748146443)
  76. end
  77. end
  78. end
  79. function death(NPC, Spawn)
  80. math.randomseed(os.time())
  81. PlayFlavor(NPC, "voiceover/english/human_base_1/ft/human/human_base_1_1_death_gm_7612214f.mp3", "All hands retreat!", "", 3033325782, 1103449586)
  82. end
  83. function halfhealth(NPC,Spawn)
  84. if math.random(1,100) <60 then
  85. local choice = MakeRandomInt(1,3)
  86. math.randomseed(os.time())
  87. if choice == 1 then
  88. PlayFlavor(NPC, "voiceover/english/human_base_1/ft/human/human_base_1_1_halfhealth_gm_1babf022.mp3", "Is that all you have?", "", 170267964, 1158805306)
  89. elseif choice == 2 then
  90. PlayFlavor(NPC, "voiceover/english/human_base_1/ft/human/human_base_1_1_halfhealth_gm_8529e507.mp3", "I can't hold'm forever!", "", 644448824, 755050547)
  91. elseif choice == 3 then
  92. PlayFlavor(NPC, "voiceover/english/human_base_1/ft/human/human_base_1_1_battle_gm_3b9f3e78.mp3", "[OPTION 3 HALFHEALTH TXT]", "", 3446258592, 1927510326)
  93. end
  94. end
  95. end
  96. function victory(NPC,Spawn)
  97. if math.random(1,100) <60 then
  98. local choice = MakeRandomInt(1,3)
  99. math.randomseed(os.time())
  100. if choice == 1 then
  101. PlayFlavor(NPC, "voiceover/english/human_base_1/ft/human/human_base_1_1_victory_gm_4553e1e0.mp3", "Flee now or meet this one's fate.", "", 3032162747, 1359206304)
  102. elseif choice == 2 then
  103. PlayFlavor(NPC, "voiceover/english/human_base_1/ft/human/human_base_1_1_victory_gm_153f12ff.mp3", "One down!", "", 3009518664, 4140389760)
  104. elseif choice == 3 then
  105. PlayFlavor(NPC, "voiceover/english/human_base_1/ft/human/human_base_1_1_victory_gm_ec0cd85a.mp3", "I hope they're all this easy!", "", 2687289628, 2303639320)
  106. end
  107. end
  108. end