Yonko Posted March 26, 2017 Group: Members Topic Count: 166 Topics Per Day: 0.03 Content Count: 789 Reputation: 50 Joined: 04/16/12 Last Seen: July 8, 2022 Share 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 Link to comment Share on other sites More sharing options...
0 Kichi Posted March 26, 2017 Group: Members Topic Count: 25 Topics Per Day: 0.01 Content Count: 509 Reputation: 80 Joined: 11/20/11 Last Seen: October 3, 2020 Share 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 Link to comment Share on other sites More sharing options...
0 Yonko Posted March 26, 2017 Group: Members Topic Count: 166 Topics Per Day: 0.03 Content Count: 789 Reputation: 50 Joined: 04/16/12 Last Seen: July 8, 2022 Author Share 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 Link to comment Share on other sites More sharing options...
0 Cyro Posted March 26, 2017 Group: Members Topic Count: 9 Topics Per Day: 0.00 Content Count: 1138 Reputation: 290 Joined: 04/29/13 Last Seen: July 20, 2024 Share 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 Link to comment Share on other sites More sharing options...
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
Link to comment
Share on other sites
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.