hmm look, think it this way.
when u use
push_reg_sp
fetch_i
then it will be replace by the 1st (and, or) u use.
so u have
[php:1:6cb3d588cd]
shift_sp 1 // function begins
push_event // talker - 1st var talker
push_const 32
add
fetch_i
push_const 60101 // 2nd var, const 60101 (item id)
func_call 81 // func[OwnItemCount]
shift_sp -2 // end 2 vars function
// note in this case there is no need for the shift_sp -1
// so far we have "OwnItemCount(talker, 60101)"
push_const 0 // pust const 0 :P
equal // this means function and value pushed has to be compared
// "if(OwnItemCount(talker, 60101) == 0)"
push_reg_sp // the if will continue
fetch_i
branch_false L0 // if return false it will jump to L0 else continue
shift_sp 1 // function begin
push_event // talker
push_const 32
add
fetch_i
push_const 57
func_call 81 // func[OwnItemCount]
shift_sp -2
push_const 599
greater
and // to write it like a nomal languaje, this should be where the "push_reg_sp; fetch_i" is
so we get
if(OwnItemCount(talker, 60101) == 0 && OwnItemCount(talker, 57) > 599)
{
..........
}
else
{
jump L0
}
[/php:1:6cb3d588cd]
|