mipiratehideout.lua 668 B

1234567891011121314151617181920212223242526272829
  1. --[[
  2. Script Name : SpawnScripts/Antonica/mipiratehideout.lua
  3. Script Author : Dorbin
  4. Script Date : 2023.05.21 01:05:37
  5. Script Purpose :
  6. :
  7. --]]
  8. Brass1 = 5813
  9. function spawn(NPC)
  10. SetRequiredQuest(NPC,Brass1,1)
  11. end
  12. function casted_on(NPC, Spawn, Message)
  13. if Message == "enter the cellar" then
  14. if HasQuest(Spawn,Brass1) then
  15. SetStepComplete(Spawn,Brass1,1)
  16. ZoneRef = GetZone("BuccaneersRest")
  17. Zone(ZoneRef,Spawn,2.48, -45.79, -45.68, 48)
  18. end
  19. else
  20. SendMessage(Spawn,"The locked door rattles, but does not budge.","yellow")
  21. end
  22. end
  23. function respawn(NPC)
  24. spawn(NPC)
  25. end