Yeah, this is a bit unnecessarily confusing~ But you'll always find the information you need by reading the function itself.
The arguments, in order:
<required ID>,<output ID>,<success if rand(1,100) is above this number>,<success if rand(1,100) is below this number>,<Zeny x 1000>,<required ID>,<required ID amount>,<required ID 2, optional>,<required ID 2 amount, optional>