Jump to content
AnnieRuru

sendmail

Recommended Posts

Download:

plugin

 

 

tested with

http://upaste.me/c97c10801a13a4261

 

New version 2.0 will no longer need to use query_sql command to send to offline players

I have learn to use SQL->Query in the source, so this script command can send to offline players

 

 

 

 

reference topic

http://www.eathena.ws/board/index.php?showtopic=191107&st=0&p=1050527entry1050527

http://rathena.org/board/topic/92722-a-script-command-for-mailbox/

http://rathena.org/board/topic/74969-send-mail-via-scriptcommand/ <-- Credit to clydelion ... I completely rewrite his mod

 

 

Archive :

 

1.0a

plugin

patch

outdated snippet

http://upaste.me/3ed510802c38349c9

 

2.0

download

- update to new plugin format

- now no longer need to use query_sql, this script command now embedded SQL->Query

--- so now your script will be shorter

 

Edited by AnnieRuru

Share this post


Link to post
Share on other sites

nicee

plugin <-- for the 1st time ... compiler throws strncpy not safe error ...

you can fix that by using 1) including ../common/strlib.h, loading the strlib interface and replacing strncpy with safestrncpy

Share this post


Link to post
Share on other sites

you can fix that by using 1) including ../common/strlib.h, loading the strlib interface and replacing strncpy with safestrncpy

I have already tried that before I changed into strncpy

my map-server.exe crashed

 

so I change into

	strlib->safestrncpy( mail.send_name, send_name, NAME_LENGTH );	strlib->safestrncpy( mail.dest_name, sd->status.name, NAME_LENGTH );	strlib->safestrncpy( mail.title, title, MAIL_TITLE_LENGTH );	strlib->safestrncpy( mail.body, body, MAIL_BODY_LENGTH );
throw this error instead
1>d:herculessrcpluginssendmail.c(153): error C2059: syntax error : '('1>d:herculessrcpluginssendmail.c(154): error C2059: syntax error : '('1>d:herculessrcpluginssendmail.c(155): error C2059: syntax error : '('1>d:herculessrcpluginssendmail.c(156): error C2059: syntax error : '('
.

.

hmm ... I think I make a bug report about this

Share this post


Link to post
Share on other sites

Does 2013/08/07 client  still support email? I think not anymore?

use the "Enable Mailbox for all langtypes" patch in NEMO.

Share this post


Link to post
Share on other sites

ahh ! figure out now

 

need to add both

#include "../common/strlib.h"
strlib = GET_SYMBOL("strlib");
fixed that ! thanks to Ind <3

Share this post


Link to post
Share on other sites

Download:

plugin <-- for those who knows how to install plugin

patch <-- for those who thinks plugin is pain

 

 

tested with

http://upaste.me/c97c10801a13a4261

 

Note:

to send a mail to offline player, you still have to do query_sql

http://upaste.me/3ed510802c38349c9

 

 

 

 

reference topic

http://www.eathena.ws/board/index.php?showtopic=191107&st=0&p=1050527entry1050527

http://rathena.org/board/topic/92722-a-script-command-for-mailbox/

http://rathena.org/board/topic/74969-send-mail-via-scriptcommand/ <-- Credit to clydelion ... I completely rewrite his mod

 

Hi Annie,

 

Quick question, do I still need to add the query to be able to send mail to offline players?

Share this post


Link to post
Share on other sites

update to version 2

 

@@Kong

well maybe late reply

if you are still using the old version ... hercules ... ahem ...

then version 1 needs to check offline player with *isloggedin

 

now I just do version 2, no longer needs to do *isloggedin check anymore

Share this post


Link to post
Share on other sites

im having this with version 2.0

 

 
        CC      sendmail.c
sendmail.c: In function ‘buildin_sendmail’:
sendmail.c:144: warning: suggest parentheses around assignment used as truth value
sendmail.c:166: warning: format ‘%d’ expects type ‘int’, but argument 17 has type ‘time_t’
        PLUGIN  sendmail

 

Share this post


Link to post
Share on other sites

Does 2013/08/07 client  still support email? I think not anymore?

 

With nemos "Enable Mailbox for all langtypes" patch it even works with 2014-10-22bRagexe.

 

however, 2015 clients won't support it anymore I guess :(

Share this post


Link to post
Share on other sites

 

Does 2013/08/07 client  still support email? I think not anymore?

 

With nemos "Enable Mailbox for all langtypes" patch it even works with 2014-10-22bRagexe.

 

however, 2015 clients won't support it anymore I guess :(

2015 have rodex, which is mail system

Share this post


Link to post
Share on other sites

Hello Ms. @AnnieRuru 

May i ask how to solved this?
thank you..

maintenance.c: In function ‘buildin_maintenance’:
maintenance.c:433: warning: format not a string literal and no format arguments
maintenance.c: In function ‘buildin_maintenanceoff’:
maintenance.c:494: warning: format not a string literal and no format arguments
        PLUGIN  maintenance
        CC      MaxLvExpGain.c
        PLUGIN  MaxLvExpGain
        CC      OnPCStatCalcEvent.c
        PLUGIN  OnPCStatCalcEvent
        CC      movespeed.c
        PLUGIN  movespeed
        CC      sendmail.c
sendmail.c: In function ‘buildin_sendmail’:
 
sendmail.c:144: warning: suggest parentheses around assignment used as truth value
sendmail.c:166: warning: format ‘%d’ expects type ‘int’, but argument 17 has type ‘time_t’
PLUGIN sendmail
Edited by MikZ

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