Jump to content
  • 0

Question

2 answers to this question

Recommended Posts

Posted

db/pre-re(re)/skill_tree.txt

//Merchant
5,1,9,0,0,0,0,0,0,0,0,0,0 //NV_BASIC#Basic Skill#
5,142,1,0,0,0,0,0,0,0,0,0,0 //NV_FIRSTAID#First Aid#
5,36,10,0,0,0,0,0,0,0,0,0,0 //MC_INCCARRY#Enlarge Weight Limit#
5,37,10,36,3,0,0,0,0,0,0,0,0 //MC_DISCOUNT#Discount#
5,38,10,37,3,0,0,0,0,0,0,0,0 //MC_OVERCHARGE#Overcharge#
5,39,10,36,5,0,0,0,0,0,0,0,0 //MC_PUSHCART#Pushcart#
5,40,1,0,0,0,0,0,0,0,0,0,0 //MC_IDENTIFY#Item Appraisal#
5,41,10,39,3,0,0,0,0,0,0,0,0 //MC_VENDING#Vending#
5,42,10,0,0,0,0,0,0,0,0,0,0 //MC_MAMMONITE#Mammonite#
5,153,1,0,0,0,0,0,0,0,0,0,0 //MC_CARTREVOLUTION#Cart Revolution#
5,154,1,0,0,0,0,0,0,0,0,0,0 //MC_CHANGECART#Change Cart#
5,155,1,0,0,0,0,0,0,0,0,0,0 //MC_LOUD#Crazy Uproar#
5,410,1,0,0,0,0,0,0,0,0,0,0 //WE_CALLBABY#Call Baby#
Posted

Thank you! its working but i can't change job because i have skill points remain.

 

Any other way to removed effect of discount and overcharge?



Nvm i configure it out with my own. thanks anyway.

 

 

src/pc.c

/*==========================================
 * Update buying value by skills
 *------------------------------------------*/
int pc_modifybuyvalue(struct map_session_data *sd,int orig_value)
{
    int skill,val = orig_value,rate1 = 0,rate2 = 0;
    if((skill=pc_checkskill(sd,MC_DISCOUNT))>0)    // merchant discount
        rate1 = 5+skill*2-((skill==10)? 1:0);
    if((skill=pc_checkskill(sd,RG_COMPULSION))>0)     // rogue discount
        rate2 = 5+skill*4;
    if(rate1 < rate2) rate1 = rate2;
    if(rate1)
        //val = (int)((double)orig_value*(double)(100-rate1)/100.);
    if(val < 0) val = 0;
    if(orig_value > 0 && val < 1) val = 1;

    return val;
}
 
/*==========================================
 * Update selling value by skills
 *------------------------------------------*/
int pc_modifysellvalue(struct map_session_data *sd,int orig_value)
{
    int skill,val = orig_value,rate = 0;
    if((skill=pc_checkskill(sd,MC_OVERCHARGE))>0)    //OverCharge
        rate = 5+skill*2-((skill==10)? 1:0);
    if(rate)
        //val = (int)((double)orig_value*(double)(100+rate)/100.);
    if(val < 0) val = 0;
    if(orig_value > 0 && val < 1) val = 1;

    return val;
}
 

 

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...