From 2fcf33a204886cbf5e91ef9682bf1a1d2d8d3066 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=8D=97=E6=B2=A2=E5=93=8D=E4=B9=9F?= <72963826+Hibiya615@users.noreply.github.com> Date: Thu, 27 Mar 2025 03:48:35 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E5=B0=8A=E4=B8=A5=E7=8E=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 02-A-Realm-Reborn/Trials/Nabriales.cs | 214 ++++++++++++++++++++++++++ OnlineRepo.json | 13 ++ README.md | 25 +-- 3 files changed, 240 insertions(+), 12 deletions(-) diff --git a/02-A-Realm-Reborn/Trials/Nabriales.cs b/02-A-Realm-Reborn/Trials/Nabriales.cs index f28a807..2bccef8 100644 --- a/02-A-Realm-Reborn/Trials/Nabriales.cs +++ b/02-A-Realm-Reborn/Trials/Nabriales.cs @@ -29,6 +29,220 @@ public class Nabriales """; + [ScriptMethod(name: "双重", eventType: EventTypeEnum.StartCasting, eventCondition: ["ActionId:3443"])] + public void 双重(Event @event, ScriptAccessory accessory) + { + accessory.Method.EdgeTTS("二连死刑"); + } + + [ScriptMethod(name: "三重", eventType: EventTypeEnum.StartCasting, eventCondition: ["ActionId:3444"])] + public void 三重(Event @event, ScriptAccessory accessory) + { + accessory.Method.EdgeTTS("三连死刑"); + } + + [ScriptMethod(name: "爆震(AOE)", eventType: EventTypeEnum.StartCasting, eventCondition: ["ActionId:3437"])] + public void 爆震(Event @event, ScriptAccessory accessory) + { + accessory.Method.EdgeTTS("AOE"); + } + + [ScriptMethod(name: "撞红球提示", eventType: EventTypeEnum.ActionEffect, eventCondition: ["ActionId:3421"])] + public void 撞红球提示(Event @event, ScriptAccessory accessory) + { + if ( @event.TargetId() != accessory.Data.Me) return; + accessory.Method.EdgeTTS("撞红球"); + } + + [ScriptMethod(name: "暗以太·壹", eventType: EventTypeEnum.AddCombatant, eventCondition: ["DataId:3651"])] + public void 暗以太壹(Event @event, ScriptAccessory accessory) + { + var dp = accessory.Data.GetDefaultDrawProperties(); + dp.Name = $"暗以太壹{@event.SourceId()}"; + dp.Color = new Vector4(0f, 1f, 1f, 2); + dp.Owner = @event.SourceId(); + dp.Scale = new Vector2(1.5f); + dp.DestoryAt = 30000; + accessory.Method.SendDraw(DrawModeEnum.Default, DrawTypeEnum.Circle, dp); + } + + [ScriptMethod(name: "暗以太爆发·壹", eventType: EventTypeEnum.AddCombatant, eventCondition: ["DataId:3651"])] + public void 暗以太爆发壹(Event @event, ScriptAccessory accessory) + { + var dp = accessory.Data.GetDefaultDrawProperties(); + dp.Name = $"暗以太爆发壹{@event.SourceId()}"; + dp.Color = new Vector4(0f, 1f, 1f, 0.3f); + dp.Owner = @event.SourceId(); + dp.Scale = new Vector2(6f); + dp.DestoryAt = 30000; + accessory.Method.SendDraw(DrawModeEnum.Default, DrawTypeEnum.Circle, dp); + } + + [ScriptMethod(name: "暗以太壹销毁", eventType: EventTypeEnum.ActionEffect, eventCondition: ["ActionId:3421"],userControl: false)] + public void 暗以太壹销毁(Event @event, ScriptAccessory accessory) + { + accessory.Method.RemoveDraw($"暗以太壹{@event.SourceId()}"); + accessory.Method.RemoveDraw($"暗以太爆发壹{@event.SourceId()}"); + } + + [ScriptMethod(name: "暗以太·贰", eventType: EventTypeEnum.AddCombatant, eventCondition: ["DataId:3652"])] + public void 暗以太贰(Event @event, ScriptAccessory accessory) + { + var dp = accessory.Data.GetDefaultDrawProperties(); + dp.Name = $"暗以太贰{@event.SourceId()}"; + dp.Color = new Vector4(1f, 0f, 1f, 2); + dp.Owner = @event.SourceId(); + dp.Scale = new Vector2(1.5f); + dp.DestoryAt = 30000; + accessory.Method.SendDraw(DrawModeEnum.Default, DrawTypeEnum.Circle, dp); + } + + [ScriptMethod(name: "暗以太爆发·贰", eventType: EventTypeEnum.AddCombatant, eventCondition: ["DataId:3652"])] + public void 暗以太爆发贰(Event @event, ScriptAccessory accessory) + { + var dp = accessory.Data.GetDefaultDrawProperties(); + dp.Name = $"暗以太爆发贰{@event.SourceId()}"; + dp.Color = new Vector4(1f, 0f, 1f, 0.3f); + dp.Owner = @event.SourceId(); + dp.Scale = new Vector2(11f); + dp.DestoryAt = 30000; + accessory.Method.SendDraw(DrawModeEnum.Default, DrawTypeEnum.Circle, dp); + } + + [ScriptMethod(name: "暗以太贰销毁", eventType: EventTypeEnum.ActionEffect, eventCondition: ["ActionId:3422"],userControl: false)] + public void 暗以太贰销毁(Event @event, ScriptAccessory accessory) + { + accessory.Method.RemoveDraw($"暗以太贰{@event.SourceId()}"); + accessory.Method.RemoveDraw($"暗以太爆发贰{@event.SourceId()}"); + } + + [ScriptMethod(name: "撞蓝球提示", eventType: EventTypeEnum.ActionEffect, eventCondition: ["ActionId:3423"])] + public void 撞蓝球提示(Event @event, ScriptAccessory accessory) + { + if ( @event.TargetId() != accessory.Data.Me) return; + accessory.Method.EdgeTTS("撞蓝球"); + } + + [ScriptMethod(name: "暗以太·叁", eventType: EventTypeEnum.AddCombatant, eventCondition: ["DataId:3653"])] + public void 暗以太叁(Event @event, ScriptAccessory accessory) + { + var dp = accessory.Data.GetDefaultDrawProperties(); + dp.Name = $"暗以太叁{@event.SourceId()}"; + dp.Color = new Vector4(1f, 0f, 0f, 2f); + dp.Owner = @event.SourceId(); + dp.Scale = new Vector2(1.5f); + dp.DestoryAt = 30000; + accessory.Method.SendDraw(DrawModeEnum.Default, DrawTypeEnum.Circle, dp); + } + + [ScriptMethod(name: "暗以太爆发·叁", eventType: EventTypeEnum.AddCombatant, eventCondition: ["DataId:3653"])] + public void 暗以太爆发叁(Event @event, ScriptAccessory accessory) + { + var dp = accessory.Data.GetDefaultDrawProperties(); + dp.Name = $"暗以太爆发叁{@event.SourceId()}"; + dp.Color = new Vector4(1f, 0f, 0f, 0.3f); + dp.Owner = @event.SourceId(); + dp.Scale = new Vector2(9f); + dp.DestoryAt = 30000; + accessory.Method.SendDraw(DrawModeEnum.Default, DrawTypeEnum.Circle, dp); + } + + [ScriptMethod(name: "暗以太·叁销毁", eventType: EventTypeEnum.ActionEffect, eventCondition: ["ActionId:3423"],userControl: false)] + public void 暗以太叁销毁(Event @event, ScriptAccessory accessory) + { + accessory.Method.RemoveDraw($"暗以太叁{@event.SourceId()}"); + accessory.Method.RemoveDraw($"暗以太爆发叁{@event.SourceId()}"); + } + + [ScriptMethod(name: "暗影元精 击杀提示", eventType: EventTypeEnum.AddCombatant, eventCondition: ["DataId:3654"])] + public void 暗影元精(Event @event, ScriptAccessory accessory) + { + accessory.Method.TextInfo("击杀暗影元精", duration: 2000, true); + // accessory.Method.EdgeTTS("击杀暗影元精"); + } + + uint Extend=0; + public void Init(ScriptAccessory accessory) { + Extend=0; + } + + [ScriptMethod(name: "延时(吸引)", eventType: EventTypeEnum.ActionEffect, eventCondition: ["ActionId:3425"])] + public void 延时(Event @event, ScriptAccessory accessory) + { + Extend=1; + accessory.Method.TextInfo("吸引", duration: 6500, true); + } + + [ScriptMethod(name: "延迟之门", eventType: EventTypeEnum.AddCombatant, eventCondition: ["DataId:3655"])] + public void 延迟之门(Event @event, ScriptAccessory accessory) + { + var dp = accessory.Data.GetDefaultDrawProperties(); + dp.Name = "延迟之门"; + dp.Color = accessory.Data.DefaultDangerColor; + dp.Owner = @event.SourceId(); + dp.Scale = new Vector2(3f); + dp.DestoryAt = 15800; + accessory.Method.SendDraw(DrawModeEnum.Default, DrawTypeEnum.Circle, dp); + } + + [ScriptMethod(name: "延迟之门 吸引预测", eventType: EventTypeEnum.AddCombatant, eventCondition: ["DataId:3655"])] + public void 吸引(Event @event, ScriptAccessory accessory) + { + var dp = accessory.Data.GetDefaultDrawProperties(); + dp.Name = "吸引"; + dp.Color = accessory.Data.DefaultDangerColor; + dp.Scale = new(1, 6); + dp.Owner = accessory.Data.Me; + dp.TargetPosition = @event.SourcePosition(); + dp.DestoryAt = 15800; + accessory.Method.SendDraw(0, DrawTypeEnum.Rect, dp); + } + + [ScriptMethod(name: "延时之门销毁", eventType: EventTypeEnum.RemoveCombatant, eventCondition: ["DataId:3655"],userControl: false)] + public void 延时之门销毁(Event @event, ScriptAccessory accessory) + { + accessory.Method.RemoveDraw("延时之门"); + accessory.Method.RemoveDraw("吸引"); + } + + [ScriptMethod(name: "彗星 踩塔连线", eventType: EventTypeEnum.ObjectChanged, eventCondition: ["DataId:2005159", "Operate:Add", "Kind:EventObj"])] + public void 彗星(Event @event, ScriptAccessory accessory) + { + if (Extend != 1) return; + accessory.Method.TextInfo("T踩塔,准备近战LB", duration: 12000, true); + accessory.Method.EdgeTTS("坦克踩塔,准备近战LB"); + + var dp = accessory.Data.GetDefaultDrawProperties(); + dp.Name = "一塔描边"; + dp.Color = new Vector4(1f, 1f, 0f, 8f); + dp.Owner = @event.SourceId(); + dp.Scale = new Vector2(3.1f); + dp.InnerScale = new Vector2(3f); + dp.Radian = float.Pi * 2; + dp.DestoryAt = 12000; + accessory.Method.SendDraw(DrawModeEnum.Default, DrawTypeEnum.Donut, dp); + + /* + var dp = accessory.Data.GetDefaultDrawProperties(); + dp.Name = "一塔连线"; + dp.Owner = accessory.Data.Me; + dp.Color = accessory.Data.DefaultSafeColor; + dp.ScaleMode |= ScaleMode.YByDistance; + dp.TargetObject = @event.SourceId(); + dp.Scale = new(1); + dp.DestoryAt = 12000; + accessory.Method.SendDraw(DrawModeEnum.Imgui, DrawTypeEnum.Displacement, dp); + */ + + Extend=0; + } + + [ScriptMethod(name: "次元裂缝 击杀提示", eventType: EventTypeEnum.AddCombatant, eventCondition: ["DataId:3656"])] + public void 次元裂缝(Event @event, ScriptAccessory accessory) + { + // accessory.Method.TextInfo("击杀 <次元裂缝>", duration: 5000, true); + accessory.Method.EdgeTTS("击杀次元裂缝"); + } } public static class EventExtensions diff --git a/OnlineRepo.json b/OnlineRepo.json index ccb0354..b34a09e 100644 --- a/OnlineRepo.json +++ b/OnlineRepo.json @@ -51,6 +51,19 @@ 1067 ] }, + { + "Name": "那布里亚勒斯讨伐战", + "Guid": "64206b9e-cd0a-47ec-960d-15f39a888f9e", + "Version": "0.0.0.1", + "Author": "Tetora", + "Repo": "https://github.com/Hibiya615/TetoraKAScript/tree/main", + "DownloadUrl": "https://raw.githubusercontent.com/Hibiya615/TetoraKAScript/refs/heads/main/02-A-Realm-Reborn/Trials/Nabriales.cs", + "Note": "v0.0.0.1:\r\nLV50 那布里亚勒斯讨伐战 初版绘制", + "UpdateInfo": "", + "TerritoryIds": [ + 426 + ] + }, { "Name": "海德拉讨伐战", "Guid": "d32d7489-a1bb-4117-98dd-ee895390804d", diff --git a/README.md b/README.md index 575d0fd..c6dbd41 100644 --- a/README.md +++ b/README.md @@ -16,18 +16,19 @@ ## Scripts List / 支持副本: -| 迷宫挑战 | 讨伐歼灭战 | 讨伐歼殛战 | 大型Raid | -|-------------------------|--------------------|-------------------|--------| -| LV70
疯狂战舰无限回廊 | LV50
伊弗利特歼灭战 | LV50
莫古力贤王歼殛战 | T5 | -| | LV50
拉姆歼灭战 | | O11N | -| | LV50
莫古力贤王歼灭战 | | E1N | -| | LV50
海德拉讨伐战 | | E8N | -| | LV50
大桥上的决斗 | | E10N | -| | LV50
奥丁歼灭战 | | E12N | -| | LV60
祖尔宛歼灭战 | | | -| | LV70
吉祥天女歼灭战 | | | -| | LV70
神龙歼灭战 | | | -| | LV90
高贝扎歼灭战 | | | +| 迷宫挑战 | 讨伐歼灭战 | 讨伐歼殛战 | 大型Raid | +|-------------------------|---------------------|-------------------|--------| +| LV70
疯狂战舰无限回廊 | LV50
伊弗利特歼灭战 | LV50
莫古力贤王歼殛战 | T5 | +| | LV50
拉姆歼灭战 | | O11N | +| | LV50
莫古力贤王歼灭战 | | E1N | +| | LV50
那布里亚勒斯讨伐战 | | E8N | +| | LV50
海德拉讨伐战 | | E10N | +| | LV50
大桥上的决斗 | | E12N | +| | LV50
奥丁歼灭战 | | | +| | LV60
祖尔宛歼灭战 | | | +| | LV70
吉祥天女歼灭战 | | | +| | LV70
神龙歼灭战 | | | +| | LV90
高贝扎歼灭战 | | | **深层迷宫**