awhitespider.lua 510 B

123456789101112131415161718192021222324
  1. --[[
  2. Script Name : SpawnScripts/Caves/awhitespider.lua
  3. Script Purpose : a white spider
  4. Script Author : Scatman
  5. Script Date : 2009.10.27
  6. Script Notes :
  7. --]]
  8. dofile("SpawnScripts/Generic/MovementCircleSmall.lua")
  9. function spawn(NPC)
  10. local sli = GetSpawnLocationID(NPC)
  11. if sli == 147821 or sli == 147820 or sli == 147818 or sli == 147817 then
  12. SpawnChooseRandomMovement(NPC)
  13. end
  14. end
  15. function respawn(NPC)
  16. spawn(NPC)
  17. end
  18. function hailed(NPC, Spawn)
  19. FaceTarget(NPC, Spawn)
  20. end