Can someone make a "COMBO LEADER" action that works well?

I got one now but it scrolls to slow and the attack can come 2sec+ after the command.

Here's the script I got atm:
PHP Code:
local Leader 'Lady of selena' -- combo leader    
local SDHotkey 
'F4' -- change to your SD hotkey   
local msgs 
getnewmessages("Party")  --where the leader will send the name of the victim 
local ptable 
= {}   
local pgot getcreatures("p")   
local pqtd pgot.count    
local qtd 
msgs.count-1   

for i=0,pqtd-do   
        if 
msgs[qtd].text:find("]: "..pgot[i].name) and msgs[qtd].sender == Leader then   
table
.insert(ptablepgot[i].name)   
end   
end   
if #ptable > 0 then   
   
attack(ptable[1])   
   
wait(200)   
   
usehotkey(SDHotkey)   
   
wait(2000)   
end 
and I use this settings:

10 to 50
yes