Jump to content
  • 0
Sign in to follow this  
Critica

R> Discount Mapflag

Question

1 answer to this question

Recommended Posts

  • 0

Something quick that popped into my mind,

Adding this to src/map/pc.c @ pc_checksill should do the trick.

Then simply add the skill into a map zone as disabled skill. It basically makes pc_checkskill return level zero if the skill is disabled on a zone. 

    if (skill_id == MC_DISCOUNT || skill_id == RG_COMPULSION)     for(ds = 0; ds < map[sd->bl.m].zone->disabled_skills_count; ds++) {         if( skill_id == map[sd->bl.m].zone->disabled_skills[ds]->nameid) {             return 0;         }     }

This would basically turn the skills level 0 on the map it is disabled, disabling the NPC discount. 

 

P.S.: I havnt tested it, but should work. 

Edited by Xgear

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.