You have to follow the actions as they seem to jump everywhere.
Wisdom Pouch starts at 8500100
WisdomPouch starts at 8500100
AcumenPouch starts at 8500120
LorePouch starts at 8500140
Just follow each Id_Next and Id_nextfail and you will find where it gives you the prizes.
Edit
Since I was bored, I looked in my test db and followed the actions of you. These may be the same as yours but they may not as well.
Code:
Wisdom Pouch
8500100 5401114 5401110 1001 0 level < 30
5401114 0 0 126 0 You are Max Level
5401110 5401115 5401114 1001 0 level < 255
5401115 5401111 0 502 729062
5401111 5401112 0 1518 2 uplevtime += 30000
5401112 5401113 0 1027 0 self gem26
5401113 0 0 1010 2005 Congratz you have gained some exp
-------------------------------------------------------------------------------------
Acumen Pouch
8500120 5401124 5401120 1001 0 level < 15
5401124 0 0 126 0 You are Max Level
5401120 5401125 5401124 1001 0 level < 255
5401125 5401121 0 502 729063
5401121 5401122 0 1518 2 uplevtime += 18000
5401122 5401123 0 1027 0 self gem26
5401123 0 0 1010 2005 Congratz you have gained some exp
------------------------------------------------------------------------------------
Lore Pouch
8500140 5401134 5401130 1001 0 level < 10
5401134 0 0 126 0 You are Max Level
5401130 5401135 5401134 1001 0 level < 255
5401135 5401131 0 502 729064
5401131 5401132 0 1518 2 uplevtime += 14000
5401132 5401133 0 1027 0 self gem26
5401133 0 0 1010 2005 Congratz you have gained some exp