|
@@ -61,12 +61,12 @@ module.exports = function FpsUtils(mod) {
|
|
|
TmpData = []
|
|
TmpData = []
|
|
|
TmpData.push({ text: `<font color="${PurpleClr}" size="+24"><p align="right">MAIN MENU</p></font><br><br>`, command: `fps gui` })
|
|
TmpData.push({ text: `<font color="${PurpleClr}" size="+24"><p align="right">MAIN MENU</p></font><br><br>`, command: `fps gui` })
|
|
|
JsonSearch(arg, NpcData, `search`, `<font color="${LBlueClr}" size="+16">Search results for "${arg}"</font>.`)
|
|
JsonSearch(arg, NpcData, `search`, `<font color="${LBlueClr}" size="+16">Search results for "${arg}"</font>.`)
|
|
|
- break
|
|
|
|
|
|
|
+ break;
|
|
|
case 'npc':
|
|
case 'npc':
|
|
|
TmpData = []
|
|
TmpData = []
|
|
|
TmpData.push({ text: `<font color="${PurpleClr}" size="+24"><p align="right">MAIN MENU</p></font><br><br>`, command: `fps gui` })
|
|
TmpData.push({ text: `<font color="${PurpleClr}" size="+24"><p align="right">MAIN MENU</p></font><br><br>`, command: `fps gui` })
|
|
|
JsonSearch(arg, NpcData, `starts`, `<font color="${LBlueClr}" size="+16">Search results for "${arg}"</font>.`)
|
|
JsonSearch(arg, NpcData, `starts`, `<font color="${LBlueClr}" size="+16">Search results for "${arg}"</font>.`)
|
|
|
- break
|
|
|
|
|
|
|
+ break;
|
|
|
case 'npclist':
|
|
case 'npclist':
|
|
|
TmpData = []
|
|
TmpData = []
|
|
|
TmpData.push(
|
|
TmpData.push(
|
|
@@ -79,7 +79,7 @@ module.exports = function FpsUtils(mod) {
|
|
|
}
|
|
}
|
|
|
gui.parse(TmpData, `<font color="${LPurpleClr}">[FPS] Options - NPCs </font><font color="${GreenClr}">(Blacklist)</font>`)
|
|
gui.parse(TmpData, `<font color="${LPurpleClr}">[FPS] Options - NPCs </font><font color="${GreenClr}">(Blacklist)</font>`)
|
|
|
TmpData = []
|
|
TmpData = []
|
|
|
- break
|
|
|
|
|
|
|
+ break;
|
|
|
case 'npcMain':
|
|
case 'npcMain':
|
|
|
TmpData = []
|
|
TmpData = []
|
|
|
TmpData.push(
|
|
TmpData.push(
|
|
@@ -97,7 +97,7 @@ module.exports = function FpsUtils(mod) {
|
|
|
TmpData.push({ text: `<br><br><font color="${PinkClr}" size="+16">(Command </font><font color="${HPinkClr}" size="+16">"fps gui searchnpc <name>"</font><font color="${PinkClr}" size="+16"> to search for a specific NPC's name, Case sensitive)</font>` })
|
|
TmpData.push({ text: `<br><br><font color="${PinkClr}" size="+16">(Command </font><font color="${HPinkClr}" size="+16">"fps gui searchnpc <name>"</font><font color="${PinkClr}" size="+16"> to search for a specific NPC's name, Case sensitive)</font>` })
|
|
|
gui.parse(TmpData, `<font color="${LPurpleClr}">[FPS] Options - NPCs </font><font color="${YellowClr}">(Main)</font>`)
|
|
gui.parse(TmpData, `<font color="${LPurpleClr}">[FPS] Options - NPCs </font><font color="${YellowClr}">(Main)</font>`)
|
|
|
TmpData = []
|
|
TmpData = []
|
|
|
- break
|
|
|
|
|
|
|
+ break;
|
|
|
case "show":
|
|
case "show":
|
|
|
TmpData = []
|
|
TmpData = []
|
|
|
TmpData.push(
|
|
TmpData.push(
|
|
@@ -113,7 +113,7 @@ module.exports = function FpsUtils(mod) {
|
|
|
}
|
|
}
|
|
|
gui.parse(TmpData, `<font color="${LPurpleClr}">[FPS] Options - Players </font><font color="${RedClr}">(Shown)</font>`)
|
|
gui.parse(TmpData, `<font color="${LPurpleClr}">[FPS] Options - Players </font><font color="${RedClr}">(Shown)</font>`)
|
|
|
TmpData = []
|
|
TmpData = []
|
|
|
- break
|
|
|
|
|
|
|
+ break;
|
|
|
case "hide":
|
|
case "hide":
|
|
|
TmpData = []
|
|
TmpData = []
|
|
|
TmpData.push(
|
|
TmpData.push(
|
|
@@ -123,7 +123,7 @@ module.exports = function FpsUtils(mod) {
|
|
|
mod.settings.PlayersBlacklist.forEach((mem) => { TmpData.push({ text: `<font color="${BronzeClr}" size="+17">${mem}</font><br>`, command: `fps show ${mem};fps gui hide` }) })
|
|
mod.settings.PlayersBlacklist.forEach((mem) => { TmpData.push({ text: `<font color="${BronzeClr}" size="+17">${mem}</font><br>`, command: `fps show ${mem};fps gui hide` }) })
|
|
|
gui.parse(TmpData, `<font color="${LPurpleClr}">[FPS] Options - Players </font><font color="${GreenClr}">(Hidden)</font>`)
|
|
gui.parse(TmpData, `<font color="${LPurpleClr}">[FPS] Options - Players </font><font color="${GreenClr}">(Hidden)</font>`)
|
|
|
TmpData = []
|
|
TmpData = []
|
|
|
- break
|
|
|
|
|
|
|
+ break;
|
|
|
case "skills":
|
|
case "skills":
|
|
|
gui.parse([
|
|
gui.parse([
|
|
|
{ text: `<font color="${PurpleClr}" size="+24"><p align="right">MAIN MENU</p></font><br>`, command: `fps gui` },
|
|
{ text: `<font color="${PurpleClr}" size="+24"><p align="right">MAIN MENU</p></font><br>`, command: `fps gui` },
|
|
@@ -155,10 +155,10 @@ module.exports = function FpsUtils(mod) {
|
|
|
{ text: ` ` },
|
|
{ text: ` ` },
|
|
|
{ text: `<font color="${LBlueClr}" size="+18">(Gunner)</font>`, command: `fps gui class gunner` }
|
|
{ text: `<font color="${LBlueClr}" size="+18">(Gunner)</font>`, command: `fps gui class gunner` }
|
|
|
], `<font color="${LPurpleClr}">[FPS] Options - Skills </font><font color="${YellowClr}">(Choose class)</font>`)
|
|
], `<font color="${LPurpleClr}">[FPS] Options - Skills </font><font color="${YellowClr}">(Choose class)</font>`)
|
|
|
- break
|
|
|
|
|
|
|
+ break;
|
|
|
case "class":
|
|
case "class":
|
|
|
gui.parse(SkillsList(arg), `<font color="${LPurpleClr}">[FPS] Options - Skill list for "${arg}"</font>`)
|
|
gui.parse(SkillsList(arg), `<font color="${LPurpleClr}">[FPS] Options - Skill list for "${arg}"</font>`)
|
|
|
- break
|
|
|
|
|
|
|
+ break;
|
|
|
case "role":
|
|
case "role":
|
|
|
gui.parse([
|
|
gui.parse([
|
|
|
{ text: `<font color="${PurpleClr}" size="+24"><p align="right">MAIN MENU</p></font><br><br>`, command: `fps gui` },
|
|
{ text: `<font color="${PurpleClr}" size="+24"><p align="right">MAIN MENU</p></font><br><br>`, command: `fps gui` },
|
|
@@ -198,7 +198,7 @@ module.exports = function FpsUtils(mod) {
|
|
|
{ text: ` ` },
|
|
{ text: ` ` },
|
|
|
{ text: `<font color="${mod.settings.ClassesBlacklist.includes('gunner') ? GreenClr : RedClr}" size="+18">[Gunner]</font>`, command: `fps ${mod.settings.ClassesBlacklist.includes('gunner') ? `show` : `hide`} gunner;fps gui role` }
|
|
{ text: `<font color="${mod.settings.ClassesBlacklist.includes('gunner') ? GreenClr : RedClr}" size="+18">[Gunner]</font>`, command: `fps ${mod.settings.ClassesBlacklist.includes('gunner') ? `show` : `hide`} gunner;fps gui role` }
|
|
|
], `<font color="${LPurpleClr}">[FPS] Options - Roles/Classes</font>`)
|
|
], `<font color="${LPurpleClr}">[FPS] Options - Roles/Classes</font>`)
|
|
|
- break
|
|
|
|
|
|
|
+ break;
|
|
|
case "abn":
|
|
case "abn":
|
|
|
TmpData = []
|
|
TmpData = []
|
|
|
TmpData.push(
|
|
TmpData.push(
|
|
@@ -211,7 +211,7 @@ module.exports = function FpsUtils(mod) {
|
|
|
mod.settings.AbnormalitiesBlacklist.forEach((abnmem) => { TmpData.push({ text: `<font color="${BronzeClr}" size="+16">${abnmem}<br></font>`, command: `fps abn blacklist remv ${abnmem};fps gui abn` }) })
|
|
mod.settings.AbnormalitiesBlacklist.forEach((abnmem) => { TmpData.push({ text: `<font color="${BronzeClr}" size="+16">${abnmem}<br></font>`, command: `fps abn blacklist remv ${abnmem};fps gui abn` }) })
|
|
|
gui.parse(TmpData, `<font color="${LPurpleClr}">[FPS] Options - Abnormalities</font>`)
|
|
gui.parse(TmpData, `<font color="${LPurpleClr}">[FPS] Options - Abnormalities</font>`)
|
|
|
TmpData = []
|
|
TmpData = []
|
|
|
- break
|
|
|
|
|
|
|
+ break;
|
|
|
case "proj":
|
|
case "proj":
|
|
|
TmpData = []
|
|
TmpData = []
|
|
|
TmpData.push(
|
|
TmpData.push(
|
|
@@ -224,12 +224,12 @@ module.exports = function FpsUtils(mod) {
|
|
|
mod.settings.ProjectilesBlacklist.forEach((projmem) => { TmpData.push({ text: `<font color="${BronzeClr}" size="+16">${projmem}<br></font>`, command: `fps proj blacklist remv ${projmem};fps gui proj` }) })
|
|
mod.settings.ProjectilesBlacklist.forEach((projmem) => { TmpData.push({ text: `<font color="${BronzeClr}" size="+16">${projmem}<br></font>`, command: `fps proj blacklist remv ${projmem};fps gui proj` }) })
|
|
|
gui.parse(TmpData, `<font color="${LPurpleClr}">[FPS] Options - Projectiles</font>`)
|
|
gui.parse(TmpData, `<font color="${LPurpleClr}">[FPS] Options - Projectiles</font>`)
|
|
|
TmpData = []
|
|
TmpData = []
|
|
|
- break
|
|
|
|
|
- case "help": //TO_DO - Better formating, it looks messy :sad:
|
|
|
|
|
|
|
+ break;
|
|
|
|
|
+ case "help": //TO DO - Better formating, it looks messy.
|
|
|
gui.parse([
|
|
gui.parse([
|
|
|
{ text: `<font color="${PurpleClr}" size="+24"><p align="right">MAIN MENU</p></font><br>`, command: `fps gui` },
|
|
{ text: `<font color="${PurpleClr}" size="+24"><p align="right">MAIN MENU</p></font><br>`, command: `fps gui` },
|
|
|
- { text: `<font color="${PinkClr}" size="+17"><p align="right">Note: This page not yet completely developed, if you can't understand anything, just go check the README, Thank you.</p></font><br>` },
|
|
|
|
|
- { text: `<font color="${HBlueClr}" size="16" style="font-family:Consolas,Monaco,Lucida Console,Liberation Mono,DejaVu Sans Mono,Bitstream Vera Sans Mono,Courier New, monospace;">` },
|
|
|
|
|
|
|
+ { text: `<font color="${PinkClr}" size="+17"><p align="right">Note: This page not completely developed yet, if you can't understand anything, just go check the README, Thank you.</p></font><br>` },
|
|
|
|
|
+ { text: `<font color="${HBlueClr}" size="15" style="font-family:Consolas,Monaco,Lucida Console,Liberation Mono,DejaVu Sans Mono,Bitstream Vera Sans Mono,Courier New, monospace;">` },
|
|
|
{ text: `| Command(s) | Argument(s) | Example | Details |<br>` },
|
|
{ text: `| Command(s) | Argument(s) | Example | Details |<br>` },
|
|
|
{ text: `| 'gui' | 'g' | N/A |'!fps gui' | Opens GUI. |<br>` },
|
|
{ text: `| 'gui' | 'g' | N/A |'!fps gui' | Opens GUI. |<br>` },
|
|
|
{ text: `| N/A | N/A |'!fps-util' | Opens Help. |<br>` },
|
|
{ text: `| N/A | N/A |'!fps-util' | Opens Help. |<br>` },
|
|
@@ -250,7 +250,7 @@ module.exports = function FpsUtils(mod) {
|
|
|
{ text: `| 'style'|'costume'| N/A |'!fps style' |Hides/shows style for ppl|npc |<br>` },
|
|
{ text: `| 'style'|'costume'| N/A |'!fps style' |Hides/shows style for ppl|npc |<br>` },
|
|
|
{ text: `| 'gui npcsearch' | \<arg1\> |'!fps gui npcsearch E'|Opens list of npcs matching arg1. |<br>` },
|
|
{ text: `| 'gui npcsearch' | \<arg1\> |'!fps gui npcsearch E'|Opens list of npcs matching arg1. |<br>` },
|
|
|
{ text: `| 'npczoom' | N/A |'!fps npczoom' |If enabled, prevent zoom on npcs. |<br>` },
|
|
{ text: `| 'npczoom' | N/A |'!fps npczoom' |If enabled, prevent zoom on npcs. |<br>` },
|
|
|
- { text: `| 'dropitem' | N/A |'!fps dropitem' |Hides/shows blacklisted drops. |<br>` },
|
|
|
|
|
|
|
+ { text: `| 'dropitem' | N/A \| 'hide' \<num\> |'!fps dropitem' |Hides/shows blacklisted drops. |<br>` },
|
|
|
{ text: `</font>` }
|
|
{ text: `</font>` }
|
|
|
], `<font color="${LPurpleClr}">[FPS] HELP </font>`)
|
|
], `<font color="${LPurpleClr}">[FPS] HELP </font>`)
|
|
|
break;
|
|
break;
|
|
@@ -284,7 +284,9 @@ module.exports = function FpsUtils(mod) {
|
|
|
{ text: ` ` },
|
|
{ text: ` ` },
|
|
|
{ text: `<font color="${mod.settings.ShowStyle ? GreenClr : RedClr}" size="+17">[Style]</font>`, command: `fps style;fps gui` },
|
|
{ text: `<font color="${mod.settings.ShowStyle ? GreenClr : RedClr}" size="+17">[Style]</font>`, command: `fps style;fps gui` },
|
|
|
{ text: ` ` },
|
|
{ text: ` ` },
|
|
|
- { text: `<font color="${mod.settings.HideBlacklistedDrop ? GreenClr : RedClr}" size="+17">[Drops]</font><br><br>`, command: `fps dropitem;fps gui` },
|
|
|
|
|
|
|
+ { text: `<font color="${mod.settings.HideBlacklistedDrop ? GreenClr : RedClr}" size="+17">[Drops]</font><br>`, command: `fps dropitem;fps gui` },
|
|
|
|
|
+ { text: `			` },
|
|
|
|
|
+ { text: `<font color="${mod.settings.HideMonsterDeathAnimation ? GreenClr : RedClr}" size="+17">[Monsters Death Animation]</font><br><br>`, command: `fps monsterdeathani;fps gui` },
|
|
|
{ text: `<font color="${YellowClr}" size="+21">Players:</font>	` },
|
|
{ text: `<font color="${YellowClr}" size="+21">Players:</font>	` },
|
|
|
{ text: `<font color="${LBlueClr}" size="+18">[Hidden list]</font>`, command: `fps gui hide` },
|
|
{ text: `<font color="${LBlueClr}" size="+18">[Hidden list]</font>`, command: `fps gui hide` },
|
|
|
{ text: ` ` },
|
|
{ text: ` ` },
|
|
@@ -302,8 +304,8 @@ module.exports = function FpsUtils(mod) {
|
|
|
{ text: ` ` },
|
|
{ text: ` ` },
|
|
|
{ text: `<font color="${mod.settings.RaidAutoChange ? GreenClr : RedClr}" size="+17">[Raid auto state]</font>`, command: `fps raid;fps gui` },
|
|
{ text: `<font color="${mod.settings.RaidAutoChange ? GreenClr : RedClr}" size="+17">[Raid auto state]</font>`, command: `fps raid;fps gui` },
|
|
|
{ text: ` ` },
|
|
{ text: ` ` },
|
|
|
- { text: `<font color="${mod.settings.NoZoomingToNpc ? GreenClr : RedClr}" size="+17">[Npc zoom-ins]</font>`, command: `fps npczoom;fps gui` },
|
|
|
|
|
- { text: `<br><br><br><br><br><br>` },
|
|
|
|
|
|
|
+ { text: `<font color="${mod.settings.ActionScripts ? GreenClr : RedClr}" size="+17">[Npc zoom-ins]</font>`, command: `fps npczoom;fps gui` },
|
|
|
|
|
+ { text: `<br><br><br><br><br>` },
|
|
|
{ text: `<font color="${BlueClr}" size="+22">Quick Links:</font><br>` },
|
|
{ text: `<font color="${BlueClr}" size="+22">Quick Links:</font><br>` },
|
|
|
{ text: `<font color="${DBlueClr}" size="+21">UI:</font>		` },
|
|
{ text: `<font color="${DBlueClr}" size="+21">UI:</font>		` },
|
|
|
{ text: `<font color="${PurpleClr}" size="+17">[Mail]</font>`, command: `fps quicklink parcel` },
|
|
{ text: `<font color="${PurpleClr}" size="+17">[Mail]</font>`, command: `fps quicklink parcel` },
|
|
@@ -564,7 +566,7 @@ module.exports = function FpsUtils(mod) {
|
|
|
|
|
|
|
|
function sStartActionScript(event) {
|
|
function sStartActionScript(event) {
|
|
|
if ([40000, 40001, 40002].includes(event.script)) return;
|
|
if ([40000, 40001, 40002].includes(event.script)) return;
|
|
|
- if (mod.settings.NoZoomingToNpc) return false
|
|
|
|
|
|
|
+ if (mod.settings.ActionScripts) return false
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
function sPcBangInventory(event) {
|
|
function sPcBangInventory(event) {
|
|
@@ -696,7 +698,7 @@ module.exports = function FpsUtils(mod) {
|
|
|
|
|
|
|
|
function sDespawnNpc(event) {
|
|
function sDespawnNpc(event) {
|
|
|
delete hiddenNpcs[event.gameId];
|
|
delete hiddenNpcs[event.gameId];
|
|
|
- if (event.type !== 5) return;
|
|
|
|
|
|
|
+ if (!mod.settings.HideMonsterDeathAnimation || event.type !== 5) return;
|
|
|
event.type = 1;
|
|
event.type = 1;
|
|
|
return true;
|
|
return true;
|
|
|
}
|
|
}
|
|
@@ -842,19 +844,19 @@ module.exports = function FpsUtils(mod) {
|
|
|
case "g":
|
|
case "g":
|
|
|
case "gui":
|
|
case "gui":
|
|
|
GuiHandler(arg, arg2);
|
|
GuiHandler(arg, arg2);
|
|
|
- break
|
|
|
|
|
|
|
+ break;
|
|
|
case "0":
|
|
case "0":
|
|
|
mod.command.exec(`fps mode 0`);
|
|
mod.command.exec(`fps mode 0`);
|
|
|
- break
|
|
|
|
|
|
|
+ break;
|
|
|
case "1":
|
|
case "1":
|
|
|
mod.command.exec(`fps mode 1`);
|
|
mod.command.exec(`fps mode 1`);
|
|
|
- break
|
|
|
|
|
|
|
+ break;
|
|
|
case "2":
|
|
case "2":
|
|
|
mod.command.exec(`fps mode 2`)
|
|
mod.command.exec(`fps mode 2`)
|
|
|
- break
|
|
|
|
|
|
|
+ break;
|
|
|
case "3":
|
|
case "3":
|
|
|
mod.command.exec(`fps mode 3`);
|
|
mod.command.exec(`fps mode 3`);
|
|
|
- break
|
|
|
|
|
|
|
+ break;
|
|
|
case "mode":
|
|
case "mode":
|
|
|
case "state":
|
|
case "state":
|
|
|
switch (arg) {
|
|
switch (arg) {
|
|
@@ -868,7 +870,7 @@ module.exports = function FpsUtils(mod) {
|
|
|
mod.settings.Hit_Other = false;
|
|
mod.settings.Hit_Other = false;
|
|
|
|
|
|
|
|
Msg(`Mode 0.`.clr(RedClr));
|
|
Msg(`Mode 0.`.clr(RedClr));
|
|
|
- break
|
|
|
|
|
|
|
+ break;
|
|
|
case "1":
|
|
case "1":
|
|
|
case "one":
|
|
case "one":
|
|
|
if (mod.settings.Mode === 3) ShowAll();
|
|
if (mod.settings.Mode === 3) ShowAll();
|
|
@@ -879,7 +881,7 @@ module.exports = function FpsUtils(mod) {
|
|
|
mod.settings.Hit_Other = true;
|
|
mod.settings.Hit_Other = true;
|
|
|
|
|
|
|
|
Msg(`Mode 1.`.clr(BronzeClr));
|
|
Msg(`Mode 1.`.clr(BronzeClr));
|
|
|
- break
|
|
|
|
|
|
|
+ break;
|
|
|
case "2":
|
|
case "2":
|
|
|
case "two":
|
|
case "two":
|
|
|
if (mod.settings.Mode === 3) ShowAll();
|
|
if (mod.settings.Mode === 3) ShowAll();
|
|
@@ -890,7 +892,7 @@ module.exports = function FpsUtils(mod) {
|
|
|
mod.settings.Hit_Other = true;
|
|
mod.settings.Hit_Other = true;
|
|
|
|
|
|
|
|
Msg(`Mode 2.`.clr(SilverClr));
|
|
Msg(`Mode 2.`.clr(SilverClr));
|
|
|
- break
|
|
|
|
|
|
|
+ break;
|
|
|
case "3":
|
|
case "3":
|
|
|
case "three":
|
|
case "three":
|
|
|
HideAll();
|
|
HideAll();
|
|
@@ -903,13 +905,13 @@ module.exports = function FpsUtils(mod) {
|
|
|
mod.settings.OnlyParty = false;
|
|
mod.settings.OnlyParty = false;
|
|
|
|
|
|
|
|
Msg(`Mode 3.`.clr(GoldClr));
|
|
Msg(`Mode 3.`.clr(GoldClr));
|
|
|
- break
|
|
|
|
|
|
|
+ break;
|
|
|
default:
|
|
default:
|
|
|
Msg(`Invalid" ${arg}".`.clr(GrayClr));
|
|
Msg(`Invalid" ${arg}".`.clr(GrayClr));
|
|
|
Msg(`Modes: ` + `[0, 1, 2, 3]`.clr(PinkClr) + '.');
|
|
Msg(`Modes: ` + `[0, 1, 2, 3]`.clr(PinkClr) + '.');
|
|
|
- break
|
|
|
|
|
|
|
+ break;
|
|
|
}
|
|
}
|
|
|
- break
|
|
|
|
|
|
|
+ break;
|
|
|
case "hide":
|
|
case "hide":
|
|
|
if (typeof arg === "string" && arg !== null) {
|
|
if (typeof arg === "string" && arg !== null) {
|
|
|
if (mod.settings.PlayersBlacklist.includes(arg)) {
|
|
if (mod.settings.PlayersBlacklist.includes(arg)) {
|
|
@@ -939,7 +941,7 @@ module.exports = function FpsUtils(mod) {
|
|
|
HideSpecificPlayer(arg);
|
|
HideSpecificPlayer(arg);
|
|
|
} else
|
|
} else
|
|
|
Msg(`Invalid ${arg2}.`.clr(GrayClr));
|
|
Msg(`Invalid ${arg2}.`.clr(GrayClr));
|
|
|
- break
|
|
|
|
|
|
|
+ break;
|
|
|
case "show":
|
|
case "show":
|
|
|
if (typeof arg === "string" && arg !== null) {
|
|
if (typeof arg === "string" && arg !== null) {
|
|
|
if (mod.settings.PlayersBlacklist.includes(arg)) {
|
|
if (mod.settings.PlayersBlacklist.includes(arg)) {
|
|
@@ -967,7 +969,7 @@ module.exports = function FpsUtils(mod) {
|
|
|
Msg(`Player "${arg}"` + ` Already shown`.clr(RedClr) + '.');
|
|
Msg(`Player "${arg}"` + ` Already shown`.clr(RedClr) + '.');
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
- break
|
|
|
|
|
|
|
+ break;
|
|
|
case "party":
|
|
case "party":
|
|
|
if (mod.settings.Mode === 3) return Msg(`You've to disable mode 3 first.`.clr(RedClr));
|
|
if (mod.settings.Mode === 3) return Msg(`You've to disable mode 3 first.`.clr(RedClr));
|
|
|
mod.settings.OnlyParty = !mod.settings.OnlyParty
|
|
mod.settings.OnlyParty = !mod.settings.OnlyParty
|
|
@@ -982,36 +984,36 @@ module.exports = function FpsUtils(mod) {
|
|
|
ShowAll()
|
|
ShowAll()
|
|
|
}
|
|
}
|
|
|
Msg(`Everyone but party ${mod.settings.OnlyParty ? 'Hidden'.clr(GreenClr) : 'Shown'.clr(RedClr)}.`);
|
|
Msg(`Everyone but party ${mod.settings.OnlyParty ? 'Hidden'.clr(GreenClr) : 'Shown'.clr(RedClr)}.`);
|
|
|
- break
|
|
|
|
|
|
|
+ break;
|
|
|
case "raid":
|
|
case "raid":
|
|
|
mod.settings.RaidAutoChange = !mod.settings.RaidAutoChange
|
|
mod.settings.RaidAutoChange = !mod.settings.RaidAutoChange
|
|
|
Msg(`Raid auto-state ${mod.settings.RaidAutoChange ? 'Enabled'.clr(GreenClr) : 'Disabled'.clr(RedClr)}.`);
|
|
Msg(`Raid auto-state ${mod.settings.RaidAutoChange ? 'Enabled'.clr(GreenClr) : 'Disabled'.clr(RedClr)}.`);
|
|
|
- break
|
|
|
|
|
|
|
+ break;
|
|
|
case "list":
|
|
case "list":
|
|
|
Msg(`Hidden players: ${mod.settings.PlayersBlacklist}.`.clr(PinkClr));
|
|
Msg(`Hidden players: ${mod.settings.PlayersBlacklist}.`.clr(PinkClr));
|
|
|
Msg(`Hidden classes: ${mod.settings.ClassesBlacklist}.`.clr(PinkClr));
|
|
Msg(`Hidden classes: ${mod.settings.ClassesBlacklist}.`.clr(PinkClr));
|
|
|
Msg(`Hidden roles: ${mod.settings.RolesBlacklist}.`.clr(PinkClr));
|
|
Msg(`Hidden roles: ${mod.settings.RolesBlacklist}.`.clr(PinkClr));
|
|
|
- break
|
|
|
|
|
|
|
+ break;
|
|
|
case "summons":
|
|
case "summons":
|
|
|
case "sums":
|
|
case "sums":
|
|
|
switch (arg) {
|
|
switch (arg) {
|
|
|
case "me":
|
|
case "me":
|
|
|
mod.settings.HideMySummons = !mod.settings.HideMySummons;
|
|
mod.settings.HideMySummons = !mod.settings.HideMySummons;
|
|
|
Msg(`Own summoned NPCs ${mod.settings.HideMySummons ? 'Hidden'.clr(RedClr) : 'Shown'.clr(GreenClr)}.`);
|
|
Msg(`Own summoned NPCs ${mod.settings.HideMySummons ? 'Hidden'.clr(RedClr) : 'Shown'.clr(GreenClr)}.`);
|
|
|
- break
|
|
|
|
|
|
|
+ break;
|
|
|
default:
|
|
default:
|
|
|
mod.settings.HideOthersSummons = !mod.settings.HideOthersSummons;
|
|
mod.settings.HideOthersSummons = !mod.settings.HideOthersSummons;
|
|
|
Msg(`Others summoned NPCs ${mod.settings.HideOthersSummons ? 'Hidden'.clr(GreenClr) : 'Shown'.clr(RedClr)}.`);
|
|
Msg(`Others summoned NPCs ${mod.settings.HideOthersSummons ? 'Hidden'.clr(GreenClr) : 'Shown'.clr(RedClr)}.`);
|
|
|
- break
|
|
|
|
|
|
|
+ break;
|
|
|
}
|
|
}
|
|
|
- break
|
|
|
|
|
|
|
+ break;
|
|
|
case "skills":
|
|
case "skills":
|
|
|
case "skill":
|
|
case "skill":
|
|
|
switch (arg) {
|
|
switch (arg) {
|
|
|
case "blacklist":
|
|
case "blacklist":
|
|
|
mod.settings.HideBlacklistedSkills = !mod.settings.HideBlacklistedSkills;
|
|
mod.settings.HideBlacklistedSkills = !mod.settings.HideBlacklistedSkills;
|
|
|
Msg(`Blacklisted skills ${mod.settings.HideBlacklistedSkills ? 'Hidden'.clr(GreenClr) : 'Shown'.clr(RedClr)}.`);
|
|
Msg(`Blacklisted skills ${mod.settings.HideBlacklistedSkills ? 'Hidden'.clr(GreenClr) : 'Shown'.clr(RedClr)}.`);
|
|
|
- break
|
|
|
|
|
|
|
+ break;
|
|
|
case "class":
|
|
case "class":
|
|
|
if (mod.settings.ClassesNames.includes(arg2)) {
|
|
if (mod.settings.ClassesNames.includes(arg2)) {
|
|
|
for (let i in mod.settings.ClassesData) {
|
|
for (let i in mod.settings.ClassesData) {
|
|
@@ -1039,9 +1041,9 @@ module.exports = function FpsUtils(mod) {
|
|
|
}
|
|
}
|
|
|
} else
|
|
} else
|
|
|
Msg(`Class ${arg2} not found.`.clr(RedClr));
|
|
Msg(`Class ${arg2} not found.`.clr(RedClr));
|
|
|
- break
|
|
|
|
|
|
|
+ break;
|
|
|
}
|
|
}
|
|
|
- break
|
|
|
|
|
|
|
+ break;
|
|
|
case "npcs":
|
|
case "npcs":
|
|
|
case "npc":
|
|
case "npc":
|
|
|
if (arg == 'hide') {
|
|
if (arg == 'hide') {
|
|
@@ -1067,31 +1069,31 @@ module.exports = function FpsUtils(mod) {
|
|
|
} else
|
|
} else
|
|
|
mod.settings.HideBlacklistedNpcs = !mod.settings.HideBlacklistedNpcs;
|
|
mod.settings.HideBlacklistedNpcs = !mod.settings.HideBlacklistedNpcs;
|
|
|
Msg(`Blacklisted NPCs ${mod.settings.HideBlacklistedNpcs ? 'Hidden'.clr(GreenClr) : 'Shown'.clr(RedClr)}.`);
|
|
Msg(`Blacklisted NPCs ${mod.settings.HideBlacklistedNpcs ? 'Hidden'.clr(GreenClr) : 'Shown'.clr(RedClr)}.`);
|
|
|
- break
|
|
|
|
|
|
|
+ break;
|
|
|
case "hit":
|
|
case "hit":
|
|
|
switch (arg) {
|
|
switch (arg) {
|
|
|
case "me":
|
|
case "me":
|
|
|
mod.settings.Hit_Me = !mod.settings.Hit_Me;
|
|
mod.settings.Hit_Me = !mod.settings.Hit_Me;
|
|
|
Msg(`Own hits effect ${mod.settings.Hit_Me ? 'Hidden'.clr(GreenClr) : 'Shown'.clr(RedClr)}.`);
|
|
Msg(`Own hits effect ${mod.settings.Hit_Me ? 'Hidden'.clr(GreenClr) : 'Shown'.clr(RedClr)}.`);
|
|
|
- break
|
|
|
|
|
|
|
+ break;
|
|
|
case "other":
|
|
case "other":
|
|
|
mod.settings.Hit_Other = !mod.settings.Hit_Other;
|
|
mod.settings.Hit_Other = !mod.settings.Hit_Other;
|
|
|
Msg(`Players hit effect ${mod.settings.Hit_Other ? 'Hidden'.clr(GreenClr) : 'Shown'.clr(RedClr)}.`);
|
|
Msg(`Players hit effect ${mod.settings.Hit_Other ? 'Hidden'.clr(GreenClr) : 'Shown'.clr(RedClr)}.`);
|
|
|
- break
|
|
|
|
|
|
|
+ break;
|
|
|
case "damage":
|
|
case "damage":
|
|
|
mod.settings.Hit_Damage = !mod.settings.Hit_Damage;
|
|
mod.settings.Hit_Damage = !mod.settings.Hit_Damage;
|
|
|
Msg(`Damage numbers ${mod.settings.Hit_Damage ? 'Hidden'.clr(GreenClr) : 'Shown'.clr(RedClr)}.`);
|
|
Msg(`Damage numbers ${mod.settings.Hit_Damage ? 'Hidden'.clr(GreenClr) : 'Shown'.clr(RedClr)}.`);
|
|
|
- break
|
|
|
|
|
|
|
+ break;
|
|
|
default:
|
|
default:
|
|
|
Msg(`Invalid (hit) "${arg}".`.clr(GrayClr));
|
|
Msg(`Invalid (hit) "${arg}".`.clr(GrayClr));
|
|
|
break;
|
|
break;
|
|
|
}
|
|
}
|
|
|
- break
|
|
|
|
|
|
|
+ break;
|
|
|
case "fireworks":
|
|
case "fireworks":
|
|
|
case "firework":
|
|
case "firework":
|
|
|
mod.settings.HideFireworks = !mod.settings.HideFireworks;
|
|
mod.settings.HideFireworks = !mod.settings.HideFireworks;
|
|
|
Msg(`Fireworks ${mod.settings.HideFireworks ? 'Hidden'.clr(GreenClr) : 'Shown'.clr(RedClr)}.`);
|
|
Msg(`Fireworks ${mod.settings.HideFireworks ? 'Hidden'.clr(GreenClr) : 'Shown'.clr(RedClr)}.`);
|
|
|
- break
|
|
|
|
|
|
|
+ break;
|
|
|
case "abn":
|
|
case "abn":
|
|
|
case "effects":
|
|
case "effects":
|
|
|
case "abnormal":
|
|
case "abnormal":
|
|
@@ -1100,12 +1102,12 @@ module.exports = function FpsUtils(mod) {
|
|
|
case "all":
|
|
case "all":
|
|
|
mod.settings.HideAllAbnormalities = !mod.settings.HideAllAbnormalities;
|
|
mod.settings.HideAllAbnormalities = !mod.settings.HideAllAbnormalities;
|
|
|
Msg(`All Abnormalities ${mod.settings.HideAllAbnormalities ? 'Hidden'.clr(GreenClr) : 'Shown'.clr(RedClr)}.`);
|
|
Msg(`All Abnormalities ${mod.settings.HideAllAbnormalities ? 'Hidden'.clr(GreenClr) : 'Shown'.clr(RedClr)}.`);
|
|
|
- break
|
|
|
|
|
|
|
+ break;
|
|
|
case "blacklist":
|
|
case "blacklist":
|
|
|
if (!arg2 || !arg3) {
|
|
if (!arg2 || !arg3) {
|
|
|
mod.settings.HideBlacklistedAbnormalities = !mod.settings.HideBlacklistedAbnormalities;
|
|
mod.settings.HideBlacklistedAbnormalities = !mod.settings.HideBlacklistedAbnormalities;
|
|
|
Msg(`Blacklisted Abnormalities ${mod.settings.HideBlacklistedAbnormalities ? 'Hidden'.clr(GreenClr) : 'Shown'.clr(RedClr)}.`);
|
|
Msg(`Blacklisted Abnormalities ${mod.settings.HideBlacklistedAbnormalities ? 'Hidden'.clr(GreenClr) : 'Shown'.clr(RedClr)}.`);
|
|
|
- break
|
|
|
|
|
|
|
+ break;
|
|
|
} else if (arg2 && arg3) {
|
|
} else if (arg2 && arg3) {
|
|
|
arg3 = Number(arg3);
|
|
arg3 = Number(arg3);
|
|
|
if (!mod.settings.AbnormalitiesBlacklist.includes(arg3)) {
|
|
if (!mod.settings.AbnormalitiesBlacklist.includes(arg3)) {
|
|
@@ -1131,7 +1133,7 @@ module.exports = function FpsUtils(mod) {
|
|
|
}
|
|
}
|
|
|
} else return Msg(`Invalid (abnormalities Blacklist) "${arg}".`.clr(GrayClr));
|
|
} else return Msg(`Invalid (abnormalities Blacklist) "${arg}".`.clr(GrayClr));
|
|
|
}
|
|
}
|
|
|
- break
|
|
|
|
|
|
|
+ break;
|
|
|
case "log":
|
|
case "log":
|
|
|
case "debug":
|
|
case "debug":
|
|
|
mod.settings.AbnDebug = !mod.settings.AbnDebug
|
|
mod.settings.AbnDebug = !mod.settings.AbnDebug
|
|
@@ -1141,7 +1143,7 @@ module.exports = function FpsUtils(mod) {
|
|
|
Msg(`Invalid (abnormalities) "${arg}".`.clr(GrayClr));
|
|
Msg(`Invalid (abnormalities) "${arg}".`.clr(GrayClr));
|
|
|
break;
|
|
break;
|
|
|
}
|
|
}
|
|
|
- break
|
|
|
|
|
|
|
+ break;
|
|
|
case "guildlogo":
|
|
case "guildlogo":
|
|
|
if (ChangeOnCd) return Msg(`Try again in 4 seconds.`.clr(PinkClr));
|
|
if (ChangeOnCd) return Msg(`Try again in 4 seconds.`.clr(PinkClr));
|
|
|
mod.settings.Hideguildlogos = !mod.settings.Hideguildlogos;
|
|
mod.settings.Hideguildlogos = !mod.settings.Hideguildlogos;
|
|
@@ -1150,7 +1152,7 @@ module.exports = function FpsUtils(mod) {
|
|
|
ChangeOnCd = true
|
|
ChangeOnCd = true
|
|
|
setTimeout(() => { ChangeOnCd = false }, 4000);
|
|
setTimeout(() => { ChangeOnCd = false }, 4000);
|
|
|
Msg(`Guild Logos ${mod.settings.Hideguildlogos ? 'Hidden'.clr(GreenClr) : 'Shown'.clr(RedClr)}.`);
|
|
Msg(`Guild Logos ${mod.settings.Hideguildlogos ? 'Hidden'.clr(GreenClr) : 'Shown'.clr(RedClr)}.`);
|
|
|
- break
|
|
|
|
|
|
|
+ break;
|
|
|
case "costume":
|
|
case "costume":
|
|
|
case "style":
|
|
case "style":
|
|
|
if (ChangeOnCd) return Msg(`Try again in 4 seconds.`.clr(PinkClr));
|
|
if (ChangeOnCd) return Msg(`Try again in 4 seconds.`.clr(PinkClr));
|
|
@@ -1160,19 +1162,19 @@ module.exports = function FpsUtils(mod) {
|
|
|
ChangeOnCd = true
|
|
ChangeOnCd = true
|
|
|
setTimeout(() => { ChangeOnCd = false }, 4000);
|
|
setTimeout(() => { ChangeOnCd = false }, 4000);
|
|
|
Msg(`Style of NPCs & others ${mod.settings.ShowStyle ? 'Hidden'.clr(GreenClr) : 'Shown'.clr(RedClr)}.`);
|
|
Msg(`Style of NPCs & others ${mod.settings.ShowStyle ? 'Hidden'.clr(GreenClr) : 'Shown'.clr(RedClr)}.`);
|
|
|
- break
|
|
|
|
|
|
|
+ break;
|
|
|
case "proj":
|
|
case "proj":
|
|
|
case "projectile":
|
|
case "projectile":
|
|
|
switch (arg) {
|
|
switch (arg) {
|
|
|
case "all":
|
|
case "all":
|
|
|
mod.settings.HideAllProjectiles = !mod.settings.HideAllProjectiles;
|
|
mod.settings.HideAllProjectiles = !mod.settings.HideAllProjectiles;
|
|
|
Msg(`Projectiles ${mod.settings.HideAllProjectiles ? 'Hidden'.clr(GreenClr) : 'Shown'.clr(RedClr)}.`);
|
|
Msg(`Projectiles ${mod.settings.HideAllProjectiles ? 'Hidden'.clr(GreenClr) : 'Shown'.clr(RedClr)}.`);
|
|
|
- break
|
|
|
|
|
|
|
+ break;
|
|
|
case "blacklist":
|
|
case "blacklist":
|
|
|
if (!arg2 || !arg3) {
|
|
if (!arg2 || !arg3) {
|
|
|
mod.settings.HideBlacklistedProjectiles = !mod.settings.HideBlacklistedProjectiles;
|
|
mod.settings.HideBlacklistedProjectiles = !mod.settings.HideBlacklistedProjectiles;
|
|
|
Msg(`Blacklisted projectile ${mod.settings.HideBlacklistedProjectiles ? 'Hidden'.clr(GreenClr) : 'Shown'.clr(RedClr)}.`);
|
|
Msg(`Blacklisted projectile ${mod.settings.HideBlacklistedProjectiles ? 'Hidden'.clr(GreenClr) : 'Shown'.clr(RedClr)}.`);
|
|
|
- break
|
|
|
|
|
|
|
+ break;
|
|
|
} else if (arg2 && arg3) {
|
|
} else if (arg2 && arg3) {
|
|
|
arg3 = Number(arg3);
|
|
arg3 = Number(arg3);
|
|
|
if (!mod.settings.ProjectilesBlacklist.includes(arg3)) {
|
|
if (!mod.settings.ProjectilesBlacklist.includes(arg3)) {
|
|
@@ -1208,7 +1210,7 @@ module.exports = function FpsUtils(mod) {
|
|
|
Msg(`Invalid (projectile) "${arg}".`.clr(GrayClr));
|
|
Msg(`Invalid (projectile) "${arg}".`.clr(GrayClr));
|
|
|
break;
|
|
break;
|
|
|
}
|
|
}
|
|
|
- break
|
|
|
|
|
|
|
+ break;
|
|
|
case "quicklink":
|
|
case "quicklink":
|
|
|
switch (arg) {
|
|
switch (arg) {
|
|
|
case "parcel":
|
|
case "parcel":
|
|
@@ -1250,9 +1252,9 @@ module.exports = function FpsUtils(mod) {
|
|
|
}
|
|
}
|
|
|
break;
|
|
break;
|
|
|
case "npczoom":
|
|
case "npczoom":
|
|
|
- mod.settings.NoZoomingToNpc = !mod.settings.NoZoomingToNpc;
|
|
|
|
|
- Msg(`Npc zoom-ins ${mod.settings.NoZoomingToNpc ? 'Disabled'.clr(GreenClr) : 'ON'.clr(RedClr)}.`);
|
|
|
|
|
- break
|
|
|
|
|
|
|
+ mod.settings.ActionScripts = !mod.settings.ActionScripts;
|
|
|
|
|
+ Msg(`Npc zoom-ins ${mod.settings.ActionScripts ? 'Disabled'.clr(GreenClr) : 'Shown'.clr(RedClr)}.`);
|
|
|
|
|
+ break;
|
|
|
case "dropitem":
|
|
case "dropitem":
|
|
|
if (arg == 'hide') {
|
|
if (arg == 'hide') {
|
|
|
if (!arg2) {
|
|
if (!arg2) {
|
|
@@ -1274,13 +1276,18 @@ module.exports = function FpsUtils(mod) {
|
|
|
mod.settings.HideBlacklistedDrop = !mod.settings.HideBlacklistedDrop;
|
|
mod.settings.HideBlacklistedDrop = !mod.settings.HideBlacklistedDrop;
|
|
|
Msg(`Blacklisted Drops ${mod.settings.HideBlacklistedDrop ? 'Hidden'.clr(GreenClr) : 'Shown'.clr(RedClr)}.`);
|
|
Msg(`Blacklisted Drops ${mod.settings.HideBlacklistedDrop ? 'Hidden'.clr(GreenClr) : 'Shown'.clr(RedClr)}.`);
|
|
|
break;
|
|
break;
|
|
|
|
|
+ case "monsterdeathani":
|
|
|
|
|
+ case "monstersdeathani":
|
|
|
|
|
+ mod.settings.HideMonsterDeathAnimation = !mod.settings.HideMonsterDeathAnimation;
|
|
|
|
|
+ Msg(`Monsters Death Animation is ${mod.settings.HideMonsterDeathAnimation ? 'Hidden'.clr(GreenClr) : 'Shown'.clr(RedClr)}.`);
|
|
|
|
|
+ break;
|
|
|
case "help":
|
|
case "help":
|
|
|
mod.command.exec(`fps gui help`)
|
|
mod.command.exec(`fps gui help`)
|
|
|
- break
|
|
|
|
|
|
|
+ break;
|
|
|
default:
|
|
default:
|
|
|
Msg('Unknown command, check command list.'.clr(RedClr));
|
|
Msg('Unknown command, check command list.'.clr(RedClr));
|
|
|
mod.command.exec(`fps gui help`)
|
|
mod.command.exec(`fps gui help`)
|
|
|
- break
|
|
|
|
|
|
|
+ break;
|
|
|
}
|
|
}
|
|
|
if (!notcaaliproxy) mod.saveSettings();
|
|
if (!notcaaliproxy) mod.saveSettings();
|
|
|
})
|
|
})
|