Jump to content
  • 0

How to Disabled Bank & Rodex in jail


Sallycantdance

Question


  • Group:  Members
  • Topic Count:  225
  • Topics Per Day:  0.14
  • Content Count:  798
  • Reputation:   12
  • Joined:  12/04/20
  • Last Seen:  

hello while searching i seen this mapflag nobank and norodex but after i try it putting it in the mapflag
raw.githubusercontent.com/rathena/rathena/refs/heads/master/doc/mapflags.txt

sec_pri    mapflag    nobank
sec_pri    mapflag    norodex
i got this error

[Error]: npc_parse_mapflag: unrecognized mapflag 'norodex'
[Error]: npc_parse_mapflag: unrecognized mapflag 'nobank'
 

bankrodex.png

Link to comment
Share on other sites

3 answers to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  5
  • Topics Per Day:  0.00
  • Content Count:  93
  • Reputation:   33
  • Joined:  11/08/15
  • Last Seen:  

I try and it works.

prontera	mapflag	norodex

 

 

script_constants.hpp

export_constant(MF_NOCASHSHOP);
+export_constant(MF_NORODEX);

 

atcommand.cpp:

if (map_getmapflag(m_id, MF_NOCASHSHOP))
		strcat(atcmd_output, " NoCashShop |");
+if (map_getmapflag(m_id, MF_NORODEX))
+		strcat(atcmd_output, " NoRODex |");

 

mail.cpp

if( !map_getmapflag(sd->bl.m, MF_TOWN) && !pc_can_use_command(sd, "mail", COMMAND_ATCOMMAND) )
	{
		ShowWarning("clif_parse_Mail: char '%s' trying to do invalid mail operations.\n", sd->status.name);
		return true;
	}
#else
	+if( map_getmapflag( sd->bl.m, MF_NORODEX ) ){
	+	clif_displaymessage( sd->fd, msg_txt( sd, 796 ) ); // You cannot use RODEX on this map.
	+	return true;
	+}

 

map.hpp:

MF_NOCASHSHOP, // 70
+MF_NORODEX,

 

Edited by Scanty
Add more info.
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  225
  • Topics Per Day:  0.14
  • Content Count:  798
  • Reputation:   12
  • Joined:  12/04/20
  • Last Seen:  

i think i got my error in mail.ccp

heres yours

Quote
if( !map_getmapflag(sd->bl.m, MF_TOWN) && !pc_can_use_command(sd, "mail", COMMAND_ATCOMMAND) )
	{
		ShowWarning("clif_parse_Mail: char '%s' trying to do invalid mail operations.\n", sd->status.name);
		return true;
	}
#else
	if( map_getmapflag( sd->bl.m, MF_NORODEX ) ){
		clif_displaymessage( sd->fd, msg_txt( sd, 796 ) ); // You cannot use RODEX on this map.
		return true;
	}

and here is mine maybe the reason is my server side is not updated, thats my always problem in putting some diff files in my server cause i dont know how to update it anyways thank you very much sir for your effort and help i really appreciate it Godbless you!

 

Quote

#if PACKETVER < 20150513
    if( !map_getmapflag(sd->bl.m, MF_TOWN) && !pc_can_use_command(sd, "mail", COMMAND_ATCOMMAND) )
    {
        ShowWarning("clif_parse_Mail: char '%s' trying to do invalid mail operations.\n", sd->status.name);
        return true;
    }
#endif

 

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  5
  • Topics Per Day:  0.00
  • Content Count:  93
  • Reputation:   33
  • Joined:  11/08/15
  • Last Seen:  

Sometime just happen, but you can add it by your own, for example i give you the code for norodex, just add all stuff and try 🙂

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