AnnieRuru 957 Posted February 24, 2014 (edited) 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 October 27, 2015 by AnnieRuru 1 Mihael reacted to this Quote Share this post Link to post Share on other sites
Ind 945 Posted February 24, 2014 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 1 AnnieRuru reacted to this Quote Share this post Link to post Share on other sites
karazu 33 Posted February 24, 2014 Does 2013/08/07 client still support email? I think not anymore? Quote Share this post Link to post Share on other sites
Angelmelody 221 Posted February 25, 2014 Does 2013/08/07 client still support email? I think not anymore? try other <langtype>?</langtype> Quote Share this post Link to post Share on other sites
AnnieRuru 957 Posted February 25, 2014 you can fix that by using 1) including ../common/strlib.h, loading the strlib interface and replacing strncpy with safestrncpyI 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 instead1>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 Quote Share this post Link to post Share on other sites
Neo-Mind 264 Posted February 25, 2014 Does 2013/08/07 client still support email? I think not anymore? use the "Enable Mailbox for all langtypes" patch in NEMO. Quote Share this post Link to post Share on other sites
AnnieRuru 957 Posted February 25, 2014 ahh ! figure out now need to add both #include "../common/strlib.h" strlib = GET_SYMBOL("strlib");fixed that ! thanks to Ind <3 Quote Share this post Link to post Share on other sites
Ink 1 Posted July 16, 2014 (edited) nvm Edited July 16, 2014 by Medusalem Quote Share this post Link to post Share on other sites
Kong 9 Posted March 25, 2015 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? Quote Share this post Link to post Share on other sites
AnnieRuru 957 Posted October 27, 2015 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 Quote Share this post Link to post Share on other sites
Kong 9 Posted October 28, 2015 Going to test this thanks @@AnnieRuru Quote Share this post Link to post Share on other sites
astralprojection 35 Posted February 5, 2016 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 Quote Share this post Link to post Share on other sites
15peaces 18 Posted February 6, 2016 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 Quote Share this post Link to post Share on other sites
Dastgir 1246 Posted February 6, 2016 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 1 ReckedCat reacted to this Quote Share this post Link to post Share on other sites
15peaces 18 Posted February 6, 2016 but RODEX isn't working yet, right? ^^ Quote Share this post Link to post Share on other sites
uzami 0 Posted March 20, 2016 (edited) hey... maybe it'll be a dump question, but, how do i add this on my server? :x i'm get this error... https://uploaddeimagens.com.br/imagens/erro01-jpg--4 and my visual studio its all okay https://uploaddeimagens.com.br/imagens/erro02-jpg Edited March 20, 2016 by uzami Quote Share this post Link to post Share on other sites
MikZ 5 Posted April 17, 2016 (edited) 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 valuesendmail.c:166: warning: format ‘%d’ expects type ‘int’, but argument 17 has type ‘time_t’PLUGIN sendmail Edited April 17, 2016 by MikZ Quote Share this post Link to post Share on other sites