LieutenantWestfall.lua 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. --[[
  2. Script Name : SpawnScripts/QueensColony/LieutenantWestfall.lua
  3. Script Author : premierio015
  4. Script Date : 2020.08.05
  5. Script Purpose : Lieutenant Westfall dialog
  6. Notes :
  7. --]]
  8. function spawn(NPC)
  9. SetTempVariable(NPC, "HAILED1", "true")
  10. end
  11. function respawn(NPC)
  12. spawn(NPC)
  13. end
  14. function hailed(NPC, Spawn)
  15. if GetTempVariable(NPC, "HAILED1") == "true" then
  16. PlayFlavor(NPC, "", "What's that there! To arms, the Morak are coming!", "point", 1689589577, 4560189, Spawn)
  17. zone = GetZone(Spawn)
  18. Morak1 = SpawnByLocationID(zone, 428874)
  19. Morak2= SpawnByLocationID(zone, 428880)
  20. Morak3 = SpawnByLocationID(zone, 428890)
  21. SetTempVariable(NPC, "HAILED1", "false")
  22. AddTimer(NPC, 300000, "hailed2")
  23. elseif GetTempVariable(NPC, "HAILED1") == "false" then
  24. local choice = math.random(1, 2)
  25. if choice == 1 then
  26. PlayFlavor(NPC, "", "Hopefully Mara'Vaen can help our lost scouts.", "", 1689589577, 4560189, Spawn)
  27. else
  28. PlayFlavor(NPC, "", "Keep your eyes peeled, the Morak have risen once again.", "peer", 1689589577, 4560189, Spawn)
  29. end
  30. end
  31. end
  32. function hailed2(NPC, Spawn)
  33. SetTempVariable(NPC, "HAILED1", "true")
  34. end
  35. function aggro(NPC)
  36. local choice = math.random(1,2)
  37. if choice == 1 then
  38. PlayFlavor(NPC, "voiceover/english/human_base_1/ft/human/human_base_1_1_aggro_gm_a203c9ec.mp3", "Prepare to face your doom, meddler.", "", 1496819882, 365167432)
  39. else
  40. PlayFlavor(NPC, "voiceover/english/human_base_1/ft/human/human_base_1_1_aggro_gm_a30c4f9d.mp3", "To arms!", "", 1238020980, 748146443)
  41. end
  42. end
  43. function killed(NPC)
  44. local choice = math.random(1,3)
  45. if choice == 1 then
  46. 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)
  47. elseif choice == 2 then
  48. 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)
  49. else
  50. PlayFlavor(NPC, "voiceover/english/human_base_1/ft/human/human_base_1_1_victory_gm_153f12ff.mp3", "One down!", "", 3009518664, 4140389760)
  51. end
  52. end