9
3

zonetoepic01.lua 777 B

123456789101112131415161718192021222324252627282930313233
  1. --[[
  2. Script Name : SpawnScripts/DownBelow/zonetoepic01.lua
  3. Script Author : Premierio015
  4. Script Date : 2021.10.03 05:10:15
  5. Script Purpose : Access to Crow's Resting Place Zone
  6. :
  7. --]]
  8. local AnIntriguingEye = 5366
  9. function spawn(NPC)
  10. SetPlayerProximityFunction(NPC, 10, "InRange", Spawn)
  11. end
  12. function InRange(NPC, Spawn)
  13. if HasCompletedQuest(Spawn, AnIntriguingEye) then
  14. SpawnSet(NPC, "show_command_icon", 1)
  15. SpawnSet(NPC, "display_hand_icon", 1)
  16. end
  17. end
  18. function can_use_command(NPC, Spawn, Command)
  19. if HasCompletedQuest(Spawn, AnIntriguingEye) then
  20. return true
  21. elseif not HasCompletedQuest(Spawn, AnIntriguingEye) then
  22. return false
  23. end
  24. end
  25. function respawn(NPC)
  26. spawn(NPC)
  27. end