Token's 30 second wait time code for combos

A long time ago I needed a wait time code. I didn't want to spam wait(4000); in my script. In my opinion it's ugly and takes too much space. I found no wait time code. I took upon myself to make my own code. I had this code for awhile now but I never posted it. I will share it. I hope someone will find it useful. Please enjoy. - Token
Version1.10
Authortoken
Publish DateTue, 29 Apr 2014 - 07:33
Last UpdateTue, 29 Apr 2014 - 08:02
Downloads55
RATE


2

0

Release Notes: I added 15 seconds and 60 seconds wait codes.
Code: Select all
// A demonstration of my 30 second wait time code.
data(48,117,1,1);// You will need this.
 
main {
 
if(get_val(19)) combo_run(LongWaitTime);// Press CROSS/A button to execute combo.
 
}
 
combo LongWaitTime {
 
    set_val(4, 100);// It will hold R2/RT for 30 seconds.
    wait(dword(0));//<<< I made the wait time exactly 30 seconds.
    set_val(7, 100);// It will hold L2/LT for 50ms.
    wait(dword(2)-206);//<<< This wait time is like the ones use in rapidfire scripts. It's 50ms.   
} 
// If you want 15 seconds use wait(dword(0)/(12-10));
// If you want 60 seconds use two wait(dword(0));
// Remove my set_vals to use it in your own combos. Please enjoy. - Token