Simple using Function.
Func_call, push_const, mul
Code:
push_event // myself
push_const 704
add
fetch_i
push_const 1005
push_const 120
push_const 1000
mul
func_call 184680487 // func[AddTimerEx]
shift_sp -2
shift_sp -1
Make all by step-by-step (1,2,3- stack value's in stack)
- add myself event to stack (1)
- add value 1005 stack (2)
- add value 120 to stack (3)
- add value 1000 to stack (4)
- use 'mul'. Mul - arithmetical command for * two value. Read 2 last stack value and made operation - 120* 1000. Save to stack (120*1000) (3)
- start funtion AddTimerEx with use 2 params and 1 output
Code:
myself->AddTimerEx(1005, (120 * 1000));
- clear this unused stack values from stack -2 (1)
- clear this unused stack values from stack -1 (0)