Disable Trade Request during WoE

ThyroDree

New member
Messages
556
Points
0
Location
Philippines
Github
bosxkate23
Emulator
is it possible to disable the Deal / Trade Request During WoE? to avoid those players who distract who is on WoE

 
I remember I wrote noitemtrade mapflag in rathena

http://rathena.org/board/topic/91157-is-there-a-way-to-prevent-use-on-a-specific-map/?p=239281

just need a little tweaking

Code:
 src/map/trade.c | 5 +++++ 1 file changed, 5 insertions(+)diff --git a/src/map/trade.c b/src/map/trade.cindex 44b669e..ad5f101 100644--- a/src/map/trade.c+++ b/src/map/trade.c@@ -36,6 +36,11 @@ void trade_traderequest(struct map_session_data *sd, struct map_session_data *ta 		return; //Can't trade in notrade mapflag maps. 	} +	if ( map->list[sd->bl.m].flag.gvg_castle && ( map->agit_flag || map->agit2_flag ) ) {+		clif->message( sd->fd, "You can't trade inside WoE castle during WoE siege period." );+		return;+	}+ 	if (target_sd == NULL || sd == target_sd) { 		clif->tradestart(sd, 1); // character does not exist 		return;
 
Back
Top