aBloodskullwarrior.lua 900 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. --[[
  2. Script Name : SpawnScripts/Commonlands/aBloodskullwarrior.lua
  3. Script Author : premierio015, gloat, LordPazuzu
  4. Script Date : 2019.01.31 01:01:40
  5. Script Purpose :
  6. :
  7. --]]
  8. local FinishingtheNegotiations = 425
  9. require "SpawnScripts/Generic/NPCModule"
  10. function spawn(NPC, Spawn)
  11. NPCModule(NPC, Spawn)
  12. Bloodskull(NPC)
  13. OrcArmorCommon(NPC)
  14. AddTimer(NPC, 1500, "movement")
  15. end
  16. function hailed(NPC, Spawn)
  17. FaceTarget(NPC, Spawn)
  18. end
  19. function movement(NPC, Spawn)
  20. if IsHeroic(NPC) == false then
  21. RandomMovement(NPC, Spawn, 12, -12, 2, 8, 15)
  22. else
  23. IdleAggressive(NPC)
  24. end
  25. end
  26. function death(NPC, Spawn)
  27. if HasQuest(Spawn, FinishingtheNegotiations) then
  28. AddStepProgress(Spawn, FinishingtheNegotiations, 4, 1)
  29. end
  30. end
  31. function respawn(NPC)
  32. spawn(NPC)
  33. end