diff options
author | Asheraf <acheraf1998@gmail.com> | 2018-06-25 21:00:42 +0100 |
---|---|---|
committer | Asheraf <acheraf1998@gmail.com> | 2018-07-24 02:24:40 +0100 |
commit | 7c43dd908622e083b0fecf7fc8ebab61501186fa (patch) | |
tree | f742073f0dcc69ac5ac365ab24adaaac7aebc0df /doc/script_commands.txt | |
parent | 620c55e87019a46ffffc6ffb69bea77df088b904 (diff) | |
download | hercules-7c43dd908622e083b0fecf7fc8ebab61501186fa.tar.gz hercules-7c43dd908622e083b0fecf7fc8ebab61501186fa.tar.bz2 hercules-7c43dd908622e083b0fecf7fc8ebab61501186fa.tar.xz hercules-7c43dd908622e083b0fecf7fc8ebab61501186fa.zip |
Questinfo System overhaul
Diffstat (limited to 'doc/script_commands.txt')
-rw-r--r-- | doc/script_commands.txt | 29 |
1 files changed, 21 insertions, 8 deletions
diff --git a/doc/script_commands.txt b/doc/script_commands.txt index 2653f052a..44937a34d 100644 --- a/doc/script_commands.txt +++ b/doc/script_commands.txt @@ -9337,12 +9337,10 @@ that fails, the command returns an empty string instead. //===================================== --------------------------------------- -*questinfo(<Quest ID>, <Icon> {, <Map Mark Color>{, <Job Class>}}) - -This is esentially a combination of questprogress() and showevent(). Use this only -in an OnInit label. For the Quest ID, specify the quest ID that you want -checked if it has been started yet. +*questinfo(<Icon> {, <Map Mark Color>}) +This is esentially a showevent() that supports different conditions that can be set using setquestinfo(). +Use this only in an OnInit label. For Icon, use one of the following: No Icon : QTYPE_NONE @@ -9373,8 +9371,6 @@ the available color values are: When a user shows up on a map, each NPC is checked for questinfo that has been set. If questinfo is present, it will check if the quest has been started, if it has not, the bubble will appear. -Optionally, you can also specify a Job Class if the quest bubble should only appear for a certain class. - Example izlude,100,100,4 script Test 844,{ mes("[Test]"); @@ -9382,12 +9378,29 @@ Example close(); OnInit: - questinfo(1001, QTYPE_QUEST, 0, Job_Novice); + questinfo(QTYPE_QUEST); end; } --------------------------------------- +*setquestinfo(<Type> {, <Values...>}) + +Use this command ONLY after a questinfo() +it allows you to set multiple required conditions for the quest bubble to show up. + +supported types: values + QINFO_JOB: job_id + QINFO_SEX: sex + QINFO_BASE_LEVEL: min, max + QINFO_JOB_LEVEL: min, max + QINFO_ITEM: item_id, amount // append to the items list on each use + QINFO_HOMUN_LEVEL: min + QINFO_HOMUN_TYPE: homunculus_type (0 - regular, 1 - evolved, 2 - S) + QINFO_QUEST: quest_id, state // append to the quests list on each use + +--------------------------------------- + *setquest(<ID>{, <Time Limit>}) Place quest of <ID> in the users quest log, the state of which is "active". |