Post Pacific  

Go Back   Post Pacific > Lineage 2 > Lineage 2 Help

Notices

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old 12.10.2005, 23:24   #17
Sauron
Архивный участник
 
Join Date: Feb 2005
Posts: 357
Default

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]
Sauron is offline  
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 07:50.