Thread: ≈ Help me fixing valko.
View Single Post
Old 03.10.2005, 13:34   #17
Osito2Dancer
Архивный участник
 
Join Date: Mar 2005
Posts: 442
Default

Sure, no sweat dude:

shift_sp 1 [center:df8b414c19]> Moves the Stock Pile 1 slot forward (places it on the top).[/center:df8b414c19]
push_event // talker [center:df8b414c19]> Says "Hey, lets target who's talking to me"[/center:df8b414c19]
push_const 32 [center:df8b414c19]> In conjuction with above.[/center:df8b414c19]
add [center:df8b414c19]> Adds one to the SP (Not sure though)[/center:df8b414c19]
fetch_i [center:df8b414c19]> Opens the "retrieving process"[/center:df8b414c19]
push_const 3139 [center:df8b414c19]> Pushes "3139", the itemID to be checked.[/center:df8b414c19]
func_call 81 // func[OwnItemCount] [center:df8b414c19]> Ai Function that does it ^^[/center:df8b414c19]
shift_sp -2 [center:df8b414c19]> Moves the SP 2 slots behind (to read the item count)[/center:df8b414c19]
push_const 6 [center:df8b414c19]> Pushes the number 6 for comparison.[/center:df8b414c19]
greater [center:df8b414c19]> Here it asks: is 6 < item_count on player?[/center:df8b414c19]
branch_false L1736612 [center:df8b414c19]> If false, jumps to instruction said.[/center:df8b414c19]

Damn AI.obj T_T. Pseudo-ASM SOX!

Hope it helps.

Oso
Osito2Dancer is offline