mirror of
https://github.com/Hibiya615/TetoraKAScript.git
synced 2026-11-06 06:46:55 +08:00
更新被保护来源播报
This commit is contained in:
1 parent
968263a52c
commit
ac4fa3174e
2 files changed
+7
-6
No files matched your search
+3
-3
@@ -879,12 +879,12 @@
|
||||
{
|
||||
"Name": "PVP技能绘制",
|
||||
"Guid": "070e161a-26e9-4a57-8b19-da8c4201058c",
|
||||
"Version": "0.0.0.4",
|
||||
"Version": "0.0.0.",
|
||||
"Author": "Tetora",
|
||||
"Repo": "https://github.com/Hibiya615/TetoraKAScript/tree/main",
|
||||
"DownloadUrl": "https://raw.githubusercontent.com/Hibiya615/TetoraKAScript/refs/heads/main/PVP/PVPAction.cs",
|
||||
"Note": "v0.0.0.4:\r\nPVP技能绘制,全部地图可用,未做任何区域限制。\r\n推荐先自己过一遍设置把不需要的关闭\r\n改完用户设置的数值记得点保存!保存!\r\n【仅适用敌方目标标记】是用于四小的,因为一般都会给四小标头标x",
|
||||
"UpdateInfo": "API14",
|
||||
"Note": "v0.0.0.5:\r\nPVP技能绘制,全部地图可用,未做任何区域限制。\r\n推荐先自己过一遍设置把不需要的关闭\r\n改完用户设置的数值记得点保存!保存!\r\n【仅适用敌方目标标记】是用于四小的,因为一般都会给四小标头标x",
|
||||
"UpdateInfo": "增加被保护来源播报",
|
||||
"TerritoryIds": []
|
||||
},
|
||||
{
|
||||
|
||||
+4
-3
@@ -22,13 +22,13 @@ using FFXIVClientStructs.FFXIV.Client.Game.UI;
|
||||
namespace PVPAction;
|
||||
|
||||
[ScriptType(guid: "070e161a-26e9-4a57-8b19-da8c4201058c", name: "PVP技能绘制", territorys: [],
|
||||
version: "0.0.0.4", author: "Tetora", note: noteStr)]
|
||||
version: "0.0.0.5", author: "Tetora", note: noteStr)]
|
||||
|
||||
public class PVPTAction
|
||||
{
|
||||
const string noteStr =
|
||||
"""
|
||||
v0.0.0.4:
|
||||
v0.0.0.5:
|
||||
PVP技能绘制,全部地图可用,未做任何区域限制。
|
||||
推荐先自己过一遍设置把不需要的关闭
|
||||
改完用户设置的数值记得点保存!保存!
|
||||
@@ -491,7 +491,7 @@ public class PVPTAction
|
||||
|
||||
if (@event.TargetId() != accessory.Data.Me) return;
|
||||
|
||||
if (isText)accessory.Method.TextInfo("被保护", duration: 7300, false);
|
||||
if (isText)accessory.Method.TextInfo($"被保护(来自<{@event.SourceName()}>)", duration: 7300, false);
|
||||
if (isTTS) accessory.Method.TTS("被保护");
|
||||
if (isEdgeTTS) accessory.Method.EdgeTTS("被保护");
|
||||
|
||||
@@ -504,6 +504,7 @@ public class PVPTAction
|
||||
dp.Scale = new(1);
|
||||
dp.DestoryAt = 8000;
|
||||
accessory.Method.SendDraw(DrawModeEnum.Imgui, DrawTypeEnum.Displacement, dp);
|
||||
accessory.Method.SendChat($"/e [Kodakku]: <{@event.SourceName()}> 保护了你!");
|
||||
}
|
||||
|
||||
[ScriptMethod(name: "被保护范围", eventType: EventTypeEnum.StatusAdd, eventCondition: ["StatusID:1301"])]
|
||||
|
||||
Reference in new issue
Block a user