zonetofallengate02.lua 564 B

1234567891011121314151617181920212223242526
  1. --[[
  2. Script Name : SpawnScripts/Commonlands/zonetofallengate02.lua
  3. Script Author : Premierio015
  4. Script Date : 2021.07.20 09:07:10
  5. Script Purpose :
  6. :
  7. --]]
  8. local KeyToFallenGate = 5252
  9. function spawn(NPC)
  10. end
  11. function can_use_command(NPC, Spawn, Command)
  12. if HasCompletedQuest(Spawn, KeyToFallenGate) then
  13. return true
  14. elseif not HasCompletedQuest(Spawn, KeyToFallenGate) then
  15. SendMessage(Spawn, "This gates are closed", 20)
  16. return false
  17. end
  18. end
  19. function respawn(NPC)
  20. spawn(NPC)
  21. end