|
@@ -56,12 +56,18 @@ bool buyingstore_setup(struct map_session_data* sd, unsigned char slots)
|
|
return false;
|
|
return false;
|
|
}
|
|
}
|
|
|
|
|
|
- if( map[sd->bl.m].flag.novending || map_getcell(sd->bl.m, sd->bl.x, sd->bl.y, CELL_CHKNOVENDING) )
|
|
|
|
- {// custom: no vending maps/cells
|
|
|
|
|
|
+ if( map[sd->bl.m].flag.novending )
|
|
|
|
+ {// custom: no vending maps
|
|
clif_displaymessage(sd->fd, msg_txt(276)); // "You can't open a shop on this map"
|
|
clif_displaymessage(sd->fd, msg_txt(276)); // "You can't open a shop on this map"
|
|
return false;
|
|
return false;
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ if( map_getcell(sd->bl.m, sd->bl.x, sd->bl.y, CELL_CHKNOVENDING) )
|
|
|
|
+ {// custom: no vending cells
|
|
|
|
+ clif_displaymessage(sd->fd, msg_txt(204)); // "You can't open a shop on this cell."
|
|
|
|
+ return false;
|
|
|
|
+ }
|
|
|
|
+
|
|
if( slots > MAX_BUYINGSTORE_SLOTS )
|
|
if( slots > MAX_BUYINGSTORE_SLOTS )
|
|
{
|
|
{
|
|
ShowWarning("buyingstore_setup: Requested %d slots, but server supports only %d slots.\n", (int)slots, MAX_BUYINGSTORE_SLOTS);
|
|
ShowWarning("buyingstore_setup: Requested %d slots, but server supports only %d slots.\n", (int)slots, MAX_BUYINGSTORE_SLOTS);
|
|
@@ -105,12 +111,18 @@ void buyingstore_create(struct map_session_data* sd, int zenylimit, unsigned cha
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
|
|
|
|
- if( map[sd->bl.m].flag.novending || map_getcell(sd->bl.m, sd->bl.x, sd->bl.y, CELL_CHKNOVENDING) )
|
|
|
|
- {// custom: no vending maps/cells
|
|
|
|
|
|
+ if( map[sd->bl.m].flag.novending )
|
|
|
|
+ {// custom: no vending maps
|
|
clif_displaymessage(sd->fd, msg_txt(276)); // "You can't open a shop on this map"
|
|
clif_displaymessage(sd->fd, msg_txt(276)); // "You can't open a shop on this map"
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ if( map_getcell(sd->bl.m, sd->bl.x, sd->bl.y, CELL_CHKNOVENDING) )
|
|
|
|
+ {// custom: no vending cells
|
|
|
|
+ clif_displaymessage(sd->fd, msg_txt(204)); // "You can't open a shop on this cell."
|
|
|
|
+ return;
|
|
|
|
+ }
|
|
|
|
+
|
|
weight = sd->weight;
|
|
weight = sd->weight;
|
|
|
|
|
|
// check item list
|
|
// check item list
|