Jump to content
  • 0

Requesting Vending Modification


Question

Posted

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

  • 0
Posted
--- 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

 

  • Upvote 1
  • 0
Posted
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 =)

  • 0
Posted
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
 
 
  • Upvote 1

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.   Paste as plain text instead

  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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...