public class 0800_Quest_Log_Commands extends Object
============================ |0800.- Quest Log commands.| ============================
| 构造器和说明 |
|---|
0800_Quest_Log_Commands() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
changequest()
changequest <ID>,<ID2>{,<char_id>};
Remove quest of the given <ID> from the user's quest log.
|
void |
checkquest()
checkquest(<ID>{,PLAYTIME|HUNTING{,<char_id>}})
If no additional argument supplied, return the state of the quest:
-1 = Quest not started (not in quest log)
0 = Quest has been given, but the state is "inactive"
1 = Quest has been given, and the state is "active"
2 = Quest completed
If parameter "PLAYTIME" is supplied:
-1 = Quest not started (not in quest log)
0 = the time limit has not yet been reached
1 = the time limit has not been reached but the quest is marked as complete
2 = the time limit has been reached
If parameter "HUNTING" is supplied:
-1 = Quest not started (not in quest log)
0 = you haven't killed all of the target monsters and the time limit has not been reached.
1 = you haven't killed all of the target monsters but the time limit has been reached.
2 = you've killed all of the target monsters
|
void |
completequest()
completequest <ID>{,<char_id>};
Change the state for the given quest <ID> to "complete" and remove from the users quest log.
|
void |
erasequest()
erasequest <ID>{,<char_id>};
Remove the quest of the given <ID> from the user's quest log.
|
void |
isbegin_quest()
isbegin_quest(<ID>{,<char_id>})
Return the state of the quest:
0 = Quest not started (not in quest log)
1 = Quest has been given (state is either "inactive" or "active")
2 = Quest completed
|
void |
questinfo()
questinfo <Quest ID>,<Icon>{,<Map Mark Color>{,<Job Class>}};
This is esentially a combination of checkquest and showevent.
|
void |
setquest()
setquest <ID>{,<char_id>};
Place quest of <ID> in the users quest log, the state of which is "active".
|
void |
setquestinfo_job()
setquestinfo_job <quest_id>,<job_id>{,<job_id>...};
Add job criteria for quest info with quest id 'quest_id'.
|
void |
setquestinfo_level()
setquestinfo_level <quest_id>,<min_level>,<max_level>;
Add level range criteria for quest info with quest id 'quest_id'.
|
void |
setquestinfo_req()
setquestinfo_req <quest_id>,<req_quest_id>,<state>{,<req_quest_id>,<state>,...};
Add 'req_quest_id' as requirement for quest info with quest id 'quest_id'.
|
void |
showevent()
showevent <icon>{,<mark color>{,<char_id>}}
Show an emotion on top of a NPC, and optionally,
a colored mark in the mini-map like "viewpoint".
|
questinfo <Quest ID>,<Icon>{,<Map Mark Color>{,<Job Class>}};
This is esentially a combination of checkquest 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.
For Icon, use one of the following:
No Icon : QTYPE_NONE
! Quest Icon : QTYPE_QUEST
? Quest Icon : QTYPE_QUEST2
! Job Icon : QTYPE_JOB
? Job Icon : QTYPE_JOB2
! Event Icon : QTYPE_EVENT
? Event Icon : QTYPE_EVENT2
Warg : QTYPE_WARG (Only for packetver < 20170315)
Warg Face : QTYPE_WARG2 (Only for packetver >= 20120410 and < 20170315)
Click Me : QTYPE_CLICKME (Only for packetver >= 20170315)
Daily Quest : QTYPE_DAILYQUEST (Only for packetver >= 20170315)
! Event Icon : QTYPE_EVENT3 (Only for packetver >= 20170315)
Job Quest : QTYPE_JOBQUEST (Only for packetver >= 20170315)
Jumping Poring : QTYPE_JUMPING_PORING (Only for packetver >= 20170315)
Map Mark Color, when used, creates a mark in the user's mini map on the position of the NPC,
the available color values are:
0 - No Marker (default)
1 - Yellow Marker
2 - Green Marker
3 - Purple Marker
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]";
mes "Hello World.";
close;
OnInit:
questinfo 1001, QTYPE_QUEST, 0, Job_Novice;
end;
}
setquestinfo_level <quest_id>,<min_level>,<max_level>;
Add level range criteria for quest info with quest id 'quest_id'.
This command must be used after 'questinfo'.
setquestinfo_req <quest_id>,<req_quest_id>,<state>{,<req_quest_id>,<state>,...};
Add 'req_quest_id' as requirement for quest info with quest id 'quest_id'.
Value os 'state' are:
0: Player doesn't started 'req_quest_id'.
1: Player has 'req_quest_id' (state is either "inactive" or "active").
2: Player has 'req_quest_id' completed
This command must be used after 'questinfo'.
setquestinfo_job <quest_id>,<job_id>{,<job_id>...};
Add job criteria for quest info with quest id 'quest_id'.
The job criteria may more than one job_id.
This command must be used after 'questinfo'.
setquest <ID>{,<char_id>};
Place quest of <ID> in the users quest log, the state of which is "active".
If *questinfo is set, and the same ID is specified here, the icon will be cleared when the quest is set.
completequest <ID>{,<char_id>};
Change the state for the given quest <ID> to "complete" and remove from the users quest log.
erasequest <ID>{,<char_id>};
Remove the quest of the given <ID> from the user's quest log.
changequest <ID>,<ID2>{,<char_id>};
Remove quest of the given <ID> from the user's quest log.
Add quest of the <ID2> to the the quest log, and the state is "active".
checkquest(<ID>{,PLAYTIME|HUNTING{,<char_id>}});
If no additional argument supplied, return the state of the quest:
-1 = Quest not started (not in quest log)
0 = Quest has been given, but the state is "inactive"
1 = Quest has been given, and the state is "active"
2 = Quest completed
If parameter "PLAYTIME" is supplied:
-1 = Quest not started (not in quest log)
0 = the time limit has not yet been reached
1 = the time limit has not been reached but the quest is marked as complete
2 = the time limit has been reached
If parameter "HUNTING" is supplied:
-1 = Quest not started (not in quest log)
0 = you haven't killed all of the target monsters and the time limit has not been reached.
1 = you haven't killed all of the target monsters but the time limit has been reached.
2 = you've killed all of the target monsters
isbegin_quest(<ID>{,<char_id>});
Return the state of the quest:
0 = Quest not started (not in quest log)
1 = Quest has been given (state is either "inactive" or "active")
2 = Quest completed
showevent <icon>{,<mark color>{,<char_id>}}
Show an emotion on top of a NPC, and optionally,
a colored mark in the mini-map like "viewpoint".
This is used to indicate that a NPC has a quest or an event to
a certain player.
Available Icons:
Remove Icon : QTYPE_NONE
! Quest Icon : QTYPE_QUEST
? Quest Icon : QTYPE_QUEST2
! Job Icon : QTYPE_JOB
? Job Icon : QTYPE_JOB2
! Event Icon : QTYPE_EVENT
? Event Icon : QTYPE_EVENT2
Warg : QTYPE_WARG
Warg Face : QTYPE_WARG2 (Only for packetver >= 20120410)
Mark Color:
0 - No Mark
1 - Yellow Mark
2 - Green Mark
3 - Purple Mark
Copyright © 工程的初始时间(可选)–2019. All rights reserved.