aGruttoothlaborer.lua 962 B

123456789101112131415161718192021222324252627282930313233343536
  1. --[[
  2. Script Name : SpawnScripts/IsleRefuge1/aGruttoothlaborer.lua
  3. Script Author : LordPazuzu
  4. Script Date : 2022.09.06 07:09:03
  5. Script Purpose :
  6. :
  7. --]]
  8. dofile("SpawnScripts/Generic/MonsterCallouts/BaseGoblin1.lua")
  9. require "SpawnScripts/Generic/NPCModule"
  10. function spawn(NPC, Spawn)
  11. NPCModule(NPC, Spawn)
  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 aggro(NPC,Spawn)
  24. SpawnSet(NPC, "visual_state", 0)
  25. end
  26. function hailed(NPC, Spawn)
  27. FaceTarget(NPC, Spawn)
  28. end
  29. function respawn(NPC)
  30. spawn(NPC)
  31. end