Jump to content
  • 2

Disabling Bank/RODEX on certain maps


gekigengar

Question


  • Group:  Members
  • Topic Count:  49
  • Topics Per Day:  0.01
  • Content Count:  174
  • Reputation:   2
  • Joined:  08/30/13
  • Last Seen:  

Hello, I apologize if such method existed, but I cannot find anything searching on the forums.

Any ways to disable Bank/RODEX?

Or at least on certain maps like Jail/Certain maps?

There are a lot of item restriction that can be bypassed through RODEX/Bank..

Which caused a lot of my custom content to be broken.

People bypassing NPC checks to certain areas with restricted items through RODEX mail. (Such as no bringing Yggberry to pvp room, an entrance NPC could check, but inside, people can receive mails containing Ygg berry)

Or offending players sending out equipment out of jail through Rodex..

Edited by gekigengar
Link to comment
Share on other sites

4 answers to this question

Recommended Posts

  • 1

  • Group:  Members
  • Topic Count:  18
  • Topics Per Day:  0.01
  • Content Count:  98
  • Reputation:   74
  • Joined:  12/04/14
  • Last Seen:  

On 8/17/2017 at 11:29 AM, gekigengar said:

Hello, I apologize if such method existed, but I cannot find anything searching on the forums.

Any ways to disable Bank/RODEX?

Or at least on certain maps like Jail/Certain maps?

There are a lot of item restriction that can be bypassed through RODEX/Bank..

Which caused a lot of my custom content to be broken.

People bypassing NPC checks to certain areas with restricted items through RODEX mail. (Such as no bringing Yggberry to pvp room, an entrance NPC could check, but inside, people can receive mails containing Ygg berry)

Or offending players sending out equipment out of jail through Rodex..

 

Thanks for sharing this issue.

Try this diff to disable rodex and bank on "nowarp" and "nowarpto" mapflags. I still haven't tested this yet though.

norodex-nobank.diff

Quote

Index: src/map/mail.c
===================================================================
--- src/map/mail.c    (revision 6)
+++ src/map/mail.c    (working copy)
@@ -113,6 +113,10 @@
 * @return see enum mail_attach_result in mail.h
 */
 enum mail_attach_result mail_setitem(struct map_session_data *sd, short idx, uint32 amount) {
+
+    if(map[sd->bl.m].flag.nowarpto || map[sd->bl.m].flag.nowarp)
+        return MAIL_ATTACH_ERROR;
+
     if( pc_istrading(sd) )
         return MAIL_ATTACH_ERROR;
 
Index: src/map/pc.c
===================================================================
--- src/map/pc.c    (revision 7)
+++ src/map/pc.c    (working copy)
@@ -11725,6 +11725,9 @@
 enum e_BANKING_DEPOSIT_ACK pc_bank_deposit(struct map_session_data *sd, int money) {
     unsigned int limit_check = money + sd->bank_vault;
 
+    if(map[sd->bl.m].flag.nowarpto || map[sd->bl.m].flag.nowarp)
+        return BDA_OVERFLOW;
+
     if( money <= 0 || limit_check > MAX_BANK_ZENY ) {
         return BDA_OVERFLOW;
     } else if ( money > sd->status.zeny ) {
 

 

  • Upvote 1
  • Love 1
  • MVP 1
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  162
  • Topics Per Day:  0.05
  • Content Count:  1546
  • Reputation:   192
  • Joined:  07/23/14
  • Last Seen:  

@Keitenai It worked when there's a nowarp mapflag.

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  0
  • Topics Per Day:  0
  • Content Count:  3
  • Reputation:   0
  • Joined:  04/23/20
  • Last Seen:  

I have a error

 

 

dd.thumb.png.47954638f0abb07e4c8ef4f8b3521431.png

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  10
  • Topics Per Day:  0.00
  • Content Count:  65
  • Reputation:   0
  • Joined:  12/10/14
  • Last Seen:  

No work for me. Emulator 

rAthena Commits on Feb 12, 2020.

Link to comment
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
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  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.

×
×
  • Create New...