From 38b5e25fd06a5d03413f59e3e37c6ffc21d0d02d Mon Sep 17 00:00:00 2001 From: zephyrus Date: Mon, 22 Oct 2007 20:38:26 +0000 Subject: - Added the new mail system. Requires optimization and tests. - Updated the maildb sql structure. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@11548 54d463be-8e91-2dee-dedb-b68131a5f0ec --- src/map/script.c | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'src/map/script.c') diff --git a/src/map/script.c b/src/map/script.c index 9de888e31..0e4144605 100644 --- a/src/map/script.c +++ b/src/map/script.c @@ -39,6 +39,7 @@ #include "unit.h" #include "irc.h" #include "pet.h" +#include "mail.h" #include "script.h" #include @@ -4052,6 +4053,10 @@ BUILDIN_FUNC(getmonsterinfo); // [Lupus] BUILDIN_FUNC(checkvending); // check vending [Nab4] BUILDIN_FUNC(checkchatting); // check chatting [Marka] +#ifndef TXT_ONLY +BUILDIN_FUNC(openmail); // [Mail System] +#endif + #ifdef PCRE_SUPPORT BUILDIN_FUNC(defpattern); // MouseJstr BUILDIN_FUNC(activatepset); // MouseJstr @@ -4390,6 +4395,9 @@ struct script_function buildin_func[] = { BUILDIN_DEF(roclass,"i*"), //[Skotlex] BUILDIN_DEF(checkvending,"*"), BUILDIN_DEF(checkchatting,"*"), +#ifndef TXT_ONLY + BUILDIN_DEF(openmail,""), +#endif {NULL,NULL,NULL}, }; @@ -13446,3 +13454,11 @@ BUILDIN_FUNC(warpportal) return 0; } + +#ifndef TXT_ONLY +BUILDIN_FUNC(openmail) +{ + mail_openmail(script_rid2sd(st)); + return 0; +} +#endif -- cgit v1.2.3-70-g09d2