Now i have a problem
I wrote a function, to make the ancient chaos stones usable (trough DB it dont work, because of the gameserver)
What should it do?
It should search for an Chaos stone Lv 10 and the Ancient Chaos Stone. If an Char has both, it should delete the Chaos Stone Lv 10 and the Ancient Chaos Stone and insert an Chaos Stone Lv 11.
But i done something wrong and im to dum to find my failure.

Maybe anyone could help me. o.0
EDIT:
Problem solved, thanks Xjiezu