|
@@ -19435,14 +19435,20 @@ BUILDIN_FUNC(warpportal)
|
|
|
**/
|
|
|
BUILDIN_FUNC(openmail)
|
|
|
{
|
|
|
- TBL_PC* sd;
|
|
|
+ struct map_session_data* sd;
|
|
|
|
|
|
if (!script_charid2sd(2,sd))
|
|
|
return SCRIPT_CMD_FAILURE;
|
|
|
|
|
|
+#if PACKETVER < 20150513
|
|
|
mail_openmail(sd);
|
|
|
|
|
|
return SCRIPT_CMD_SUCCESS;
|
|
|
+#else
|
|
|
+ ShowError( "buildin_openmail: This command is not supported for PACKETVER 2015-05-13 or newer.\n" );
|
|
|
+
|
|
|
+ return SCRIPT_CMD_FAILURE;
|
|
|
+#endif
|
|
|
}
|
|
|
|
|
|
/**
|