Here are the type.. i think o.o i forgot lol the column before Param.. ill name it Param because i dont have a DB to check.
# Param 0507 = check inventory for existing items
# Param 0506 = take away the needed items
# Param 0501 = Give the reward item
Check this template out and use it to your advantage.