Zephyrus 0 Posted July 11, 2013 how i can disable cashshop in pvp & woe map? Quote Share this post Link to post Share on other sites
kyeme 71 Posted July 11, 2013 how i can disable cashshop in pvp & woe map? We dont have Here im suggesting http://herc.ws/board/topic/1477-mapflag-for-cash-shop/ xD Quote Share this post Link to post Share on other sites
quesoph 105 Posted July 11, 2013 (edited) nocashshop.patch or for pvp and gvg void clif_parse_CashShopOpen(int fd, struct map_session_data *sd) {+ if( map[sd->bl.m].flag.gvg || map[sd->bl.m].flag.pvp ) {+ clif->message(fd,"You cant open cash shop");+ return;+ } WFIFOHEAD(fd, 10); WFIFOW(fd, 0) = 0x845; WFIFOL(fd, 2) = sd->cashPoints; //[Ryuuzaki] - switched positions to reflect proper values WFIFOL(fd, 6) = sd->kafraPoints; WFIFOSET(fd, 10); } PS. I am not really good with src. Edited July 11, 2013 by quesoph 2 jaBote and kyeme reacted to this Quote Share this post Link to post Share on other sites
kyeme 71 Posted July 11, 2013 nocashshop.patch or for pvp and gvg void clif_parse_CashShopOpen(int fd, struct map_session_data *sd) {+ if( map[sd->bl.m].flag.gvg || map[sd->bl.m].flag.pvp ) {+ clif->message(fd,"You cant open cash shop");+ return;+ } WFIFOHEAD(fd, 10); WFIFOW(fd, 0) = 0x845; WFIFOL(fd, 2) = sd->cashPoints; //[Ryuuzaki] - switched positions to reflect proper values WFIFOL(fd, 6) = sd->kafraPoints; WFIFOSET(fd, 10); } PS. I am not really good with src. Wow its working! Quote Share this post Link to post Share on other sites
kyeme 71 Posted October 25, 2013 nocashshop.patch or for pvp and gvg void clif_parse_CashShopOpen(int fd, struct map_session_data *sd) {+ if( map[sd->bl.m].flag.gvg || map[sd->bl.m].flag.pvp ) {+ clif->message(fd,"You cant open cash shop");+ return;+ } WFIFOHEAD(fd, 10); WFIFOW(fd, 0) = 0x845; WFIFOL(fd, 2) = sd->cashPoints; //[Ryuuzaki] - switched positions to reflect proper values WFIFOL(fd, 6) = sd->kafraPoints; WFIFOSET(fd, 10); } PS. I am not really good with src. Hi, can you update this? Thank youuuu Quote Share this post Link to post Share on other sites
Lulu 25 Posted October 25, 2013 what happened? not working? Quote Share this post Link to post Share on other sites
ossi0110 200 Posted October 25, 2013 (edited) nocashshop.patch or for pvp and gvg void clif_parse_CashShopOpen(int fd, struct map_session_data *sd) {+ if( map[sd->bl.m].flag.gvg || map[sd->bl.m].flag.pvp ) {+ clif->message(fd,"You cant open cash shop");+ return;+ } WFIFOHEAD(fd, 10); WFIFOW(fd, 0) = 0x845; WFIFOL(fd, 2) = sd->cashPoints; //[Ryuuzaki] - switched positions to reflect proper values WFIFOL(fd, 6) = sd->kafraPoints; WFIFOSET(fd, 10); } PS. I am not really good with src. Hi, can you update this? Thank youuuu try this one , its untested because im on phone online atm , but the src you quoted can not work because of the HPM interface changes to the MAP interface void clif_parse_CashShopOpen(int fd, struct map_session_data *sd) {+ if( map->list[sd->bl.m].flag.gvg || map->list[sd->bl.m].flag.pvp ) {+ clif->message(fd,"You cant open cash shop");+ return;+ } WFIFOHEAD(fd, 10); WFIFOW(fd, 0) = 0x845; WFIFOL(fd, 2) = sd->cashPoints; //[Ryuuzaki] - switched positions to reflect proper values WFIFOL(fd, 6) = sd->kafraPoints; WFIFOSET(fd, 10); } Edited October 25, 2013 by ossi0110 Quote Share this post Link to post Share on other sites
quesoph 105 Posted October 25, 2013 @kyeme just change map[sd->bl.m].flag.gvg || map[sd->bl.m].flag.pvp to map->list[sd->bl.m].flag.gvg || map->list[sd->bl.m].flag.pvp Quote Share this post Link to post Share on other sites
kyeme 71 Posted October 25, 2013 (edited) Yes already done, thank you. And also the: --- src/map/script.c (revision 12038)+++ src/map/script.c (working copy)@@ -239,7 +239,8 @@ MF_PVP_NOCALCRANK, //50 MF_BATTLEGROUND, MF_RESET,- MF_NOTOMB+ MF_NOTOMB,+ MF_NOCASHSHOP }; is no longer in script.c and they moved @ script.h Thank you guys. Edited October 25, 2013 by kyeme Quote Share this post Link to post Share on other sites
Ind 945 Posted October 25, 2013 added in https://github.com/HerculesWS/Hercules/commit/8629562655cfcbd6aef97307e3e0c078235619ff Quote Share this post Link to post Share on other sites