Jump to content
  • 0

Cooking Foods and Creating Converters


AllHailToTheKing

Question


  • Group:  Members
  • Topic Count:  54
  • Topics Per Day:  0.01
  • Content Count:  235
  • Reputation:   0
  • Joined:  11/22/11
  • Last Seen:  

hello. i just want to ask if where can i edit the chance of the success of making foods and converter?

Thanks

Link to comment
Share on other sites

1 answer to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  9
  • Topics Per Day:  0.00
  • Content Count:  554
  • Reputation:   70
  • Joined:  04/04/12
  • Last Seen:  

@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;

Link to comment
Share on other sites

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.

×
×
  • Create New...