Jump to content
Zephyrus

Disable Cashshop in pvp & woe

Recommended Posts

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 by quesoph

Share this post


Link to post
Share on other sites

attachicon.gifnocashshop.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! :)

Share this post


Link to post
Share on other sites

attachicon.gifnocashshop.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 :)

Share this post


Link to post
Share on other sites

 

attachicon.gifnocashshop.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 by ossi0110

Share this post


Link to post
Share on other sites

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 by kyeme

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.