ThyroDree
New member
is it possible to disable the Deal / Trade Request During WoE? to avoid those players who distract who is on WoE
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;
We use essential cookies to make this site work, and optional cookies to enhance your experience.