summaryrefslogtreecommitdiff
path: root/src/map/vending.c
diff options
context:
space:
mode:
authorLupus <Lupus@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-05-25 16:26:17 +0000
committerLupus <Lupus@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-05-25 16:26:17 +0000
commit59b77fd300765595d6fbf5333cc541f40c2f0cae (patch)
tree0df1df80b728f6cb89b16c4763d3a11007130e58 /src/map/vending.c
parent173a79cfb2cbba5e7b369e1349c0b1d1618b7ab6 (diff)
downloadhercules-59b77fd300765595d6fbf5333cc541f40c2f0cae.tar.gz
hercules-59b77fd300765595d6fbf5333cc541f40c2f0cae.tar.bz2
hercules-59b77fd300765595d6fbf5333cc541f40c2f0cae.tar.xz
hercules-59b77fd300765595d6fbf5333cc541f40c2f0cae.zip
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
Diffstat (limited to 'src/map/vending.c')
-rw-r--r--src/map/vending.c4
1 files changed, 4 insertions, 0 deletions
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;