LMAO !! I love people think outside the box
src/map/clif.cpp | 4 ++--
src/map/skill.cpp | 4 ++--
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/map/clif.cpp b/src/map/clif.cpp
index e1cc9b555..fae1e15da 100644
--- a/src/map/clif.cpp
+++ b/src/map/clif.cpp
@@ -13398,11 +13398,11 @@ void clif_parse_OpenVending(int fd, struct map_session_data* sd){
if( sd->sc.data[SC_NOCHAT] && sd->sc.data[SC_NOCHAT]->val1&MANNER_NOROOM )
return;
- if( map_getmapflag(sd->bl.m, MF_NOVENDING) ) {
+ if( !map_getmapflag(sd->bl.m, MF_NOVENDING) ) {
clif_displaymessage (sd->fd, msg_txt(sd,276)); // "You can't open a shop on this map"
return;
}
- if( map_getcell(sd->bl.m,sd->bl.x,sd->bl.y,CELL_CHKNOVENDING) ) {
+ if( !map_getcell(sd->bl.m,sd->bl.x,sd->bl.y,CELL_CHKNOVENDING) ) {
clif_displaymessage (sd->fd, msg_txt(sd,204)); // "You can't open a shop on this cell."
return;
}
diff --git a/src/map/skill.cpp b/src/map/skill.cpp
index e5cd8c61d..77ae11e5e 100755
--- a/src/map/skill.cpp
+++ b/src/map/skill.cpp
@@ -746,12 +746,12 @@ bool skill_isNotOk(uint16 skill_id, struct map_session_data *sd)
break;
case MC_VENDING:
case ALL_BUYING_STORE:
- if( map_getmapflag(sd->bl.m, MF_NOVENDING) ) {
+ if( !map_getmapflag(sd->bl.m, MF_NOVENDING) ) {
clif_displaymessage (sd->fd, msg_txt(sd,276)); // "You can't open a shop on this map"
clif_skill_fail(sd,skill_id,USESKILL_FAIL_LEVEL,0);
return true;
}
- if( map_getcell(sd->bl.m,sd->bl.x,sd->bl.y,CELL_CHKNOVENDING) ) {
+ if( !map_getcell(sd->bl.m,sd->bl.x,sd->bl.y,CELL_CHKNOVENDING) ) {
clif_displaymessage (sd->fd, msg_txt(sd,204)); // "You can't open a shop on this cell."
clif_skill_fail(sd,skill_id,USESKILL_FAIL_LEVEL,0);
return true;
- script fdsdf FAKE_NPC,{
OnInit:
setmapflag "prontera", mf_novending, true;
setcell "prontera",0,0,500,500, cell_novending, true;
end;
}
yeah this actually works !