|
|
@@ -13,7 +13,6 @@ let BronzeClr = '#BC8F8F',
|
|
|
GreenClr = '#4DE19C',
|
|
|
LPurpleClr = '#E0B0FF',
|
|
|
PurpleClr = '#9966CC',
|
|
|
- DPurpleClr = '#957DAD',
|
|
|
LBlueClr = '#4DDCE1',
|
|
|
BlueClr = '#436EEE',
|
|
|
DBlueClr = '#00575e',
|
|
|
@@ -26,7 +25,7 @@ module.exports = function FpsUtils(mod) {
|
|
|
var notcaaliproxy = mod.proxyAuthor !== 'caali' || mod.base.proxyAuthor !== 'caali';
|
|
|
|
|
|
const NpcData = require(`./data/npcData.json`),
|
|
|
- SkillData = require(`./data/skillString.json`)
|
|
|
+ SkillData = require(`./data/skillString.json`);
|
|
|
|
|
|
let MyGameId,
|
|
|
MyName,
|
|
|
@@ -56,18 +55,18 @@ module.exports = function FpsUtils(mod) {
|
|
|
|
|
|
function GuiHandler(page, arg) {
|
|
|
switch (page) {
|
|
|
- case 'searchnpc':
|
|
|
- case 'npcsearch':
|
|
|
+ case "searchnpc":
|
|
|
+ case "npcsearch":
|
|
|
TmpData = []
|
|
|
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>.`)
|
|
|
break;
|
|
|
- case 'npc':
|
|
|
+ case "npc":
|
|
|
TmpData = []
|
|
|
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>.`)
|
|
|
break;
|
|
|
- case 'npclist':
|
|
|
+ case "npclist":
|
|
|
TmpData = []
|
|
|
TmpData.push(
|
|
|
{ text: `<font color="${PurpleClr}" size="+24"><p align="right">MAIN MENU</p></font><br><br>`, command: `fps gui` },
|
|
|
@@ -80,7 +79,7 @@ module.exports = function FpsUtils(mod) {
|
|
|
gui.parse(TmpData, `<font color="${LPurpleClr}">[FPS] Options - NPCs </font><font color="${GreenClr}">(Blacklist)</font>`)
|
|
|
TmpData = []
|
|
|
break;
|
|
|
- case 'npcMain':
|
|
|
+ case "npcMain":
|
|
|
TmpData = []
|
|
|
TmpData.push(
|
|
|
{ text: `<font color="${PurpleClr}" size="+24"><p align="right">MAIN MENU</p></font><br><br>`, command: `fps gui` },
|
|
|
@@ -91,7 +90,7 @@ module.exports = function FpsUtils(mod) {
|
|
|
for (var i = 0; i < alphabet.length; i++) {
|
|
|
TmpData.push(
|
|
|
{ text: `<font color="${BronzeClr}" size="+18">${alphabet[i]}</font>`, command: `fps gui npc ${alphabet[i]}` },
|
|
|
- { text: ` ` }
|
|
|
+ { text: " " }
|
|
|
)
|
|
|
}
|
|
|
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>` })
|
|
|
@@ -130,29 +129,29 @@ module.exports = function FpsUtils(mod) {
|
|
|
{ text: `<font color="${mod.settings.HideBlacklistedSkills ? GreenClr : RedClr}" size="+22"><p align="right">[Blacklisted skills are ${mod.settings.HideBlacklistedSkills ? 'Blocked' : 'Not-Blocked'}]</p></font><br><br>`, command: `fps skill blacklist;fps gui skills` },
|
|
|
{ text: `<font color="${YellowClr}" size="+20">Tankers:</font>		` },
|
|
|
{ text: `<font color="${LBlueClr}" size="+18">(Lancer)</font>`, command: `fps gui class lancer` },
|
|
|
- { text: ` ` },
|
|
|
+ { text: " " },
|
|
|
{ text: `<font color="${LBlueClr}" size="+18">(Brawler)</font><br><br>`, command: `fps gui class brawler` },
|
|
|
{ text: `<font color="${YellowClr}" size="+20">Healers:</font>		` },
|
|
|
{ text: `<font color="${LBlueClr}" size="+18">(Priest)</font>`, command: `fps gui class priest` },
|
|
|
- { text: ` ` },
|
|
|
+ { text: " " },
|
|
|
{ text: `<font color="${LBlueClr}" size="+18">(Mystic)</font><br><br>`, command: `fps gui class mystic` },
|
|
|
{ text: `<font color="${YellowClr}" size="+20">Dpsers(melee):</font>	` },
|
|
|
{ text: `<font color="${LBlueClr}" size="+18">(Warrior)</font>`, command: `fps gui class warrior` },
|
|
|
- { text: ` ` },
|
|
|
+ { text: " " },
|
|
|
{ text: `<font color="${LBlueClr}" size="+18">(Slayer)</font>`, command: `fps gui class slayer` },
|
|
|
- { text: ` ` },
|
|
|
+ { text: " " },
|
|
|
{ text: `<font color="${LBlueClr}" size="+18">(Berserker)</font>`, command: `fps gui class berserker` },
|
|
|
- { text: ` ` },
|
|
|
+ { text: " " },
|
|
|
{ text: `<font color="${LBlueClr}" size="+18">(Ninja)</font>`, command: `fps gui class ninja` },
|
|
|
- { text: ` ` },
|
|
|
+ { text: " " },
|
|
|
{ text: `<font color="${LBlueClr}" size="+18">(Valkyrie)</font>`, command: `fps gui class valkyrie` },
|
|
|
- { text: ` ` },
|
|
|
+ { text: " " },
|
|
|
{ text: `<font color="${LBlueClr}" size="+18">(Reaper)</font><br><br>`, command: `fps gui class reaper` },
|
|
|
{ text: `<font color="${YellowClr}" size="+20">Dpsers(ranged):</font>	` },
|
|
|
{ text: `<font color="${LBlueClr}" size="+18">(Sorcerer)</font>`, command: `fps gui class sorcerer` },
|
|
|
- { text: ` ` },
|
|
|
+ { text: " " },
|
|
|
{ text: `<font color="${LBlueClr}" size="+18">(Archer)</font>`, command: `fps gui class archer` },
|
|
|
- { text: ` ` },
|
|
|
+ { text: " " },
|
|
|
{ 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>`)
|
|
|
break;
|
|
|
@@ -164,38 +163,38 @@ module.exports = function FpsUtils(mod) {
|
|
|
{ text: `<font color="${PurpleClr}" size="+24"><p align="right">MAIN MENU</p></font><br><br>`, command: `fps gui` },
|
|
|
{ text: `<font color="${YellowClr}" size="+20">By Roles:</font>	` },
|
|
|
{ text: `<font color="${mod.settings.RolesBlacklist.includes('tank') ? GreenClr : RedClr}" size="+18">[Tankers]</font>`, command: `fps ${mod.settings.RolesBlacklist.includes('tank') ? `show` : `hide`} tank;fps gui role` },
|
|
|
- { text: ` ` },
|
|
|
+ { text: " " },
|
|
|
{ text: `<font color="${mod.settings.RolesBlacklist.includes('healer') ? GreenClr : RedClr}" size="+18">[Healers]</font>`, command: `fps ${mod.settings.RolesBlacklist.includes('healer') ? `show` : `hide`} healer;fps gui role` },
|
|
|
- { text: ` ` },
|
|
|
+ { text: " " },
|
|
|
{ text: `<font color="${mod.settings.RolesBlacklist.includes('dps') ? GreenClr : RedClr}" size="+18" >[Dps-All]</font>`, command: `fps ${mod.settings.RolesBlacklist.includes('dps') ? `show` : `hide`} dps;fps gui role` },
|
|
|
- { text: ` ` },
|
|
|
+ { text: " " },
|
|
|
{ text: `<font color="${mod.settings.RolesBlacklist.includes('ranged') ? GreenClr : RedClr}" size="+18">[Dps-Ranged]</font><br><br><br><br>`, command: `fps ${mod.settings.RolesBlacklist.includes('ranged') ? `show` : `hide`} ranged;fps gui role` },
|
|
|
{ text: `<font color="${DBlueClr}" size="+22">By Classes</font><br><br>` },
|
|
|
{ text: `<font color="${YellowClr}" size="+20">Tankers:</font>		` },
|
|
|
{ text: `<font color="${mod.settings.ClassesBlacklist.includes('lancer') ? GreenClr : RedClr}" size="+18">[Lancer]</font>`, command: `fps ${mod.settings.ClassesBlacklist.includes('lancer') ? `show` : `hide`} lancer;fps gui role` },
|
|
|
- { text: ` ` },
|
|
|
+ { text: " " },
|
|
|
{ text: `<font color="${mod.settings.ClassesBlacklist.includes('brawler') ? GreenClr : RedClr}" size="+18">[Brawler]</font><br><br>`, command: `fps ${mod.settings.ClassesBlacklist.includes('brawler') ? `show` : `hide`} brawler;fps gui role` },
|
|
|
{ text: `<font color="${YellowClr}" size="+20">Healers:</font>		` },
|
|
|
{ text: `<font color="${mod.settings.ClassesBlacklist.includes('priest') ? GreenClr : RedClr}" size="+18">[Priest]</font>`, command: `fps ${mod.settings.ClassesBlacklist.includes('priest') ? `show` : `hide`} priest;fps gui role` },
|
|
|
- { text: ` ` },
|
|
|
+ { text: " " },
|
|
|
{ text: `<font color="${mod.settings.ClassesBlacklist.includes('mystic') ? GreenClr : RedClr}" size="+18">[Mystic]</font><br><br>`, command: `fps ${mod.settings.ClassesBlacklist.includes('mystic') ? `show` : `hide`} mystic;fps gui role` },
|
|
|
{ text: `<font color="${YellowClr}" size="+20">Dpsers(melee):</font>	` },
|
|
|
{ text: `<font color="${mod.settings.ClassesBlacklist.includes('warrior') ? GreenClr : RedClr}" size="+18">[Warrior]</font>`, command: `fps ${mod.settings.ClassesBlacklist.includes('warrior') ? `show` : `hide`} warrior;fps gui role` },
|
|
|
- { text: ` ` },
|
|
|
+ { text: " " },
|
|
|
{ text: `<font color="${mod.settings.ClassesBlacklist.includes('slayer') ? GreenClr : RedClr}" size="+18">[Slayer]</font>`, command: `fps ${mod.settings.ClassesBlacklist.includes('slayer') ? `show` : `hide`} slayer;fps gui role` },
|
|
|
- { text: ` ` },
|
|
|
+ { text: " " },
|
|
|
{ text: `<font color="${mod.settings.ClassesBlacklist.includes('berserker') ? GreenClr : RedClr}" size="+18">[Berserker]</font>`, command: `fps ${mod.settings.ClassesBlacklist.includes('berserker') ? `show` : `hide`} berserker;fps gui role` },
|
|
|
- { text: ` ` },
|
|
|
+ { text: " " },
|
|
|
{ text: `<font color="${mod.settings.ClassesBlacklist.includes('ninja') ? GreenClr : RedClr}" size="+18">[Ninja]</font>`, command: `fps ${mod.settings.ClassesBlacklist.includes('ninja') ? `show` : `hide`} ninja;fps gui role` },
|
|
|
- { text: ` ` },
|
|
|
+ { text: " " },
|
|
|
{ text: `<font color="${mod.settings.ClassesBlacklist.includes('valkyrie') ? GreenClr : RedClr}" size="+18">[Valkyrie]</font>`, command: `fps ${mod.settings.ClassesBlacklist.includes('valkyrie') ? `show` : `hide`} valkyrie;fps gui role` },
|
|
|
- { text: ` ` },
|
|
|
+ { text: " " },
|
|
|
{ text: `<font color="${mod.settings.ClassesBlacklist.includes('reaper') ? GreenClr : RedClr}" size="+18">[Reaper]</font><br><br>`, command: `fps ${mod.settings.ClassesBlacklist.includes('reaper') ? `show` : `hide`} reaper;fps gui role` },
|
|
|
{ text: `<font color="${YellowClr}" size="+20">Dpsers(ranged):</font>	` },
|
|
|
{ text: `<font color="${mod.settings.ClassesBlacklist.includes('sorcerer') ? GreenClr : RedClr}" size="+18">[Sorcerer]</font>`, command: `fps ${mod.settings.ClassesBlacklist.includes('sorcerer') ? `show` : `hide`} sorcerer;fps gui role` },
|
|
|
- { text: ` ` },
|
|
|
+ { text: " " },
|
|
|
{ text: `<font color="${mod.settings.ClassesBlacklist.includes('archer') ? GreenClr : RedClr}" size="+18">[Archer]</font>`, command: `fps ${mod.settings.ClassesBlacklist.includes('archer') ? `show` : `hide`} archer;fps gui role` },
|
|
|
- { 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` }
|
|
|
], `<font color="${LPurpleClr}">[FPS] Options - Roles/Classes</font>`)
|
|
|
break;
|
|
|
@@ -225,34 +224,35 @@ module.exports = function FpsUtils(mod) {
|
|
|
gui.parse(TmpData, `<font color="${LPurpleClr}">[FPS] Options - Projectiles</font>`)
|
|
|
TmpData = []
|
|
|
break;
|
|
|
- case "help": //TO DO - Better formating, it looks messy.
|
|
|
+ case "help": //TO DO - Better formating, it looks messy. ##Attempt 2
|
|
|
gui.parse([
|
|
|
{ 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 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: `| 'gui' | 'g' | N/A |'!fps gui' | Opens GUI. |<br>` },
|
|
|
- { text: `| N/A | N/A |'!fps-util' | Opens Help. |<br>` },
|
|
|
- { text: `| '0'|'1'|'2'|'3' | N/A |'!0'|'!1'|'!2' |'!3' | Changes Mode. |<br>` },
|
|
|
- { text: `| 'mode' | 'state' | '0' | '1' | '2' | '3' |'!fps mode 2' | Changes Mode. |<br>` },
|
|
|
- { text: `| 'hide' | 'show' | Player|Class|Role |'!fps hide mie' | Hides/shows Player|Class|Role. |<br>` },
|
|
|
- { text: `| 'party' | N/A |'!fps party' | Hides all but your party. |<br>` },
|
|
|
- { text: `| 'raid' | N/A |'!fps raid' |Auto 'mode 2' when party 18+ ppls.|<br>` },
|
|
|
- { text: `| 'list' | N/A |'!fps list' | Prints list of hidden things. |<br>` },
|
|
|
- { text: `|'summons' | 'sums'| 'other' | 'me' |'!fps sums me' |oth hide others sums; 'me' yours. |<br>` },
|
|
|
- { text: `|'skill' | 'skills'|'blacklist' | Class \<arg3\> |'!fps skill blacklist'|Blacklist on/off; arg3 = classname|<br>` },
|
|
|
- { text: `| 'npc' | 'npcs' | N/A |'!fps npc' |Hides/shows blacklisted npcs. |<br>` },
|
|
|
- { text: `| 'hit' | 'me' | 'other' | 'damage'|'!fps hit me' |Hides/shows skill results for each|<br>` },
|
|
|
- { text: `| 'firework' | N/A |'!fps firework' |Hides/shows Dragon fireworks. |<br>` },
|
|
|
- { text: `| 'abn'|'all' |'blacklist' \<add|remv num\> |'!fps abn blacklist' |Hides/shows effects. |<br>` },
|
|
|
- { text: `| 'proj'|'all' |'blacklist' \<add|remv num\> |'!fps proj all' |Hides/shows projectiles. |<br>` },
|
|
|
- { text: `| 'guildlogo' | N/A |'!fps guildlogo' |Hides/shows guild logos |<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: `| 'npczoom' | N/A |'!fps npczoom' |If enabled, prevent zoom on npcs. |<br>` },
|
|
|
- { text: `| 'dropitem' | N/A \| 'hide' \<num\> |'!fps dropitem' |Hides/shows blacklisted drops. |<br>` },
|
|
|
- { text: `| 'monsterdeathani'| N/A |'!fps monsterdeathani'|Hides/shows death animations. |<br>` },
|
|
|
- { text: `</font>` }
|
|
|
+ { 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;" doesn't work ._.
|
|
|
+ { text: " Command(s) 				Argument(s)	 	 Example<br>" },
|
|
|
+ { text: " gui ~ g 					N/A				!fps gui<br>" },
|
|
|
+ { text: "	 N/A	 					N/A				!fps-util<br>" },
|
|
|
+ { text: "0 ~ 1 ~ 2 ~ 3 					N/A				!0 ~ !1 ~ !2 ~ !3<br>" },
|
|
|
+ { text: "mode ~ state		 0 ~ 1 ~ 2 ~ 3 	!fps mode 2<br>" },
|
|
|
+ { text: "hide ~ show 		 Player ~ Class ~ Role 	!fps hide mie<br>" },
|
|
|
+ { text: "	party	 					N/A				!fps party<br>" },
|
|
|
+ { text: "	 raid	 					N/A				!fps raid<br>" },
|
|
|
+ { text: "	 list	 					N/A				!fps list<br>" },
|
|
|
+ { text: "summons ~ sums			 other ~ me	 	!fps sums me<br>" },
|
|
|
+ { text: "skill ~ skills		 blacklist ~ Class arg 	!fps skill blacklist<br>" },
|
|
|
+ { text: " npc ~ npcs 			 N/A ~ hide arg		!fps npc<br>" },
|
|
|
+ { text: "	 hit	 		 me ~ other ~ damage 	!fps hit me<br>" },
|
|
|
+ { text: "	firework 					N/A				!fps firework<br>" },
|
|
|
+ { text: "abn ~ abnormal		 all~blacklist arg arg2 	!fps abn blacklist<br>" },
|
|
|
+ { text: "	 proj			 all~blacklist arg arg2 	!fps proj all<br>" },
|
|
|
+ { text: " guildlogo 					N/A				!fps guildlogo<br>" },
|
|
|
+ { text: "style~costume 					N/A				!fps style<br>" },
|
|
|
+ { text: "gui npcsearch 			 	 arg		 	!fps gui npcsearch E<br>" },
|
|
|
+ { text: "	npczoom 					N/A				!fps npczoom<br>" },
|
|
|
+ { text: "	dropitem 			 N/A ~ hide arg 	!fps dropitem<br>" },
|
|
|
+ { text: "monsterdeathani					N/A				!fps monsterdeathani<br>" },
|
|
|
+ { text: " screenabns 			 N/A ~ hide arg 	!fps screenabns<br>" },
|
|
|
+ { text: "</font>" }
|
|
|
], `<font color="${LPurpleClr}">[FPS] HELP </font>`)
|
|
|
break;
|
|
|
default:
|
|
|
@@ -260,77 +260,78 @@ module.exports = function FpsUtils(mod) {
|
|
|
{ text: `<font color="${PurpleClr}" size="+24"><p align="right">REFRESH</p></font><br><br>`, command: `fps gui` },
|
|
|
{ text: `<font color="${YellowClr}" size="+21">Modes:</font>		` },
|
|
|
{ text: `<font color="${mod.settings.Mode === 0 ? GreenClr : RedClr}" size="+18">[Mode 0]</font>`, command: `fps mode 0;fps gui` },
|
|
|
- { text: ` ` },
|
|
|
+ { text: " " },
|
|
|
{ text: `<font color="${mod.settings.Mode === 1 ? GreenClr : RedClr}" size="+18">[Mode 1]</font>`, command: `fps mode 1;fps gui` },
|
|
|
- { text: ` ` },
|
|
|
+ { text: " " },
|
|
|
{ text: `<font color="${mod.settings.Mode === 2 ? GreenClr : RedClr}" size="+18">[Mode 2]</font>`, command: `fps mode 2;fps gui` },
|
|
|
- { text: ` ` },
|
|
|
+ { text: " " },
|
|
|
{ text: `<font color="${mod.settings.Mode === 3 ? GreenClr : RedClr}" size="+18">[Mode 3]</font><br><br>`, command: `fps mode 3;fps gui` },
|
|
|
{ text: `<font color="${YellowClr}" size="+21">Hit:</font>			` },
|
|
|
{ text: `<font color="${mod.settings.Hit_Me ? GreenClr : RedClr}" size="+18">[Own effect]</font>`, command: `fps hit me;fps gui` },
|
|
|
- { text: ` ` },
|
|
|
+ { text: " " },
|
|
|
{ text: `<font color="${mod.settings.Hit_Other ? GreenClr : RedClr}" size="+18">[Players effect]</font>`, command: `fps hit other;fps gui` },
|
|
|
- { text: ` ` },
|
|
|
+ { text: " " },
|
|
|
{ text: `<font color="${mod.settings.Hit_Damage ? GreenClr : RedClr}" size="+18">[Damage numbers]</font><br><br>`, command: `fps hit damage;fps gui` },
|
|
|
{ text: `<font color="${YellowClr}" size="+21">Hide:</font>		` },
|
|
|
{ text: `<font color="${mod.settings.HideMySummons ? GreenClr : RedClr}" size="+17">[Own summons]</font>`, command: `fps summons me;fps gui` },
|
|
|
- { text: ` ` },
|
|
|
+ { text: " " },
|
|
|
{ text: `<font color="${mod.settings.HideOthersSummons ? GreenClr : RedClr}" size="+17">[Players summons]</font>`, command: `fps summons;fps gui` },
|
|
|
- { text: ` ` },
|
|
|
+ { text: " " },
|
|
|
{ text: `<font color="${mod.settings.HideFireworks ? GreenClr : RedClr}" size="+17">[Fireworks]</font><br>`, command: `fps fireworks;fps gui` },
|
|
|
{ text: `			` },
|
|
|
{ text: `<font color="${mod.settings.OnlyParty ? GreenClr : RedClr}" size="+17">[Everyone but party]</font>`, command: `fps party;fps gui` },
|
|
|
- { text: ` ` },
|
|
|
+ { text: " " },
|
|
|
{ text: `<font color="${mod.settings.Hideguildlogos ? GreenClr : RedClr}" size="+17">[Guild Logos]</font>`, command: `fps guildlogo;fps gui` },
|
|
|
- { text: ` ` },
|
|
|
+ { text: " " },
|
|
|
{ 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>`, 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="${mod.settings.HideMonsterDeathAnimation ? GreenClr : RedClr}" size="+17">[Monsters Death Animation]</font>`, command: `fps monsterdeathani;fps gui` },
|
|
|
+ { text: " " },
|
|
|
+ { text: `<font color="${mod.settings.HideOwnBlacklistedAbns ? GreenClr : RedClr}" size="+17">[Screen Abns]</font><br><br>`, command: `fps screenabns;fps gui` },
|
|
|
{ text: `<font color="${YellowClr}" size="+21">Players:</font>	` },
|
|
|
{ text: `<font color="${LBlueClr}" size="+18">[Hidden list]</font>`, command: `fps gui hide` },
|
|
|
- { text: ` ` },
|
|
|
+ { text: " " },
|
|
|
{ text: `<font color="${LBlueClr}" size="+18">[Shown list]</font><br><br>`, command: `fps gui show` },
|
|
|
{ text: `<font color="${YellowClr}" size="+21">ETC:</font>		` },
|
|
|
{ text: `<font color="${LBlueClr}" size="+17">[Classes/Roles]</font>`, command: `fps gui role` },
|
|
|
- { text: ` ` },
|
|
|
+ { text: " " },
|
|
|
{ text: `<font color="${LBlueClr}" size="+17">[Skills]</font>`, command: `fps gui skills` },
|
|
|
- { text: ` ` },
|
|
|
+ { text: " " },
|
|
|
{ text: `<font color="${LBlueClr}" size="+17">[NPCs]</font>`, command: `fps gui npcMain` },
|
|
|
- { text: ` ` },
|
|
|
+ { text: " " },
|
|
|
{ text: `<font color="${LBlueClr}" size="+17">[Abnormals]</font><br>`, command: `fps gui abn` },
|
|
|
{ text: `			` },
|
|
|
{ text: `<font color="${LBlueClr}" size="+17">[Projectiles]</font>`, command: `fps gui proj` },
|
|
|
- { text: ` ` },
|
|
|
+ { text: " " },
|
|
|
{ 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.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="${DBlueClr}" size="+21">UI:</font>		` },
|
|
|
{ text: `<font color="${PurpleClr}" size="+17">[Mail]</font>`, command: `fps quicklink parcel` },
|
|
|
- { text: ` ` },
|
|
|
+ { text: " " },
|
|
|
{ text: `<font color="${PurpleClr}" size="+17">[Broker]</font>`, command: `fps quicklink broker` },
|
|
|
- { text: ` ` },
|
|
|
+ { text: " " },
|
|
|
{ text: `<font color="${PurpleClr}" size="+17">[Talent]</font>`, command: `fps quicklink talents` },
|
|
|
- { text: ` ` },
|
|
|
+ { text: " " },
|
|
|
{ text: `<font color="${PurpleClr}" size="+17">[Dress]</font>`, command: `fps quicklink dressingroom` },
|
|
|
- { text: ` ` },
|
|
|
+ { text: " " },
|
|
|
{ text: `<font color="${PurpleClr}" size="+17">[Hat Style]</font>`, command: `fps quicklink hatrestyle` },
|
|
|
- { text: ` ` },
|
|
|
+ { text: " " },
|
|
|
{ text: `<font color="${PurpleClr}" size="+17">[Search-Engine]</font><br>`, command: `fps quicklink searchengine` },
|
|
|
{ text: `<font color="${DBlueClr}" size="+21">Group:</font>	` },
|
|
|
{ text: `<font color="${OrangeClr}" size="+17">[Reset]</font>`, command: `fps quicklink reset` },
|
|
|
- { text: ` ` },
|
|
|
+ { text: " " },
|
|
|
{ text: `<font color="${CPinkClr}" size="+17">[Leave]</font>`, command: `fps quicklink drop` },
|
|
|
- { text: ` ` },
|
|
|
+ { text: " " },
|
|
|
{ text: `<font color="${CPinkClr}" size="+17">[Disband]</font><br>`, command: `fps quicklink disband` },
|
|
|
{ text: `<font color="${DBlueClr}" size="+21">Extra:</font>	` },
|
|
|
{ text: `<font color="${CPinkClr}" size="+17">[Lobby]</font>`, command: `fps quicklink lobby` },
|
|
|
- { text: ` ` },
|
|
|
+ { text: " " },
|
|
|
{ text: `<font color="${CPinkClr}" size="+17">[Exit]</font><br>`, command: `fps quicklink exit` }
|
|
|
-
|
|
|
], `<font color="${LPurpleClr}">[FPS] Options</font> | <font color="${RedClr}" size="+16">Red</font><font color="${LPurpleClr}" size="+16"> = disabled, <font color="${GreenClr}" size="+16">Green</font><font color="${LPurpleClr}" size="+16"> = enabled</font>`)
|
|
|
}
|
|
|
}
|
|
|
@@ -719,7 +720,10 @@ module.exports = function FpsUtils(mod) {
|
|
|
if (spawnedPlayers[event.target]) console.log(`\x1b[2m[${new Date().toTimeString().slice(0, 8)}]\x1b[0m \x1b[31m->\x1b[0m \x1b[36mAbnormality \x1b[4mStarted\x1b[0m \x1b[44mon\x1b[0m \x1b[37m'${spawnedPlayers[event.target].name}'\x1b[0m:\x1b[33m \ID "\x1b[32m${event.id}\x1b[0m"`);
|
|
|
if (spawnedPlayers[event.source]) console.log(`\x1b[2m[${new Date().toTimeString().slice(0, 8)}]\x1b[0m \x1b[31m->\x1b[0m \x1b[36mAbnormality \x1b[4mStarted\x1b[0m \x1b[45mfrom\x1b[0m \x1b[37m'${spawnedPlayers[event.source].name}'\x1b[0m:\x1b[33m \ID "\x1b[32m${event.id}\x1b[0m"`);
|
|
|
}
|
|
|
- if (EqGid(event.target)) return;
|
|
|
+ if (EqGid(event.target)) {
|
|
|
+ if (mod.settings.HideOwnBlacklistedAbns && mod.settings.OwnAbnormalsBlacklist.includes(event.id)) return false;
|
|
|
+ return;
|
|
|
+ }
|
|
|
if (hiddenUsers[event.target]) return false;
|
|
|
if (mod.settings.HideBlacklistedAbnormalities && mod.settings.AbnormalitiesBlacklist.includes(event.id)) return false;
|
|
|
if (mod.settings.HideAllAbnormalities && (spawnedPlayers[event.target] || spawnedPlayers[event.source] || mod.settings.AbnormalitiesBlacklist.includes(event.id))) return false;
|
|
|
@@ -840,23 +844,23 @@ module.exports = function FpsUtils(mod) {
|
|
|
mod.command.add('2', () => mod.command.exec('fps mode 2'))
|
|
|
mod.command.add('3', () => mod.command.exec('fps mode 3'))
|
|
|
|
|
|
- mod.command.add(['fps', 'fps-utils', 'fpsutil', 'fpsutils'], (key, arg, arg2, arg3) => {
|
|
|
+ mod.command.add(['fps', '!fps', 'fps-utils', '!fps-utils'], (key, arg, arg2, arg3) => {
|
|
|
switch (key) {
|
|
|
case "g":
|
|
|
case "gui":
|
|
|
GuiHandler(arg, arg2);
|
|
|
break;
|
|
|
case "0":
|
|
|
- mod.command.exec(`fps mode 0`);
|
|
|
+ mod.command.exec('fps mode 0');
|
|
|
break;
|
|
|
case "1":
|
|
|
- mod.command.exec(`fps mode 1`);
|
|
|
+ mod.command.exec('fps mode 1');
|
|
|
break;
|
|
|
case "2":
|
|
|
- mod.command.exec(`fps mode 2`)
|
|
|
+ mod.command.exec('fps mode 2')
|
|
|
break;
|
|
|
case "3":
|
|
|
- mod.command.exec(`fps mode 3`);
|
|
|
+ mod.command.exec('fps mode 3');
|
|
|
break;
|
|
|
case "mode":
|
|
|
case "state":
|
|
|
@@ -865,46 +869,37 @@ module.exports = function FpsUtils(mod) {
|
|
|
case "off":
|
|
|
if (mod.settings.Mode === 3) ShowAll();
|
|
|
mod.settings.Mode = 0;
|
|
|
-
|
|
|
mod.settings.HideAllAbnormalities = false;
|
|
|
mod.settings.HideAllProjectiles = false;
|
|
|
mod.settings.Hit_Other = false;
|
|
|
-
|
|
|
Msg(`Mode 0.`.clr(RedClr));
|
|
|
break;
|
|
|
case "1":
|
|
|
case "one":
|
|
|
if (mod.settings.Mode === 3) ShowAll();
|
|
|
mod.settings.Mode = 1;
|
|
|
-
|
|
|
mod.settings.HideAllAbnormalities = false;
|
|
|
mod.settings.HideAllProjectiles = true;
|
|
|
mod.settings.Hit_Other = true;
|
|
|
-
|
|
|
Msg(`Mode 1.`.clr(BronzeClr));
|
|
|
break;
|
|
|
case "2":
|
|
|
case "two":
|
|
|
if (mod.settings.Mode === 3) ShowAll();
|
|
|
mod.settings.Mode = 2;
|
|
|
-
|
|
|
mod.settings.HideAllAbnormalities = true;
|
|
|
mod.settings.HideAllProjectiles = true;
|
|
|
mod.settings.Hit_Other = true;
|
|
|
-
|
|
|
Msg(`Mode 2.`.clr(SilverClr));
|
|
|
break;
|
|
|
case "3":
|
|
|
case "three":
|
|
|
HideAll();
|
|
|
mod.settings.Mode = 3;
|
|
|
-
|
|
|
mod.settings.HideAllAbnormalities = true;
|
|
|
mod.settings.HideAllProjectiles = true;
|
|
|
mod.settings.Hit_Other = true;
|
|
|
-
|
|
|
mod.settings.OnlyParty = false;
|
|
|
-
|
|
|
Msg(`Mode 3.`.clr(GoldClr));
|
|
|
break;
|
|
|
default:
|
|
|
@@ -1032,7 +1027,6 @@ module.exports = function FpsUtils(mod) {
|
|
|
Msg(`Skill ID '${arg3}'` + ` Hidden`.clr(GreenClr) + ` for class '${arg2}'.`)
|
|
|
return
|
|
|
}
|
|
|
-
|
|
|
} else {
|
|
|
mod.settings.ClassesData[i].CD_HideBlacklistedSkills = !mod.settings.ClassesData[i].CD_HideBlacklistedSkills;
|
|
|
Msg(`Skills for '${arg2}' class ${mod.settings.ClassesData[i].CD_HideBlacklistedSkills ? 'Hidden'.clr(GreenClr) : 'Shown'.clr(RedClr)}.`);
|
|
|
@@ -1061,7 +1055,6 @@ module.exports = function FpsUtils(mod) {
|
|
|
mod.settings.NpcsBlacklist = mod.settings.NpcsBlacklist.filter((obj) => {
|
|
|
return obj.zone != arg2 || obj.templateId != arg3;
|
|
|
})
|
|
|
-
|
|
|
} else {
|
|
|
Msg(`NPC HntZone '${arg2}', TmpId '${arg3}'` + ` Added to the blacklist`.clr(GreenClr) + '.')
|
|
|
mod.settings.NpcsBlacklist.push({ zone: arg2, templateId: arg3 })
|
|
|
@@ -1282,6 +1275,27 @@ module.exports = function FpsUtils(mod) {
|
|
|
mod.settings.HideMonsterDeathAnimation = !mod.settings.HideMonsterDeathAnimation;
|
|
|
Msg(`Monsters Death Animation is ${mod.settings.HideMonsterDeathAnimation ? 'Hidden'.clr(GreenClr) : 'Shown'.clr(RedClr)}.`);
|
|
|
break;
|
|
|
+ case "screenabns":
|
|
|
+ if (arg == 'hide') {
|
|
|
+ if (!arg2) {
|
|
|
+ mod.settings.HideOwnBlacklistedAbns = !mod.settings.HideOwnBlacklistedAbns;
|
|
|
+ Msg(`Blacklisted ScreenAbns ${mod.settings.OwnAbnormalsBlacklist ? 'Hidden'.clr(GreenClr) : 'Shown'.clr(RedClr)}.`);
|
|
|
+ break;
|
|
|
+ }
|
|
|
+ arg2 = Number(arg2);
|
|
|
+ let found = mod.settings.OwnAbnormalsBlacklist.some((m) => { return m === arg2; });
|
|
|
+ if (found) {
|
|
|
+ Msg(`Abnormal id '${arg2}'` + ` Removed from the blacklist`.clr(RedClr) + '.')
|
|
|
+ mod.settings.OwnAbnormalsBlacklist = mod.settings.OwnAbnormalsBlacklist.filter((obj) => { return obj != arg2; })
|
|
|
+ } else {
|
|
|
+ Msg(`Abnormal id '${arg2}'` + ` Added to the blacklist`.clr(GreenClr) + '.')
|
|
|
+ mod.settings.OwnAbnormalsBlacklist.push(arg2)
|
|
|
+ }
|
|
|
+ return
|
|
|
+ } else
|
|
|
+ mod.settings.HideOwnBlacklistedAbns = !mod.settings.HideOwnBlacklistedAbns;
|
|
|
+ Msg(`Blacklisted ScreenAbns ${mod.settings.HideOwnBlacklistedAbns ? 'Hidden'.clr(GreenClr) : 'Shown'.clr(RedClr)}.`);
|
|
|
+ break;
|
|
|
case "help":
|
|
|
mod.command.exec(`fps gui help`)
|
|
|
break;
|