aGraystoneGuildbruiserDojoBarbarian133772269.lua 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112
  1. --[[
  2. Script Name : SpawnScripts/qeynos_combined02/aGraystoneGuildbruiserDojoBarbarian133772269.lua
  3. Script Author : Rylec
  4. Script Date : 2021.03.07 02:03:33
  5. Script Purpose :
  6. :
  7. --]]
  8. function spawn(NPC)
  9. SetModelType(NPC, "112") -- barbarian male
  10. SpawnSet(NPC, "soga_model_type", "112")
  11. SpawnSet(NPC, "chest_type", "5461")
  12. SpawnSet(NPC, "legs_type", "5462")
  13. SpawnSet(NPC, "hair_type", "1135")
  14. SpawnSet(NPC, "soga_hair_type", "1135")
  15. SpawnSet(NPC, "facial_hair_type", "1186")
  16. SpawnSet(NPC, "soga_facial_hair_type", "1186")
  17. SpawnSet(NPC, "skin_color", "255 255 255")
  18. SpawnSet(NPC, "soga_skin_color", "255 255 255")
  19. SpawnSet(NPC, "eye_color", "102 154 140")
  20. SpawnSet(NPC, "soga_eye_color", "102 154 140")
  21. SpawnSet(NPC, "hair_color1", "38 22 21")
  22. SpawnSet(NPC, "soga_hair_color1", "38 22 21")
  23. SpawnSet(NPC, "hair_color2", "120 50 0")
  24. SpawnSet(NPC, "soga_hair_color2", "120 50 0")
  25. SpawnSet(NPC, "hair_highlight", "29 21 28")
  26. SpawnSet(NPC, "soga_hair_highlight", "29 21 28")
  27. SpawnSet(NPC, "hair_type_color", "0 0 0")
  28. SpawnSet(NPC, "soga_hair_type_color", "0 0 0")
  29. SpawnSet(NPC, "hair_face_color", "0 0 0")
  30. SpawnSet(NPC, "soga_hair_face_color", "0 0 0")
  31. SetEquipment(NPC, 3, 991, 255, 255, 255, 255, 255, 255)
  32. SetEquipment(NPC, 5, 0)
  33. SetEquipment(NPC, 6, 1010, 255, 255, 255, 255, 255, 255)
  34. SetEquipment(NPC, 7, 4570, 255, 255, 255, 255, 255, 255)
  35. SetEquipment(NPC, 8, 992, 255, 255, 255, 255, 255, 255)
  36. EmoteLoop(NPC)
  37. end
  38. function hailed(NPC, Spawn)
  39. FaceTarget(NPC, Spawn)
  40. local voice = MakeRandomInt(1,3)
  41. PlayFlavor(NPC, "voiceover/english/voice_emotes/greetings/greetings_"..voice.."_1002.mp3", "", "", 0, 0, Spawn)
  42. local Chat_Dialogue = MakeRandomInt(1,3)
  43. if Chat_Dialogue == 1 then
  44. Say(NPC, "There is nothing duller than seeing one of those pale face monks. However, I must say they do put up a good fight during the training sessions.")
  45. elseif Chat_Dialogue == 2 then
  46. Say(NPC, "This place sure is as exciting as looking at a Koada'Dal's face. Where is a good fight when you need one!")
  47. elseif Chat_Dialogue == 3 then
  48. Say(NPC, "Tell me, would you rather be in a good fight or hug a tree like those Tunarians do?")
  49. else
  50. Say(NPC, "What this place need is a good alehouse!")
  51. end
  52. end
  53. function respawn(NPC)
  54. spawn(NPC)
  55. end
  56. function EmoteLoop(NPC)
  57. local choice = MakeRandomInt(1,14)
  58. local timer = math.random(5000,10000)
  59. if choice == 1 then -- cackle
  60. PlayAnimation(NPC, 125)
  61. AddTimer(NPC, timer, "EmoteLoop")
  62. elseif choice == 2 then -- converse_male04
  63. PlayAnimation(NPC, 2983)
  64. AddTimer(NPC, timer, "EmoteLoop")
  65. elseif choice == 3 then -- confused
  66. PlayAnimation(NPC, 11214)
  67. AddTimer(NPC, timer, "EmoteLoop")
  68. elseif choice == 4 then -- converse_male05
  69. PlayAnimation(NPC, 11236)
  70. AddTimer(NPC, timer, "EmoteLoop")
  71. elseif choice == 5 then -- converse_male06
  72. PlayAnimation(NPC, 11237)
  73. AddTimer(NPC, timer, "EmoteLoop")
  74. elseif choice == 6 then -- converse_male07
  75. PlayAnimation(NPC, 11238)
  76. AddTimer(NPC, timer, "EmoteLoop")
  77. elseif choice == 7 then -- converse_male10
  78. PlayAnimation(NPC, 11241)
  79. AddTimer(NPC, timer, "EmoteLoop")
  80. elseif choice == 8 then -- converse_male11
  81. PlayAnimation(NPC, 11242)
  82. AddTimer(NPC, timer, "EmoteLoop")
  83. elseif choice == 9 then -- doubletake
  84. PlayAnimation(NPC, 11415)
  85. AddTimer(NPC, timer, "EmoteLoop")
  86. elseif choice == 10 then -- happy
  87. PlayAnimation(NPC, 11668)
  88. AddTimer(NPC, timer, "EmoteLoop")
  89. elseif choice == 11 then -- heckno
  90. PlayAnimation(NPC, 11680)
  91. AddTimer(NPC, timer, "EmoteLoop")
  92. elseif choice == 12 then -- howl
  93. PlayAnimation(NPC, 11718)
  94. AddTimer(NPC, timer, "EmoteLoop")
  95. elseif choice == 13 then -- smile
  96. PlayAnimation(NPC, 12285)
  97. AddTimer(NPC, timer, "EmoteLoop")
  98. else -- wink
  99. PlayAnimation(NPC, 13304)
  100. AddTimer(NPC, timer, "EmoteLoop")
  101. end
  102. end