| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277 |
- // Sea of Honor
- //
- // made by michengs / HSDN
- module.exports = (dispatch, handlers, guide, lang) => {
- const { player } = dispatch.require.library;
- let green = false;
- let purple = false;
- let boss_thirty = false;
- function boss_mech_event(skillid) {
- // (зеленый) "Ближе!"
- if (skillid == 121) {
- green = true;
- handlers.event([
- // круг перед боссом
- { type: "spawn", func: "circle", args: [true, 553, 0, 170, 8, 290, 3000, 2000] }, // 1
- // бублик вокруг босса
- { type: "spawn", func: "circle", args: [true, 553, 0, 0, 8, 280, 4000, 3000] }, // 2
- { type: "spawn", func: "circle", args: [true, 553, 0, 0, 4, 570, 4000, 3000] } // 2
- ]);
- }
- // (фиолетовый) "Проваливай!"
- if (skillid == 122) {
- purple = true;
- handlers.event([
- // бублик вокруг босса
- { type: "spawn", func: "circle", args: [true, 553, 0, 0, 8, 280, 3000, 2000] }, // 1
- { type: "spawn", func: "circle", args: [true, 553, 0, 0, 4, 570, 3000, 2000] }, // 1
- // круг перед боссом
- { type: "spawn", func: "circle", args: [true, 553, 0, 170, 8, 290, 4000, 3000] } // 2
- ]);
- }
- // "Упади в бездну"
- if (skillid == 120) {
- // Проваливай! - Упади в бездну
- // к нему (бублик вокруг босса) -> от него (круг перед боссом) -> к нему (бублик перед боссом)
- if (purple && !boss_thirty) {
- handlers.event([
- { type: "text", sub_type: "message", message: "In > Out > In", message_RU: "К нему > От него > К нему" },
- // бублик перед боссом
- { type: "spawn", func: "circle", args: [true, 912, 0, 150, 8, 280, 5000, 3000] }, // 3
- { type: "spawn", func: "circle", args: [true, 912, 0, 150, 4, 570, 5000, 3000] } // 3
- ]);
- dispatch.setTimeout(() => purple = false, 2000);
- // < 30%
- // Проваливай! - Упади в бездну
- // к нему (бублик вокруг босса) -> от него (круг перед боссом) -> [волны] -> к нему (бублик перед боссом)
- } else if (purple && boss_thirty) {
- handlers.event([
- { type: "text", sub_type: "message", message: "In > Out", message_RU: "К нему > От него > (К нему)" },
- { type: "text", sub_type: "message", delay: 5000, message: "In", message_RU: "К нему" },
- // бублик перед боссом
- { type: "spawn", func: "circle", args: [true, 912, 0, 150, 8, 280, 5000, 5000] }, // 3
- { type: "spawn", func: "circle", args: [true, 912, 0, 150, 4, 570, 5000, 5000] } // 3
- ]);
- dispatch.setTimeout(() => purple = false, 2000);
- }
- }
- // "Ощути силу взрыва"
- if (skillid == 123) {
- // Ближе! - Ощути силу взрыва
- // от него (круг перед боссом) -> к нему (бублик вокруг босса) -> от него (большой круг перед боссом)
- if (green && !boss_thirty) {
- handlers.event([
- { type: "text", sub_type: "message", message: "Out > In > Out", message_RU: "От него > К нему > От него" },
- // большой круг перед боссом
- { type: "spawn", func: "circle", args: [true, 912, 0, 200, 8, 450, 5000, 3000] } // 3
- ]);
- dispatch.setTimeout(() => green = false, 2000);
- // Проваливай - Ощути силу взрыва
- // к нему (бублик вокруг босса) -> от него (круг перед боссом) -> от него (большой круг перед боссом)
- } else if (purple && !boss_thirty) {
- handlers.event([
- { type: "text", sub_type: "message", message: "In > Out > Out", message_RU: "К нему > От него > От него" },
- // большой круг перед боссом
- { type: "spawn", func: "circle", args: [true, 912, 0, 200, 8, 450, 5000, 3000] } // 3
- ]);
- dispatch.setTimeout(() => purple = false, 2000);
- // < 30%
- // Ближе! - Ощути силу взрыва
- // от него (круг перед боссом) -> к нему (бублик вокруг босса) -> [волны] -> от него (большой круг перед боссом)
- } else if (green && boss_thirty) {
- handlers.event([
- { type: "text", sub_type: "message", message: "Out > In", message_RU: "От него > К нему > (От него)" },
- { type: "text", sub_type: "message", delay: 5000, message: "Out", message_RU: "От него" },
- // большой круг перед боссом
- { type: "spawn", func: "circle", args: [true, 912, 0, 200, 8, 450, 5000, 5000] } // 3
- ]);
- dispatch.setTimeout(() => purple = false, 2000);
- // < 30%
- // Проваливай! - Ощути силу взрыва
- // к нему (бублик вокруг босса) -> от него (круг перед боссом) -> [волны] -> от него (большой круг перед боссом)
- } else if (purple && boss_thirty) {
- handlers.event([
- { type: "text", sub_type: "message", message: "In > Out", message_RU: "К нему > От него > (От него)" },
- { type: "text", sub_type: "message", delay: 5000, message: "Out", message_RU: "От него" },
- // большой круг перед боссом
- { type: "spawn", func: "circle", args: [true, 912, 0, 200, 8, 450, 5000, 5000] } // 3
- ]);
- dispatch.setTimeout(() => purple = false, 2000);
- }
- }
- // Прыжок
- if (skillid == 127) {
- if (boss_thirty)
- handlers.text({ sub_type: "message", message: "Jump | Get Out", message_RU: "Прыжок | От него" });
- else
- handlers.event([
- { type: "text", sub_type: "message", message: "Jump | Get In", message_RU: "Прыжок | К нему" },
- { type: "spawn", func: "circle", args: [true, 553, 0, 0, 15, 200, 250, 1000] },
- { type: "spawn", func: "circle", args: [true, 553, 0, 0, 10, 300, 1000, 4000] }
- ]);
- }
- }
- function boss_start_event() {
- boss_thirty = false;
- }
- function boss_thirty_event() {
- boss_thirty = true;
- }
- let debuff_tracker_started = false;
- const debuffs_targe = {
- 30209101: { message: "Lightning", message_RU: "Молния (эвейд)" },
- 30209102: { message: "Witch", message_RU: "Ведьма (эвейд)" }
- };
- let debuff_call_event = null;
- function start_dungeon_event() {
- const abnormality_change = (added, event) => {
- if (debuffs_targe[event.id]) {
- // Set party marker to target
- handlers.marker({ id: event.target, color: "blue", sub_delay: 3500 });
- if (player.isMe(event.target.toString()) || player.playersInParty.includes(event.target.toString())) {
- if (added) {
- if (debuff_call_event) {
- dispatch.clearTimeout(debuff_call_event);
- }
- debuff_call_event = dispatch.setTimeout(() => {
- handlers.text({
- sub_type: "alert",
- message: debuffs_targe[event.id].message,
- message_RU: debuffs_targe[event.id].message_RU
- });
- debuff_call_event = null;
- }, 1500);
- }
- }
- }
- };
- if (!debuff_tracker_started) {
- dispatch.hook("S_ABNORMALITY_BEGIN", 4, abnormality_change.bind(null, true));
- dispatch.hook("S_ABNORMALITY_END", 1, abnormality_change.bind(null, false));
- debuff_tracker_started = true;
- }
- }
- return {
- "dm-0-0-30209203": [{ type: "func", func: start_dungeon_event }],
- "dm-0-0-30209204": [{ type: "func", func: start_dungeon_event }],
- // 1 BOSS
- "s-3020-1900-104-0": [
- { type: "text", sub_type: "message", message: "Suction (Dodge)", message_RU: "Высасывание (Выйти)" },
- { type: "spawn", func: "circle", args: [true, 553, 0, 0, 15, 450, 200, 6000] }
- ],
- // 2 BOSS
- "s-3020-1200-103-0": [{ type: "text", sub_type: "message", message: "Suction (Dodge)", message_RU: "Высасывание" }],
- // 3 BOSS
- "nd-3020-2200": [
- { type: "stop_timers" },
- { type: "despawn_all" }
- ],
- "h-3020-2200-99": [{ type: "func", func: boss_start_event }],
- "h-3020-2200-30": [
- { type: "text", sub_type: "message", message: "30%", message_RU: "30%" },
- { type: "func", func: boss_thirty_event }
- ],
- "h-3020-2200-29": [{ type: "func", func: boss_thirty_event }],
- "h-3020-2200-28": [{ type: "func", func: boss_thirty_event }],
- "h-3020-2200-27": [{ type: "func", func: boss_thirty_event }],
- "h-3020-2200-26": [{ type: "func", func: boss_thirty_event }],
- "h-3020-2200-25": [{ type: "func", func: boss_thirty_event }],
- "h-3020-2200-24": [{ type: "func", func: boss_thirty_event }],
- "h-3020-2200-23": [{ type: "func", func: boss_thirty_event }],
- "h-3020-2200-22": [{ type: "func", func: boss_thirty_event }],
- "h-3020-2200-21": [{ type: "func", func: boss_thirty_event }],
- "h-3020-2200-20": [{ type: "func", func: boss_thirty_event }],
- "h-3020-2200-19": [{ type: "func", func: boss_thirty_event }],
- "h-3020-2200-18": [{ type: "func", func: boss_thirty_event }],
- "h-3020-2200-17": [{ type: "func", func: boss_thirty_event }],
- "h-3020-2200-16": [{ type: "func", func: boss_thirty_event }],
- "h-3020-2200-15": [{ type: "func", func: boss_thirty_event }],
- "h-3020-2200-14": [{ type: "func", func: boss_thirty_event }],
- "h-3020-2200-13": [{ type: "func", func: boss_thirty_event }],
- "h-3020-2200-12": [{ type: "func", func: boss_thirty_event }],
- "h-3020-2200-11": [{ type: "func", func: boss_thirty_event }],
- "h-3020-2200-10": [{ type: "func", func: boss_thirty_event }],
- "h-3020-2200-9": [{ type: "func", func: boss_thirty_event }],
- "h-3020-2200-8": [{ type: "func", func: boss_thirty_event }],
- "h-3020-2200-7": [{ type: "func", func: boss_thirty_event }],
- "h-3020-2200-6": [{ type: "func", func: boss_thirty_event }],
- "h-3020-2200-5": [{ type: "func", func: boss_thirty_event }],
- "h-3020-2200-4": [{ type: "func", func: boss_thirty_event }],
- "h-3020-2200-3": [{ type: "func", func: boss_thirty_event }],
- "h-3020-2200-2": [{ type: "func", func: boss_thirty_event }],
- "h-3020-2200-1": [{ type: "func", func: boss_thirty_event }],
- "s-3020-2200-121-0": [{ type: "func", func: boss_mech_event, args: [121] }], // "Ближе!" (зеленый)
- "s-3020-2200-122-0": [{ type: "func", func: boss_mech_event, args: [122] }], // "Проваливай!" (фиолетовый)
- "s-3020-2200-120-0": [{ type: "func", func: boss_mech_event, args: [120] }], // "Упади в бездну"
- "s-3020-2200-123-0": [{ type: "func", func: boss_mech_event, args: [123] }], // "Ощути силу взрыва"
- "s-3020-2200-108-0": [
- { type: "text", sub_type: "message", message: "Front Stun", message_RU: "Стан" },
- { type: "spawn", func: "circle", args: [true, 553, 0, 170, 20, 120, 200, 2000] }
- ],
- //"s-3020-9101-122-0": [{ type: "text", sub_type: "message", message: "Jump", "message_TW": "强袭" }],
- //"s-3020-9101-124-0": [{ type: "text", sub_type: "message", message: "Jump", "message_TW": "前砸" }],
- //"s-3020-9101-125-0": [{ type: "text", sub_type: "message", message: "Jump", "message_TW": "转圈" }],
- //"s-3020-9101-126-0": [{ type: "text", sub_type: "message", message: "Jump", "message_TW": "大前砸" }],
- //"s-3020-2201-121-0": [{ type: "text", sub_type: "message", message: 'Left swipe', "message_TW": "2201-121" }, { type: "spawn", func: "marker", args: [false, 0, 0, 100, 2000, true, null] }],
- //"s-3020-2201-125-0": [{ type: "text", sub_type: "message", message: 'Left swipe', "message_TW": "2201-125" }, { type: "spawn", func: "marker", args: [false, 0, 0, 100, 2000, true, null] }],
- //"s-3020-2201-126-0": [{ type: "text", sub_type: "message", message: 'Left swipe', "message_TW": "2201-126" }, { type: "spawn", func: "marker", args: [false, 0, 0, 100, 2000, true, null] }],
- //"s-3020-2201-201-0": [{ type: "spawn", func: "marker", args: [false, 0, 0, 100, 2000, true, null] }],
- //"s-3020-6103-203-0": [{ type: "text", sub_type: "message", message: 'Left swipe', "message_TW": "6103-203" }, { type: "spawn", func: "marker", args: [false, 0, 0, 100, 2000, true, null] }],
- //"s-3020-6103-202-0": [{ type: "text", sub_type: "message", message: 'Left swipe', "message_TW": "6103-202" }, { type: "spawn", func: "marker", args: [false, 0, 0, 100, 2000, true, null] }],
- //"s-3020-6103-201-0": [{ type: "text", sub_type: "message", message: 'Left swipe', "message_TW": "6103-201" }, { type: "spawn", func: "marker", args: [false, 0, 0, 100, 2000, true, null] }],
- "s-3020-2200-127-0": [{ type: "func", func: boss_mech_event, args: [127] }],
- "s-3020-2200-128-0": [{ type: "text", sub_type: "message", message: "Uppercut (Knockup)", message_RU: "Черкаш (подлет)" }],
- "s-3020-2200-129-0": [
- { type: "text", sub_type: "message", message: "Hammer Toss ~ Skull", message_RU: "Полоса в цель" },
- { type: "spawn", func: "vector", args: [553, 90, 100, 0, 500, 200, 2000] },
- { type: "spawn", func: "vector", args: [553, 270, 100, 0, 500, 200, 2000] }
- ],
- //"s-3020-2200-131-0": [{ type: "text", sub_type: "message", message: "Jump", message_RU: "Прыжок" }],
- "s-3020-2200-133-1": [
- { type: "text", sub_type: "message", message: "Donuts", message_RU: "Бублики" },
- { type: "spawn", func: "circle", args: [true, 445, 0, 0, 10, 300, 200, 5000] },
- { type: "spawn", func: "circle", args: [true, 445, 0, 0, 6, 600, 200, 5000] },
- { type: "spawn", func: "circle", args: [true, 445, 0, 0, 4, 900, 200, 5000] }
- ],
- "s-3020-2200-135-0": [{ type: "text", sub_type: "message", message: "Puddles Inc (Jump)", message_RU: "Волны х5" }],
- "s-3020-2200-137-0": [{ type: "text", sub_type: "message", message: "Outward Pluse", message_RU: "Волна от" }],
- "s-3020-2200-139-0": [{ type: "text", sub_type: "message", message: "Inward Succ", message_RU: "Волна к" }],
- "s-3020-2200-202-0": [{ type: "text", sub_type: "message", message: "Defence 3 seconds", message_RU: "Защита 3 сек." }],
- "s-3020-2200-203-0": [{ type: "text", sub_type: "message", message: "Defence 10 seconds", message_RU: "Защита 10 сек." }],
- "s-3020-2200-204-0": [{ type: "text", sub_type: "message", message: "30% (transformation)", message_RU: "30% (видоизменение)" }]
- };
- };
|