|
@@ -25840,6 +25840,27 @@ BUILDIN_FUNC( open_quest_ui ){
|
|
return SCRIPT_CMD_SUCCESS;
|
|
return SCRIPT_CMD_SUCCESS;
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+BUILDIN_FUNC(openbank){
|
|
|
|
+#if PACKETVER < 20150128
|
|
|
|
+ ShowError( "buildin_openbank: This command requires PACKETVER 20150128 or newer.\n" );
|
|
|
|
+ return SCRIPT_CMD_FAILURE;
|
|
|
|
+#else
|
|
|
|
+ struct map_session_data* sd = nullptr;
|
|
|
|
+
|
|
|
|
+ if (!script_charid2sd(2, sd)) {
|
|
|
|
+ return SCRIPT_CMD_FAILURE;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ if( !battle_config.feature_banking ){
|
|
|
|
+ ShowError( "buildin_openbank: banking is disabled.\n" );
|
|
|
|
+ return SCRIPT_CMD_FAILURE;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ clif_ui_open( sd, OUT_UI_BANK, 0 );
|
|
|
|
+ return SCRIPT_CMD_SUCCESS;
|
|
|
|
+#endif
|
|
|
|
+}
|
|
|
|
+
|
|
#include "../custom/script.inc"
|
|
#include "../custom/script.inc"
|
|
|
|
|
|
// declarations that were supposed to be exported from npc_chat.cpp
|
|
// declarations that were supposed to be exported from npc_chat.cpp
|
|
@@ -26553,6 +26574,7 @@ struct script_function buildin_func[] = {
|
|
BUILDIN_DEF(laphine_upgrade, ""),
|
|
BUILDIN_DEF(laphine_upgrade, ""),
|
|
BUILDIN_DEF(randomoptgroup,"i"),
|
|
BUILDIN_DEF(randomoptgroup,"i"),
|
|
BUILDIN_DEF(open_quest_ui, "??"),
|
|
BUILDIN_DEF(open_quest_ui, "??"),
|
|
|
|
+ BUILDIN_DEF(openbank,"?"),
|
|
#include "../custom/script_def.inc"
|
|
#include "../custom/script_def.inc"
|
|
|
|
|
|
{NULL,NULL,NULL},
|
|
{NULL,NULL,NULL},
|