Right here, I'm trying to have it set the 'part' variable to a random integer between 1 and 10. Then the next part checks to see if the player has an item equipped there, and if he doesn't, re-set the variable to a different integer between 1 and 10 and check if that slot is empty or not. I want it to do this until it gets a slot that isn't empty.
Here I'm trying to make the script find out if the item that is equipped has a refine amount of 100+, and if it does, restart from the first for loop.
successrefitem part;
set refinechance,null;
set refinechance2,null;
set part,null;
set refineamt,null;
end;}
}
}else{
end;
}
}
And finally, if the previous for statements worked correctly, and the slot had an item equipped in it, and it's refine was less than 100, it would refine the item once and set the variables to nothing.
Help would be much appreciated, leave a post or PM me. :3
Question
_Dynosawr_
I've been screwing around with this and I'm trying to use a FOR loop.
Right here, I'm trying to have it set the 'part' variable to a random integer between 1 and 10. Then the next part checks to see if the player has an item equipped there, and if he doesn't, re-set the variable to a different integer between 1 and 10 and check if that slot is empty or not. I want it to do this until it gets a slot that isn't empty.
Here I'm trying to make the script find out if the item that is equipped has a refine amount of 100+, and if it does, restart from the first for loop.
And finally, if the previous for statements worked correctly, and the slot had an item equipped in it, and it's refine was less than 100, it would refine the item once and set the variables to nothing.
Help would be much appreciated, leave a post or PM me. :3
Edited by JoeyLink to comment
Share on other sites
11 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.