9
3

aDervishcutthroat.lua 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. --[[
  2. Script Name : SpawnScripts/Commonlands/aDervishcutthroat.lua
  3. Script Author : LordPazuzu
  4. Script Date : 2024.01.04 07:01:34
  5. Script Purpose :
  6. :
  7. --]]
  8. require "SpawnScripts/Generic/NPCModule"
  9. function spawn(NPC, Spawn)
  10. NPCModule(NPC, Spawn)
  11. ChooseRace(NPC)
  12. AddTimer(NPC, 1500, "movement")
  13. end
  14. function hailed(NPC, Spawn)
  15. FaceTarget(NPC, Spawn)
  16. end
  17. function movement(NPC, Spawn)
  18. if IsHeroic(NPC) == false then
  19. RandomMovement(NPC, Spawn, 12, -12, 2, 8, 15)
  20. end
  21. end
  22. function respawn(NPC)
  23. spawn(NPC)
  24. end
  25. function ChooseRace(NPC)
  26. local SetRace = MakeRandomInt(1,6)
  27. if SetRace == 1 or SetRace == 2 or SetRace == 3 then
  28. SpawnSet(NPC, "class", 38)
  29. SetSpellList(NPC, 458)
  30. human(NPC)
  31. DervishLeather(NPC)
  32. IdleSneaky(NPC)
  33. elseif SetRace == 4 then
  34. SpawnSet(NPC, "class", 2)
  35. SetSpellList(NPC, 451)
  36. SpawnSet(NPC,"size", 36)
  37. barbarian(NPC)
  38. DervishChain(NPC)
  39. IdleAggressive(NPC)
  40. elseif SetRace == 5 then
  41. SpawnSet(NPC, "gender", 2)
  42. SpawnSet(NPC, "class", 18)
  43. SpawnSet(NPC, "size", 37)
  44. SetSpellList(NPC, 325)
  45. ogre(NPC)
  46. DervishLeather(NPC)
  47. IdlePriest(NPC)
  48. elseif SetRace == 6 then
  49. SpawnSet(NPC, "class", 22)
  50. SetSpellList(NPC, 324)
  51. erudite(NPC)
  52. DervishRobe(NPC)
  53. IdleAlert(NPC)
  54. end
  55. end