thanks shadow_nl
I just ran into a big error, that im workign on fixing.
if you run this file:
rpgbattle.php?action=doattack&battleid=2&option=de fend&playernumber=1
it will make your opponet defend, and that is not good.
you can make your opponets attacks with this bug, so its very iomportant i fix it
also i ave some of the itmes functions working for in battle use and i have created the error function for the whole script.