Jump to content

Recommended Posts

Sorry if anyone already suggested it in the first place, but would it be possible to add rodex mapflag. it would be really helpful, if a player got jailed and they're didn't sent any item back to other char.

same goes for instance, they can receive item from other player outside instance. I remember kRO allow them but it would be enchantment suggestion since it's not official at all.. (not sure if kRO implementing this in the future)

Share this post


Link to post
Share on other sites
33 minutes ago, rayhanalka said:

Sorry if anyone already suggested it in the first place, but would it be possible to add rodex mapflag. it would be really helpful, if a player got jailed and they're didn't sent any item back to other char.

same goes for instance, they can receive item from other player outside instance. I remember kRO allow them but it would be enchantment suggestion since it's not official at all.. (not sure if kRO implementing this in the future)

Im just curious. Jailed, do you mean you want them to be unjailed later on (with their item also) ?

Or else just ban them ? 

Try to suggest in rAthena github https://github.com/rathena/rathena/issues

Share this post


Link to post
Share on other sites
Posted (edited)
13 hours ago, rayhanalka said:

Sorry if anyone already suggested it in the first place, but would it be possible to add rodex mapflag. it would be really helpful, if a player got jailed and they're didn't sent any item back to other char.

same goes for instance, they can receive item from other player outside instance. I remember kRO allow them but it would be enchantment suggestion since it's not official at all.. (not sure if kRO implementing this in the future)

i did this already. wait for the approval of the file. this is paid version release.

 

Edited by BeWan

Share this post


Link to post
Share on other sites
src/map/script_constants.hpp
	export_constant(MF_LOADEVENT);
	+export_constant(MF_NORODEX);


src/map/map.hpp
	MF_SKILL_DURATION,
	+MF_NORODEX,

src/map/clif.cpp



in > void clif_parse_Mail_read(int fd, struct map_session_data *sd){
	

	+if(map_getmapflag(sd->bl.m, MF_NORODEX)) {
	+	clif_messagecolor(&sd->bl,color_table[COLOR_RED],msg_txt(sd,899),false,SELF);
	+	return 0;
	+}
	if( mail_id <= 0 )
		return;
	if( mail_invalid_operation(sd) )

in > void clif_parse_Mail_beginwrite( int fd, struct map_session_data *sd ){
	
	safestrncpy(name, RFIFOCP(fd, 2), NAME_LENGTH);
	+if(map_getmapflag(sd->bl.m, MF_NORODEX)) {
	+	clif_messagecolor(&sd->bl,color_table[COLOR_RED],msg_txt(sd,899),false,SELF);
	+	return 0;
	+}

conf/msg_conf/map_msg.conf

    -//796-899 free
    +//796-898 free
    +//NO Rodex
    +899: Rodex is disabled in this map

Try this only block read email and create new email

  • Upvote 2
  • MVP 1

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