aBlackshieldcleric.lua 800 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. --[[
  2. Script Name : SpawnScripts/Commonlands/aBlackshieldcleric.lua
  3. Script Author : LordPazuzu
  4. Script Date : 2024.01.04 03:01:11
  5. Script Purpose :
  6. :
  7. --]]
  8. require "SpawnScripts/Generic/NPCModule"
  9. function spawn(NPC, Spawn)
  10. NPCModule(NPC, Spawn)
  11. race(NPC)
  12. AddTimer(NPC, 1500, "movement")
  13. end
  14. function movement(NPC, Spawn)
  15. if IsHeroic(NPC) == false then
  16. RandomMovement(NPC, Spawn, 8, -8, 2, 8, 15)
  17. else
  18. IdlePriest(NPC)
  19. end
  20. end
  21. function hailed(NPC, Spawn)
  22. FaceTarget(NPC, Spawn)
  23. end
  24. function respawn(NPC)
  25. spawn(NPC)
  26. end
  27. function race(NPC)
  28. setrace = MakeRandomInt(1,2)
  29. if setrace == 1 then
  30. human(NPC)
  31. elseif setrace == 2 then
  32. halfelf(NPC)
  33. end
  34. end