aDarkbladescout.lua 784 B

1234567891011121314151617181920212223242526272829303132333435
  1. --[[
  2. Script Name : SpawnScripts/TheThievesWay_Classic/aDarkbladescout.lua
  3. Script Author : LordPazuzu
  4. Script Date : 2023.12.02 04:12:13
  5. Script Purpose :
  6. :
  7. --]]
  8. require "SpawnScripts/Generic/NPCModule"
  9. function spawn(NPC, Spawn)
  10. NPCModule(NPC, Spawn)
  11. race(NPC,Spawn)
  12. IdleAggressive(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. local race = MakeRandomInt(1,6)
  22. if race == 1 or race == 2 then
  23. human(NPC, Spawn)
  24. elseif race == 3 or race == 4 then
  25. ratonga(NPC, Spawn)
  26. elseif race == 5 then
  27. kerra(NPC, Spawn)
  28. elseif race == 6 then
  29. darkelf(NPC, Spawn)
  30. end
  31. end