9
3

spawnkraoflaAFesteringProblem.lua 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. --[[
  2. Script Name : SpawnScripts/Commonlands/spawnkraoflaAFesteringProblem.lua
  3. Script Author : cynnar
  4. Script Date : 2023.04.10 05:04:33
  5. Script Purpose :
  6. :
  7. --]]
  8. local AFesteringProblem = 5800
  9. function spawn(NPC)
  10. end
  11. function respawn(NPC)
  12. spawn(NPC)
  13. end
  14. function QeynosinaCheck(NPC, Spawn)
  15. if HasQuest(Spawn, AFesteringProblem) and GetQuestStep(Spawn, AFesteringProblem) == 1 then
  16. allDead(NPC, Spawn)
  17. end
  18. end
  19. function allDead(NPC, Spawn)
  20. Say(NPC, "All Dead function")
  21. local zone = GetZone(NPC)
  22. local aQeynosianScout1 = GetSpawnByLocationID(zone, 299822)
  23. local aQeynosianScout2 = GetSpawnByLocationID(zone, 299824)
  24. local aQeynosianScout3 = GetSpawnByLocationID(zone, 299825)
  25. local aQeynosianProtector = GetSpawnByLocationID(zone, 299826)
  26. if GetSpawnByLocationID(zone, 299822) == nil then
  27. Say(NPC, "Spawn 299822 is false")
  28. end
  29. if GetSpawnByLocationID(zone, 299824) == nil then
  30. Say(NPC, "Spawn 299824 is false")
  31. end
  32. if GetSpawnByLocationID(zone, 299825) == nil then
  33. Say(NPC, "Spawn 299825 is false")
  34. end
  35. if GetSpawnByLocationID(zone, 299826) == nil then
  36. Say(NPC, "Spawn 299826 is false")
  37. end
  38. if IsAlive(aQeynosianScout1) == false and IsAlive(aQeynosianScout2) == false and IsAlive(aQeynosianScout3) == false and IsAlive(aQeynosianProtector) == false then
  39. Say(NPC, "All Dead")
  40. Say(NPC, "FUCK YOU")
  41. SpawnMob(zone, 330291, false, 427.20, -25.02, -894.543, 0)
  42. Say(NPC, "CUNTY FROG")
  43. end
  44. end