From fc48f925bc858bf65781de8590a93cbae99e75bf Mon Sep 17 00:00:00 2001 From: Cahyadi Ramadhan Togihon Date: Wed, 28 Aug 2013 13:25:18 +0700 Subject: [PATCH] Fixed item_noequip.txt check when player try to equip an item (broken since hmm, I don't know) --- src/map/pc.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/map/pc.c b/src/map/pc.c index 40ac4e3ce2..ec770bc693 100644 --- a/src/map/pc.c +++ b/src/map/pc.c @@ -947,6 +947,16 @@ int pc_isequip(struct map_session_data *sd,int n) } } } + + /* restricted equip */ + if ((!map_flag_vs(sd->bl.m) && item->flag.no_equip&1) || // Normal + (map[sd->bl.m].flag.pvp && item->flag.no_equip&2) || // PVP + (map_flag_gvg(sd->bl.m) && item->flag.no_equip&4) || // GVG + (map[sd->bl.m].flag.battleground && item->flag.no_equip&8) || // Battleground + (map[sd->bl.m].flag.restricted && item->flag.no_equip&(8*map[sd->bl.m].zone)) // Zone restriction + ) + return 0; + //Not equipable by class. [Skotlex] if (!(1<<(sd->class_&MAPID_BASEMASK)&item->class_base[(sd->class_&JOBL_2_1)?1:((sd->class_&JOBL_2_2)?2:0)])) return 0;