Yonko Posted March 26, 2017 Posted March 26, 2017 Hi, Can I request a simple modification of vending skill can be used only in a specific map for example only in alberta. Vending skill will not work except in alberta town thank you Quote
0 Kichi Posted March 26, 2017 Posted March 26, 2017 --- a/src/map/skill.c +++ b/src/map/skill.c @@ -695,7 +695,7 @@ bool skill_isNotOk(uint16 skill_id, struct map_session_data *sd) break; case MC_VENDING: case ALL_BUYING_STORE: - if( map[sd->bl.m].flag.novending ) { + if( map[sd->bl.m].flag.novending || strcmp(map[sd->bl.m].name ,"alberta") ) { clif_displaymessage (sd->fd, msg_txt(sd,276)); // "You can't open a shop on this map" clif_skill_fail(sd,skill_id,USESKILL_FAIL_LEVEL,0); return true; On Skill.c shop except alberta is prohibited 1 Quote
0 Yonko Posted March 26, 2017 Author Posted March 26, 2017 25 minutes ago, Kichi said: --- a/src/map/skill.c +++ b/src/map/skill.c @@ -695,7 +695,7 @@ bool skill_isNotOk(uint16 skill_id, struct map_session_data *sd) break; case MC_VENDING: case ALL_BUYING_STORE: - if( map[sd->bl.m].flag.novending ) { + if( map[sd->bl.m].flag.novending || strcmp(map[sd->bl.m].name ,"alberta") ) { clif_displaymessage (sd->fd, msg_txt(sd,276)); // "You can't open a shop on this map" clif_skill_fail(sd,skill_id,USESKILL_FAIL_LEVEL,0); return true; On Skill.c shop except alberta is prohibited Thank you it works =) Quote
0 Cyro Posted March 26, 2017 Posted March 26, 2017 1 hour ago, Yonko said: Hi, Can I request a simple modification of vending skill can be used only in a specific map for example only in alberta. Vending skill will not work except in alberta town thank you If you are referring to auto trade in one certain map Fine this in misc.conf And place mapflag autotrade for the map you want // Allow autotrade only in maps with autotrade flag? // Set this to "no" to allow autotrade where no "autotrade" mapflag is set. // Set this to "yes" to only allow autotrade on maps with "autotrade" mapflag. at_mapflag: yes 1 Quote
Question
Yonko
Hi,

Can I request a simple modification of vending skill can be used only in a specific map for example only in alberta. Vending skill will not work except in alberta town thank you
3 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.