mirror of
https://github.com/Hibiya615/TetoraKAScript.git
synced 2025-12-22 17:54:58 +08:00
更新M12N绘制
This commit is contained in:
@@ -24,20 +24,19 @@ using FFXIVClientStructs.FFXIV.Component.GUI;
|
|||||||
|
|
||||||
namespace NewDuty;
|
namespace NewDuty;
|
||||||
|
|
||||||
[ScriptType(guid: "80890eac-4730-4708-ad1b-05aba469c2a1", name: "最新最热临时绘制", territorys: [1314,1307,1308,1320,1322,1324,1326],
|
[ScriptType(guid: "80890eac-4730-4708-ad1b-05aba469c2a1", name: "最新最热临时绘制", territorys: [1307,1320,1322,1324,1326],
|
||||||
version: "0.0.0.4", author: "Tetora", note: noteStr)]
|
version: "0.0.0.5", author: "Tetora", note: noteStr)]
|
||||||
|
|
||||||
/* MapID
|
/* MapID
|
||||||
* 1314: 遗忘行路雾之迹
|
|
||||||
* 1307: 格莱杨拉波尔歼灭战
|
* 1307: 格莱杨拉波尔歼灭战
|
||||||
* 1308: 格莱杨拉波尔歼殛战
|
* 1320~1326 M9N~M12N
|
||||||
*/
|
*/
|
||||||
|
|
||||||
public class NewDuty
|
public class NewDuty
|
||||||
{
|
{
|
||||||
const string noteStr =
|
const string noteStr =
|
||||||
"""
|
"""
|
||||||
v0.0.0.4:
|
v0.0.0.5:
|
||||||
最新最热副本绘制,可能会电,介意请关闭
|
最新最热副本绘制,可能会电,介意请关闭
|
||||||
别人的正式版发了这边就删
|
别人的正式版发了这边就删
|
||||||
""";
|
""";
|
||||||
@@ -59,186 +58,6 @@ public class NewDuty
|
|||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
|
|
||||||
#region 遗忘行路雾之迹
|
|
||||||
|
|
||||||
[ScriptMethod(name: "—————— 遗忘行路雾之迹 ——————", eventType: EventTypeEnum.StartCasting, eventCondition: ["ActionId:"])]
|
|
||||||
public void 遗忘行路雾之迹(Event @event, ScriptAccessory accessory) { }
|
|
||||||
|
|
||||||
[ScriptMethod(name: "BOSS1_特雷诺卡托布莱帕斯 地震 AOE", eventType: EventTypeEnum.StartCasting, eventCondition: ["ActionId:43327"])]
|
|
||||||
public void 地震(Event @event, ScriptAccessory accessory)
|
|
||||||
{
|
|
||||||
// if (isText)accessory.Method.TextInfo($"AOE", duration: 4300, true);
|
|
||||||
if (isTTS)accessory.Method.TTS($"AOE");
|
|
||||||
if (isEdgeTTS)accessory.Method.EdgeTTS($"AOE");
|
|
||||||
}
|
|
||||||
|
|
||||||
[ScriptMethod(name: "BOSS1_特雷诺卡托布莱帕斯 暴雷 死刑", eventType: EventTypeEnum.StartCasting, eventCondition: ["ActionId:43329"])]
|
|
||||||
public void 特雷诺卡托布莱帕斯_暴雷(Event @event, ScriptAccessory accessory)
|
|
||||||
{
|
|
||||||
// if (isText)accessory.Method.TextInfo($"坦克死刑", duration: 4300, true);
|
|
||||||
if (isTTS)accessory.Method.TTS($"坦克死刑");
|
|
||||||
if (isEdgeTTS)accessory.Method.EdgeTTS($"坦克死刑");
|
|
||||||
}
|
|
||||||
|
|
||||||
[ScriptMethod(name: "BOSS1_特雷诺卡托布莱帕斯 雷光射线(直线分摊)", eventType: EventTypeEnum.StartCasting, eventCondition: ["ActionId:44825"])]
|
|
||||||
public void 雷光射线(Event @event, ScriptAccessory accessory)
|
|
||||||
{
|
|
||||||
var dp = accessory.Data.GetDefaultDrawProperties();
|
|
||||||
dp.Name = $"雷光射线";
|
|
||||||
dp.Scale = new (5f, 50f);
|
|
||||||
dp.Owner = @event.SourceId();
|
|
||||||
dp.TargetObject = @event.TargetId();
|
|
||||||
dp.Color = accessory.Data.DefaultSafeColor;
|
|
||||||
dp.DestoryAt = 5300;
|
|
||||||
accessory.Method.SendDraw(DrawModeEnum.Default, DrawTypeEnum.Rect, dp);
|
|
||||||
}
|
|
||||||
|
|
||||||
[ScriptMethod(name: "BOSS1_特雷诺卡托布莱帕斯 震雷 分散提示", eventType: EventTypeEnum.StartCasting, eventCondition: ["ActionId:43331"])]
|
|
||||||
public void 强化寒冰咆哮(Event @event, ScriptAccessory accessory)
|
|
||||||
{
|
|
||||||
if (isText)accessory.Method.TextInfo($"分散,避开石头", duration: 2800, true);
|
|
||||||
if (isTTS)accessory.Method.TTS($"分散,避开石头");
|
|
||||||
if (isEdgeTTS)accessory.Method.EdgeTTS($"分散,避开石头");
|
|
||||||
}
|
|
||||||
|
|
||||||
[ScriptMethod(name: "BOSS1_特雷诺卡托布莱帕斯 恶魔之光 提示", eventType: EventTypeEnum.StartCasting, eventCondition: ["ActionId:43330"])]
|
|
||||||
public void 恶魔之光(Event @event, ScriptAccessory accessory)
|
|
||||||
{
|
|
||||||
// if (isText)accessory.Method.TextInfo($"躲在石头后", duration: 6300, true);
|
|
||||||
if (isTTS)accessory.Method.TTS($"躲在石头后");
|
|
||||||
if (isEdgeTTS)accessory.Method.EdgeTTS($"躲在石头后");
|
|
||||||
}
|
|
||||||
|
|
||||||
[ScriptMethod(name: "BOSS1_特雷诺卡托布莱帕斯 石化吐息(顺劈)", eventType: EventTypeEnum.StartCasting, eventCondition: ["ActionId:43335"])]
|
|
||||||
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(30f);
|
|
||||||
dp.Radian = 120f.DegToRad();
|
|
||||||
dp.DestoryAt = 4700;
|
|
||||||
accessory.Method.SendDraw(DrawModeEnum.Default, DrawTypeEnum.Fan, dp);
|
|
||||||
}
|
|
||||||
|
|
||||||
[ScriptMethod(name: "BOSS2_安度西亚斯 猛毒菌 AOE", eventType: EventTypeEnum.StartCasting, eventCondition: ["ActionId:45345"])]
|
|
||||||
public void 猛毒菌(Event @event, ScriptAccessory accessory)
|
|
||||||
{
|
|
||||||
// 产生毒气团 DataId:19064
|
|
||||||
// if (isText)accessory.Method.TextInfo($"AOE", duration: 4300, true);
|
|
||||||
if (isTTS)accessory.Method.TTS($"AOE");
|
|
||||||
if (isEdgeTTS)accessory.Method.EdgeTTS($"AOE");
|
|
||||||
}
|
|
||||||
|
|
||||||
[ScriptMethod(name: "BOSS2_安度西亚斯 霹雷 AOE", eventType: EventTypeEnum.StartCasting, eventCondition: ["ActionId:45351"])]
|
|
||||||
public void 霹雷(Event @event, ScriptAccessory accessory)
|
|
||||||
{
|
|
||||||
// 引爆剩余毒气团【45349 飞散】
|
|
||||||
// if (isText)accessory.Method.TextInfo($"AOE,远离剩余雷球", duration: 4300, true);
|
|
||||||
if (isTTS)accessory.Method.TTS($"AOE,远离剩余雷球");
|
|
||||||
if (isEdgeTTS)accessory.Method.EdgeTTS($"AOE,远离剩余雷球");
|
|
||||||
}
|
|
||||||
|
|
||||||
// 45348 雷电飞驰 直线预兆
|
|
||||||
|
|
||||||
[ScriptMethod(name: "BOSS2_安度西亚斯 暴雷(连续分摊)", eventType: EventTypeEnum.StartCasting, eventCondition: ["ActionId:45353"])]
|
|
||||||
public void 安度西亚斯_暴雷(Event @event, ScriptAccessory accessory)
|
|
||||||
{
|
|
||||||
var dp = accessory.Data.GetDefaultDrawProperties();
|
|
||||||
dp.Name = $"暴雷";
|
|
||||||
dp.Color = accessory.Data.DefaultSafeColor;
|
|
||||||
dp.Owner = @event.SourceId();
|
|
||||||
dp.Scale = new Vector2(6f);
|
|
||||||
dp.DestoryAt = 7200;
|
|
||||||
accessory.Method.SendDraw(DrawModeEnum.Default, DrawTypeEnum.Circle, dp);
|
|
||||||
}
|
|
||||||
|
|
||||||
[ScriptMethod(name: "BOSS2_安度西亚斯 雷电震击 死刑", eventType: EventTypeEnum.StartCasting, eventCondition: ["ActionId:45356"])]
|
|
||||||
public void 雷电震击(Event @event, ScriptAccessory accessory)
|
|
||||||
{
|
|
||||||
// if (isText)accessory.Method.TextInfo($"坦克死刑", duration: 4300, true);
|
|
||||||
if (isTTS)accessory.Method.TTS($"坦克死刑");
|
|
||||||
if (isEdgeTTS)accessory.Method.EdgeTTS($"坦克死刑");
|
|
||||||
}
|
|
||||||
|
|
||||||
[ScriptMethod(name: "BOSS2_安度西亚斯 惊雷协奏曲(大扇形)", eventType: EventTypeEnum.StartCasting, eventCondition: ["ActionId:regex:^(45337|45342)$"])]
|
|
||||||
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(40f);
|
|
||||||
dp.Radian = 310f.DegToRad();
|
|
||||||
dp.Rotation = @event.ActionId() == 45337 ? 0f.DegToRad() : 180f.DegToRad();
|
|
||||||
dp.DestoryAt = 5200;
|
|
||||||
accessory.Method.SendDraw(DrawModeEnum.Default, DrawTypeEnum.Fan, dp);
|
|
||||||
}
|
|
||||||
|
|
||||||
[ScriptMethod(name: "BOSS3_雷狮鹫 电光 AOE", eventType: EventTypeEnum.StartCasting, eventCondition: ["ActionId:45291"])]
|
|
||||||
public void 电光(Event @event, ScriptAccessory accessory)
|
|
||||||
{
|
|
||||||
// if (isText)accessory.Method.TextInfo($"AOE", duration: 4300, true);
|
|
||||||
if (isTTS)accessory.Method.TTS($"AOE");
|
|
||||||
if (isEdgeTTS)accessory.Method.EdgeTTS($"AOE");
|
|
||||||
}
|
|
||||||
|
|
||||||
[ScriptMethod(name: "BOSS3_雷狮鹫 黄金爪 死刑", eventType: EventTypeEnum.StartCasting, eventCondition: ["ActionId:45305"])]
|
|
||||||
public void 黄金爪(Event @event, ScriptAccessory accessory)
|
|
||||||
{
|
|
||||||
// if (isText)accessory.Method.TextInfo($"坦克死刑", duration: 4300, true);
|
|
||||||
if (isTTS)accessory.Method.TTS($"坦克死刑");
|
|
||||||
if (isEdgeTTS)accessory.Method.EdgeTTS($"坦克死刑");
|
|
||||||
}
|
|
||||||
|
|
||||||
[ScriptMethod(name: "BOSS3_雷狮鹫 霹雳 电球直线", eventType: EventTypeEnum.StartCasting, eventCondition: ["ActionId:regex:^(4529[78]|4694[34])$"])]
|
|
||||||
public void 霹雳(Event @event, ScriptAccessory accessory)
|
|
||||||
{
|
|
||||||
var dp = accessory.Data.GetDefaultDrawProperties();
|
|
||||||
dp.Name = "霹雳";
|
|
||||||
dp.Owner = @event.SourceId();
|
|
||||||
dp.Color = accessory.Data.DefaultDangerColor.WithW(0.6f);
|
|
||||||
dp.Scale = new (6f, 92f);
|
|
||||||
dp.DestoryAt = 5200;
|
|
||||||
|
|
||||||
/*
|
|
||||||
switch (@event.ActionId())
|
|
||||||
{
|
|
||||||
case 45297:
|
|
||||||
dp.Scale = new (92f, 6f);
|
|
||||||
dp.DestoryAt = 5200;
|
|
||||||
break;
|
|
||||||
case 45298:
|
|
||||||
dp.Scale = new (92f, 6f);
|
|
||||||
dp.DestoryAt = 5200;
|
|
||||||
break;
|
|
||||||
case 46943:
|
|
||||||
dp.Scale = new (20f, 3f);
|
|
||||||
dp.DestoryAt = 4000;
|
|
||||||
break;
|
|
||||||
case 46944:
|
|
||||||
dp.Scale = new (16f, 3f);
|
|
||||||
dp.DestoryAt = 4000;
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
*/
|
|
||||||
|
|
||||||
accessory.Method.SendDraw(DrawModeEnum.Default, DrawTypeEnum.Straight, dp);
|
|
||||||
}
|
|
||||||
|
|
||||||
[ScriptMethod(name: "BOSS3_雷狮鹫 雷光坠击 直线击退", eventType: EventTypeEnum.StartCasting, eventCondition: ["ActionId:45301"])]
|
|
||||||
public void 雷光坠击(Event @event, ScriptAccessory accessory)
|
|
||||||
{
|
|
||||||
// 击退距离为 12m
|
|
||||||
// if (isText)accessory.Method.TextInfo($"中间击退然后躲避直线", duration: 5300, true);
|
|
||||||
if (isTTS)accessory.Method.TTS($"中间击退然后躲避直线");
|
|
||||||
if (isEdgeTTS)accessory.Method.EdgeTTS($"中间击退然后躲避直线");
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
#endregion
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@@ -250,204 +69,6 @@ public class NewDuty
|
|||||||
#endregion
|
#endregion
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
#region 格莱杨拉波尔歼殛战
|
|
||||||
|
|
||||||
[ScriptMethod(name: "—————— 格莱杨拉波尔歼殛战 ——————", eventType: EventTypeEnum.StartCasting, eventCondition: ["ActionId:"])]
|
|
||||||
public void 格莱杨拉波尔歼殛战(Event @event, ScriptAccessory accessory) { }
|
|
||||||
|
|
||||||
uint Sperad = 0;
|
|
||||||
uint Stack = 0;
|
|
||||||
|
|
||||||
public void Init(ScriptAccessory accessory) {
|
|
||||||
Sperad = 0;
|
|
||||||
Stack = 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
[ScriptMethod(name:"分散分摊备用重置", eventType:EventTypeEnum.StartCasting, eventCondition: ["ActionId:regex:^4566[34]$"], userControl:false)]
|
|
||||||
public void 分散分摊备用重置(Event @event, ScriptAccessory accessory)
|
|
||||||
{
|
|
||||||
Sperad = 0;
|
|
||||||
Stack = 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
[ScriptMethod(name:"分散分摊记录", eventType:EventTypeEnum.ActionEffect, eventCondition: ["ActionId:regex:^4566[34]$"], userControl:false)]
|
|
||||||
public void 分散分摊记录(Event @event, ScriptAccessory accessory)
|
|
||||||
{
|
|
||||||
switch (@event.ActionId())
|
|
||||||
{
|
|
||||||
case 45663:
|
|
||||||
Sperad = 1;
|
|
||||||
if (isDeveloper) accessory.Method.SendChat($"/e [DEBUG]: 已记录【分散】");
|
|
||||||
break;
|
|
||||||
case 45664:
|
|
||||||
Stack = 1;
|
|
||||||
if (isDeveloper) accessory.Method.SendChat($"/e [DEBUG]: 已记录【分摊】");
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
[ScriptMethod(name:"超增压 分散/分摊 存储播报", eventType:EventTypeEnum.StartCasting, eventCondition: ["ActionId:regex:^4566[34]$"])]
|
|
||||||
public void 超增压存储(Event @event, ScriptAccessory accessory)
|
|
||||||
{
|
|
||||||
switch (@event.ActionId())
|
|
||||||
{
|
|
||||||
case 45663:
|
|
||||||
if (isTTS)accessory.Method.TTS($"存储分散");
|
|
||||||
if (isEdgeTTS)accessory.Method.EdgeTTS($"存储分散");
|
|
||||||
break;
|
|
||||||
case 45664:
|
|
||||||
if (isTTS)accessory.Method.TTS($"存储分摊");
|
|
||||||
if (isEdgeTTS)accessory.Method.EdgeTTS($"存储分摊");
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
[ScriptMethod(name:"超增压 击退/吸引 分散/分摊 播报", eventType:EventTypeEnum.StartCasting, eventCondition: ["ActionId:regex:^4567[07]$"])]
|
|
||||||
public void 超增压(Event @event, ScriptAccessory accessory)
|
|
||||||
{
|
|
||||||
if (@event.ActionId == 45670)
|
|
||||||
{
|
|
||||||
string knockbackText = "击退";
|
|
||||||
string knockbackTTS = "击退";
|
|
||||||
|
|
||||||
if (Sperad == 1)
|
|
||||||
{
|
|
||||||
knockbackText += " + 分散";
|
|
||||||
knockbackTTS += " 后分散";
|
|
||||||
}
|
|
||||||
else if (Stack == 1)
|
|
||||||
{
|
|
||||||
knockbackText += " + 分摊";
|
|
||||||
knockbackTTS += " 后分摊";
|
|
||||||
}
|
|
||||||
|
|
||||||
if (isText) accessory.Method.TextInfo(knockbackText, duration: 10500, true);
|
|
||||||
if (isTTS) accessory.Method.TTS(knockbackTTS);
|
|
||||||
if (isEdgeTTS) accessory.Method.EdgeTTS(knockbackTTS);
|
|
||||||
}
|
|
||||||
else if (@event.ActionId == 45677)
|
|
||||||
{
|
|
||||||
string attractText = "吸引";
|
|
||||||
string attractTTS = "吸引";
|
|
||||||
|
|
||||||
if (Sperad == 1)
|
|
||||||
{
|
|
||||||
attractText += " + 分散";
|
|
||||||
attractTTS += " 后分散";
|
|
||||||
}
|
|
||||||
else if (Stack == 1)
|
|
||||||
{
|
|
||||||
attractText += " + 分摊";
|
|
||||||
attractTTS += " 后分摊";
|
|
||||||
}
|
|
||||||
|
|
||||||
if (isText) accessory.Method.TextInfo(attractText, duration: 10500, true);
|
|
||||||
if (isTTS) accessory.Method.TTS(attractTTS);
|
|
||||||
if (isEdgeTTS) accessory.Method.EdgeTTS(attractTTS);
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
if (isDeveloper) accessory.Method.SendChat($"/e [DEBUG]: 超增压播报错误");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
[ScriptMethod(name:"分散分摊重置", eventType:EventTypeEnum.ActionEffect, eventCondition: ["ActionId:regex:^4567[07]$"], userControl:false)]
|
|
||||||
public void 分散分摊重置(Event @event, ScriptAccessory accessory)
|
|
||||||
{
|
|
||||||
// 在 【超增压急行】 或 【超增压抽雾】判定后,重置
|
|
||||||
Sperad = 0;
|
|
||||||
Stack = 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
/*
|
|
||||||
|
|
||||||
[ScriptMethod(name: "前照光 / 雷鸣吐息(上下AOE)", eventType: EventTypeEnum.StartCasting, eventCondition: ["ActionId:regex:^456(87|90)]$"])]
|
|
||||||
public void 前照光_雷鸣吐息(Event @event, ScriptAccessory accessory)
|
|
||||||
{
|
|
||||||
if (@event.ActionId == 45687)
|
|
||||||
{
|
|
||||||
if (isTTS)accessory.Method.TTS($"上");
|
|
||||||
if (isEdgeTTS)accessory.Method.EdgeTTS($"上");
|
|
||||||
}
|
|
||||||
else if (@event.ActionId == 45690)
|
|
||||||
{
|
|
||||||
if (isTTS)accessory.Method.TTS($"下");
|
|
||||||
if (isEdgeTTS)accessory.Method.EdgeTTS($"下");
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
if (isDeveloper) accessory.Method.SendChat($"/e [DEBUG]: 上下判断错误");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
*/
|
|
||||||
|
|
||||||
[ScriptMethod(name: "护卫炮塔_雷转质射线(直线)", eventType: EventTypeEnum.StartCasting, eventCondition: ["ActionId:regex:^4568[1-3]$"])]
|
|
||||||
public void 护卫炮塔_雷转质射线(Event @event, ScriptAccessory accessory)
|
|
||||||
{
|
|
||||||
var dp = accessory.Data.GetDefaultDrawProperties();
|
|
||||||
dp.Name = $"护卫炮塔_雷转质射线{@event.SourceId}";
|
|
||||||
dp.Owner = @event.SourceId();
|
|
||||||
dp.Color = accessory.Data.DefaultDangerColor;
|
|
||||||
dp.DestoryAt = 6700;
|
|
||||||
|
|
||||||
switch (@event.ActionId())
|
|
||||||
{
|
|
||||||
case 45681:
|
|
||||||
dp.Scale = new (5f, 25f);
|
|
||||||
break;
|
|
||||||
case 45682:
|
|
||||||
dp.Scale = new (5f, 10f); // 表格是长25,但是日本人的Spl画的10,先信日本人.jpg
|
|
||||||
break;
|
|
||||||
case 45683:
|
|
||||||
dp.Scale = new (5f, 20f);
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
|
|
||||||
accessory.Method.SendDraw(DrawModeEnum.Default, DrawTypeEnum.Rect, dp);
|
|
||||||
}
|
|
||||||
|
|
||||||
[ScriptMethod(name: "雷光一闪(旋风)", eventType: EventTypeEnum.StartCasting, eventCondition: ["ActionId:45666"])]
|
|
||||||
public void 雷光一闪(Event @event, ScriptAccessory accessory)
|
|
||||||
{
|
|
||||||
var dp = accessory.Data.GetDefaultDrawProperties();
|
|
||||||
dp.Name = "雷光一闪";
|
|
||||||
dp.Color = accessory.Data.DefaultDangerColor;
|
|
||||||
dp.Position = @event.EffectPosition();
|
|
||||||
dp.Scale = new Vector2(4f);
|
|
||||||
dp.DestoryAt = 2700;
|
|
||||||
accessory.Method.SendDraw(DrawModeEnum.Default, DrawTypeEnum.Circle, dp);
|
|
||||||
}
|
|
||||||
|
|
||||||
[ScriptMethod(name: "雷光雨(魔法阵钢铁最终位置)", eventType: EventTypeEnum.StartCasting, eventCondition: ["ActionId:45713"])]
|
|
||||||
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(16f);
|
|
||||||
dp.DestoryAt = 2400;
|
|
||||||
dp.ScaleMode = ScaleMode.ByTime;
|
|
||||||
accessory.Method.SendDraw(DrawModeEnum.Default, DrawTypeEnum.Circle, dp);
|
|
||||||
|
|
||||||
var dp1 = accessory.Data.GetDefaultDrawProperties();
|
|
||||||
dp1.Name = $"雷光雨描边";
|
|
||||||
dp1.Color = accessory.Data.DefaultDangerColor.WithW(10f);
|
|
||||||
dp1.Owner = @event.SourceId();
|
|
||||||
dp1.Scale = new Vector2(16f);
|
|
||||||
dp1.InnerScale = new Vector2(15.8f);
|
|
||||||
dp1.Radian = float.Pi * 2;
|
|
||||||
dp1.DestoryAt = 2400;
|
|
||||||
accessory.Method.SendDraw(DrawModeEnum.Default, DrawTypeEnum.Donut, dp1);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#endregion
|
|
||||||
|
|
||||||
#region M9N
|
#region M9N
|
||||||
|
|
||||||
[ScriptMethod(name: "—————— M9N ——————", eventType: EventTypeEnum.StartCasting, eventCondition: ["ActionId:"])]
|
[ScriptMethod(name: "—————— M9N ——————", eventType: EventTypeEnum.StartCasting, eventCondition: ["ActionId:"])]
|
||||||
@@ -477,17 +98,12 @@ public class NewDuty
|
|||||||
[ScriptMethod(name: "—————— M12N ——————", eventType: EventTypeEnum.StartCasting, eventCondition: ["ActionId:"])]
|
[ScriptMethod(name: "—————— M12N ——————", eventType: EventTypeEnum.StartCasting, eventCondition: ["ActionId:"])]
|
||||||
public void M12N(Event @event, ScriptAccessory accessory) { }
|
public void M12N(Event @event, ScriptAccessory accessory) { }
|
||||||
|
|
||||||
[ScriptMethod(name: "巨蟒绞缠(缠绕钢铁)判定时间", eventType: EventTypeEnum.StartCasting, eventCondition: ["ActionId:46198"])]
|
[ScriptMethod(name: "流血 提示", eventType: EventTypeEnum.StartCasting, eventCondition: ["ActionId:46182"])]
|
||||||
public void 巨蟒绞缠(Event @event, ScriptAccessory accessory)
|
public void 流血(Event @event, ScriptAccessory accessory)
|
||||||
{
|
{
|
||||||
var dp = accessory.Data.GetDefaultDrawProperties();
|
// if (isText)accessory.Method.TextInfo($"观察触手方向", duration: 5500, true);
|
||||||
dp.Name = $"巨蟒绞缠";
|
if (isTTS)accessory.Method.TTS($"观察触手方向");
|
||||||
dp.Color = accessory.Data.DefaultDangerColor;
|
if (isEdgeTTS)accessory.Method.EdgeTTS($"观察触手方向");
|
||||||
dp.Owner = @event.SourceId();
|
|
||||||
dp.Scale = new Vector2(13f);
|
|
||||||
dp.DestoryAt = 39700;
|
|
||||||
dp.ScaleMode = ScaleMode.ByTime;
|
|
||||||
accessory.Method.SendDraw(DrawModeEnum.Default, DrawTypeEnum.Circle, dp);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
[ScriptMethod(name: "灾变吐息(直线)", eventType: EventTypeEnum.StartCasting, eventCondition: ["ActionId:47547"])]
|
[ScriptMethod(name: "灾变吐息(直线)", eventType: EventTypeEnum.StartCasting, eventCondition: ["ActionId:47547"])]
|
||||||
@@ -502,7 +118,7 @@ public class NewDuty
|
|||||||
accessory.Method.SendDraw(DrawModeEnum.Default, DrawTypeEnum.Rect, dp);
|
accessory.Method.SendDraw(DrawModeEnum.Default, DrawTypeEnum.Rect, dp);
|
||||||
}
|
}
|
||||||
|
|
||||||
[ScriptMethod(name: "极饿伸展(扇形)", eventType: EventTypeEnum.ActionEffect, eventCondition: ["ActionId:46189"])]
|
[ScriptMethod(name: "极饿伸展(扇形)", eventType: EventTypeEnum.StartCasting, eventCondition: ["ActionId:46189"])]
|
||||||
public void 极饿伸展(Event @event, ScriptAccessory accessory)
|
public void 极饿伸展(Event @event, ScriptAccessory accessory)
|
||||||
{
|
{
|
||||||
var dp = accessory.Data.GetDefaultDrawProperties();
|
var dp = accessory.Data.GetDefaultDrawProperties();
|
||||||
@@ -515,6 +131,26 @@ public class NewDuty
|
|||||||
accessory.Method.SendDraw(DrawModeEnum.Default, DrawTypeEnum.Fan, dp);
|
accessory.Method.SendDraw(DrawModeEnum.Default, DrawTypeEnum.Fan, dp);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
[ScriptMethod(name: "大爆炸(屎块钢铁出现预兆)", eventType: EventTypeEnum.ObjectChanged, eventCondition: ["DataId:2015017","Operate:Add"])]
|
||||||
|
public void 大爆炸预兆(Event @event, ScriptAccessory accessory)
|
||||||
|
{
|
||||||
|
var dp = accessory.Data.GetDefaultDrawProperties();
|
||||||
|
dp.Name = $"大爆炸预兆{@event.SourceId}";
|
||||||
|
dp.Color = accessory.Data.DefaultDangerColor.WithW(10f);
|
||||||
|
dp.Owner = @event.SourceId();
|
||||||
|
dp.Scale = new Vector2(12f);
|
||||||
|
dp.InnerScale = new Vector2(11.96f);
|
||||||
|
dp.Radian = float.Pi * 2;
|
||||||
|
dp.DestoryAt = 30000;
|
||||||
|
accessory.Method.SendDraw(DrawModeEnum.Default, DrawTypeEnum.Donut, dp);
|
||||||
|
}
|
||||||
|
|
||||||
|
[ScriptMethod(name: "大爆炸(屎块钢铁出现预兆)销毁", eventType: EventTypeEnum.ActionEffect, eventCondition: ["ActionId:46191"],userControl: false)]
|
||||||
|
public void 大爆炸预兆销毁(Event @event, ScriptAccessory accessory)
|
||||||
|
{
|
||||||
|
accessory.Method.RemoveDraw($"大爆炸预兆.*");
|
||||||
|
}
|
||||||
|
|
||||||
[ScriptMethod(name: "大爆炸(屎块钢铁)", eventType: EventTypeEnum.StartCasting, eventCondition: ["ActionId:46191"])]
|
[ScriptMethod(name: "大爆炸(屎块钢铁)", eventType: EventTypeEnum.StartCasting, eventCondition: ["ActionId:46191"])]
|
||||||
public void 大爆炸(Event @event, ScriptAccessory accessory)
|
public void 大爆炸(Event @event, ScriptAccessory accessory)
|
||||||
{
|
{
|
||||||
@@ -527,7 +163,20 @@ public class NewDuty
|
|||||||
accessory.Method.SendDraw(DrawModeEnum.Default, DrawTypeEnum.Circle, dp);
|
accessory.Method.SendDraw(DrawModeEnum.Default, DrawTypeEnum.Circle, dp);
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
[ScriptMethod(name: "巨蟒绞缠(缠绕钢铁)判定时间", eventType: EventTypeEnum.StartCasting, eventCondition: ["ActionId:46198"])]
|
||||||
|
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(13f);
|
||||||
|
dp.DestoryAt = 15200;
|
||||||
|
dp.ScaleMode = ScaleMode.ByTime;
|
||||||
|
accessory.Method.SendDraw(DrawModeEnum.Default, DrawTypeEnum.Circle, dp);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
[ScriptMethod(name: "盛大登场(拆地板蛇出现)", eventType: EventTypeEnum.StartCasting, eventCondition: ["ActionId:regex:^4620[23]$"])]
|
[ScriptMethod(name: "盛大登场(拆地板蛇出现)", eventType: EventTypeEnum.StartCasting, eventCondition: ["ActionId:regex:^4620[23]$"])]
|
||||||
public void 盛大登场(Event @event, ScriptAccessory accessory)
|
public void 盛大登场(Event @event, ScriptAccessory accessory)
|
||||||
{
|
{
|
||||||
@@ -535,11 +184,12 @@ public class NewDuty
|
|||||||
dp.Name = $"盛大登场";
|
dp.Name = $"盛大登场";
|
||||||
dp.Owner = @event.SourceId();
|
dp.Owner = @event.SourceId();
|
||||||
dp.Color = accessory.Data.DefaultDangerColor;
|
dp.Color = accessory.Data.DefaultDangerColor;
|
||||||
dp.Scale = new (2.5f, 15f);
|
dp.Scale = new (6f, 15f);
|
||||||
dp.DestoryAt = 3200;
|
dp.Offset = new Vector3 (0, 0 ,2);
|
||||||
|
dp.DestoryAt = 3000;
|
||||||
accessory.Method.SendDraw(DrawModeEnum.Default, DrawTypeEnum.Rect, dp);
|
accessory.Method.SendDraw(DrawModeEnum.Default, DrawTypeEnum.Rect, dp);
|
||||||
}
|
}
|
||||||
*/
|
|
||||||
|
|
||||||
[ScriptMethod(name: "震场(拆地板)", eventType: EventTypeEnum.StartCasting, eventCondition: ["ActionId:46205"])]
|
[ScriptMethod(name: "震场(拆地板)", eventType: EventTypeEnum.StartCasting, eventCondition: ["ActionId:46205"])]
|
||||||
public void 震场(Event @event, ScriptAccessory accessory)
|
public void 震场(Event @event, ScriptAccessory accessory)
|
||||||
@@ -603,6 +253,18 @@ public class NewDuty
|
|||||||
accessory.Method.SendDraw(DrawModeEnum.Default, DrawTypeEnum.Rect, dp);
|
accessory.Method.SendDraw(DrawModeEnum.Default, DrawTypeEnum.Rect, dp);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
[ScriptMethod(name: "细胞失控(直线3)", eventType: EventTypeEnum.StartCasting, eventCondition: ["ActionId:48092"])]
|
||||||
|
public void 细胞失控3(Event @event, ScriptAccessory accessory)
|
||||||
|
{
|
||||||
|
var dp = accessory.Data.GetDefaultDrawProperties();
|
||||||
|
dp.Name = $"细胞失控3";
|
||||||
|
dp.Owner = @event.SourceId();
|
||||||
|
dp.Color = accessory.Data.DefaultDangerColor;
|
||||||
|
dp.Scale = new (8f, 30f);
|
||||||
|
dp.DestoryAt = 7200;
|
||||||
|
accessory.Method.SendDraw(DrawModeEnum.Default, DrawTypeEnum.Rect, dp);
|
||||||
|
}
|
||||||
|
|
||||||
[ScriptMethod(name: "细胞失控(大直线预兆)", eventType: EventTypeEnum.StartCasting, eventCondition: ["ActionId:48095"])]
|
[ScriptMethod(name: "细胞失控(大直线预兆)", eventType: EventTypeEnum.StartCasting, eventCondition: ["ActionId:48095"])]
|
||||||
public void 细胞失控大(Event @event, ScriptAccessory accessory)
|
public void 细胞失控大(Event @event, ScriptAccessory accessory)
|
||||||
{
|
{
|
||||||
@@ -610,7 +272,7 @@ public class NewDuty
|
|||||||
dp.Name = $"细胞失控大";
|
dp.Name = $"细胞失控大";
|
||||||
dp.Owner = @event.SourceId();
|
dp.Owner = @event.SourceId();
|
||||||
dp.Color = accessory.Data.DefaultDangerColor.WithW(1f);
|
dp.Color = accessory.Data.DefaultDangerColor.WithW(1f);
|
||||||
dp.Scale = new (35f, 0.5f);
|
dp.Scale = new (35f, 1f);
|
||||||
dp.DestoryAt = 15800;
|
dp.DestoryAt = 15800;
|
||||||
accessory.Method.SendDraw(DrawModeEnum.Default, DrawTypeEnum.Rect, dp);
|
accessory.Method.SendDraw(DrawModeEnum.Default, DrawTypeEnum.Rect, dp);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -890,17 +890,18 @@
|
|||||||
{
|
{
|
||||||
"Name": "最新最热临时绘制",
|
"Name": "最新最热临时绘制",
|
||||||
"Guid": "80890eac-4730-4708-ad1b-05aba469c2a1",
|
"Guid": "80890eac-4730-4708-ad1b-05aba469c2a1",
|
||||||
"Version": "0.0.0.4",
|
"Version": "0.0.0.5",
|
||||||
"Author": "Tetora",
|
"Author": "Tetora",
|
||||||
"Repo": "https://github.com/Hibiya615/TetoraKAScript/tree/main",
|
"Repo": "https://github.com/Hibiya615/TetoraKAScript/tree/main",
|
||||||
"DownloadUrl": "https://raw.githubusercontent.com/Hibiya615/TetoraKAScript/refs/heads/main/00-Other/NewDuty.cs",
|
"DownloadUrl": "https://raw.githubusercontent.com/Hibiya615/TetoraKAScript/refs/heads/main/00-Other/NewDuty.cs",
|
||||||
"Note": "v0.0.0.4:\r\n最新最热副本绘制,可能会电,介意请关闭\r\n别人的正式版发了这边就删",
|
"Note": "v0.0.0.5:\r\n最新最热副本绘制,可能会电,介意请关闭\r\n别人的正式版发了这边就删",
|
||||||
"UpdateInfo": "",
|
"UpdateInfo": "",
|
||||||
"TerritoryIds": [
|
"TerritoryIds": [
|
||||||
1314,
|
|
||||||
1307,
|
1307,
|
||||||
1308,
|
1320,
|
||||||
1318
|
1322,
|
||||||
|
1324,
|
||||||
|
1226
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user