Guest User

Untitled

a guest
Jun 19th, 2018
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.34 KB | None | 0 0
  1. int craftNo(int amount, uint itemID, uint spellID)
  2. {
  3. int needNo = amount - InbagCount(itemID) + OnAhCount((int)itemID);
  4. if(needNo < 0)
  5. {
  6. return 0;
  7. }
  8. int canCraft = (int)CanRepeatNum(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