NPC Tasks
# Description
2.0.1+ Added command /plk openNpc [npcId] to open corresponding NPC task list
You can choose NPC or abandon NPC plugin, flexibly use commands to open task list anywhere
# Example
Description:
NPC task logic is:
1. First you create an NPC task according to example 1
/plk create NpcTask npc normal
2. Then use command to bind to corresponding NPC
Suppose we have an existing NPC task, as shown in the image, type is NPC task
Now let's look at the Citizens plugin NPC list
We can see there are NPCs 0, 1, 2
# Input command to bind
2021-02-06 18:39:20 Saturday
Command:
/plk addNpcTask [task id] [npcId] [permanent task] [completable times] [cooldown] (prerequisite task id)
Example:
/plk addNpcTask 23 2 1 0 60
Explanation:
Bind task with ID 23 to NPC 2, set to 1, means permanent cycle task, the 0 after is task completable times (previous parameter set to 0 takes effect), 60 is cooldown time, prerequisite task id can be omitted, default no prerequisite task, if need prerequisite task pass corresponding task id
# Effect after the above operations
# How to view NPC bound tasks
/plk view npc
Note: After clicking delete, it will also synchronously delete tasks that players have claimed