9
3

aBloodskullnegotiator.lua 745 B

12345678910111213141516171819202122232425262728293031323334
  1. --[[
  2. Script Name : SpawnScripts/Commonlands/aBloodskullnegotiator.lua
  3. Script Author : LordPazuzu
  4. Script Date : 2024.01.04 05:01:53
  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,3)
  23. if class == 1 then
  24. SpawnSet(NPC, "class", 5)
  25. elseif class == 2 then
  26. SpawnSet(NPC, "class", 2)
  27. elseif class == 3 then
  28. SpawnSet(NPC, "class", 38)
  29. end
  30. end