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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×
×
  • Create New...

Important Information

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