9
3

ahighwayman.lua 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. --[[
  2. Script Name : SpawnScripts/Antonica/ahighwayman.lua
  3. Script Author : LordPazuzu
  4. Script Date : 3/21/2024
  5. Script Purpose :
  6. :
  7. --]]
  8. dofile("SpawnScripts/Generic/MonsterCallouts/HighwaymanAntonica.lua")
  9. require "SpawnScripts/Generic/NPCModule"
  10. function spawn(NPC, Spawn)
  11. NPCModule(NPC, Spawn)
  12. SetRaceClass(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 SetRaceClass(NPC, Spawn)
  21. SetRace = MakeRandomInt(1,4)
  22. if SetRace == 1 then
  23. SpawnSet(NPC, "class", 2)
  24. SetSpellList(NPC, 451)
  25. DervishChain(NPC)
  26. human(NPC)
  27. IdleAggressive(NPC)
  28. elseif SetRace == 2 then
  29. SpawnSet(NPC, "class", 28)
  30. SetSpellList(NPC, 454)
  31. CastSpell(NPC, 280025, 5)
  32. DervishRobe(NPC)
  33. human(NPC)
  34. IdleAlert(NPC)
  35. elseif SetRace == 3 then
  36. SpawnSet(NPC, "class", 32)
  37. SetSpellList(NPC, 469)
  38. DervishLeather(NPC)
  39. halfelf(NPC)
  40. IdleAlert(NPC)
  41. elseif SetRace == 4 then
  42. SpawnSet(NPC, "class", 2)
  43. SetSpellList(NPC, 451)
  44. DervishThug(NPC)
  45. barbarian(NPC)
  46. IdleAggressive(NPC)
  47. end
  48. end