abrightenedQeynosresident.lua 4.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. --[[
  2. Script Name : SpawnScripts/qeynos_combined02/abrightenedQeynosresident.lua
  3. Script Author : Rylec
  4. Script Date : 2021.01.23 01:01:55
  5. Script Purpose :
  6. :
  7. --]]
  8. function spawn(NPC)
  9. local model = MakeRandomInt(1,2)
  10. if model == 1 then
  11. SetModelType(NPC, "132")
  12. SpawnSet(NPC, "soga_model_type", "132")
  13. SpawnSet(NPC, "chest_type", "5529")
  14. SpawnSet(NPC, "legs_type", "5530")
  15. else
  16. SetModelType(NPC, "134")
  17. SpawnSet(NPC, "soga_model_type", "134")
  18. SpawnSet(NPC, "chest_type", "5533")
  19. SpawnSet(NPC, "legs_type", "5534")
  20. end
  21. SetPlayerProximityFunction(NPC, 20, "InRange")
  22. end
  23. function hailed(NPC, Spawn)
  24. FaceTarget(NPC, Spawn)
  25. local type = GetModelType(NPC)
  26. local voice = MakeRandomInt(1,3)
  27. if type == 132 then
  28. PlayFlavor(NPC, "voiceover/english/voice_emotes/greetings/greetings_"..voice.."_1033.mp3", "", "", 0, 0, Spawn)
  29. else
  30. PlayFlavor(NPC, "voiceover/english/voice_emotes/greetings/greetings_"..voice.."_1004.mp3", "", "", 0, 0, Spawn)
  31. end
  32. InRange(NPC)
  33. end
  34. function respawn(NPC)
  35. spawn(NPC)
  36. end
  37. function InRange(NPC)
  38. local say = MakeRandomInt(1,19)
  39. if say == 1 then
  40. PlayFlavor(NPC, "", "Look upon our great city! Threatened time and time again, but Qeynos still stands.", "yeah", 0, 0, Spawn)
  41. elseif say == 2 then
  42. PlayFlavor(NPC, "", "Luclin is whole again... I never thought I'd see such a thing.", "shrug", 0, 0, Spawn)
  43. elseif say == 3 then
  44. PlayFlavor(NPC, "", "Luclin shines so bright...", "nod", 0, 0, Spawn)
  45. elseif say == 4 then
  46. PlayFlavor(NPC, "", "If we can make Luclin whole, then there is nothing that Qeynos can't accomplish!", "sigh", 0, 0, Spawn)
  47. elseif say == 5 then
  48. PlayFlavor(NPC, "", "We must not doubt Queen Antonia. We owe much to her leadership!", "yeah", 0, 0, Spawn)
  49. elseif say == 6 then
  50. PlayFlavor(NPC, "", "The night sky is so different now, I love it!", "yeah", 0, 0, Spawn)
  51. elseif say == 7 then
  52. PlayFlavor(NPC, "", "See! We never needed Freeport's help! Queen Antonia can do it all on her own!", "agree", 0, 0, Spawn)
  53. elseif say == 8 then
  54. PlayFlavor(NPC, "", "I heard some have found a way to Luclin. It is a new beginning for us now!", "yeah", 0, 0, Spawn)
  55. elseif say == 9 then
  56. PlayFlavor(NPC, "", "Freeportians will learn the errors of their ways, one day.", "crazy", 0, 0, Spawn)
  57. elseif say == 10 then
  58. PlayFlavor(NPC, "", "Kerafyrm is still up there... trapped, but for how long?", "scared", 0, 0, Spawn)
  59. elseif say == 11 then
  60. PlayFlavor(NPC, "", "I can look up at Luclin and know I will never see Kerafyrm's shadow again.", "agree", 0, 0, Spawn)
  61. elseif say == 12 then
  62. PlayFlavor(NPC, "", "Luclin... it kind of looks like an egg now, doesn't it? I hope Kerafyrm cannot get free...", "shakefist", 0, 0, Spawn)
  63. elseif say == 13 then
  64. PlayFlavor(NPC, "", "Luclin is so beautiful... but it's terrifying to know what she harbors within.", "cringe", 0, 0, Spawn)
  65. elseif say == 14 then
  66. PlayFlavor(NPC, "", "May the gods continue to bless us.", "agree", 0, 0, Spawn)
  67. elseif say == 15 then
  68. PlayFlavor(NPC, "", "Even if the shissar found a way off Luclin, Queen Antonia wouldn't let any harm come to us.", "scream", 0, 0, Spawn)
  69. elseif say == 16 then
  70. PlayFlavor(NPC, "", "I know there are those who wish harm upon Qeynos, but I just feel sorry for them.", "sad", 0, 0, Spawn)
  71. elseif say == 17 then
  72. PlayFlavor(NPC, "", "We can all breathe a sigh of relief. Norrath now has a new friend in the sky, and she keeps us safe from Kerafyrm's wrath.", "yes", 0, 0, Spawn)
  73. elseif say == 18 then
  74. PlayFlavor(NPC, "", "Luclin represents an end to the war, an end to the Awakened. We must thank her.", "bow", 0, 0, Spawn)
  75. else
  76. PlayFlavor(NPC, "", "I heard some have found a way to Luclin. It is a new beginning for us now!", "yeah", 0, 0, Spawn)
  77. end
  78. end