have problem in decompiling this part of code
original ai.obj code
Code:
push_event // myself
push_const 704
add
fetch_i
push_event // target
push_const 96
add
fetch_i
push_const 1170
func_call 184680579 // func[OwnItemCount]
shift_sp -2
push_const 1
equal
push_reg_sp
fetch_i
branch_false L118403
L118402
push_event // always_list
push_const 688
add
fetch_i
push_const 0
push_event // target
push_const 96
add
fetch_i
func_call 251789313 // func[SetInfo]
shift_sp -2
shift_sp -1
L118403
L118404
push_event // gg
push_const 632
add
fetch_i
push_event // code_info
push_const 696
add
push_reg_sp
fetch_i
push_event // always_list
push_const 688
add
fetch_i
func_call 251658240 // func[Next]
assign
fetch_i
func_call 218169355 // func[IsNull]
shift_sp -1
push_const 0
equal
branch_false L118405
push_event // code_info
push_const 696
add
fetch_i // code
push_const 60
add
fetch_i4
push_reg_sp
fetch_i
push_const 0
equal
branch_false L118408
L118407
my decompiling
Code:
if (myself->OwnItemCount(target, 1170) == 1)
{
always_list->SetInfo(0, target);
}
gg = code_info + always_list->Next();
if (code_info.code == 0)
{
myself->SetCurrentQuestID(402);
sauron decompiling
Code:
if( myself->OwnItemCount(target,1170) == 1 )
{
always_list->SetInfo(0,target);
}
while( code_info = always_list->Next()->() == 0 )
{
if( code_info.code == 0 )
Questions:
- how you think - how must be decompiled code here
- maybe ai.obj code have errors
Problem. I cant decompile this code... Im crazy.