diff options
author | Haru <haru@dotalux.com> | 2019-06-01 16:06:44 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-06-01 16:06:44 +0200 |
commit | 7a9ed7c9c9f2d68fdad64a2c1de1ee9afaeeb087 (patch) | |
tree | 25b932c556a0809fcb959cd8065330f46d4d18b9 /src/map | |
parent | 259a790cb0a6fa17a346fc30ca61ce6f1a085d3e (diff) | |
parent | b4435701a2142f43348156535d6c8c314e99899e (diff) | |
download | hercules-7a9ed7c9c9f2d68fdad64a2c1de1ee9afaeeb087.tar.gz hercules-7a9ed7c9c9f2d68fdad64a2c1de1ee9afaeeb087.tar.bz2 hercules-7a9ed7c9c9f2d68fdad64a2c1de1ee9afaeeb087.tar.xz hercules-7a9ed7c9c9f2d68fdad64a2c1de1ee9afaeeb087.zip |
Merge pull request #2471 from Emistry/scriptcommand_mesclear
Add *mesclear script command.
Diffstat (limited to 'src/map')
-rw-r--r-- | src/map/script.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/map/script.c b/src/map/script.c index 1e0cd87ec..bad7d284a 100644 --- a/src/map/script.c +++ b/src/map/script.c @@ -5962,6 +5962,19 @@ static BUILDIN(next) return true; } +/// Clears the NPC dialog and continues the script without press next button. +/// +/// mesclear(); +static BUILDIN(mesclear) +{ + struct map_session_data *sd = script->rid2sd(st); + + if (sd != NULL) + clif->scriptclear(sd, st->oid); + + return true; +} + /// Ends the script and displays the button 'close' on the npc dialog. /// The dialog is closed when the button is pressed. /// @@ -25484,6 +25497,7 @@ static void script_parse_builtin(void) BUILDIN_DEF(mes, "?"), BUILDIN_DEF(mesf, "s*"), BUILDIN_DEF(next,""), + BUILDIN_DEF(mesclear,""), BUILDIN_DEF(close,""), BUILDIN_DEF(close2,""), BUILDIN_DEF(menu,"sl*"), |