![]() |
|
|
#28 | ||
|
Архивный участник
Join Date: Aug 2005
Posts: 1,531
|
Quote:
![]() 1. made decompile for bug class Code:
EventHandler CREATED()
{
myself->AddTimerEx(1005,( 120 * 1000 ));
myself->AddTimerEx(1006,20000);
super;
}
EventHandler TIMER_FIRED_EX(timer_id)
....
if( timer_id == 1006 )
{
if( myself.boss.alive == 0 )
{
if( myself.p_state != 3 && myself.p_state != 10 )
{
Despawn();
return;
}
}
myself->AddTimerEx(1006,20000);
}
if( 1004 == timer_id )
{
if( myself.p_state != 3 && myself.p_state != 10 )
{
Despawn();
}
else
{
myself->AddTimerEx(1004,20000);
}
}
super;
}
EventHandler PARTY_ATTACKED(attacker,private,damage,f0)
...
EventHandler PARTY_DIED(private)
{
if( private == myself.boss )
{
myself->AddTimerEx(1004,20000);
}
}
You need find all start 1004 timer and code for using 1004 (optional) 2. start 1004 timer in "EventHandler PARTY_DIED(private)" very easy. This handler have only this timer. 2.1. delete full Handler PARTY_DIED 2.2. how to find enter to 1004 timer in TIMER_FIRED_EX? easy too. I dont know ai code. but.. you know what need to find! 1004! sure! open class in notepad and finding 1004. Sure you must find this Quote:
Code:
push_event // myself push_const 704 add fetch_i push_const 1006 push_const 20000 func_call 184680487 // func[AddTimerEx] shift_sp -2 shift_sp -1 L10249 push_event // timer_id push_const 236 add fetch_i4 push_const 1004 equal branch_false L10256 Now you must find end block. NO hard to... Block end with despawn and ... "super;" = "exit_handler" Code:
jump L10260 L10259 push_event // myself push_const 704 add fetch_i push_const 1004 push_const 20000 func_call 184680487 // func[AddTimerEx] shift_sp -2 shift_sp -1 L10260 L10256 call_super handler_end Code end with shift_sp too. All.. you must delete block but check L10xxx labels for your upper code. Example, L10260 uses from deleted block. But L10256 uses upped. You must save this label Done.
|
||
|
|
| Thread Tools | Search this Thread |
| Display Modes | |
|
|