diff options
author | Haru <haru@dotalux.com> | 2017-07-11 12:53:09 +0200 |
---|---|---|
committer | Haru <haru@dotalux.com> | 2017-07-11 12:53:09 +0200 |
commit | aaa2b237b4b24d0565afd375046dd7f4480d91f1 (patch) | |
tree | 26e9f4ebe5396fe040a31739af9d4d17bdbb162e /doc/script_commands.txt | |
parent | eef92522dcf835f42a922a580be8f855cfea1aa6 (diff) | |
parent | 79b69495bbc5d758529a485eb1144bd64b8ea50f (diff) | |
download | hercules-aaa2b237b4b24d0565afd375046dd7f4480d91f1.tar.gz hercules-aaa2b237b4b24d0565afd375046dd7f4480d91f1.tar.bz2 hercules-aaa2b237b4b24d0565afd375046dd7f4480d91f1.tar.xz hercules-aaa2b237b4b24d0565afd375046dd7f4480d91f1.zip |
Merge pull request #1593 from guilherme-gm/script-setquest
Closes #1593 as merged
Diffstat (limited to 'doc/script_commands.txt')
-rw-r--r-- | doc/script_commands.txt | 28 |
1 files changed, 27 insertions, 1 deletions
diff --git a/doc/script_commands.txt b/doc/script_commands.txt index d72d1d4b7..9148e023c 100644 --- a/doc/script_commands.txt +++ b/doc/script_commands.txt @@ -3408,6 +3408,30 @@ Example : --------------------------------------- +*getcalendartime(<hour>, <minute>{, <day of month>{, <day of week>}}) + +This function returns the timestamp of the next ocurrence of given time. + +Day of Month specifies a day between 1 and 31 in the future, by default its value is -1 (don't use). +Day of Week specifies a day in the week and its valid values are: + 0 - SUNDAY + 1 - MONDAY + 2 - TUESDAY + 3 - WEDNESDAY + 4 - THURSDAY + 5 - FRIDAY + 6 - SATURDAY + +In order to use Day of Week, you must use Day of Month as -1. +If for some reason the command fails, it'll return -1. + +Examples : + getcalendartime(19, 00); // Next 7 pm + getcalendartime(19, 00, 6); // Next day 6 of the month, at 7pm + getcalendartime(19, 10, -1, 1); // Next Monday, at 7:10pm + +--------------------------------------- + *gettimestr(<format string>, <max length>) This function will return a string containing time data as specified by @@ -9152,9 +9176,11 @@ Example --------------------------------------- -*setquest(<ID>) +*setquest(<ID>{, <Time Limit>}) Place quest of <ID> in the users quest log, the state of which is "active". +If Time Limit is given, this quest will have its expire time set to <Time Limit>, an UNIX epoch time, +ignoring quest_db setting. If questinfo() is set, and the same ID is specified here, the icon will be cleared when the quest is set. |