aQueenBeeLuaBrainTest.lua 565 B

123456789101112131415161718192021222324252627282930313233
  1. --[[
  2. Script Name : SpawnScripts/OutpostOverlord/aQueenBeeLuaBrainTest.lua
  3. Script Author : Premierio015
  4. Script Date : 2021.09.18 05:09:50
  5. Script Purpose :
  6. :
  7. --]]
  8. function spawn(NPC)
  9. SetLuaBrain(NPC)
  10. SetBrainTick(NPC, 200)
  11. Think(NPC, Spawn)
  12. end
  13. function Think(NPC, Spawn)
  14. local mostHated = GetMostHated(NPC)
  15. if mostHated ~= nil then
  16. ClearHate(NPC)
  17. SetInCombat(NPC, false)
  18. ClearEncounter(NPC)
  19. end
  20. end
  21. function hailed(NPC, Spawn)
  22. end
  23. function respawn(NPC)
  24. spawn(NPC)
  25. end