9
3

awonderstruckQeynosresident.lua 4.2 KB

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