aFreeportmole.lua 3.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  1. --[[
  2. Script Name : SpawnScripts/QeynosCitizenshipTrialChamber/aFreeportmole.lua
  3. Script Author : Dorbin
  4. Script Date : 2022.08.31 03:08:06
  5. Script Purpose :
  6. :
  7. --]]
  8. local BQCitizen = 5718
  9. local CVQCitizen = 5719
  10. local GQCitizen = 5720
  11. local NQCitizen = 5721
  12. local SCQCitizen = 5722
  13. local WWQCitizen = 5723
  14. function spawn(NPC)
  15. local Level = GetLevel(NPC)
  16. local level1 = 5
  17. local level2 = 6
  18. local difficulty1 = 6
  19. local hp1 = 130
  20. local power1 = 65
  21. local difficulty2 = 6
  22. local hp2 = 150
  23. local power2 = 80
  24. if Level == level1 then
  25. SpawnSet(NPC, "difficulty", difficulty1)
  26. SpawnSet(NPC, "hp", hp1)
  27. SpawnSet(NPC, "power", power1)
  28. elseif Level == level2
  29. then
  30. SpawnSet(NPC, "difficulty", difficulty2)
  31. SpawnSet(NPC, "hp", hp2)
  32. SpawnSet(NPC, "power", power2)
  33. end
  34. waypoints(NPC)
  35. end
  36. function hailed(NPC, Spawn)
  37. end
  38. function respawn(NPC)
  39. spawn(NPC)
  40. end
  41. function aggro(NPC,Spawn)
  42. if GetGender(NPC)== 2 then
  43. choice = MakeRandomInt(1,2)
  44. if choice ==1 then
  45. PlayFlavor(NPC, "voiceover/english/halfelf_eco_evil_1/ft/halfelf/halfelf_eco_evil_1_hail_gf_e88fad9f.mp3", "Whoa!!! I don't remember saying I wanted to talk to you!", "", 3869016622, 3073089976, Spawn)
  46. else
  47. PlayFlavor(NPC, "", "I'll take you down just like that last knight!", "", 0, 0, Spawn, 0)
  48. end
  49. else
  50. choice = MakeRandomInt(1,2)
  51. if choice ==1 then
  52. PlayFlavor(NPC, "voiceover/english/halfelf_eco_evil_1/ft/halfelf/halfelf_eco_evil_1_hail_gm_7344f21b.mp3", "I'm in the mood to kick someone in the teeth.", "kick", 620861878, 995351111, Spawn, 0)
  53. else
  54. PlayFlavor(NPC, "", "I'll take you down just like that last knight!", "", 0, 0, Spawn, 0)
  55. end
  56. end
  57. end
  58. function death(NPC,Spawn)
  59. if HasQuest(Spawn,BQCitizen) then
  60. SetStepComplete(Spawn,BQCitizen,4)
  61. elseif HasQuest(Spawn,CVQCitizen) then
  62. SetStepComplete(Spawn,CVQCitizen,4)
  63. elseif HasQuest(Spawn,GQCitizen) then
  64. SetStepComplete(Spawn,GQCitizen,4)
  65. elseif HasQuest(Spawn,NQCitizen) then
  66. SetStepComplete(Spawn,NQCitizen,4)
  67. elseif HasQuest(Spawn,SCQCitizen) then
  68. SetStepComplete(Spawn,SCQCitizen,4)
  69. elseif HasQuest(Spawn,WWQCitizen) then
  70. SetStepComplete(Spawn,WWQCitizen,4)
  71. end
  72. if GetGender(NPC)== 2 then
  73. PlayFlavor(NPC, "voiceover/english/optional3/halfelf_base_1/ft/halfelf/halfelf_base_1_1_death_gf_610c650e.mp3", "You must flee! I'll try to hold them.", "", 1612338229, 10301262, Spawn, 0)
  74. else
  75. PlayFlavor(NPC, "voiceover/english/halfelf_base_1/ft/halfelf/halfelf_base_1_1_death_gm_610c650e.mp3", "You must flee! I'll try to hold them.", "", 3580386891, 3023137994, Spawn, 0)
  76. end
  77. end
  78. function waypoints(NPC)
  79. MovementLoopAddLocation(NPC, -5.55, -0.39, -9.49, 2, 8)
  80. MovementLoopAddLocation(NPC, -5.62, -0.39, 0.64, 2, 6)
  81. MovementLoopAddLocation(NPC, -2.9, -0.39, 0.77, 2, 8)
  82. MovementLoopAddLocation(NPC, -5.26, -0.39, -7.92, 2, 8)
  83. MovementLoopAddLocation(NPC, -2.84, -0.39, 2.12, 2, 6)
  84. MovementLoopAddLocation(NPC, -4.8, -0.39, 4.41, 2, 5)
  85. end