TheGuurok.lua 545 B

1234567891011121314151617181920212223242526
  1. --[[
  2. Script Name : SpawnScripts/QueensColony/TheGuurok.lua
  3. Script Purpose :
  4. Script Author :
  5. Script Date : 17.05.2020
  6. Script Notes :
  7. --]]
  8. function spawn(NPC)
  9. SetTempVariable(NPC, "FeedCounter", "0")
  10. SetPlayerProximityFunction(NPC, 8, "InRange", "LeaveRange")
  11. end
  12. function InRange(NPC,Spawn)
  13. if HasItem(Spawn, 10399, 0) then
  14. SendMessage(Spawn, "The Guurok hisses loudly, almost like it can sense you.", "white")
  15. end
  16. end
  17. function respawn(NPC)
  18. spawn(NPC)
  19. end
  20. -- Visual state: 3632