Jump to content
  • 0

How to removed discount


Tonetzkii

Question


  • Group:  Members
  • Topic Count:  47
  • Topics Per Day:  0.01
  • Content Count:  323
  • Reputation:   9
  • Joined:  11/19/11
  • Last Seen:  

Good day!

How to removed discount skill of merchant classes.?

Link to comment
Share on other sites

2 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  50
  • Topics Per Day:  0.01
  • Content Count:  1702
  • Reputation:   241
  • Joined:  09/05/12
  • Last Seen:  

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#
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  47
  • Topics Per Day:  0.01
  • Content Count:  323
  • Reputation:   9
  • Joined:  11/19/11
  • Last Seen:  

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

 

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