add command and exp loot

This commit is contained in:
Xanadu13
2023-12-30 00:25:04 +08:00
parent 55bbc54335
commit 35ec0e6456
12 changed files with 335 additions and 43 deletions
+33 -2
View File
@@ -1,5 +1,5 @@
#文件版本,请勿修改
version: 2.2.0
version: 2.4.0
#用于插件内部识别,每一种末影龙的unique_name都需要设为不同值!
unique_name: 'default'
@@ -200,4 +200,35 @@ reward_dist:
max_num: 1
rank:
# 排名前几可获得奖励
max_num: 1
max_num: 1
# 一些特殊的战利品
special_loot:
# 你可以按格式添加更多条目,但是名称不能重复
# 如果找不到执行目标(target),所在战利品条目会被忽略
# 目前支持的type: exp(经验), command(执行指令,可解析伤害排名)
loot1:
# [true/false]
enable: false
type: command
# %attacker% -> 所有参与屠龙的玩家
target: "%attacker%"
# %player% -> 目标, %damage% -> 该玩家造成的总伤害
data:
- 'give %player% stone 1'
- 'ed action %player% tell: 你获得了保底奖励.'
loot2:
enable: false
type: command
# %attacker_top_<rank>% -> 在屠龙中取得此排名的玩家
target: "%attacker_top_1%"
data:
- 'ed action %player% tell: 你的伤害占比是最高的!'
- 'ed action %player% tell: 你造成的伤害: %damage%'
loot_exp1:
enable: false
type: exp
target: "%attacker_top_2%"
data:
# 给予排名第二的玩家20点经验
amount: 20
+32 -3
View File
@@ -1,4 +1,4 @@
version: 2.2.0
version: 2.4.0
#This is used for plugin internal identification.
#Please make sure the value is unique among all the types of dragons
@@ -154,7 +154,7 @@ effect_cloud:
#All the settings below can be disabled with a "[]".(Ex: spawn_cmd: [] )
#commands that server will run when this dragon spawn
#Attention: You shouldn't add “/” at the beginning of each command!
#Attention: Please DON'T add “/” at the beginning of each command!
spawn_cmd:
- ''
- ''
@@ -198,7 +198,7 @@ reward_dist:
# killer: Only give to the final killer.
# pack: Pack all items that trigger drop and distribute them to players weighted based on their damage percentage.
# rank: Strictly based on player damage ranking, give the top few players with the highest damage.
# termwise: Assign the items that trigger the drop ONE BY ONE to the player based on the weighted proportion of damage.
# termwise: Assign items that trigger the drop ONE BY ONE to the player based on the weighted proportion of damage.
type: killer
drop:
# Whether the dropped item glows.
@@ -211,3 +211,32 @@ reward_dist:
# Top few can receive rewards
max_num: 1
special_loot:
# You can add more entries with DIFFERENT name according to the format.
# If such target not exists, this option will be ignored.
# type: exp, command
loot1:
# [true/false]
enable: false
type: command
# %attacker% -> all participants in dragon slaying
target: "%attacker%"
# %player% -> target, %damage% -> this player's damage to EnderDragon
data:
- 'give %player% stone 1'
- 'ed action %player% tell: This is a guaranteed reward.'
loot2:
enable: false
type: command
# %attacker_top_<rank>% -> the player with exactly this rank
target: "%attacker_top_1%"
data:
- 'ed action %player% tell: You are the one who causes the highest damage!'
- 'ed action %player% tell: Your damage: %damage%'
loot_exp1:
enable: false
type: exp
target: "%attacker_top_2%"
data:
# add 20 exp for the rank_2 player
amount: 20
+33 -2
View File
@@ -1,5 +1,5 @@
#文件版本,请勿修改
version: 2.2.0
version: 2.4.0
#用于插件内部识别,每一种末影龙的unique_name都需要设为不同值!
unique_name: 'special001'
@@ -193,4 +193,35 @@ reward_dist:
max_num: 1
rank:
# 排名前几可获得奖励
max_num: 1
max_num: 1
# 一些特殊的战利品
special_loot:
# 你可以按格式添加更多条目,但是名称不能重复
# 如果找不到执行目标(target),所在战利品条目会被忽略
# 目前支持的type: exp(经验), command(执行指令,可解析伤害排名)
loot1:
# [true/false]
enable: false
type: command
# %attacker% -> 所有参与屠龙的玩家
target: "%attacker%"
# %player% -> 目标, %damage% -> 该玩家造成的总伤害
data:
- 'give %player% stone 1'
- 'ed action %player% tell: 你获得了保底奖励.'
loot2:
enable: false
type: command
# %attacker_top_<rank>% -> 在屠龙中取得此排名的玩家
target: "%attacker_top_1%"
data:
- 'ed action %player% tell: 你的伤害占比是最高的!'
- 'ed action %player% tell: 你造成的伤害: %damage%'
loot_exp1:
enable: false
type: exp
target: "%attacker_top_2%"
data:
# 给予排名第二的玩家20点经验
amount: 20
+32 -2
View File
@@ -1,7 +1,7 @@
## Special thanks to Phaxius for the translation
# File version, do not edit
version: 2.2.0
version: 2.4.0
# Unique ID used by plugin to identify each type of dragon
# unique_name needs to be different in each dragon settings file
@@ -229,4 +229,34 @@ reward_dist:
max_num: 1
rank:
# Top few can receive rewards
max_num: 1
max_num: 1
special_loot:
# You can add more entries with DIFFERENT name according to the format.
# If such target not exists, this option will be ignored.
# type: exp, command
loot1:
# [true/false]
enable: false
type: command
# %attacker% -> all participants in dragon slaying
target: "%attacker%"
# %player% -> target, %damage% -> this player's damage to EnderDragon
data:
- 'give %player% stone 1'
- 'ed action %player% tell: This is a guaranteed reward.'
loot2:
enable: false
type: command
# %attacker_top_<rank>% -> the player with exactly this rank
target: "%attacker_top_1%"
data:
- 'ed action %player% tell: You are the one who causes the highest damage!'
- 'ed action %player% tell: Your damage: %damage%'
loot_exp1:
enable: false
type: exp
target: "%attacker_top_2%"
data:
# add 20 exp for the rank_2 player
amount: 20