To add a custom buff:
=====================
Code: Register to unlock hidden link
Func Buff[color=red]X[/color] () ;Change X to the buff ID.
MouseClick ("left",$varTab_x,$varTab_y,1,10) ;open the tab (resist, combat...), replace, $varTab_x and $varTab_y by the $vars in the code for the tab you need.
Sleep (250)
MouseClick ("left",$varAttr_x,$varAttr_y,1,10) ;choose the attribute (replace $varAttr_x and $varAttr_y byt the $var of the attributes listed in the tab.
Sleep (250)
MouseClick ("left",$Addx,$Addy, [color=red]x[/color],10) ;add X time the selected attribute with 1<X<5 depending of the attribute.
Sleep (250)
MouseClick ("left",$varTab_x,$varTab_y,1,10) ;close the opened tab (replace $varTab_x and $varTab_y by the $var of your opened tab. There are the same vars than the one used to open the tab.
;repeat as many time you want with different attributes
EndFunc
Put the whole function on the end of the function list on the bottom part of the script. compile it and you're done.
Then find these lines
Code: Register to unlock hidden link
Switch $Rqst[0] ;check to see if buff requested is a valid buff choice
Case "Buff1", "Buff2", "Buff3", "Buff4", "Buff5", "Buff6", "Buff7", "Buff8", "Buff9", "Buff10", "Buff11", "Buff12", "Buff13", "Buff14", "Buff15"
ToolTip ($Rqst[0] & " is a valid buff choice",50,50,"",0,1)
Sleep (500)
$BuffChk = "Pass"
and add in ,"buffX" to the switch.
Good luck.
I have not analysed all the code yet but you should be fine with this.
Nicely written
