Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int craftNo(int amount, uint itemID, uint spellID)
- {
- int needNo = amount - InbagCount(itemID) + OnAhCount((int)itemID);
- if(needNo < 0)
- {
- return 0;
- }
- int canCraft = (int)CanRepeatNum(spellID);
- if(canCraft < needNo)
- {
- return canCraft;
- }
- else
- {
- return needNo;
- }
- }
Add Comment
Please, Sign In to add comment