summaryrefslogtreecommitdiff
path: root/src/map/trade.c
diff options
context:
space:
mode:
authorskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-03-15 21:07:00 +0000
committerskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-03-15 21:07:00 +0000
commitbde640d49c4a26203d76ea5884c1264b3f7828e2 (patch)
tree35be87ac5f58dcdb1a389da9db6fc77db1b9c4d7 /src/map/trade.c
parent29424f4862169ff53b78b233a1ef490329817f0f (diff)
downloadhercules-bde640d49c4a26203d76ea5884c1264b3f7828e2.tar.gz
hercules-bde640d49c4a26203d76ea5884c1264b3f7828e2.tar.bz2
hercules-bde640d49c4a26203d76ea5884c1264b3f7828e2.tar.xz
hercules-bde640d49c4a26203d76ea5884c1264b3f7828e2.zip
- Added mapflag nodrop, fixed mapflag notrade.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@5619 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/trade.c')
-rw-r--r--src/map/trade.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/map/trade.c b/src/map/trade.c
index c9b9b21b0..15f99b9c4 100644
--- a/src/map/trade.c
+++ b/src/map/trade.c
@@ -29,6 +29,11 @@ void trade_traderequest(struct map_session_data *sd, int target_id) {
nullpo_retv(sd);
+ if (map[sd->bl.m].flag.notrade) {
+ clif_displaymessage (sd->fd, msg_txt(272));
+ return; //Can't trade in notrade mapflag maps.
+ }
+
if ((target_sd = map_id2sd(target_id)) != NULL) {
if (!battle_config.invite_request_check) {
if (target_sd->guild_invite > 0 || target_sd->party_invite > 0) {