GilpJadefist.lua 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. --[[
  2. Script Name : SpawnScripts/qeynos_combined02/GilpJadefist.lua
  3. Script Author : Rylec
  4. Script Date : 2021.02.19 11:02:17
  5. Script Purpose :
  6. :
  7. --]]
  8. require "SpawnScripts/Generic/DialogModule"
  9. function spawn(NPC)
  10. local model = MakeRandomInt(1,3)
  11. if model == 1 then
  12. SetModelType(NPC, "76")
  13. SpawnSet(NPC,"soga_model_type", "76")
  14. SpawnSet(NPC,"skin_color", "138 0 137")
  15. -- SpawnSet(NPC,"eye_color", "234 198 255")
  16. elseif model == 2 then
  17. SetModelType(NPC, "4940")
  18. SpawnSet(NPC,"soga_model_type", "4940")
  19. SpawnSet(NPC,"skin_color", "0 53 109")
  20. -- SpawnSet(NPC,"eye_color", "45 53 0")
  21. elseif model == 3 then
  22. SetModelType(NPC, "4943")
  23. SpawnSet(NPC,"soga_model_type", "4943")
  24. SpawnSet(NPC,"skin_color", "252 124 104")
  25. -- SpawnSet(NPC,"eye_color", "1 192 140")
  26. elseif model == 4 then
  27. SetModelType(NPC, "4944")
  28. SpawnSet(NPC,"soga_model_type", "4944")
  29. SpawnSet(NPC,"skin_color", "0 1 47")
  30. -- SpawnSet(NPC,"eye_color", "1 192 140")
  31. elseif model == 5 then
  32. SetModelType(NPC, "4940")
  33. elseif model == 6 then
  34. SetModelType(NPC, "4941")
  35. elseif model == 7 then
  36. SetModelType(NPC, "4942")
  37. elseif model == 8 then
  38. SetModelType(NPC, "4943")
  39. else
  40. SetModelType(NPC, "4944")
  41. end
  42. end
  43. function hailed(NPC, Spawn)
  44. FaceTarget(NPC, Spawn)
  45. Dialog.New(NPC, Spawn)
  46. Dialog.AddDialog("May your path always be clear.")
  47. Dialog.AddOption("Thanks.")
  48. Dialog.Start()
  49. end
  50. function respawn(NPC)
  51. spawn(NPC)
  52. end