|
@@ -5087,6 +5087,20 @@ BUILDIN_FUNC(next)
|
|
|
return SCRIPT_CMD_SUCCESS;
|
|
|
}
|
|
|
|
|
|
+/// Clears the dialog and continues the script without a next button.
|
|
|
+///
|
|
|
+/// clear;
|
|
|
+BUILDIN_FUNC(clear)
|
|
|
+{
|
|
|
+ TBL_PC* sd;
|
|
|
+
|
|
|
+ if (!script_rid2sd(sd))
|
|
|
+ return SCRIPT_CMD_FAILURE;
|
|
|
+
|
|
|
+ clif_scriptclear(sd, st->oid);
|
|
|
+ return SCRIPT_CMD_SUCCESS;
|
|
|
+}
|
|
|
+
|
|
|
/// Ends the script and displays the button 'close' on the npc dialog.
|
|
|
/// The dialog is closed when the button is pressed.
|
|
|
///
|
|
@@ -23782,6 +23796,7 @@ struct script_function buildin_func[] = {
|
|
|
// NPC interaction
|
|
|
BUILDIN_DEF(mes,"s*"),
|
|
|
BUILDIN_DEF(next,""),
|
|
|
+ BUILDIN_DEF(clear,""),
|
|
|
BUILDIN_DEF(close,""),
|
|
|
BUILDIN_DEF(close2,""),
|
|
|
BUILDIN_DEF(menu,"sl*"),
|