zonetoqeycatacombepic03deathlyscarabhive.lua 685 B

12345678910111213141516171819202122232425262728293031323334
  1. --[[
  2. Script Name : SpawnScripts/CryptBetrayal/zonetoqeycatacombepic03deathlyscarabhive.lua
  3. Script Author : Premierio015
  4. Script Date : 2021.10.19 09:10:26
  5. Script Purpose : Access to Deathly Scarab Hive zone
  6. :
  7. --]]
  8. local ForgottenPotionIntoTheHive = 5373 -- Forgotten Potion: Into the hive quest
  9. function spawn(NPC)
  10. end
  11. function can_use_command(NPC, Spawn, Command)
  12. if GetQuestStep(Spawn, ForgottenPotionIntoTheHive) == 3 or HasCompletedQuest(Spawn, ForgottenPotionIntoTheHive) then
  13. return true
  14. else
  15. return false
  16. end
  17. end
  18. function respawn(NPC)
  19. spawn(NPC)
  20. end
  21. function respawn(NPC)
  22. spawn(NPC)
  23. end