ScoutArchetype.lua 837 B

123456789101112131415161718192021222324252627282930313233343536
  1. --[[
  2. Script Name : Spells/Commoner/ScoutArchetype.lua
  3. Script Author : LordPazuzu
  4. Script Date : 2023.05.27 02:05:04
  5. Script Purpose :
  6. :
  7. --]]
  8. function cast(Caster, Target)
  9. class = GetClass(Caster)
  10. if class == 35 then
  11. bard()
  12. elseif class == 36 then
  13. bard()
  14. elseif class == 37 then
  15. bard()
  16. else
  17. scout()
  18. end
  19. end
  20. function scout(Caster, Target)
  21. AddSpellBonus(Caster, 0, 3) --Strength
  22. AddSpellBonus(Caster, 1, 2) --Stamina
  23. AddSpellBonus(Caster, 2, 5) --Agility
  24. end
  25. function bard(Caster, Target)
  26. AddSpellBonus(Caster, 0, 3) --Strength
  27. AddSpellBonus(Caster, 4, 2) --Intelligence
  28. AddSpellBonus(Caster, 2, 5) --Agility
  29. end
  30. function remove(Caster, Target)
  31. RemoveSpellBonus(Caster)
  32. end