zonetofprtsewer02gobblerockshideout.lua 628 B

12345678910111213141516171819202122232425262728
  1. --[[
  2. Script Name : SpawnScripts/Commonlands/zonetofprtsewer02gobblerockshideout.lua
  3. Script Author : Premierio015
  4. Script Date : 2021.07.16 03:07:45
  5. Script Purpose : Access to Gobblerock's Hideout zone
  6. :
  7. --]]
  8. local TheSewerItKey = 5321
  9. local AnOldKey = 3773
  10. function spawn(NPC)
  11. end
  12. function can_use_command(NPC, Spawn, Command)
  13. if HasItem(Spawn, AnOldKey) or HasQuest(Spawn, TheSewerItKey) then
  14. return true
  15. elseif not HasItem(Spawn, AnOldKey) then
  16. SendMessage(Spawn, "Requires a key", 20)
  17. return false
  18. end
  19. end
  20. function respawn(NPC)
  21. spawn(NPC)
  22. end