apacifiedQeynosresident.lua 4.4 KB

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