apaleadder.lua 574 B

1234567891011121314151617181920
  1. --[[
  2. Script Name : SpawnScripts/classic_caves/apaleadder.lua
  3. Script Author : LordPazuzu
  4. Script Date : 2022.09.02 04:09:35
  5. Script Purpose :
  6. :
  7. --]]
  8. require "SpawnScripts/Generic/NPCModule"
  9. function spawn(NPC, Spawn)
  10. NPCModule(NPC, Spawn)
  11. AddTimer(NPC, 6000, "ChooseMovement")
  12. end
  13. function ChooseMovement(NPC)
  14. if GetSpawnLocationID(NPC)== 133776947 or GetSpawnLocationID(NPC)== 133776948 or GetSpawnLocationID(NPC)== 133776949 then
  15. RandomMovement(NPC, Spawn, 7, -7, 2, 20, 45)
  16. end
  17. end