aplaguebringeracolyte.lua 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. --[[
  2. Script Name : SpawnScripts/Antonica/aplaguebringeracolyte.lua
  3. Script Author : LordPazuzu
  4. Script Date : 2023.09.24 04:09:26
  5. Script Purpose :
  6. :
  7. --]]
  8. require "SpawnScripts/Generic/NPCModule"
  9. function spawn(NPC, Spawn)
  10. NPCModule(NPC, Spawn)
  11. human(NPC)
  12. ChooseClass(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 ChooseClass(NPC)
  21. SetClass = MakeRandomInt(1,4)
  22. if SetClass == 1 then
  23. SpawnSet(NPC, "class", 18)
  24. SetSpellList(NPC, 453)
  25. IdlePriest(NPC)
  26. DervishLeather(NPC)
  27. elseif SetClass == 2 then
  28. SpawnSet(NPC, "class", 28)
  29. SetSpellList(NPC, 454)
  30. CastSpell(NPC, 280025, 5)
  31. IdleAlert(NPC)
  32. DervishRobe(NPC)
  33. elseif SetClass == 3 then
  34. SpawnSet(NPC, "class", 12)
  35. SetSpellList(NPC, 329)
  36. IdlePriest(NPC)
  37. DervishLeather(NPC)
  38. elseif SetClass == 4 then
  39. SpawnSet(NPC, "class", 8)
  40. SetSpellList(NPC, 470)
  41. IdleAggressive(NPC)
  42. DervishChain(NPC)
  43. end
  44. end