Correct formula for Apple Juice
1.)
setarray .formula_applie_juice[0],713,507,512,512;
2.) Use OnSellItem: (4 times or 1 time in sell order) (Store it as Character variables)
3.) Compare variable 1 2 3 4 to array[0] [1] [2] [3]
I think that's it.
---
I had done 50,000 Items that can be craft with 5 material (Different amount each recipes) before.
You can find it here but it's Thai language https://github.com/kaninhot004/rathena/blob/7ce92c2097110b251bd8872740fd8dc731c6d1ab/npc/team_craft/craft.txt
Commit: https://github.com/kaninhot004/rathena/commit/98f137b681235f423d7d277e624b851468da4227