Jump to content
  • 2
gekigengar

Disabling Bank/RODEX on certain maps

Question

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

  • 0
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

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...

Important Information

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