9
3

random_pattern_small_short_delay.lua 652 B

123456789101112131415161718192021
  1. --[[
  2. Script Name : SpawnScripts/Generic/random_pattern_small_short_delay.lua
  3. Script Purpose : chooses a random route of a particular pattern
  4. Script Author : theFoof with delay modifications by LordPazuzu
  5. Script Date : 2013.5.16
  6. Script Notes : If the coords are out of bounds then the spawn will still go there.
  7. --]]
  8. dofile("SpawnScripts/Generic/CatalogueQuestUpdates.lua")
  9. require "SpawnScripts/Generic/NPCModule"
  10. function spawn(NPC, Spawn)
  11. NPCModule(NPC, Spawn)
  12. RandomMovement(NPC, Spawn, 8, -8, 2, 8, 15)
  13. end
  14. function respawn(NPC, Spawn)
  15. spawn(NPC)
  16. end
  17. function hailed(NPC, Spawn)
  18. FaceTarget(NPC, Spawn)
  19. end