Guest User

Untitled

a guest
Jun 19th, 2018
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. int craftNo(int amount, int itemID, int spellID)
  2. {
  3. int needNo = amount - (int)InbagCount((uint)itemID) + (int)OnAhCount((uint)itemID);
  4. if(needNo < 0)
  5. {
  6. return 0;
  7. }
  8. int canCraft = (int)CanRepeatNum((uint)spellID);
  9. if(canCraft < needNo)
  10. {
  11. return canCraft;
  12. }
  13. else
  14. {
  15. return needNo;
  16. }
  17. }
Add Comment
Please, Sign In to add comment