|
|
@@ -6,9 +6,9 @@ module.exports = function FpsUtils(mod) {
|
|
|
const NpcData = require("./data/npcData.json"), SkillData = require("./data/skillString.json");
|
|
|
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, 2], 23: [201, 202], 34: [8000], 61: [9901], 62: [1017, 1035, 1039, 1040, 1041, 1042, 1900, 1901, 1902, 1903, 9001, 9002, 9003, 9004, 9901], 83: [9901], 207: [9901], 212: [1034], 223: [9901, 9906, 9907, 9915, 9925], 230: [9901], 362: [1201, 1202, 1301, 1302] };
|
|
|
- const PvPProjs = [30120, 30220, 30320, 90120, 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];
|
|
|
+ const TrapsIds = [30120, 30220, 30320, 90120, 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];
|
|
|
const UserNPCs = [12345, 1100100, 1100101, 1023000, 1023001, 1023002, 1023003, 1023004, 1023005, 1023006, 1023007, 1023008, 1023009, 1023010, 1023011, 1023012, 1023013, 1023014, 1023200, 1023201, 1023202, 1023203, 1023204, 1023205, 1023206, 1023207, 1023208, 1023209, 1023210, 1023211, 1023300, 1023301, 1023302, 1023303, 1023304, 1023305, 1023306, 1023307, 1023308, 1023309, 1023310, 1023311, 1023312, 1023400, 1023401, 1023402, 1023403, 1023404, 1023405, 1024000, 1024001, 1024100, 1024200, 1024300, 2100100, 2100101, 10235001, 10235002, 10235003, 10235004, 10235005, 10235006, 10235007, 10235008, 10235009, 10235010, 10235011, 10235012, 10235013, 10235014, 10235015, 10235016, 10235017, 10235100, 10236001, 10236002, 10236003, 10236004, 10236005, 10236006, 10236007, 10236008, 10236009, 10236010, 10236011, 10236012, 10236013, 10236014, 10236015, 10236100, 10237001, 10237002, 10237003, 10237004, 10237005, 10237006, 10237007, 10237008, 10237009, 10237010, 10237011, 10237012, 10237013, 10237014, 10237015, 10237100, 10238001, 10238002, 10238003, 10238004, 10238005, 10238006, 10238007, 10238008, 10238100, 10239003, 30301001, 30301002, 30301003, 30301004, 30301005, 30302001, 30302002, 30302003, 30302004, 30302005, 30302006, 30302007, 30303001, 30303002, 30303003, 30303004, 30303005, 30303006, 30303007];
|
|
|
- const SpamAchievementIds = [51, 377, 391, 466, 467, 468, 469, 470, 471, 472, 473, 476, 611, 1408, 1744, 1745, 1769, 1770, 1771, 1942, 1943, 1952, 1992, 2032, 2033, 2036, 2037, 2038, 2057, 2062, 2071, 2078, 2081, 2082, 2083, 2084, 2088, 2089, 2095, 6005, 9817, 28723, 28724, 28725, 28726, 28727, 28728, 28729, 28730, 28731, 28732, 28733, 28734, 28735, 28736, 510005, 510012, 510019, 510026, 510027, 510033, 510034, 510035, 510036, 510037, 510038, 510039, 510040, 510041, 520029, 520030, 520032, 520033, 520034, 520035, 520048, 520049, 520050, 520051, 525000, 525001, 525002, 525003, 525004, 525005, 525006, 525007, 525008, 525009, 525010, 525011, 525012, 525013, 525014, 525015, 525016, 525017, 525018, 525019, 525020, 525021, 525022, 525023, 525024, 525025, 5010000];
|
|
|
+ const SpamAchIds = [6, 51, 377, 391, 466, 467, 468, 469, 470, 471, 472, 473, 476, 611, 1408, 1744, 1745, 1769, 1770, 1771, 1942, 1943, 1952, 1992, 2032, 2033, 2036, 2037, 2038, 2057, 2062, 2071, 2078, 2081, 2082, 2083, 2084, 2088, 2089, 2095, 6005, 9817, 28723, 28724, 28725, 28726, 28727, 28728, 28729, 28730, 28731, 28732, 28733, 28734, 28735, 28736, 510005, 510012, 510019, 510026, 510027, 510033, 510034, 510035, 510036, 510037, 510038, 510039, 510040, 510041, 520029, 520030, 520032, 520033, 520034, 520035, 520048, 520049, 520050, 520051, 525000, 525001, 525002, 525003, 525004, 525005, 525006, 525007, 525008, 525009, 525010, 525011, 525012, 525013, 525014, 525015, 525016, 525017, 525018, 525019, 525020, 525021, 525022, 525023, 525024, 525025, 5010000];
|
|
|
const ImportantAbns = [90440009, 90442106, 90442110, 90442111, 90442112, 90442113, 90442114, 90442400, 90442401, 90442402, 90442403, 90442404, 90442405, 90442406, 90442407, 90442408, 90442502, 78200123, 78200126, 78200130, 78200131, 78200161, 78200162, 78200203, 78200204, 78200205, 78200209, 78200234, 78200235, 78200236];
|
|
|
|
|
|
let MyGameId,
|
|
|
@@ -77,7 +77,7 @@ module.exports = function FpsUtils(mod) {
|
|
|
TmpData = []
|
|
|
TmpData.push(
|
|
|
{ text: `<font color="${PrpC}" size="+24"><p align="right">MAIN MENU</p></font><br><br>`, command: "fps gui" },
|
|
|
- { text: `<font color="${YlwC}" size="+20"><p align="right">[Main NPC page]</p></font><br>`, command: "fps gui npcMain" },
|
|
|
+ { text: `<font color="${YlwC}" size="+20"><p align="right">[Main NPC page]</p></font><br>`, command: "fps gui npcmain" },
|
|
|
{ text: `<font color="${LBlC}" size="+19">Click a NPC ID to remove it from the blacklist:</font><br>` }
|
|
|
)
|
|
|
for (let i = 0; i < mod.settings.NpcsBlacklist.length; i++) {
|
|
|
@@ -86,7 +86,7 @@ module.exports = function FpsUtils(mod) {
|
|
|
gui.parse(TmpData, `<font color="${LPrC}">[FPS] Options - NPCs </font><font color="${GrnC}">(Blacklist)</font>`)
|
|
|
TmpData = []
|
|
|
break;
|
|
|
- case "npcMain":
|
|
|
+ case "npcmain":
|
|
|
TmpData = []
|
|
|
TmpData.push(
|
|
|
{ text: `<font color="${PrpC}" size="+24"><p align="right">MAIN MENU</p></font><br><br>`, command: "fps gui" },
|
|
|
@@ -235,66 +235,66 @@ module.exports = function FpsUtils(mod) {
|
|
|
break;
|
|
|
default:
|
|
|
gui.parse([
|
|
|
- { text: `<font color="${PrpC}" size="+24"><p align="right">REFRESH</p></font><br>`, command: "fps gui" },
|
|
|
- { text: `<font color="${YlwC}" size="+21">Modes:</font>` }, { text: "		" },
|
|
|
+ { text: `<font color="${PrpC}" size="+15"><p align="right">REFRESH</p></font><br>`, command: "fps gui" },
|
|
|
+ { text: `<font color="${YlwC}" size="+20">Modes:</font>` }, { text: "		" },
|
|
|
{ text: `<font color="${mod.settings.Mode === 0 ? GrnC : RedC}" size="+18">[Mode 0]</font>`, command: "fps mode 0;fps gui" }, { text: " " },
|
|
|
{ text: `<font color="${mod.settings.Mode === 1 ? GrnC : RedC}" size="+18">[Mode 1]</font>`, command: "fps mode 1;fps gui" }, { text: " " },
|
|
|
{ text: `<font color="${mod.settings.Mode === 2 ? GrnC : RedC}" size="+18">[Mode 2]</font>`, command: "fps mode 2;fps gui" }, { text: " " },
|
|
|
{ text: `<font color="${mod.settings.Mode === 3 ? GrnC : RedC}" size="+18">[Mode 3]</font><br><br>`, command: "fps mode 3;fps gui" },
|
|
|
- { text: `<font color="${YlwC}" size="+21">Hit:</font>` }, { text: "			" },
|
|
|
+ { text: `<font color="${YlwC}" size="+20">Hit:</font>` }, { text: "			" },
|
|
|
{ text: `<font color="${mod.settings.Hit_Other ? GrnC : RedC}" size="+18">[Players]</font>`, command: "fps hit other;fps gui" }, { text: " " },
|
|
|
{ text: `<font color="${mod.settings.Hit_Me ? GrnC : RedC}" size="+18">[Own]</font>`, command: "fps hit me;fps gui" }, { text: " " },
|
|
|
{ text: `<font color="${mod.settings.Hit_Damage ? GrnC : RedC}" size="+18">[Dmg/heal numbers]</font>`, command: "fps hit damage;fps gui" }, { text: " " },
|
|
|
{ text: `<font color="${mod.settings.Hit_All ? GrnC : RedC}" size="+18">[ALL]</font><br><br>`, command: "fps hit all;fps gui" },
|
|
|
- { text: `<font color="${YlwC}" size="+21">Hide:</font>` }, { text: "		" },
|
|
|
+ { text: `<font color="${YlwC}" size="+20">Hide:</font>` }, { text: "		" },
|
|
|
{ text: `<font color="${LBlC}" size="+18">[Classes/Roles]</font>`, command: "fps gui role" }, { text: " " },
|
|
|
{ text: `<font color="${mod.settings.ShowStyle ? GrnC : RedC}" size="+18">[Style]</font>`, command: "fps style;fps gui" }, { text: " " },
|
|
|
{ text: `<font color="${mod.settings.Hideguildlogos ? GrnC : RedC}" size="+18">[Guild Logos]</font>`, command: "fps guildlogo;fps gui" }, { text: " " },
|
|
|
{ text: `<font color="${mod.settings.HideFireworks ? GrnC : RedC}" size="+18">[Fireworks]</font><br><br>`, command: "fps fireworks;fps gui" },
|
|
|
- { text: `<font color="${YlwC}" size="+21">Self(own):</font>` }, { text: "	" },
|
|
|
+ { text: `<font color="${YlwC}" size="+20">Self(own):</font>` }, { text: "	" },
|
|
|
{ text: `<font color="${mod.settings.HideHpNumbers ? GrnC : RedC}" size="+18">[HP Nums]</font>`, command: "fps hpnumbers;fps gui" }, { text: " " },
|
|
|
{ text: `<font color="${mod.settings.HideMpNumbers ? GrnC : RedC}" size="+18">[MP Nums]</font>`, command: "fps mpnumbers;fps gui" }, { text: " " },
|
|
|
{ text: `<font color="${mod.settings.HideMySummons ? GrnC : RedC}" size="+18">[Own summons]</font>`, command: "fps summons me;fps gui" }, { text: " " },
|
|
|
{ text: `<font color="${mod.settings.HideOwnBlacklistedAbns ? GrnC : RedC}" size="+18">[Blur/dizzy]</font><br>`, command: "fps screenabns;fps gui" },
|
|
|
- { text: `<font color="${YlwC}" size="+21">Players:</font>` }, { text: "	" },
|
|
|
+ { text: `<font color="${YlwC}" size="+20">Players:</font>` }, { text: "		" },
|
|
|
{ text: `<font color="${LBlC}" size="+18">[Spawned list]</font>`, command: "fps gui show" }, { text: " " },
|
|
|
{ text: `<font color="${LBlC}" size="+18">[Hidden list]</font>`, command: "fps gui hide" }, { text: " " },
|
|
|
{ text: `<font color="${mod.settings.HideOthersSummons ? GrnC : RedC}" size="+18">[Players summons]</font><br>`, command: "fps summons;fps gui" },
|
|
|
- { text: `<font color="${YlwC}" size="+21">NPCs:</font>` }, { text: "		" },
|
|
|
- { text: `<font color="${LBlC}" size="+18">[Menu]</font>`, command: "fps gui npcMain" }, { text: " " },
|
|
|
+ { text: `<font color="${YlwC}" size="+20">NPCs:</font>` }, { text: "		" },
|
|
|
+ { text: `<font color="${LBlC}" size="+18">[Menu]</font>`, command: "fps gui npcmain" }, { text: " " },
|
|
|
{ text: `<font color="${mod.settings.HideMonsterDeathAnimation ? GrnC : RedC}" size="+18">[Hide Death Ani]</font>`, command: "fps monsterdeathani;fps gui" }, { text: " " },
|
|
|
{ text: `<font color="${mod.settings.ActionScripts ? GrnC : RedC}" size="+18">[Zoom-ins]</font>`, command: "fps npczoom;fps gui" }, { text: " " },
|
|
|
{ text: `<font color="${mod.settings.HideBlacklistedNpcs ? GrnC : RedC}" size="+18">[Hide Blacklisted]</font><br><br>`, command: "fps npc;fps gui" },
|
|
|
- { text: `<font color="${YlwC}" size="+21">Skills:</font>` }, { text: "		" },
|
|
|
+ { text: `<font color="${YlwC}" size="+20">Skills:</font>` }, { text: "		" },
|
|
|
{ text: `<font color="${LBlC}" size="+18">[Hide individually]</font>`, command: "fps gui skills" }, { text: " " },
|
|
|
{ text: `<font color="${mod.settings.HideBlacklistedSkills ? GrnC : RedC}" size="+18">[Hide Blacklisted]</font><br>`, command: "fps skill blacklist;fps gui" },
|
|
|
- { text: `<font color="${YlwC}" size="+21">Abnormal:</font>` }, { text: "	" },
|
|
|
+ { text: `<font color="${YlwC}" size="+20">Abnormal:</font>` }, { text: "	" },
|
|
|
{ text: `<font color="${mod.settings.HideAllAbnormalities ? GrnC : RedC}" size="+18">[Hide ALL]</font>`, command: "fps abn all;fps gui" }, { text: " " },
|
|
|
{ text: `<font color="${mod.settings.HideBlacklistedAbnormalities ? GrnC : RedC}" size="+18">[Hide Blacklisted]</font>`, command: "fps abn blacklist;fps gui" }, { text: " " },
|
|
|
{ text: `<font color="${LBlC}" size="+18">[Black List]</font><br>`, command: "fps gui abn" },
|
|
|
- { text: `<font color="${YlwC}" size="+21">Projectile:</font>` }, { text: "	" },
|
|
|
+ { text: `<font color="${YlwC}" size="+20">Projectile:</font>` }, { text: "	" },
|
|
|
{ text: `<font color="${mod.settings.HideAllProjectiles ? GrnC : RedC}" size="+18">[Hide ALL]</font>`, command: "fps proj all;fps gui" }, { text: " " },
|
|
|
{ text: `<font color="${mod.settings.HideBlacklistedProjectiles ? GrnC : RedC}" size="+18">[Hide Blacklisted]</font>`, command: "fps proj blacklist;fps gui" }, { text: " " },
|
|
|
{ text: `<font color="${LBlC}" size="+18">[Black List]</font><br><br>`, command: "fps gui proj" },
|
|
|
- { text: `<font color="${YlwC}" size="+21">Misc.</font>` }, { text: "		" },
|
|
|
+ { text: `<font color="${YlwC}" size="+20">Misc.</font>` }, { text: "		" },
|
|
|
{ text: `<font color="${mod.settings.RaidAutoChange ? GrnC : RedC}" size="+18">[Raid auto state]</font>`, command: "fps raid;fps gui" }, { text: " " },
|
|
|
{ text: `<font color="${mod.settings.OnlyParty ? GrnC : RedC}" size="+18">[Only Party]</font>`, command: "fps party;fps gui" }, { text: " " },
|
|
|
{ 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><br><br><br>`, command: "fps pvptraps;fps gui" },
|
|
|
+ { text: `<font color="${mod.settings.PvpTraps ? GrnC : RedC}" size="+17">[Show Traps]</font><br><br><br>`, command: "fps pvptraps;fps gui" },
|
|
|
{ text: `<font color="${BluC}" size="+22">Quick Links:</font><br>` },
|
|
|
- { text: `<font color="${YlwC}" size="+21">UI:</font>` }, { text: "		" },
|
|
|
+ { text: `<font color="${YlwC}" size="+20">UI:</font>` }, { text: "		" },
|
|
|
{ text: `<font color="${PrpC}" size="+17">[Mail]</font>`, command: "fps quicklink parcel" }, { text: " " },
|
|
|
{ text: `<font color="${PrpC}" size="+17">[Broker]</font>`, command: "fps quicklink broker" }, { text: " " },
|
|
|
{ text: `<font color="${PrpC}" size="+17">[Talent]</font>`, command: "fps quicklink talents" }, { text: " " },
|
|
|
{ text: `<font color="${PrpC}" size="+17">[Dress]</font>`, command: "fps quicklink dressingroom" }, { text: " " },
|
|
|
{ text: `<font color="${PrpC}" size="+17">[Hat Style]</font>`, command: "fps quicklink hatrestyle" }, { text: " " },
|
|
|
{ text: `<font color="${PrpC}" size="+17">[Search-Engine]</font><br>`, command: "fps quicklink searchengine" },
|
|
|
- { text: `<font color="${YlwC}" size="+21">Party:</font>` }, { text: "	" },
|
|
|
+ { text: `<font color="${YlwC}" size="+20">Party:</font>` }, { text: "	" },
|
|
|
{ text: `<font color="${CPKC}" size="+18">[Reset]</font>`, command: "fps quicklink reset" }, { text: " " },
|
|
|
{ text: `<font color="${CPKC}" size="+18">[Leave]</font>`, command: "fps quicklink drop" }, { text: " " },
|
|
|
{ text: `<font color="${CPKC}" size="+18">[Disband]</font><br>`, command: "fps quicklink disband" },
|
|
|
- { text: `<font color="${YlwC}" size="+21">System:</font>` }, { text: "	" },
|
|
|
- { text: `<font color="${CPKC}" size="+18">[Character Selection]</font>`, command: "fps quicklink lobby" }, { text: "						 " },
|
|
|
+ { text: `<font color="${YlwC}" size="+20">System:</font>` }, { text: "	" },
|
|
|
+ { text: `<font color="${CPKC}" size="+18">[Character Selection]</font>`, command: "fps quicklink lobby" }, { text: "				" },
|
|
|
{ text: `<font color="${CPKC}" size="+18">[!! Instant Exit !!]</font><br>`, command: "fps quicklink instantexit" }
|
|
|
], `<font color="${LPrC}">[FPS] Options</font> | <font color="${RedC}" size="+16">Red</font><font color="${LPrC}" size="+16"> = disabled, <font color="${GrnC}" size="+16">Green</font><font color="${LPrC}" size="+16"> = enabled</font>`)
|
|
|
}
|
|
|
@@ -679,7 +679,7 @@ module.exports = function FpsUtils(mod) {
|
|
|
|
|
|
function sUpdateAchievementProgress(event) {
|
|
|
if (AllowedAchUps) { AllowedAchUps--; return; }
|
|
|
- for (const Achieve of event.achievements) if (SpamAchievementIds.indexOf(Achieve.id) > -1) return false;
|
|
|
+ for (const Achieve of event.achievements) if (SpamAchIds.indexOf(Achieve.id) > -1) return false;
|
|
|
}
|
|
|
|
|
|
function sItemCustomString(event) {
|
|
|
@@ -875,7 +875,7 @@ module.exports = function FpsUtils(mod) {
|
|
|
if (EqGid(event.gameId)) log('Projectile', 'Started', 'from', MyName, event.skill.id)
|
|
|
if (SUsers[event.gameId]) log('Projectile', 'Started', 'from', SUsers[event.gameId].name, event.skill.id)
|
|
|
}
|
|
|
- if (mod.settings.PvpTraps && PvPProjs.includes(event.skill.id)) return;
|
|
|
+ if (mod.settings.PvpTraps && TrapsIds.includes(event.skill.id)) return;
|
|
|
if ((mod.settings.HideBlacklistedProjectiles || mod.settings.HideAllProjectiles) && mod.settings.ProjectilesBlacklist.includes(event.skill.id)) return false;
|
|
|
if (!EqGid(event.gameId) && SUsers[event.gameId] && (HUsers[event.gameId] || mod.settings.Mode >= 2 || mod.settings.HideAllProjectiles)) return false;
|
|
|
}
|
|
|
@@ -886,7 +886,7 @@ module.exports = function FpsUtils(mod) {
|
|
|
if (EqGid(event.gameId)) log('Projectile', 'Spawned', 'from', MyName, event.skill.id)
|
|
|
if (SUsers[event.gameId]) log('Projectile', 'Spawned', 'from', SUsers[event.gameId].name, event.skill.id)
|
|
|
}
|
|
|
- if (mod.settings.PvpTraps && PvPProjs.includes(event.skill.id)) return;
|
|
|
+ if (mod.settings.PvpTraps && TrapsIds.includes(event.skill.id)) return;
|
|
|
if ((mod.settings.HideBlacklistedProjectiles || mod.settings.HideAllProjectiles) && mod.settings.ProjectilesBlacklist.includes(event.skill.id)) return false;
|
|
|
if (!EqGid(event.gameId) && SUsers[event.gameId] && (HUsers[event.gameId] || mod.settings.Mode >= 2 || mod.settings.HideAllProjectiles)) return false;
|
|
|
}
|
|
|
@@ -1384,7 +1384,7 @@ module.exports = function FpsUtils(mod) {
|
|
|
mod.toServer('C_RESET_ALL_DUNGEON', 1, {});
|
|
|
break;
|
|
|
case "searchengine":
|
|
|
- mod.toClient('S_SHOW_AWESOMIUMWEB_SHOP', 1, { link: 'https://duckduckgo.com/' });
|
|
|
+ mod.toClient('S_SHOW_AWESOMIUMWEB_SHOP', 1, { link: 'https://start.duckduckgo.com/' });
|
|
|
break;
|
|
|
default:
|
|
|
Msg(`<font color="${GryC}">Invalid (quicklink) '${arg}'</font>.`);
|