Critica 2 Posted May 17, 2013 Sup guys! any one here have a Discount Mapflag?or any script that can disable Discount skill on certain maps, Quote Share this post Link to post Share on other sites
0 Xgear 44 Posted May 20, 2013 (edited) 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 May 20, 2013 by Xgear 1 Only4fun reacted to this Quote Share this post Link to post Share on other sites
Sup guys! any one here have a Discount Mapflag?
or any script that can disable Discount skill on certain maps,
Share this post
Link to post
Share on other sites