API:UseSkill

Use a skill from your skill book.

Usage: UseSkill( tab_id,slot )

Parameters

 * tab_id
 * int = the tab number in the skill window (1..5)


 * 1 General
 * 2 Primary Class
 * 3 Secondary Class
 * 4 Primary Class Specific
 * 5 Pet (Warden)


 * slot
 * int = the slot number in the skill window (value = 1..10 * page for each tab, see tables to right)
 * Page 1:
 * Line 1, left is 1, right is 6
 * Line 2, left is 2, right is 7
 * Line 5, left is 5, right is 10
 * Page 2:
 * Line 1, left is 11, right is 16
 * Page 3:
 * Line 1, left is 21, right is 26
 * Line 1, left is 21, right is 26

Return: nil

Examples
--Uses the first skill in your general tab (Attack) UseSkill(1,1);

--Uses for Knights (if your primary class is knight and punishment is your second skill from top) UseSkill(2,2);

The following macro is my primary combat sequence for my Warlock / Champion /run UseSkill(2,7) /wait 1.8 /run UseSkill(2,2) /wait 1.8 /run UseSkill(2,6) /wait 1 /run UseSkill(4,13) /wait .8 /run UseSkill(2,5) /wait 1.8 /run UseSkill(4,21) /wait .8 /run UseSkill(4,2) /wait .8 /run UseSkill(2,3) /say ! Others have also asked why I finish with "/say !". This is so I have a visual cue for when the macro ends. --Bludwyng (talk) 13:43, 28 July 2020 (UTC)