Jump to content
  • 0

Question

1 answer to this question

Recommended Posts

Posted

@skill.c - making food

default:
if (sd->menuskill_id == AM_PHARMACY &&
    sd->menuskill_val > 10 && sd->menuskill_val <= 20)
    { //Assume Cooking Dish
         if (sd->menuskill_val >= 15) //Legendary Cooking Set.
                   make_per = 10000; //100% Success
         else
                   make_per = 1200 * (sd->menuskill_val - 10)
                   + 20  * (sd->status.base_level + 1)
                   + 20  * (status->dex + 1)
                   + 100 * (rnd()%(30+5*(sd->cook_mastery/400) - (6+sd->cook_mastery/80)) + (6+sd->cook_mastery/80))
                   - 400 * (skill_produce_db[idx].itemlv - 11 + 1)
                   - 10  * (100 - status->luk + 1)
                   - 500 * (num - 1)
                   - 100 * (rnd()%4 + 1);
                   break;
         }
         make_per = 5000;
break;

for converters

case SA_CREATECON: // Elemental Converter Creation
    make_per = 100000; // should be 100% success rate
break;

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...