aGruttoothlaborerAggro.lua 862 B

12345678910111213141516171819202122232425262728293031
  1. --[[
  2. Script Name : SpawnScripts/IsleRefuge1/aGruttoothlaborerAggro.lua
  3. Script Author : LordPazuzu
  4. Script Date : 2024.02.06 11:02:30
  5. Script Purpose :
  6. :
  7. --]]
  8. require "SpawnScripts/Generic/NPCModule"
  9. function spawn(NPC, Spawn)
  10. NPCModule(NPC, Spawn)
  11. SpawnSet(NPC, "faction", 1)
  12. local ID = GetSpawnID(NPC)
  13. if ID ==3250122 then
  14. SetInfoStructString(NPC, "action_state", "cooking_idle")
  15. elseif ID ==3250104 then
  16. SetInfoStructString(NPC, "action_state", "mining_digging")
  17. elseif ID ==3250105 then
  18. SetInfoStructString(NPC, "action_state", "forestry_chopping")
  19. elseif ID ==3250095 then
  20. SetInfoStructString(NPC, "action_state", "woodworking_idle")
  21. end
  22. end
  23. function hailed(NPC, Spawn)
  24. FaceTarget(NPC, Spawn)
  25. end
  26. function respawn(NPC)
  27. spawn(NPC)
  28. end