Jump to content
  • 0
Brynner

how to disable mail system?

Question

12 answers to this question

Recommended Posts

  • 0

and also the *openmail

https://github.com/HerculesWS/Hercules/blob/master/npc/other/mail.txt

 

but wait,

why you want to disable it ? is there some kind of bug ?

if using langtype 0, it working fine ...

 

euphy's woe setter script uses mailbox to send the reward ..

Share this post


Link to post
Share on other sites
  • 0

bug maybe...

 

last time i have an issue with this mail system.. they can dup items via mail system and i dont know how they do it.. i just found out that they got loads of stuff so decided to mac ban them :P

 

and oh i remember there is a same issue also i forgot if its here or on rA.

 

disable the npc and dont put @mail commands on group 0 that's what i did after..

Edited by leloush

Share this post


Link to post
Share on other sites
  • 0

Disable the @mail command for normal players.

you can still use mail system via alt+h then send message. or it can be access via npc.

 

and also the *openmail

https://github.com/HerculesWS/Hercules/blob/master/npc/other/mail.txt

 

but wait,

why you want to disable it ? is there some kind of bug ?

if using langtype 0, it working fine ...

 

euphy's woe setter script uses mailbox to send the reward ..

 

bug maybe...

 

last time i have an issue with this mail system.. they can dup items via mail system and i dont know how they do it.. i just found out that they got loads of stuff so decided to mac ban them :P

 

and oh i remember there is a same issue also i forgot if its here or on rA.

 

disable the npc and dont put @mail commands on group 0 that's what i did after..

yup there is a bug regarding on it specially when you have a @security on your server.

Share this post


Link to post
Share on other sites
  • 0

 

Disable the @mail command for normal players.

you can still use mail system via alt+h then send message. or it can be access via npc.

 

>>and also the *openmail

https://github.com/HerculesWS/Hercules/blob/master/npc/other/mail.txt

 

but wait,

why you want to disable it ? is there some kind of bug ?

if using langtype 0, it working fine ...

 

euphy's woe setter script uses mailbox to send the reward ..

 

bug maybe...

 

last time i have an issue with this mail system.. they can dup items via mail system and i dont know how they do it.. i just found out that they got loads of stuff so decided to mac ban them :P

 

and oh i remember there is a same issue also i forgot if its here or on rA.

 

disable the npc and dont put @mail commands on group 0 that's what i did after..

yup there is a bug regarding on it specially when you have a @security on your server.

 

yeah they can send via alt + h but the reciever won't get the items/msg since you need the @mail or mail npc to view the inbox so its useless

 

just make sure the mail.txt is disabled so no npc at all no commands as well.

Edited by leloush

Share this post


Link to post
Share on other sites
  • 0

a little src edit would do the trick :) open mail.c

search for:

 

int mail_openmail(struct map_session_data *sd){	nullpo_ret(sd);	if( sd->state.storage_flag || sd->state.vending || sd->state.buyingstore || sd->state.trading )		return 0;	clif->mail_window(sd->fd, 0);	return 1;}

and change that into something like:

 

int mail_openmail(struct map_session_data *sd){	nullpo_ret(sd);	return 0;}

and recompile

Share this post


Link to post
Share on other sites
  • 0

 

Disable the @mail command for normal players.

you can still use mail system via alt+h then send message. or it can be access via npc.

 

>>and also the *openmail

https://github.com/HerculesWS/Hercules/blob/master/npc/other/mail.txt

 

but wait,

why you want to disable it ? is there some kind of bug ?

if using langtype 0, it working fine ...

 

euphy's woe setter script uses mailbox to send the reward ..

 

bug maybe...

 

last time i have an issue with this mail system.. they can dup items via mail system and i dont know how they do it.. i just found out that they got loads of stuff so decided to mac ban them :P

 

and oh i remember there is a same issue also i forgot if its here or on rA.

 

disable the npc and dont put @mail commands on group 0 that's what i did after..

yup there is a bug regarding on it specially when you have a @security on your server.

 

Hello,

I never was aware (I must not be the only one) people could dupe using a bug related to the mail system, could you please elaborate for us ?

So we can take counter-measures too if necessary.

Thanks !

Edited by Adam

Share this post


Link to post
Share on other sites
  • 0

not really mail bugged. Mail system -> opens a door to send some items/zeny when you busy at bugged NPC.

How usually people dupe (and i was dupe too...):

  1. find a bad code exchanger something to anything.
  2. this code must not check in the last part of the script parameters before giving some item. 

Example:

 

 

mes "Hi i will change your zeny for coins";mes "how many you need?";input .@coins_count;if (Zeny < .@coins_count * .price_value)    end;getitem .coinID,.@coins_count;..open mail..set Zeny,Zeny - .@coins_count * .price_value; 

 

And many many other exaples like that doing exploits. First of all, "@storage", @guildstorage, openmail it's just a "backdoor" to send some item before "checks".

But in past, (200*-2012) this system was bugged and by sending some packets, you can crash the server, and make a buffer overflow money, or extra items by wrong checks, etc.

 

Example # 2

 

mes "bla bla";input .@coin_num;......if ( Zeny > .@coin_num * .coin_cost )....EXPLOIT opencart/storage/guildstoarge/etc and send to another account items & zeny etc.NEXT;mes "Congradulations you get coin! bla blba ~~";mes "And you get bug!";set Zeny,Zeny-.@coin_num * .coin_cost;getitem .coin_id,.@coin_num;end;
Edited by Fire Pillar

Share this post


Link to post
Share on other sites
  • 0

is it possible to disable that features on Hercules?

 

have you tried my src edit? :D

Edited by evilpuncker

Share this post


Link to post
Share on other sites
  • 0

 

not really mail bugged. Mail system -> opens a door to send some items/zeny when you busy at bugged NPC.

How usually people dupe (and i was dupe too...):

  1. find a bad code exchanger something to anything.
  2. this code must not check in the last part of the script parameters before giving some item. 

Example:

 

 

mes "Hi i will change your zeny for coins";mes "how many you need?";input .@coins_count;if (Zeny < .@coins_count * .price_value)    end;getitem .coinID,.@coins_count;..open mail..set Zeny,Zeny - .@coins_count * .price_value; 

 

And many many other exaples like that doing exploits. First of all, "@storage", @guildstorage, openmail it's just a "backdoor" to send some item before "checks".

But in past, (200*-2012) this system was bugged and by sending some packets, you can crash the server, and make a buffer overflow money, or extra items by wrong checks, etc.

 

Example # 2

 

mes "bla bla";input .@coin_num;......if ( Zeny > .@coin_num * .coin_cost )....EXPLOIT opencart/storage/guildstoarge/etc and send to another account items & zeny etc.NEXT;mes "Congradulations you get coin! bla blba ~~";mes "And you get bug!";set Zeny,Zeny-.@coin_num * .coin_cost;getitem .coin_id,.@coin_num;end;

Thanks for the in-depth explanation, now you make me want to double check some scripts.

Share this post


Link to post
Share on other sites
  • 0

The easy protection against this "dupe", it's make check before giving item, it's easy, and like that it must be.

 

Example: 

 

if (Zeny >= .@coin_num * .coin_cost) {set .@tmp_zeny, Zeny - .@coin_num * .coin_cost;if (.@tmp_zeny >= .@coin_num * .coin_cost) {set Zeny, Zeny - .@coin_num *.coin_cost;   getitem .itemID,.@coin_num;}} 

 

 

But there, if know some guy, who was send packets  to the server. And some packets he just block by firewall. But it was in 2012.

Now it do not work, really dunno why, did't test it. 

Edited by Fire Pillar

Share this post


Link to post
Share on other sites
  • 0

The easy protection against this "dupe", it's make check before giving item, it's easy, and like that it must be.

 

Example: 

 

if (Zeny >= .@coin_num * .coin_cost) {set Zeny, Zeny - .@coin_num * .coin_cost;if (Zeny >= .@coin_num * .coin_cost)   getitem .itemID,.@coin_num;} 

 

 

But there, if know some guy, who was send packets  to the server. And some packets he just block by firewall. But it was in 2012.

Now it do not work, really dunno why, did't test it. 

Sweet, thanks.

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

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