sendmail

AnnieRuru

~~Cute~Cute~Scripter~~
Messages
1,677
Points
0
Location
your next door ~
Discord
AnnieRuru#1609
Github
AnnieRuru
Emulator
Client Version
2019-05-30aRagexeRE
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
 
Last edited by a moderator:
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 strncpymy 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
Code:
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

 
ahh ! figure out now

need to add both

Code:
#include "../common/strlib.h"
Code:
strlib = GET_SYMBOL("strlib");
fixed that ! thanks to Ind <3
 
Last edited by a moderator:
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?

 
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

 
im having this with version 2.0

 
Code:
        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
 
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
default_sad.png


 
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
default_sad.png
2015 have rodex, which is mail system
 
Hello Ms. @AnnieRuru 

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

Code:
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
 
Last edited by a moderator:
Back
Top