|
|
@@ -5,7 +5,7 @@
|
|
|
|
|
|
const NotCP = typeof global.TeraProxy === "undefined" || typeof global.TeraProxy.UILanguage === "undefined";
|
|
|
const NpcData = require("./data/npcData.json"), SkillData = require("./data/skillString.json");
|
|
|
-const Last_Hook = { order: 100010 }, Last_Hookfn = { order: 100010, filter: { fake: null } };
|
|
|
+const Last_Hook = { order: 100010 }, Last_Hookfn = { order: 100010, filter: { fake: null, silenced: false, modified: null } };
|
|
|
const BnzC = '#BC8F8F', SlvC = '#9A9A9A', GldC = '#DAA520', PnkC = '#FFB7C5', HPkC = '#FF69B4', CPKC = '#ED5D92', RedC = '#FE6F5E', GrnC = '#4DE19C', LPrC = '#E0B0FF', PrpC = '#9966CC', LBlC = '#4DDCE1', BluC = '#436EEE', DBlC = '#5BC0BE', HBlC = '#08B3E5', GryC = '#778899', YlwC = '#C0B94D';
|
|
|
const InvisibleNpcs = { 8: [6011], 12: [1], 23: [201, 202], 34: [8000], 61: [9901], 62: [9001, 9002, 9003, 9004, 9901], 83: [9901], 207: [9901], 223: [9901], 230: [9901] };
|
|
|
const TrapsIds = [30120, 30220, 30320, 90220, 90320, 90420, 90520, 90620, 90720, 90820, 90920, 100120, 100220, 100320, 100420, 100520, 120220, 120320, 120420, 120520, 120620, 120720, 120820, 120920, 150120, 150220, 150320, 150420, 150520, 150620, 150720, 170120, 170220, 170320, 170420, 170520, 170620, 170720, 170820, 170920, 230120, 230220, 230320, 250120, 250220, 250320, 250420, 250520, 250620, 250720, 250820, 250920, 251020];
|
|
|
@@ -243,6 +243,7 @@ module.exports = function FpsUtils(mod) {
|
|
|
{ text: `<font color="${HBlC}">mpnumbers</font> <font color="${DBlC}">N/A</font> <font color="${HPkC}">!fps mpnumbers</font><br>` },
|
|
|
{ text: `<font color="${HBlC}">pet</font> <font color="${DBlC}">N/A</font> <font color="${HPkC}">!fps raid</font><br>` },
|
|
|
{ text: `<font color="${HBlC}">guardian</font> <font color="${DBlC}">N/A</font> <font color="${HPkC}">!fps guardian</font><br>` },
|
|
|
+ { text: `<font color="${HBlC}">muteothers</font> <font color="${DBlC}">N/A</font> <font color="${HPkC}">!fps muteothers</font><br>` },
|
|
|
{ text: `<font color="${HBlC}">stream</font> <font color="${DBlC}">N/A</font> <font color="${HPkC}">!fps stream</font></font><br>` },
|
|
|
], `<font color="${LPrC}">[FPS] HELP</font>`)
|
|
|
break;
|
|
|
@@ -297,6 +298,7 @@ module.exports = function FpsUtils(mod) {
|
|
|
{ text: `<font color="${mod.settings.HideBlacklistedDrop ? GrnC : RedC}" size="+18">[Drops BList]</font>`, command: "fps dropitem;fps gui" }, { text: " " },
|
|
|
{ text: `<font color="${mod.settings.PvpTraps ? GrnC : RedC}" size="+17">[Show Traps]</font><br>`, command: "fps pvptraps;fps gui" }, { text: "			" },
|
|
|
{ text: `<font color="${mod.settings.GuardianAutoChange ? GrnC : RedC}" size="+17">[Guardian auto state]</font>`, command: "fps guardian;fps gui" }, { text: " " },
|
|
|
+ { text: `<font color="${mod.settings.MuteOthersVoice ? GrnC : RedC}" size="+17">[Mute others voice]</font>`, command: "fps muteothers;fps gui" }, { text: " " },
|
|
|
{ text: `<font color="${mod.settings.StreamMode ? GrnC : RedC}" size="+17">[Stream]</font><br><br>`, command: "fps stream;fps gui" },
|
|
|
{ text: `<font color="${BluC}" size="+22">Quick Links:</font><br>` },
|
|
|
{ text: `<font color="${YlwC}" size="+20">UI:</font>` }, { text: "		" },
|
|
|
@@ -563,6 +565,13 @@ module.exports = function FpsUtils(mod) {
|
|
|
if (mod.settings.Hideguildlogos) {
|
|
|
event.guildLogo = '';
|
|
|
event.guildLogoId = 0;
|
|
|
+
|
|
|
+ modified = true;
|
|
|
+ }
|
|
|
+
|
|
|
+ if (mod.settings.MuteOthersVoice) {
|
|
|
+ event.appearance.voice = 249;
|
|
|
+
|
|
|
modified = true;
|
|
|
}
|
|
|
|
|
|
@@ -791,7 +800,7 @@ module.exports = function FpsUtils(mod) {
|
|
|
}
|
|
|
|
|
|
function sStartActionScript(event) {
|
|
|
- if ([40000, 40001, 40002].includes(event.script)) return;
|
|
|
+ if ([40000, 40001, 40002, 426002].includes(event.script)) return;
|
|
|
if (mod.settings.ActionScripts) return false;
|
|
|
}
|
|
|
|
|
|
@@ -1606,6 +1615,10 @@ module.exports = function FpsUtils(mod) {
|
|
|
mod.settings.HideMpNumbers = !mod.settings.HideMpNumbers;
|
|
|
Msg(`Own Mp numbers ${mod.settings.HideMpNumbers ? `<font color="${GrnC}">Hidden</font>` : `<font color="${RedC}">Shown</font>`}.`);
|
|
|
break;
|
|
|
+ case "muteothers":
|
|
|
+ mod.settings.MuteOthersVoice = !mod.settings.MuteOthersVoice;
|
|
|
+ Msg(`Mute others voice is ${mod.settings.MuteOthersVoice ? `<font color="${GrnC}">Enabled</font>` : `<font color="${RedC}">Disabled</font>`}.`);
|
|
|
+ break;
|
|
|
case "stream":
|
|
|
mod.settings.StreamMode = !mod.settings.StreamMode;
|
|
|
Msg(`Stream mode is ${mod.settings.StreamMode ? `<font color="${GrnC}">Enabled</font>` : `<font color="${RedC}">Disabled</font>`}.`);
|