9
3

aBloodskullorc.lua 673 B

1234567891011121314151617181920212223242526272829303132
  1. --[[
  2. Script Name : SpawnScripts/Commonlands/aBloodskullorc.lua
  3. Script Author : LordPazuzu
  4. Script Date : 2024.01.04 05:01:02
  5. Script Purpose :
  6. :
  7. --]]
  8. require "SpawnScripts/Generic/NPCModule"
  9. function spawn(NPC, Spawn)
  10. NPCModule(NPC, Spawn)
  11. Bloodskull(NPC)
  12. OrcArmorCommon(NPC)
  13. setclass(NPC)
  14. end
  15. function hailed(NPC, Spawn)
  16. FaceTarget(NPC, Spawn)
  17. end
  18. function respawn(NPC)
  19. spawn(NPC)
  20. end
  21. function setclass(NPC, Spawn)
  22. class = MakeRandomInt(1,2)
  23. if class == 1 then
  24. SpawnSet(NPC, "class", 32)
  25. elseif class == 2 then
  26. SpawnSet(NPC, "class", 38)
  27. end
  28. end