LordRee.lua 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. --[[
  2. Script Name : SpawnScripts/WailingCaves/LordRee.lua
  3. Script Author : premierio015
  4. Script Date : 2020.06.30 09:06:01
  5. Script Purpose :
  6. :
  7. --]]
  8. blackguard3 = 133769612
  9. blackguard4 = 133769613
  10. function spawn(NPC)
  11. SetTempVariable(NPC, "HAILED1", "true")
  12. end
  13. function hailed(NPC, Spawn)
  14. if GetTempVariable(NPC, "HAILED1") == "true" then
  15. FaceTarget(NPC, Spawn)
  16. conversation = CreateConversation()
  17. PlayFlavor(NPC, "lord_ree/wailingcaves/lord_ree/lord_ree000.mp3", "", "", 376398214, 2276802800, Spawn)
  18. AddConversationOption(conversation, "Your threats don't scare me!", "Phase1")
  19. AddConversationOption(conversation, "Yeah, good idea.")
  20. StartConversation(conversation, NPC, Spawn, "You are puny and weak! Leave now or feel my wrath!")
  21. SetTempVariable(NPC, "HAILED1", "false")
  22. end
  23. end
  24. function respawn(NPC)
  25. spawn(NPC)
  26. end
  27. function Phase1(NPC, Spawn)
  28. PlayFlavor(NPC, "", "Ha ha ha! Blackguards, take care of this rodent!", "cackle", 1689589577, 4560189, Spawn)
  29. zone = GetZone(Spawn)
  30. BlackGuardSpawn3 = SpawnByLocationID(zone, blackguard3)
  31. BlackGuardSpawn4 = SpawnByLocationID(zone, blackguard4)
  32. end
  33. function FinalPhase(NPC, Spawn)
  34. local zone = GetZone(NPC)
  35. local Concubine1 = GetSpawnByLocationID(zone, 404836)
  36. local Concubine2 = GetSpawnByLocationID(zone, 133769549)
  37. local Concubine3 = GetSpawnByLocationID(zone, 133769550)
  38. local Concubine4 = GetSpawnByLocationID(zone, 133769551)
  39. if Concubine1 ~= nil then
  40. SpawnSet(Concubine1, "model_type", "2901")
  41. SpawnSet(Concubine1, "attackable", "1")
  42. SpawnSet(Concubine1, "show_level", "1")
  43. SpawnSet(Concubine1, "faction", "1")
  44. SpawnSet(Concubine2, "model_type", "2901")
  45. SpawnSet(Concubine2, "attackable", "1")
  46. SpawnSet(Concubine2, "show_level", "1")
  47. SpawnSet(Concubine2, "faction", "1")
  48. SpawnSet(Concubine3, "model_type", "2901")
  49. SpawnSet(Concubine3, "attackable", "1")
  50. SpawnSet(Concubine3, "show_level", "1")
  51. SpawnSet(Concubine3, "faction", "1")
  52. SpawnSet(Concubine4, "model_type", "2901")
  53. SpawnSet(Concubine4, "attackable", "1")
  54. SpawnSet(Concubine4, "show_level", "1")
  55. SpawnSet(Concubine4, "faction", "1")
  56. SpawnSet(NPC, "attackable", "1")
  57. SpawnSet(NPC, "show_level", "1")
  58. SpawnSet(NPC, "faction", "1")
  59. end
  60. end