SoulPdx
Member
- Joined
- Jan 19, 2012
- Messages
- 88
I'm starting to get irritated. I've tried if's I've tried Whiles. I've tried so much that I'm about to break my computer. I'm writing a professionbuddy profile. And what I want it to do Is get the amount of an item in bags. and then how many of an Item I want made. lets say a gem. And to make that many.
Brackets removed because.
So it gets my InbagCount of the Gem... and if it's less than the amount I want made ("gemCount") Then I want it to cycle until I have as many as I have specified. But for some god aweful reason It always makes 1 more than I intend.
So If my inbagcount is 3 and my gemcount is 5.. you would think it would only cycle twice. but it doesn't... it does it 3 times. and I'm out of ideas on how to write this statement. I think that it might be in issue in professionbuddy's code. But I'm open to my own stupidity..
Code:
WhileCondition="InbagCount(gemID) < gemCount" IgnoreCanRun="False"
CastSpellAction RepeatType="Specific" Repeat="1" Entry="recipeID" CastOnItem="False" ItemType="Chest" ItemId="0"
/While
Brackets removed because.
So it gets my InbagCount of the Gem... and if it's less than the amount I want made ("gemCount") Then I want it to cycle until I have as many as I have specified. But for some god aweful reason It always makes 1 more than I intend.
So If my inbagcount is 3 and my gemcount is 5.. you would think it would only cycle twice. but it doesn't... it does it 3 times. and I'm out of ideas on how to write this statement. I think that it might be in issue in professionbuddy's code. But I'm open to my own stupidity..