9
3

Highkeep.lua 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. --[[
  2. Script Name : SpawnScripts/NorthQeynos/Highkeep.lua
  3. Script Author : Dorbin
  4. Script Date : 2022.05.13 04:05:00
  5. Script Purpose :
  6. :
  7. --]]
  8. function spawn(NPC)
  9. end
  10. function hailed(NPC, Spawn)
  11. FaceTarget(NPC, Spawn)
  12. if GetFactionAmount(Spawn,11) <0 then
  13. FaceTarget(NPC, Spawn)
  14. choice = math.random(1,2)
  15. if choice == 1 then
  16. PlayFlavor(NPC, "", "", "shakefist", 0, 0, Spawn)
  17. elseif choice == 2 then
  18. PlayFlavor(NPC, "", "", "heckno", 0, 0, Spawn)
  19. end
  20. else
  21. RandomGreeting(NPC, Spawn)
  22. end
  23. end
  24. function respawn(NPC)
  25. spawn(NPC)
  26. end
  27. function RandomGreeting(NPC, Spawn)
  28. local choice = MakeRandomInt(1,3)
  29. if choice == 1 then
  30. PlayFlavor(NPC, "voiceover/english/voice_emotes/greetings/greetings_2_1054.mp3", "The clouds are filled with more than rain and thunder.", "", 0, 0, Spawn, 0)
  31. elseif choice == 2 then
  32. PlayFlavor(NPC, "voiceover/english/voice_emotes/greetings/greetings_3_1054.mp3", "Beware the presence of Freeport. The Overlord's reach has extended into the clouds.", "", 0, 0, Spawn, 0)
  33. elseif choice == 3 then
  34. PlayFlavor(NPC, "voiceover/english/voice_emotes/greetings/greetings_1_1054.mp3", "Beware the Ulteran Spires. They will lead you to dangers greater than the depths of Solusek's Eye.", "", 0, 0, Spawn, 0)
  35. end
  36. end