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

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

  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.

Loading...
Sign in to follow this  

×
×
  • Create New...

Important Information

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