From 59b77fd300765595d6fbf5333cc541f40c2f0cae Mon Sep 17 00:00:00 2001 From: Lupus Date: Thu, 25 May 2006 16:26:17 +0000 Subject: added noVending mapflag. Tested. + custom Market Place NPC, fixed MSG strings git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@6755 54d463be-8e91-2dee-dedb-b68131a5f0ec --- src/map/vending.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/map/vending.c') diff --git a/src/map/vending.c b/src/map/vending.c index d47fa8ece..607cdc890 100644 --- a/src/map/vending.c +++ b/src/map/vending.c @@ -205,6 +205,10 @@ void vending_openvending(struct map_session_data *sd,int len,char *message,int f int vending_skill_lvl; nullpo_retv(sd); + if (map[sd->bl.m].flag.novending) { + clif_displaymessage (sd->fd, msg_txt(276)); + return; //Can't vend in novending mapflag maps. + } //check shopname len if(message[0] == '\0') return; -- cgit v1.2.3-60-g2f50