mirror of
https://github.com/Hibiya615/TetoraKAScript.git
synced 2026-11-05 22:37:04 +08:00
版本更新
This commit is contained in:
1 parent
b09ceb0129
commit
98c1edb690
5 files changed
+91
-34
No files matched your search
+6
-6
@@ -944,12 +944,12 @@
|
||||
{
|
||||
"Name": "周边遗迹群(阵地战)",
|
||||
"Guid": "ec9c9f7d-be48-4974-82cf-396b0fc29261",
|
||||
"Version": "0.0.0.3",
|
||||
"Version": "0.0.0.4",
|
||||
"Author": "Tetora",
|
||||
"Repo": "https://github.com/Hibiya615/TetoraKAScript/tree/main",
|
||||
"DownloadUrl": "https://raw.githubusercontent.com/Hibiya615/TetoraKAScript/refs/heads/main/PVP/The_Borderland_Ruins.cs",
|
||||
"Note": "v0.0.0.3:\r\n周边遗迹群(阵地战)部分绘制",
|
||||
"UpdateInfo": "",
|
||||
"Note": "v0.0.0.4:\r\n周边遗迹群(阵地战)部分绘制",
|
||||
"UpdateInfo": "【重要】补充销毁逻辑",
|
||||
"TerritoryIds": [
|
||||
1273
|
||||
]
|
||||
@@ -957,12 +957,12 @@
|
||||
{
|
||||
"Name": "PVP技能绘制",
|
||||
"Guid": "070e161a-26e9-4a57-8b19-da8c4201058c",
|
||||
"Version": "0.0.0.8",
|
||||
"Version": "0.0.0.9",
|
||||
"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.8:\r\nPVP技能绘制,全部地图可用,未做任何区域限制。\r\n推荐先自己过一遍设置把不需要的关闭\r\n改完用户设置的数值记得点保存!保存!\r\n【仅适用敌方目标标记】是用于四小的,因为一般都会给四小标头标x",
|
||||
"UpdateInfo": "增加蛇鳞击绘制,增加预测职业限制",
|
||||
"Note": "v0.0.0.9:\r\nPVP技能绘制,全部地图可用,未做任何区域限制。\r\n推荐先自己过一遍设置把不需要的关闭\r\n改完用户设置的数值记得点保存!保存!\r\n【仅适用敌方目标标记】是用于四小的,因为一般都会给四小标头标x",
|
||||
"UpdateInfo": "【重要】补充销毁逻辑",
|
||||
"TerritoryIds": []
|
||||
},
|
||||
{
|
||||
|
||||
+55
-15
@@ -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.8", author: "Tetora", note: noteStr)]
|
||||
version: "0.0.0.9", author: "Tetora", note: noteStr)]
|
||||
|
||||
public class PVPAction
|
||||
{
|
||||
const string noteStr =
|
||||
"""
|
||||
v0.0.0.8:
|
||||
v0.0.0.9:
|
||||
PVP技能绘制,全部地图可用,未做任何区域限制。
|
||||
推荐先自己过一遍设置把不需要的关闭
|
||||
改完用户设置的数值记得点保存!保存!
|
||||
@@ -69,10 +69,10 @@ public class PVPAction
|
||||
public ScriptColor EnmityAOEColor { get; set; } = new() { V4 = new(1f, 0f, 1f, 1f) };
|
||||
|
||||
[UserSetting("敌方部分技能填充亮度(推荐小于1)")]
|
||||
public float EnmityAOEFillBrightness { get; set; } = 0.25f;
|
||||
public float EnmityAOEFillBrightness { get; set; } = 0.1f;
|
||||
|
||||
[UserSetting("敌方部分技能显示时间 (ms)")]
|
||||
public long EnmityAOETimer { get; set; } = 3000;
|
||||
public long EnmityAOETimer { get; set; } = 1000;
|
||||
|
||||
[UserSetting("开发者模式")]
|
||||
public bool isDeveloper { get; set; } = false;
|
||||
@@ -154,6 +154,22 @@ public class PVPAction
|
||||
|
||||
#endregion
|
||||
|
||||
#region 全局销毁
|
||||
|
||||
[ScriptMethod(name: "咏唱中断销毁", eventType: EventTypeEnum.CancelAction, eventCondition: [], userControl: false)]
|
||||
public void 咏唱中断销毁(Event @event, ScriptAccessory accessory)
|
||||
{
|
||||
accessory.Method.RemoveDraw($".*{@event.SourceId()}");
|
||||
}
|
||||
|
||||
[ScriptMethod(name: "死亡销毁", eventType: EventTypeEnum.Death, eventCondition: [], userControl: false)]
|
||||
public void 死亡销毁(Event @event, ScriptAccessory accessory)
|
||||
{
|
||||
accessory.Method.RemoveDraw($".*{@event.TargetId()}");
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region 龙骑
|
||||
|
||||
[ScriptMethod(name: "———————— 龙骑 ————————", eventType: EventTypeEnum.StartCasting, eventCondition: ["ActionId:"])]
|
||||
@@ -165,7 +181,7 @@ public class PVPAction
|
||||
if (@event.TargetId() != accessory.Data.Me) return;
|
||||
var dp = accessory.Data.GetDefaultDrawProperties();
|
||||
dp.Name = "冲天Self内圈";
|
||||
dp.Color = new Vector4(0f, 1f, 1f, 0.8f);
|
||||
dp.Color = new Vector4(0f, 1f, 1f, 0.6f);
|
||||
dp.Owner = @event.SourceId();
|
||||
dp.Scale = new Vector2(5f);
|
||||
dp.DestoryAt = 5000;
|
||||
@@ -173,7 +189,7 @@ public class PVPAction
|
||||
|
||||
var dp1 = accessory.Data.GetDefaultDrawProperties();
|
||||
dp1.Name = "冲天Self外圈";
|
||||
dp1.Color = new Vector4(0f, 1f, 1f, 0.5f);
|
||||
dp1.Color = new Vector4(0f, 1f, 1f, 0.4f);
|
||||
dp1.Owner = @event.SourceId();
|
||||
dp1.Scale = new Vector2(10f);
|
||||
dp1.DestoryAt = 5000;
|
||||
@@ -221,12 +237,13 @@ public class PVPAction
|
||||
if (isOnlyMark) return; // 没开启选项,绘制对方全部
|
||||
var obj = IbcHelper.GetById(accessory, @event.SourceId);
|
||||
if (obj == null || !obj.IsValid()) return;
|
||||
if (obj == accessory.Data.MyObject) return;
|
||||
|
||||
if (!PartyFilter(accessory, obj))
|
||||
{
|
||||
var dp = accessory.Data.GetDefaultDrawProperties();
|
||||
dp.Name = $"敌方冲天内圈{@event.SourceId()}";
|
||||
dp.Color = new Vector4(1f, 0f, 0f, 1f);
|
||||
dp.Color = new Vector4(1f, 0f, 0f, 0.65f);
|
||||
dp.Owner = @event.SourceId();
|
||||
dp.Scale = new Vector2(5f);
|
||||
dp.DestoryAt = 5000;
|
||||
@@ -234,7 +251,7 @@ public class PVPAction
|
||||
|
||||
var dp1 = accessory.Data.GetDefaultDrawProperties();
|
||||
dp1.Name = $"敌方冲天外圈{@event.SourceId()}";
|
||||
dp1.Color = new Vector4(1, 0f, 0f, 0.5f);
|
||||
dp1.Color = new Vector4(1, 0f, 0f, 0.35f);
|
||||
dp1.Owner = @event.SourceId();
|
||||
dp1.Scale = new Vector2(10f);
|
||||
dp1.DestoryAt = 5000;
|
||||
@@ -340,6 +357,7 @@ public class PVPAction
|
||||
{
|
||||
var obj = IbcHelper.GetById(accessory, @event.SourceId);
|
||||
if (obj == null || !obj.IsValid()) return;
|
||||
if (obj == accessory.Data.MyObject) return;
|
||||
|
||||
if (!PartyFilter(accessory, obj))
|
||||
{
|
||||
@@ -371,6 +389,7 @@ public class PVPAction
|
||||
{
|
||||
var obj = IbcHelper.GetById(accessory, @event.SourceId);
|
||||
if (obj == null || !obj.IsValid()) return;
|
||||
if (obj == accessory.Data.MyObject) return;
|
||||
|
||||
if (!PartyFilter(accessory, obj))
|
||||
{
|
||||
@@ -425,6 +444,7 @@ public class PVPAction
|
||||
{
|
||||
var obj = IbcHelper.GetById(accessory, @event.SourceId);
|
||||
if (obj == null || !obj.IsValid()) return;
|
||||
if (obj == accessory.Data.MyObject) return;
|
||||
|
||||
if (!PartyFilter(accessory, obj))
|
||||
{
|
||||
@@ -571,20 +591,29 @@ public class PVPAction
|
||||
accessory.Method.SendDraw(DrawModeEnum.Default, DrawTypeEnum.Circle, dp);
|
||||
}
|
||||
|
||||
[ScriptMethod(name: "圣盾阵炸盾销毁", eventType: EventTypeEnum.StatusRemove, eventCondition: ["StatusID:3026"],userControl: false)]
|
||||
public void 圣盾阵销毁(Event @event, ScriptAccessory accessory)
|
||||
[ScriptMethod(name: "圣盾阵炸盾状态销毁", eventType: EventTypeEnum.StatusRemove, eventCondition: ["StatusID:3026"],userControl: false)]
|
||||
public void 圣盾阵状态销毁(Event @event, ScriptAccessory accessory)
|
||||
{
|
||||
// 伤害 ActionId 为 29068
|
||||
if (@event.TargetId() != accessory.Data.Me) return;
|
||||
accessory.Method.RemoveDraw($"圣盾阵Self");
|
||||
}
|
||||
|
||||
/*
|
||||
[ScriptMethod(name: "圣盾阵炸盾伤害销毁", eventType: EventTypeEnum.ActionEffect, eventCondition: ["ActionId:29068"],userControl: false)]
|
||||
public void 圣盾阵伤害销毁(Event @event, ScriptAccessory accessory)
|
||||
{
|
||||
if (@event.TargetId() != accessory.Data.Me) return;
|
||||
accessory.Method.RemoveDraw($"圣盾阵Self");
|
||||
}
|
||||
*/
|
||||
|
||||
[ScriptMethod(name: "敌方圣盾阵范围绘制", eventType: EventTypeEnum.StatusAdd, eventCondition: ["StatusID:3026"])]
|
||||
public void HolySheltronEnmity(Event @event, ScriptAccessory accessory)
|
||||
{
|
||||
// if (isOnlyMark) return; // 没开启仅标记选项,绘制对方全部
|
||||
var obj = IbcHelper.GetById(accessory, @event.SourceId);
|
||||
if (obj == null || !obj.IsValid()) return;
|
||||
if (obj == accessory.Data.MyObject) return;
|
||||
|
||||
if (!PartyFilter(accessory, obj))
|
||||
{
|
||||
@@ -598,12 +627,20 @@ public class PVPAction
|
||||
}
|
||||
}
|
||||
|
||||
[ScriptMethod(name: "敌方圣盾阵销毁", eventType: EventTypeEnum.StatusRemove, eventCondition: ["StatusID:3026"],userControl: false)]
|
||||
public void 敌方圣盾阵销毁(Event @event, ScriptAccessory accessory)
|
||||
[ScriptMethod(name: "敌方圣盾阵状态销毁", eventType: EventTypeEnum.StatusRemove, eventCondition: ["StatusID:3026"],userControl: false)]
|
||||
public void 敌方圣盾阵状态销毁(Event @event, ScriptAccessory accessory)
|
||||
{
|
||||
accessory.Method.RemoveDraw($"敌方圣盾阵{@event.SourceId()}");
|
||||
}
|
||||
|
||||
/*
|
||||
[ScriptMethod(name: "敌方圣盾阵炸盾伤害销毁", eventType: EventTypeEnum.ActionEffect, eventCondition: ["ActionId:29068"],userControl: false)]
|
||||
public void 敌方圣盾阵伤害销毁(Event @event, ScriptAccessory accessory)
|
||||
{
|
||||
accessory.Method.RemoveDraw($"敌方圣盾阵{@event.SourceId()}");
|
||||
}
|
||||
*/
|
||||
|
||||
[ScriptMethod(name: "自身开无敌时显示暴怒10m范围描边", eventType: EventTypeEnum.StatusAdd, eventCondition: ["StatusID:1302"])]
|
||||
public void Rampage(Event @event, ScriptAccessory accessory)
|
||||
{
|
||||
@@ -683,6 +720,7 @@ public class PVPAction
|
||||
// if (isOnlyMark) return; // 没开启仅标记选项,绘制对方全部
|
||||
var obj = IbcHelper.GetById(accessory, @event.SourceId);
|
||||
if (obj == null || !obj.IsValid()) return;
|
||||
if (obj == accessory.Data.MyObject) return;
|
||||
|
||||
if (!PartyFilter(accessory, obj))
|
||||
{
|
||||
@@ -691,7 +729,7 @@ public class PVPAction
|
||||
case 4097:
|
||||
var dp = accessory.Data.GetDefaultDrawProperties();
|
||||
dp.Name = $"蛇鳞击敌方{@event.SourceId}";
|
||||
dp.Color = new Vector4(1f, 0f, 0f, 1.2f);
|
||||
dp.Color = new Vector4(1f, 0f, 0f, 0.5f);
|
||||
dp.Owner = @event.SourceId();
|
||||
dp.Scale = new Vector2(6f);
|
||||
dp.DestoryAt = 4000;
|
||||
@@ -700,7 +738,7 @@ public class PVPAction
|
||||
case 4098:
|
||||
var dp1 = accessory.Data.GetDefaultDrawProperties();
|
||||
dp1.Name = $"血气蛇鳞击敌方{@event.SourceId}";
|
||||
dp1.Color = new Vector4(1f, 0f, 0f, 0.8f);
|
||||
dp1.Color = new Vector4(1f, 0f, 0f, 0.4f);
|
||||
dp1.Owner = @event.SourceId();
|
||||
dp1.Scale = new Vector2(15f);
|
||||
dp1.DestoryAt = 4000;
|
||||
@@ -736,6 +774,7 @@ public class PVPAction
|
||||
// 因为范围内的人都会有 ActionEffect与 Status日志,所以只能冷却一点时间防止画重复
|
||||
var obj = IbcHelper.GetById(accessory, @event.SourceId);
|
||||
if (obj == null || !obj.IsValid()) return;
|
||||
if (obj == accessory.Data.MyObject) return;
|
||||
|
||||
if (!PartyFilter(accessory, obj))
|
||||
{
|
||||
@@ -764,6 +803,7 @@ public class PVPAction
|
||||
|
||||
var obj = IbcHelper.GetById(accessory, @event.SourceId);
|
||||
if (obj == null || !obj.IsValid()) return;
|
||||
if (obj == accessory.Data.MyObject) return;
|
||||
|
||||
if (!PartyFilter(accessory, obj))
|
||||
{
|
||||
|
||||
+3
-3
@@ -21,14 +21,14 @@ using FFXIVClientStructs.FFXIV.Client.Game.UI;
|
||||
|
||||
namespace PVPToy;
|
||||
|
||||
[ScriptType(guid: "2312052e-6575-4a91-9e3d-b84699dca8fe", name: "PVP小玩具", territorys: [250, 431, 554, 888, 1273],
|
||||
version: "0.0.0.5", author: "Tetora", note: noteStr)]
|
||||
[ScriptType(guid: "2312052e-6575-4a91-9e3d-b84699dca8fe", name: "PVP小玩具", territorys: [250, 431, 554, 888, 1273, 1313],
|
||||
version: "0.0.0.6", author: "Tetora", note: noteStr)]
|
||||
|
||||
public class PVPToy
|
||||
{
|
||||
const string noteStr =
|
||||
"""
|
||||
v0.0.0.5:
|
||||
v0.0.0.6:
|
||||
PVP小玩具,仅纷争前线可用,可在狼狱进行测试
|
||||
推荐先自行过一遍设置关闭不需要的功能,底裤功能使用后果自行承担
|
||||
标记一般是防四小,所以启用仅标记选项的话就是防四小的播报
|
||||
|
||||
@@ -17,13 +17,13 @@ using System.Threading.Tasks;
|
||||
namespace The_Borderland_Ruins;
|
||||
|
||||
[ScriptType(guid: "ec9c9f7d-be48-4974-82cf-396b0fc29261", name: "周边遗迹群(阵地战)", territorys: [1273],
|
||||
version: "0.0.0.3", author: "Tetora", note: noteStr)]
|
||||
version: "0.0.0.4", author: "Tetora", note: noteStr)]
|
||||
|
||||
public class The_Borderland_Ruins
|
||||
{
|
||||
const string noteStr =
|
||||
"""
|
||||
v0.0.0.3:
|
||||
v0.0.0.4:
|
||||
周边遗迹群(阵地战)部分绘制
|
||||
""";
|
||||
|
||||
@@ -43,12 +43,28 @@ public class The_Borderland_Ruins
|
||||
|
||||
#endregion
|
||||
|
||||
#region 全局销毁
|
||||
|
||||
[ScriptMethod(name: "咏唱中断销毁", eventType: EventTypeEnum.CancelAction, eventCondition: [], userControl: false)]
|
||||
public void 咏唱中断销毁(Event @event, ScriptAccessory accessory)
|
||||
{
|
||||
accessory.Method.RemoveDraw($".*{@event.SourceId()}");
|
||||
}
|
||||
|
||||
[ScriptMethod(name: "死亡销毁", eventType: EventTypeEnum.Death, eventCondition: [], userControl: false)]
|
||||
public void 死亡销毁(Event @event, ScriptAccessory accessory)
|
||||
{
|
||||
accessory.Method.RemoveDraw($".*{@event.TargetId()}");
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
[ScriptMethod(name: "对地炮击(地面黄圈)填充动画", eventType: EventTypeEnum.StartCasting, eventCondition: ["ActionId:42935"])]
|
||||
public void 对地炮击(Event @event, ScriptAccessory accessory)
|
||||
{
|
||||
// 请求对地炮击 42933
|
||||
var dp = accessory.Data.GetDefaultDrawProperties();
|
||||
dp.Name = "对地炮击";
|
||||
dp.Name = $"对地炮击";
|
||||
dp.Color = accessory.Data.DefaultDangerColor;
|
||||
dp.Position = @event.EffectPosition();
|
||||
dp.Scale = new Vector2(10f);
|
||||
@@ -66,7 +82,7 @@ public class The_Borderland_Ruins
|
||||
{
|
||||
if (isText) accessory.Method.TextInfo("分摊", duration: 4300, false);
|
||||
var dp = accessory.Data.GetDefaultDrawProperties();
|
||||
dp.Name = "集中炮击";
|
||||
dp.Name = $"集中炮击{@event.TargetId}";
|
||||
dp.Color = accessory.Data.DefaultDangerColor;
|
||||
dp.Owner = @event.TargetId();
|
||||
dp.Scale = new Vector2(6f);
|
||||
@@ -79,7 +95,7 @@ public class The_Borderland_Ruins
|
||||
if (isTTS)accessory.Method.TTS("分摊点名");
|
||||
if (isEdgeTTS)accessory.Method.EdgeTTS("分摊点名");
|
||||
var dp1 = accessory.Data.GetDefaultDrawProperties();
|
||||
dp1.Name = "集中炮击点名";
|
||||
dp1.Name = $"集中炮击点名";
|
||||
dp1.Color = accessory.Data.DefaultSafeColor;
|
||||
dp1.Owner = @event.TargetId();
|
||||
dp1.Scale = new Vector2(6f);
|
||||
@@ -94,7 +110,7 @@ public class The_Borderland_Ruins
|
||||
// 请求精密炮击 43159
|
||||
// TargetIcon: 00C5
|
||||
var dp = accessory.Data.GetDefaultDrawProperties();
|
||||
dp.Name = "对地炮击";
|
||||
dp.Name = $"对地炮击";
|
||||
dp.Color = accessory.Data.DefaultDangerColor;
|
||||
dp.Position = @event.EffectPosition();
|
||||
dp.Scale = new Vector2(5f);
|
||||
@@ -117,7 +133,7 @@ public class The_Borderland_Ruins
|
||||
|
||||
|
||||
var dp = accessory.Data.GetDefaultDrawProperties();
|
||||
dp.Name = "物体130";
|
||||
dp.Name = $"物体130";
|
||||
dp.Color = accessory.Data.DefaultDangerColor.WithW(0.4f);
|
||||
dp.Owner = @event.SourceId();
|
||||
dp.Scale = new Vector2(38.4f);
|
||||
|
||||
+4
-3
@@ -52,18 +52,19 @@
|
||||
{
|
||||
"Name": "PVP小玩具",
|
||||
"Guid": "2312052e-6575-4a91-9e3d-b84699dca8fe",
|
||||
"Version": "0.0.0.5",
|
||||
"Version": "0.0.0.6",
|
||||
"Author": "Tetora",
|
||||
"Repo": "https://github.com/Hibiya615/TetoraKAScript/tree/main",
|
||||
"DownloadUrl": "https://github.com/Hibiya615/TetoraKAScript/blob/main/PVP/PVPToy.cs",
|
||||
"Note": "v0.0.0.5:\r\nPVP小玩具,仅纷争前线可用,可在狼狱进行测试\r\n推荐先自行过一遍设置关闭不需要的功能,底裤功能使用后果自行承担\r\n标记一般是防四小,所以启用仅标记选项的话就是防四小的播报",
|
||||
"Note": "v0.0.0.6:\r\nPVP小玩具,仅纷争前线可用,可在狼狱进行测试\r\n推荐先自行过一遍设置关闭不需要的功能,底裤功能使用后果自行承担\r\n标记一般是防四小,所以启用仅标记选项的话就是防四小的播报",
|
||||
"UpdateInfo": "",
|
||||
"TerritoryIds": [
|
||||
250,
|
||||
431,
|
||||
554,
|
||||
888,
|
||||
1273
|
||||
1273,
|
||||
1313
|
||||
]
|
||||
}
|
||||
]
|
||||
Reference in new issue
Block a user