questsewerepic02entrance.lua 764 B

12345678910111213141516171819202122232425262728293031
  1. --[[
  2. Script Name : SpawnScripts/SerpentSewer/questsewerepic02entrance.lua
  3. Script Author : Premierio015
  4. Script Date : 2021.07.04 12:07:36
  5. Script Purpose :
  6. :
  7. --]]
  8. local MurkwaterUniform = 568
  9. local BackAndForth = 569
  10. function spawn(NPC)
  11. end
  12. function can_use_command(NPC, Spawn, Command)
  13. if Command == 'Open sewer grate' then
  14. if not HasCompletedQuest(Spawn, MurkwaterUniform) and not HasCompletedQuest(Spawn, BackAndForth) then
  15. return false
  16. elseif HasCompletedQuest(Spawn, MurkwaterUniform) and HasCompletedQuest(Spawn, BackAndForth) then
  17. return true
  18. end
  19. end
  20. end
  21. function respawn(NPC)
  22. spawn(NPC)
  23. end