aBlackshieldthug.lua 876 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. --[[
  2. Script Name : SpawnScripts/Commonlands/aBlackshieldthug.lua
  3. Script Author : LordPazuzu
  4. Script Date : 2024.01.04 03:01:59
  5. Script Purpose :
  6. :
  7. --]]
  8. require "SpawnScripts/Generic/NPCModule"
  9. function spawn(NPC, Spawn)
  10. NPCModule(NPC, Spawn)
  11. race(NPC)
  12. class(NPC)
  13. end
  14. function hailed(NPC, Spawn)
  15. FaceTarget(NPC, Spawn)
  16. end
  17. function respawn(NPC)
  18. spawn(NPC)
  19. end
  20. function race(NPC, Spawn)
  21. setrace = MakeRandomInt(1,2)
  22. if setrace == 2 then
  23. human(NPC)
  24. elseif setrace == 2 then
  25. halfelf(NPC)
  26. end
  27. end
  28. function class (NPC, Spawn)
  29. class = MakeRandomInt(1,3)
  30. if class == 1 then
  31. SpawnSet(NPC, "class", 5)
  32. elseif class == 2 then
  33. SpawnSet(NPC, "class", 2)
  34. elseif class == 3 then
  35. SpawnSet(NPC, "class", 38)
  36. end
  37. end