保镖 + 1
这个提交包含在:
6
保镖.js
6
保镖.js
@ -17,7 +17,7 @@ const 保镖配置 = {
|
||||
};
|
||||
Core.AddListener((connect, info) => {
|
||||
if (info.message == "聘请保镖") {
|
||||
if (Money.add.GetUserMoney(Core.GetUser(info.user_id)) < 保镖配置.聘请定价) {
|
||||
if (Money.add.Interfaces.GetUserMoney(Core.GetUser(info.user_id)) < 保镖配置.聘请定价) {
|
||||
Core.frame.SendMsg(connect, info, `${Core.frame.At(Core.GetUser(info.user_id))},你的余额不足${保镖配置.聘请定价},不能聘请保镖.`);
|
||||
return;
|
||||
}
|
||||
@ -26,10 +26,10 @@ Core.AddListener((connect, info) => {
|
||||
if (isNaN(User保镖)) {
|
||||
User保镖 = 0;
|
||||
}
|
||||
Money.add.CostUserMoney(Core.GetUser(info.user_id), 保镖配置.聘请定价);
|
||||
Money.add.Interfaces.CostUserMoney(Core.GetUser(info.user_id), 保镖配置.聘请定价);
|
||||
User保镖 = User保镖 + 保镖配置.使用次数;
|
||||
Data[Core.GetUser(info.user_id)] = User保镖;
|
||||
Core.frame.WriteSystemConfig("保镖", Data);
|
||||
Core.frame.SendMsg(connect, info, `${Core.frame.At(Core.GetUser(info.user_id))},聘请保镖成功,你剩下${User保镖}位保镖,还剩${Money.add.GetUserMoney(Core.GetUser(info.user_id))}RMB.`);
|
||||
Core.frame.SendMsg(connect, info, `${Core.frame.At(Core.GetUser(info.user_id))},聘请保镖成功,你剩下${User保镖}位保镖,还剩${Money.add.Interfaces.GetUserMoney(Core.GetUser(info.user_id))}RMB.`);
|
||||
}
|
||||
});
|
||||
|
||||
在新工单中引用
屏蔽一个用户