Mie лет назад: 8
Родитель
Сommit
f26a1dd035
11 измененных файлов с 2306 добавлено и 74899 удалено
  1. 57 61
      README.md
  2. 0 73362
      lib/data/npcData.json
  3. 0 395
      lib/data/skillString.json
  4. 1261 844
      lib/index.js
  5. 101 221
      lib/setting_migration.js
  6. 40 9
      manifest.json
  7. 6 7
      module.json
  8. 674 0
      node_modules/Gui/LICENSE
  9. 35 0
      node_modules/Gui/README.md
  10. 126 0
      node_modules/Gui/index.js
  11. 6 0
      package.json

+ 57 - 61
README.md

@@ -1,71 +1,67 @@
-# FPS-UTILS
+# Fps Utils
+Written for tera-proxy, a free script filled with features dedicated to improve your fps, in the open world, in dungeons and in battlegrounds.
 
 
-  **To support development of this mod**:
-    Buy me a [covfefe](https://ko-fi.com/codeagon) (I can't actually drink coffee but I will eat your money)
-    
-   Throw money [here](https://www.patreon.com/saegusa) to show support for Saegusa, the original developer of this mod.
-  ****
-- [FPS-UTILS](#fps-utils)
-  - [BIG Note](#big-note)
-  - [Installation](#installation)
-  - [Commands](#commands)
-    - [Additional command info](#additional-command-info)
-  - [Update Log](#update-log)
-  - [Work In Progress:](#work-in-progress)
-  - [Suggestions](#suggestions)
-  - [Credits](#credits)
-
-
-## BIG Note
-FPS-Utils now comes with [badGUI support](https://github.com/codeagon/badGui), I highly recommend downloading it for additional functionality and ease of use. This update also adds a few new commands as well as fixing a couple of bugs.
-
-## Installation 
-***Note***: *If you're using [Caali's proxy](https://discord.gg/maqBmJV) fps-utils will be automatically updated and already installed so you will not need to do the following.*
-* put the script folder "fps-utils" into bin/node_modules
+## How to use
+* Put the script folder "fps-utils" into bin/node_modules.
 * Log the game using the proxy.
 * Log the game using the proxy.
 
 
 ## Commands
 ## Commands
-***Note:*** *When inputting commands directly from the **proxy channel**  the prefix `!` should be ignored.*
+***Note:*** *To start the command, you can either start it in any channel by adding `!` prefix, or `/!`, or just going to proxy channel **proxy channel** where it doesn't need any prefix.*
+
 
 
-Command | Argument(s) | Example | Description
----|---|---|---
-**!fps gui** |  | !fps gui| Opens up the GUI. granting access to all of these commands.
-**!fps party** |  | !fps party| Hides all other players except those in your party
-**!fps gui npcsearch** |  | !fps npcsearch vergos| Opens up a list of NPCs with names matching your search query 
-**!fps mode** | 1, 2, 3, off | !fps mode 1| Sets the current fps-utils optimization state. 0 disables, 1 hides particles, 2 hides skill animations, 3 hides all players. All modes toggle`fps hit on`
-**!fps hit** | me, damage, other | !fps hit other | Enables/Disables hiding of hit effects for the player.`Damage`toggles damage numbers off.`Me` turns hit effects off for **you** (disables damage numbers also unfortunately), other disables effects for other users (recommended).
-**!fps hide** | playername, dps, healers, tanks, ranged, classname | !fps hide Spacecats, !fps hide valkyrie |hides dps, healers, tanks or ranged classes, any username or a class, class names can be found in`config.json`.
-**!fps show** | playername, dps, healers, tanks, ranged, classname| !fps show Memeboy | Takes the same arguments as above and instead unhides them.
-**!fps list** |  | !fps list |  Prints a list of characters/classes/roles currently hidden by *hide* command to chat.
-**!fps fireworks** | None | !fps fireworks | Enables/Disables hiding of firework entities in open world.
-**!fps summons** | empty, mine | !fps summons | Enables/Disables hiding of  summoned entities(gunner turrets, mystic thralls, etc) fps summons mine hides your own summons
-**!fps skill** | blacklist, class <classname>  | !fps skill class lancer | `black` toggles the skill blacklist feature, `class <classname>`toggles displaying of ALL skills for that class
-**!fps npc** | None | !fps npc | Enables/Disables hiding of ALL NPCs within the npc blacklist
-**!fps effects** | all, blacklist | !fps effects blacklist | Toggles showing of either blacklisted abnormality effects or all abnormality effects (your own ones still display normally in all mode, however not in blacklist mode).
-**!fps style** | None | !fps style | Enables/Disables showing of all spawned players as wearing the same outfit. Requires leaving and re-entering the area or re-logging to take effect.
-**!fps proj** | all, blacklist | !fps proj all| Enables/Disables showing of all projectiles, or blacklisted one. By default hailstorm is included.
+|    Command(s)    |         Argument(s)        |      Example         |             Details              |
+|      :---        |            :---:           |        :---:         |                ---:              |
+|   `gui` \| `g`   |             N/A            |`!fps gui`            |          Opens GUI.              |
+|       N/A        |             N/A            |`!fps-util`           |          Opens Help.             |
+|  `0`\|`1`\|`2`\|`3` |             N/A            |`!0`\|`!1`\|`!2` \|`!3`  |          Changes Mode.           |
+| `mode` \| `state` |    `0` \| `1` \| `2` \| `3`   |`!fps mode 2`         |          Changes Mode.           |
+| `hide` \| `show`  |      Player\|Class\|Role     |`!fps hide mie`       |  Hides/shows Player\|Class\|Role.  |
+|     `party`      |             N/A            |`!fps party`          |     Hides all but your party.    |
+|      `raid`      |             N/A            |`!fps raid`           |Auto `mode 2` when raid has 18 or more ppls.|
+|      `list`      |             N/A            |`!fps list`           | Prints list of hidden things.    |
+|`summons` \| `sums`|      `other`\| `me`        |`!fps sums me`        |`other` hide other sums; `me` yours.|
+|`skill` \| `skills`|`blacklist` \| Class \<arg3\>|`!fps skill blacklist`|Blacklist on/off; arg3 = classname|
+|  `npc` \| `npcs`  |             N/A            |`!fps npc`            |Hides/shows blacklisted npcs.     |
+|      `hit`       |   `me` \| `other` \| `damage`|`!fps hit me`         |Hides/shows skill results for each|
+|    `firework`    |             N/A            |`!fps firework`       |Hides/shows Dragon fireworks.     |
+|   `abn`\|`all`    |`blacklist` \<add\|remv num\>|`!fps abn blacklist`  |Hides/shows effects.              |
+|  `proj`\|`all`    |`blacklist` \<add\|remv num\>|`!fps proj all`       |Hides/shows projectiles.          |
+|   `guildlogo`    |             N/A            |`!fps guildlogo`      |Hides/shows guild logos           |
+| `style`\|`costume`|             N/A            |`!fps style`          |Hides/shows style for ppl\|npc     |
+|  `gui npcsearch` |           \<arg1\>         |`!fps gui npcsearch E`|Opens list of npcs matching arg1. |
+|    `npczoom`     |             N/A            |`!fps npczoom`        |If enabled, prevent zoom on npcs. |
+|    `dropitem`    |             N/A            |`!fps dropitem`       |Hides/shows blacklisted drops.    |
 
 
-### Additional command info
-*  A full list of skill IDs can be found [here.](https://github.com/pinkipi/skill-prediction/blob/master/config/skills.js)
-*  A full list of NPCs and Abnormalities will be posted later.
-*  To get projectile skill IDs you will have to log them yourself, I will add something that does this for you in a later update
-  
-## Update Log
-* Rewrote the entire mod, again.
-* 
-## Work In Progress:
-Various GUI improvements, fix for mount stuff, projectile and effect lists, fix formatting.
+
+### Additional explaination for some of the commands *in-case not clear*
+- Modes: Sets the current presets optimization to \<num\>; \<num\> can be:
+  -  `0`, `off`: Turns off preset optimization.
+  - `1`, `one`: Activates hiding all effects
+  - `2`, `two`: Activates hiding players' skills, their effects, projectiles, damage numbers
+  - `3`, `three`: Activates hiding all players & their skills, effects, projectiles, damage numbers.
+- Raid auto state: if enabled, Automatically change mode to 2 as soon as your party gets 18 memebers or above, and auto revert back(if you didn't change it manually) to last mode when it drops below 18.
+- Others Summons: if enabled, Prevent showing any summon for npcs(Thralls, Healbot, Turrets etc.) from other players.
+- Own summons: if enabled, Prevent showing any summon for npcs from you.
+- Style: if enabled, Removes all costumes including gear shapes on players & Removes the icons above npcs heads.
+- Npc zoom-ins: if enabled, Prevent the annoying auto camera zoom-in on npcs.
+- Drops: if enabled, Prevent the blacklisted drops of other players from showing, the default list has mystic motes of all levels.
 
 
 ## Suggestions
 ## Suggestions
-* If you have suggestions, need help, or want to comment on my shitty coding, leave an issue report or message me (Hugedong69 in pinkies/caali's discord)
+* If you have suggestions, need help, or want to comment on my coding, leave an issue report.
 
 
 ## Credits
 ## Credits
-The following people have helped in making FPS-Utils:
-- [Saegusae](https://github.com/Saegusae/) - Original developer
-- [Bernkastel](https://github.com/Bernkastel-0/) - Whos code I stole and then rewrote because it was also broken
-- [SerenTera](https://github.com/SerenTera) - God coder who added a lot of features and cleaned a lot of things up
-- [Caali](https://github.com/hackerman-caali/) - Provided update functionality to proxy so that I can yell at less users
-- [Kasea](https://github.com/Kaseaa/) - Let me steal code (I hope :eyes: )
-- [Kyoukaya](https://github.com/kyoukaya) - Fixed my grabo code
-- [SaltyMonkey](https://github.com/SaltyMonkey) - Yelled at me a bunch
-- [Pinkie](https://github.com/pinkipi/) - Told me dumb js things that I should know but don't because I'm dumb
+Contributers in this module:
+- [HugeDong69](https://github.com/codeagon) - Super-Cozy developer. [Donation link](https://ko-fi.com/codeagon)
+- [Saegusae](https://github.com/Saegusae) - Original developer. [Donation link](https://www.patreon.com/saegusa)
+- [SerenTera](https://github.com/SerenTera)
+- [Kyoukaya](https://github.com/kyoukaya)
+- [SaltyMonkey](https://github.com/SaltyMonkey) - [Donation link](https://www.patreon.com/SaltyMonkey)
+- [Leyki](https://github.com/Leyki)
+
+---
+
+Special thanks to these people:
+- [Pinkie Pie](https://github.com/pinkipi) Donation link: [![Donate](https://img.shields.io/badge/Donate-PayPal-ff69b4.svg)](https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=5MTKARBK2CNG8&lc=US&item_name=Pinkie%27s%20TERA%20Mods&currency_code=USD)
+- [Caali](https://github.com/hackerman-caali) 
+- [Bernkastel](https://github.com/Bernkastel-0)
+- [Kasea](https://github.com/Kaseaa)

Разница между файлами не показана из-за своего большого размера
+ 0 - 73362
lib/data/npcData.json


Разница между файлами не показана из-за своего большого размера
+ 0 - 395
lib/data/skillString.json


+ 1261 - 844
lib/index.js

@@ -1,845 +1,1262 @@
+"use strict"
 /* global __dirname */
 /* global __dirname */
-let BadGui
-
-try {
-    BadGui = require('badGui')
-} catch (e) {
-    try {
-        BadGui = require('badGui-master')
-    } catch (e) {
-        console.log(`[FPS-UTILS] - badGUI not installed, GUI functionality disabled, please see the readme for more information`)
-    }
-}
-
-module.exports = function FpsUtils2(mod) {
-    const npcData = require(`./npcData.json`)
-    const skills = require(`./skillString.json`)
-    let data = [],
-        gui,
-        NASux,
-        useGui = false,
-        red = `#e3d6d9`,
-        green = `#204ed3`,
-        myId,
-        alphabet = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'.split(''),
-        partyMembers = [],
-        spawnedPlayers = {},
-        hiddenUsers = {},
-        hiddenNpcs = {};
-    try {
-        gui = new BadGui(mod);
-        useGui = true
-    } catch (e) {
-        useGui = false
-        console.log(`[FPS-UTILS] - badGUI not installed, GUI functionality disabled, please see the readme for more information`)
-    }
-    // ~~~ * GUI handling stuff I should put somewhere else * ~~~
-
-    function listSkills(value) {
-        let keys = []
-        let data = []
-        let skillIds = []
-        data.push(
-            { text: `<font color="#4dd0e1" size="+18">Select the skills that you wish to hide</font><br>` },
-            { text: `Click here to return to the main menu<br><font size="+17">`, command: `fps gui` }
-        )
-        for (let key in skills[value]) {
-            keys.push(key);
-        }
-        skillIds.push(Object.values(skills[value]))
-        for (var i = 0; i < keys.length; i++) {
-            data.push({ command: `fps skill class ${value} ${skillIds[0][i]};fps gui class ${value}`, text: `<font color="${mod.settings.classes[classId(value)].blockedSkills.includes(skillIds[0][i].toString()) ? green : red}"> [${keys[i]}]</font><br>` })
-            //this is by far the worse and best thing I have ever seen
-        }
-        return data
-    }
-
-    function search(nameKey, array, arg) {
-        for (let i = 0; i < array.length; i++) {
-            if (array[i].Name.startsWith(nameKey) && arg == `starts`) {
-                data.push({
-                    command: `fps npc hide ${array[i].HuntingZoneId} ${array[i].TemplateId};fps gui npc ${nameKey}`, text: `<font color="${mod.settings.hiddenNpcs.some(() => {
-                        return mod.settings.hiddenNpcs.some((arrVal) => {
-                            if (array[i].HuntingZoneId == arrVal.zone && array[i].TemplateId == arrVal.templateId) {
-                                return true
-                            } else
-                                return false
-                        })
-                    }) ? green : red}"> [${array[i].Name}]</font><br>`
-                })
-            }
-            if (array[i].Name.includes(nameKey) && arg == `search`) {
-                data.push({ command: `fps npc hide ${array[i].HuntingZoneId} ${array[i].TemplateId};fps gui npc ${nameKey}`, text: ` [${array[i].Name}]<br>` })
-            }
-            if (!isNaN(arg)) {//ho boy wow what are you dooooing
-                if (array[i].nameKey == arg) {
-                    return true
-                }
-            }
-        }
-        gui.parse(data, `<font color="#dcc856"> FPS-UTILS Options - NPCs`)
-        data = []
-    }
-
-    function classId(name) { //this should really be reused for things other than GUI but can't be without adding their bloat here or changing the structure of the commands
-        for (let ass of Object.keys(mod.settings.classes)) {
-            if (mod.settings.classes[ass].name == name) {
-                return ass
-            }
-        }
-    }
-
-
-    function handleGui(page, arg) {
-        switch (page) {
-            case 'searchnpc':
-            case 'npcsearch':
-                data = []
-                data.push(
-                    { text: `<font color="#4dd0e1" size="+22">Search results for "${arg}":<br>` },
-                    { text: `Click here to return to the main menu<br><font size="+18">`, command: `fps gui` }
-                )
-                search(arg, npcData, `search`)
-                break
-            case 'npc':
-                data = []
-                data.push(
-                    { text: `<font color="#4dd0e1" size="+22">Search results for "${arg}":<br>` },
-                    { text: `Click here to return to the main menu<br><font size="+18">`, command: `fps gui` }
-                )
-                search(arg, npcData, `starts`)
-                break
-            case 'npclist':
-                data = []
-                data.push(
-                    { text: `<font color="#4dd0e1" size="+22">Select an NPC ID to remove it from the blacklist:<br><font size="+18">` },
-                    { text: `Click here to return to the main menu<br>`, command: `fps gui` },
-                    { text: `Click here to return to the main NPC page<br><font size="+18">`, command: `fps gui npcMain` },
-                )
-                for (let i = 0; i < mod.settings.hiddenNpcs.length; i++) {
-                    data.push({ text: `${mod.settings.hiddenNpcs[i].zone}, ${mod.settings.hiddenNpcs[i].templateId}<br>`, command: `fps npc hide ${mod.settings.hiddenNpcs[i].zone} ${mod.settings.hiddenNpcs[i].templateId};fps gui npclist` })
-                }
-                gui.parse(data, `<font color="#dcc856"> FPS-UTILS Options - NPCs`)
-                break
-            case 'npcMain':
-                data = []
-                data.push(
-                    { text: `<font color="#4dd0e1" size="+22">Click here to return to the main menu<br><font size="+18">`, command: `fps gui` },
-                    { text: `Click here to list currently hidden NPCs by Zone/TemplateId<br>`, command: `fps gui npclist` },
-                    { text: `<font color="${mod.settings.blacklistNpcs ? green : red}">[Toggle hiding of blacklisted NPCs]</font><br></br>`, command: `fps npc;fps gui npcMain` },
-                    { text: `<font color="#4dd0e1" size="+22">Select a letter to view all NPCs starting with that letter:<br>` },
-                    { text: `<font color="#dcc856" size="+16">You can also use the command "fps gui searchnpc [name]" to search for a specific NPC by name</font><br><br>` },
-
-                )
-                for (var i = 0; i < alphabet.length; i++) {
-                    data.push({ text: `${alphabet[i]} `, command: `fps gui npc ${alphabet[i]}` })
-                }
-                gui.parse(data, `<font color="#dcc856"> FPS-UTILS Options - NPCs`)
-                break
-            case "hide":
-                data = []
-                data.push(
-                    { text: `<font color="#4dd0e1" size="+22">Select a player to hide them and add them to the blacklist<br>` },
-                    { text: `<font color="#4dd0e1" size="+18">You can also use the command "fps hide <playername>" to hide someone that does not appear here<br><br>` },
-                    { text: `Click here to return to the main menu<br><font size="+17">`, command: `fps gui` }
-                )
-                for (let i in spawnedPlayers) {
-                    data.push({ text: `<font color="${mod.settings.blacklistedNames.includes(spawnedPlayers[i].name) ? green : red}">${spawnedPlayers[i].name}</font><br>`, command: `fps hide ${spawnedPlayers[i].name};fps gui hide` })
-                }
-                gui.parse(data, `<font color="#dcc856"> FPS-UTILS Options - Players`)
-                break
-            case "show":
-                data = []
-                data.push(
-                    { text: `<font color="#4dd0e1" size="+22">Select a player to unhide them and remove them from the blacklist<br>` },
-                    { text: `Click here to return to the main menu<br><font size="+18">`, command: `fps gui` }
-                )
-                mod.settings.blacklistedNames.forEach((mem) => { data.push({ text: `${mem}<br>`, command: `fps show ${mem};fps gui show` }) }) //yes this is not the best
-                gui.parse(data, `<font color="#dcc856"> FPS-UTILS Options - Hidden Users`)
-                break
-            case "skills":
-                gui.parse([
-                    { text: `<font color="#4dd0e1" size="+22">Hide skills by class:<br><br>` },
-                    { text: `Click here to return to the main menu<br>`, command: `fps gui` },
-                    { text: `<font color="${mod.settings.blacklistSkills ? green : red}">[toggle skill blacklisting]</font><br>`, command: `fps skill black` },
-                    { text: `Hide Specific Skills (Click a class name to open up a list of its skills):<font size="+17"><br>` },
-                    { text: `Warrior<br>`, command: `fps gui class warrior` },
-                    { text: `Lancer<br>`, command: `fps gui class lancer` },
-                    { text: `Slayer<br>`, command: `fps gui class slayer` },
-                    { text: `Berserker<br>`, command: `fps gui class berserker` },
-                    { text: `Sorcerer<br>`, command: `fps gui class sorcerer` },
-                    { text: `Archer<br>`, command: `fps gui class archer` },
-                    { text: `Priest<br>`, command: `fps gui class priest` },
-                    { text: `Mystic<br>`, command: `fps gui class mystic` },
-                    { text: `Reaper<br>`, command: `fps gui class reaper` },
-                    { text: `Gunner<br>`, command: `fps gui class gunner` },
-                    { text: `Brawler<br>`, command: `fps gui class brawler` },
-                    { text: `Ninja<br>`, command: `fps gui class ninja` },
-                    { text: `Valkyrie<br>`, command: `fps gui class valkyrie` }
-                ], `<font color="#dcc856"> FPS-UTILS Options - Skills`)
-                break
-            case "class":
-                gui.parse(listSkills(arg), `<font color="#dcc856"> FPS-UTILS Options - Skill list for ${arg}`)
-                break
-            case "role":
-                gui.parse([
-                    { text: `<font color="#4dd0e1" size="+22">Hide classes/roles:<br><br>` },
-                    { text: `Click here to return to the main menu<br><font size="+18">`, command: `fps gui` },
-                    { text: `<font color="${mod.settings.hiddenClasses.includes('warrior') ? green : red}">Warrior</font><br>`, command: `fps ${mod.settings.hiddenClasses.includes('warrior') ? `show` : `hide`} warrior;fps gui role` },
-                    { text: `<font color="${mod.settings.hiddenClasses.includes('lancer') ? green : red}">Lancer</font><br>`, command: `fps ${mod.settings.hiddenClasses.includes('lancer') ? `show` : `hide`} lancer;fps gui role` },
-                    { text: `<font color="${mod.settings.hiddenClasses.includes('slayer') ? green : red}">Slayer</font><br>`, command: `fps ${mod.settings.hiddenClasses.includes('slayer') ? `show` : `hide`} slayer;fps gui role` },
-                    { text: `<font color="${mod.settings.hiddenClasses.includes('berserker') ? green : red}">Berserker</font><br>`, command: `fps ${mod.settings.hiddenClasses.includes('berserker') ? `show` : `hide`} berserker;fps gui role` },
-                    { text: `<font color="${mod.settings.hiddenClasses.includes('sorcerer') ? green : red}">Sorcerer</font><br>`, command: `fps ${mod.settings.hiddenClasses.includes('sorcerer') ? `show` : `hide`} sorcerer;fps gui role` },
-                    { text: `<font color="${mod.settings.hiddenClasses.includes('archer') ? green : red}">Archer</font><br>`, command: `fps ${mod.settings.hiddenClasses.includes('archer') ? `show` : `hide`} archer;fps gui role` },
-                    { text: `<font color="${mod.settings.hiddenClasses.includes('priest') ? green : red}">Priest</font><br>`, command: `fps ${mod.settings.hiddenClasses.includes('priest') ? `show` : `hide`} priest;fps gui role` },
-                    { text: `<font color="${mod.settings.hiddenClasses.includes('mystic') ? green : red}">Mystic</font><br>`, command: `fps ${mod.settings.hiddenClasses.includes('mystic') ? `show` : `hide`} mystic;fps gui role` },
-                    { text: `<font color="${mod.settings.hiddenClasses.includes('reaper') ? green : red}">Reaper</font><br>`, command: `fps ${mod.settings.hiddenClasses.includes('reaper') ? `show` : `hide`} reaper;fps gui role` },
-                    { text: `<font color="${mod.settings.hiddenClasses.includes('gunner') ? green : red}">Gunner</font><br>`, command: `fps ${mod.settings.hiddenClasses.includes('gunner') ? `show` : `hide`} gunner;fps gui role` },
-                    { text: `<font color="${mod.settings.hiddenClasses.includes('brawler') ? green : red}">Brawler</font><br>`, command: `fps ${mod.settings.hiddenClasses.includes('brawler') ? `show` : `hide`} brawler;fps gui role` },
-                    { text: `<font color="${mod.settings.hiddenClasses.includes('ninja') ? green : red}">Ninja</font><br><br>`, command: `fps ${mod.settings.hiddenClasses.includes('ninja') ? `show` : `hide`} ninja;fps gui role` },
-                    { text: `<font color="${mod.settings.hiddenRoles.includes('dps') ? green : red}">DPS</font><br>`, command: `fps ${mod.settings.hiddenRoles.includes('dps') ? `show` : `hide`} dps;fps gui role` },
-                    { text: `<font color="${mod.settings.hiddenRoles.includes('healer') ? green : red}">Healers</font><br>`, command: `fps ${mod.settings.hiddenRoles.includes('healer') ? `show` : `hide`} healer;fps gui role` },
-                    { text: `<font color="${mod.settings.hiddenRoles.includes('tank') ? green : red}">Tanks</font><br>`, command: `fps ${mod.settings.hiddenRoles.includes('tank') ? `show` : `hide`} tank;fps gui role` },
-                    { text: `<font color="${mod.settings.hiddenRoles.includes('ranged') ? green : red}">Ranged</font><br>`, command: `fps ${mod.settings.hiddenRoles.includes('ranged') ? `show` : `hide`} ranged;fps gui role` },
-                ], `<font color="#dcc856"> FPS-UTILS Options - Hide Roles`)
-                break
-            case "abn":
-                gui.parse([
-                    { text: `<font color="#4dd0e1" size="+22">Abnormality/Effect Options:<br><br>` },
-                    { text: `Click here to return to the main menu<br><font size="+18">`, command: `fps gui` },
-                    { text: `<font color="${mod.settings.blacklistAbnormies ? green : red}"> [Hide ALL Abnormalities/Effects] </font><br>`, command: `fps proj all;fps gui abn` },
-                    { text: `<font color="${mod.settings.hideAllAbnormies ? green : red}"> [Hide ALL Anormalities/Effects in the blacklist (option to select these ingame soon, sorry!)] </font><br>`, command: `fps proj blacklist;fps gui abn` },
-                ], `<font color="#dcc856"> FPS-UTILS Options - Abnormies`)
-                break
-            case "proj":
-                gui.parse([
-                    { text: `<font color="#4dd0e1" size="+22">Projectile Options:<br><br>` },
-                    { text: `Click here to return to the main menu<br><font size="+18">`, command: `fps gui` },
-                    { text: `<font color="${mod.settings.hideProjectiles ? green : red}"> [Hide ALL Projectiles] </font><br>`, command: `fps proj all;fps gui proj` },
-                    { text: `<font color="${mod.settings.blacklistProjectiles ? green : red}"> [Hide ALL Projectiles in the blacklist (option to select these ingame soon, sorry!)] </font><br>`, command: `fps proj blacklist;fps gui proj` },
-                ], `<font color="#dcc856"> FPS-UTILS Options - Projectiles`)
-                break
-            default:
-                gui.parse([
-                    { text: `<font color="#dcc856" size="+16">Red = disabled, green = enabled:<br>` },
-                    { text: `Make sure you scroll down to see all the options!</font>:<br><font color="#4dd0e1" size="+18">` },
-                    { text: `Modes (mode effects from the previous are included in the next):<br>` },
-                    { text: `&#09;<font color="${mod.settings.mode === 0 ? green : red}"> [0 - Disable all other modes] </font><br>`, command: `fps mode 0;fps gui` },
-                    { text: `&#09;<font color="${mod.settings.mode === 1 ? green : red}"> [1 - Hide all projectiles and disable hit effects for other players] </font><br>`, command: `fps mode 1;fps gui` },
-                    { text: `&#09;<font color="${mod.settings.mode === 2 ? green : red}"> [2 - Hide skill casts] </font><br>`, command: `fps mode 2;fps gui` },
-                    { text: `&#09;<font color="${mod.settings.mode === 3 ? green : red}"> [3 - Hide all players] </font><br><br>`, command: `fps mode 3;fps gui` },
-                    { text: `Hit mode:<br>` },
-                    { text: `&#09;<font color="${mod.settings.hitMe ? green : red}"> [Hide your own effects and damage numbers] </font><br>`, command: `fps hit me;fps gui` },
-                    { text: `&#09;<font color="${mod.settings.hitOther ? green : red}"> [Hide other players hit effects] </font><br>`, command: `fps hit other;fps gui` },
-                    { text: `&#09;<font color="${mod.settings.hitDamage ? green : red}"> [Hide damage numbers] </font><br><br>`, command: `fps hit other;fps gui` },
-                    { text: `<font color="${mod.settings.party ? green : red}"> [Hide players not in your party] </font><br>`, command: `fps party;fps gui` },
-                    { text: `<font color="${mod.settings.hideAllSummons ? green : red}"> [Hide Summons] </font><br>`, command: `fps summons;fps gui` },
-                    { text: `<font color="${mod.settings.keepMySummons ? green : red}"> [Hide your own summons] </font><br>`, command: `fps summons mine;fps gui` },
-                    { text: `<font color="${mod.settings.hideFireworks ? green : red}"> [Hide Fireworks] </font><br>`, command: `fps fireworks;fps gui` },
-                    { text: `<font color="${mod.settings.showStyle ? green : red}"> [Hide other players costumes- requires a loading screen] </font><br><br>`, command: `fps style;fps gui` },
-                    { text: `Hide Classes/Roles (click here for more options)<br><br>`, command: `fps gui role` },
-                    { text: `Hide Skills (click here for more options)<br><br>`, command: `fps gui skills` },
-                    { text: `Hide Players (click here for more options)<br><br>`, command: `fps gui hide` },
-                    { text: `Show Players (click here for more options)<br><br>`, command: `fps gui show` },
-                    { text: `NPC's (click here for more options)<br><br>`, command: `fps gui npcMain` },
-                    { text: `Abnormalities/Effects (click here for more options)<br><br>`, command: `fps gui abn` }, //Need a less bad list/sorting method                    
-                    { text: `Projectiles (click here for more options)<br><br>`, command: `fps gui proj` }, //Need a better list
-                ], `<font color="#dcc856"> FPS-UTILS Options`)
-
-        }
-    }
-
-    // ~~~ * commands * ~~~
-    mod.command.add('fps', (cmd, arg, arg2, arg3) => {
-        mod.saveSettings() // for some reason settings weren't saving so we have this here now I guess 🤷
-        switch (cmd) {
-            case "gui":
-                if (useGui) {
-                    handleGui(arg, arg2);
-                } else {
-                    message(`badGUI not installed, please see the FPS-Utils readme for more information`)
-                }
-                break;
-            case "mode":
-            case "state":
-                switch (arg) {
-                    case "0":
-                    case "off":
-                        if (mod.settings.mode === 3) {
-                            showAll();
-                        }
-                        mod.settings.hideAllAbnormies = false
-                        mod.settings.hitOther = false
-                        mod.settings.mode = 0;
-                        message(`All FPS improvements disabled`);
-                        break
-                    case "1":
-                        if (mod.settings.mode === 3) {
-                            showAll();
-                        }
-                        mod.settings.mode = 1;
-                        //mod.settings.hideAllAbnormies = true;
-                        mod.settings.hitOther = true;
-                        message(`FPS mode set to 1, projectiles hidden and abnormalities disabled`);
-                        break
-                    case "2":
-                        if (mod.settings.mode === 3) {
-                            showAll();
-                        }
-                        mod.settings.mode = 2;
-                        // mod.settings.hideAllAbnormies = true;
-                        mod.settings.hitOther = true;
-                        message(`FPS mode set to 2, all skill effects disabled`);
-                        break
-                    case "3":
-                        hideAll();
-                        mod.settings.mode = 3;
-                        mod.settings.hideAllAbnormies = true;
-                        mod.settings.hitOther = true;
-                        message(`FPS mode set to 3, hiding all players, their effects and their hit effects.`);
-                        break
-                    default:
-                        message(`Invalid mode ${arg}, valid modes are : 0,1,2,3`);
-                }
-                break
-            case "hide":
-                if (typeof arg === "string" && arg !== null) {
-                    if (mod.settings.blacklistedNames.includes(arg)) {
-                        message(`Player "${arg}" already hidden!`);
-                        return;
-                    } else
-                        if ((mod.settings.classNames.includes(arg) && !mod.settings.hiddenClasses.includes(arg)) || (mod.settings.roleNames.includes(arg) && !mod.settings.hiddenRoles.includes(arg))) {
-                            for (let i in mod.settings.classes) {
-                                if ((mod.settings.classes[i].name === arg || mod.settings.classes[i].role.includes(arg)) && mod.settings.classes[i].isHidden !== true) { //loops are fun, right?
-                                    mod.settings.classes[i].isHidden = true;
-                                    if (mod.settings.classes[i].name === arg) {
-                                        mod.settings.hiddenClasses.push(arg);
-                                    }
-                                    if (mod.settings.classes[i].role.includes(arg)) {
-                                        mod.settings.hiddenRoles.push(arg);
-                                    }
-                                    let classtohide = mod.settings.classes[i].model;
-                                    for (let i in spawnedPlayers) {
-                                        if (getClass(spawnedPlayers[i].templateId) === classtohide) {
-                                            hidePlayer(spawnedPlayers[i].name);
-                                        }
-                                    }
-                                }
-                            }
-                            message(`Class/Role ${arg} hidden`);
-                            return;
-                        } else if (mod.settings.hiddenClasses.includes(arg) || mod.settings.hiddenRoles.includes(arg)) {
-                            message(`Class/Role "${arg}" already hidden!`);
-                            return;
-                        }
-                    // if (!spawnedPlayers[arg]) {
-                    //   message(`Player ${arg} not spawned in, hiding anyway!`);
-                    // } else {
-                    message(`Player "${arg}" hidden!`);
-                    // }
-                    mod.settings.blacklistedNames.push(arg);
-                    hidePlayer(arg);
-                } else
-                    message(`Invalid name "${arg}"`);
-                break
-            case "show":
-                if (typeof arg === "string" && arg !== null) {
-                    if (mod.settings.blacklistedNames.includes(arg)) {
-                        showPlayer(arg);
-                        removeName(mod.settings.blacklistedNames, arg);
-                        message(`Player "${arg}" shown!`);
-                        return;
-                    }
-                    if ((mod.settings.classNames.includes(arg) && mod.settings.hiddenClasses.includes(arg)) || (mod.settings.hiddenRoles.includes(arg) && mod.settings.roleNames.includes(arg))) {
-                        for (let i in mod.settings.classes) {
-                            if (mod.settings.classes[i].name === arg || mod.settings.classes[i].role.includes(arg)) {//loops are fun, right?
-                                if (mod.settings.classes[i].name === arg) {
-                                    removeName(mod.settings.hiddenClasses, arg);
-                                }
-                                if (mod.settings.classes[i].role.includes(arg)) {
-                                    removeName(mod.settings.hiddenRoles, arg);
-                                }
-                                mod.settings.classes[i].isHidden = false;
-                                let classToShow = mod.settings.classes[i].model;
-                                for (let i in hiddenUsers) {
-                                    if (getClass(hiddenUsers[i].templateId) === classToShow) {
-                                        showPlayer(hiddenUsers[i].name);
-                                    }
-                                }
-
-                            }
-                        }
-                        message(`Class "${arg}" redisplayed!`);
-                    } else if (!mod.settings.hiddenClasses.includes(arg) || !mod.settings.hiddenRoles.includes(arg)) {
-                        message(`Class/Role "${arg}" already displayed!!`);
-                    } else
-                        if (!mod.settings.blacklistedNames.includes(arg)) {
-                            message(`Player "${arg}" is not hidden!`);
-                        }
-                }
-                break
-            case "party":
-                mod.settings.party = !mod.settings.party
-                if (mod.settings.party) {
-                    for (let i in spawnedPlayers) {
-                        if (!partyMembers.includes(spawnedPlayers[i].name)) {
-                            mod.send('S_DESPAWN_USER', 3, {
-                                gameId: spawnedPlayers[i].gameId,
-                                type: 1
-                            });
-                            hiddenUsers[spawnedPlayers[i].gameId] = spawnedPlayers[i];
-                        }
-                    }
-                } else {
-                    showAll()
-                }
-                message(`Hiding of everyone but your group ${mod.settings.party ? 'en' : 'dis'}abled`);
-
-                break
-            case "list":
-                message(`Hidden players: ${mod.settings.blacklistedNames}`);
-                message(`Hidden classes: ${mod.settings.hiddenClasses}`);
-                message(`Hidden roles: ${mod.settings.hiddenRoles}`);
-                break
-            case "summons":
-                switch (arg) {
-                    case undefined:
-                        mod.settings.hideAllSummons = !mod.settings.hideAllSummons;
-                        message(`Hiding of summoned NPCs ${mod.settings.hideAllSummons ? 'en' : 'dis'}abled`);
-                        break;
-                    case "mine":
-                        mod.settings.keepMySummons = !mod.settings.keepMySummons;
-                        message(`Hiding of owned summoned NPCs ${mod.settings.keepMySummons ? 'dis' : 'en'}abled`);
-                        break;
-                }
-                break
-            case "skills":
-            case "skill":
-                switch (arg) {
-                    case "blacklist":
-                    case "black":
-                        mod.settings.blacklistSkills = !mod.settings.blacklistSkills;
-                        message(`Hiding of blacklisted skills ${mod.settings.blacklistSkills ? 'en' : 'dis'}abled`);
-                        break
-                    case "class":
-                        if (mod.settings.classNames.includes(arg2)) {
-                            for (let i in mod.settings.classes) {
-                                if (mod.settings.classes[i].name === arg2) {
-                                    if (arg3 != null && !isNaN(arg3) && arg3 < 50) {
-                                        if (mod.settings.classes[i].blockedSkills.includes(arg3)) {
-                                            let index = mod.settings.classes[i].blockedSkills.indexOf(arg3)
-                                            if (index !== -1) {
-                                                mod.settings.classes[i].blockedSkills.splice(index, 1)
-                                                message(`Skill ID ${arg3} showing for class ${arg2}`)
-                                            }
-                                            return
-                                        } else {
-                                            mod.settings.classes[i].blockedSkills.push(arg3)
-                                            message(`Skill ID ${arg3} hidden for class ${arg2}`)
-                                            return
-                                        }
-
-                                    } else {
-                                        mod.settings.classes[i].blockingSkills = !mod.settings.classes[i].blockingSkills;
-                                        message(`Hidding ALL skills for the class ${arg2} ${mod.settings.classes[i].blockingSkills ? 'en' : 'dis'}abled`);
-                                        return;
-                                    }
-                                }
-                            }
-
-                        } else
-                            message(`Class ${arg2} not found!`);
-                        break
-                }
-                break
-            case "npcs":
-            case "npc":
-                if (arg == 'hide') {
-                    let found = mod.settings.hiddenNpcs.some((s) => {
-                        return s.zone === arg2 && s.templateId === arg3;
-                    });
-                    if (found) {
-                        message(`NPC form huntingZone "${arg2} with templateId "${arg3}" now showing`)
-                        mod.settings.hiddenNpcs = mod.settings.hiddenNpcs.filter((obj) => {
-                            return obj.zone != arg2 || obj.templateId != arg3;
-                        })
-
-                    } else {
-                        message(`NPC form huntingZone "${arg2} with templateId "${arg3}" hidden`)
-                        mod.settings.hiddenNpcs.push({ zone: arg2, templateId: arg3 })
-                    }
-                    return
-
-                    /*mod.settings.hiddenNpcs = mod.settings.hiddenNpcs.filter((e) => { // wow an arrow thanks eslint
-                        if (e.zone == arg2 || e.templateId == arg3) {
-                            message(`NPC form huntingZone "${arg2} with templateId "${arg3}" now showing`)
-                            return e.zone != arg2 || e.templateId != arg3
-                        } else {
-                            
-                        }
-                    })
-                    mod.settings.hiddenNpcs.push({ zone: arg2, templateId: arg3 })
-                    message(`NPC form huntingZone "${arg2} with templateId "${arg3}" hidden`)
-                    return*/
-                } else
-                    mod.settings.blacklistNpcs = !mod.settings.blacklistNpcs;
-                message(`Hiding of blacklisted NPCs ${mod.settings.blacklistNpcs ? 'en' : 'dis'}abled`);
-                break
-            case "hit":
-                switch (arg) {
-                    case "me":
-                        mod.settings.hitMe = !mod.settings.hitMe;
-                        message(`Hiding of the players skill hits ${mod.settings.hitMe ? 'en' : 'dis'}abled`);
-                        break
-                    case "other":
-                        mod.settings.hitOther = !mod.settings.hitOther;
-                        message(`Hiding of other players skill hits ${mod.settings.hitOther ? 'en' : 'dis'}abled`);
-                        break
-                    case "damage":
-                        mod.settings.hitDamage = !mod.settings.hitDamage;
-                        message(`Hiding of the players skill damage numbers ${mod.settings.hitDamage ? 'en' : 'dis'}abled`);
-                        break
-                    default:
-                        message(`Unrecognized sub-mod.command "${arg}"!`);
-                        break
-                }
-                break
-            case "fireworks":
-            case "firework":
-                mod.settings.hideFireworks = !mod.settings.hideFireworks;
-                message(`Hiding of firework effects ${mod.settings.hideFireworks ? 'en' : 'dis'}abled`);
-                break
-            case "fpsbooster9001":
-            case "effects":
-            case "abnormies":
-                switch (arg) {
-                    case "all":
-                        mod.settings.hideAllAbnormies = !mod.settings.hideAllAbnormies;
-                        message(`Hiding of ALL abnormality effects on players ${mod.settings.hideAllAbnormies ? 'en' : 'dis'}abled`);
-                        break
-                    case "blacklist":
-                    case "black":
-                        mod.settings.blacklistAbnormies = !mod.settings.blacklistAbnormies;
-                        message(`Hiding of blacklisted abnormality effects ${mod.settings.blacklistAbnormies ? 'en' : 'dis'}abled`);
-                        break
-                }
-                break
-            case "costume":
-            case "style":
-                mod.settings.showStyle = !mod.settings.showStyle;
-                message(`Displaying of all players as wearing default costumes ${mod.settings.showStyle ? 'en' : 'dis'}abled, you will have to leave and re-enter the zone for this to take effect`);
-                break
-            case "proj":
-            case "projectile":
-                switch (arg) {
-                    case "all":
-                        mod.settings.hideProjectiles = !mod.settings.hideProjectiles;
-                        message(`Hiding of ALL projectile effects ${mod.settings.hideProjectiles ? 'en' : 'dis'}abled`);
-                        break
-                    case "blacklist":
-                        mod.settings.blacklistProjectiles = !mod.settings.blacklistProjectiles;
-                        message(`Hiding of ALL projectile effects ${mod.settings.blacklistProjectiles ? 'en' : 'dis'}abled`);
-                        break
-                }
-                break
-            default:
-                message(`Unknown command! Please refer to the readme for more information`);
-                break
-        }
-
-    });
-    // ~~~ * Functions * ~~~
-    function message(msg) {
-        mod.command.message(`<font color="#e0d3f5">${msg}`);
-    }
-
-    function getClass(m) {
-        return (m % 100);
-    }
-
-    function hidePlayer(name) {
-        for (let i in spawnedPlayers) {
-            if (spawnedPlayers[i].name.toString().toLowerCase() === name.toLowerCase()) {
-                mod.send('S_DESPAWN_USER', 3, {
-                    gameId: spawnedPlayers[i].gameId,
-                    type: 1
-                });
-                hiddenUsers[spawnedPlayers[i].gameId] = spawnedPlayers[i];
-                return;
-            }
-        }
-    }
-
-    function removeName(name) {
-        var what, a = arguments, L = a.length, ax;
-        while (L > 1 && name.length) {
-            what = a[--L];
-            while ((ax = name.indexOf(what)) !== -1) {
-                name.splice(ax, 1);
-            }
-        }
-        return name;
-    }
-
-    function showPlayer(name) {
-        for (let i in hiddenUsers) {
-            if (hiddenUsers[i].name.toString().toLowerCase() === name.toLowerCase()) {
-                mod.send('S_SPAWN_USER', 13, hiddenUsers[i]);
-                delete hiddenUsers[i];
-                return;
-            }
-        }
-    }
-
-    function hideAll() {
-        if (!mod.settings.party) {
-            for (let i in spawnedPlayers) {
-                mod.send('S_DESPAWN_USER', 3, {
-                    gameId: spawnedPlayers[i].gameId,
-                    type: 1
-                });
-                hiddenUsers[spawnedPlayers[i].gameId] = spawnedPlayers[i];
-            }
-        }
-    }
-
-    function showAll() {
-        for (let i in hiddenUsers) {
-            mod.send('S_SPAWN_USER', 13, hiddenUsers[i]);
-            delete hiddenUsers[i];
-        }
-    }
-
-    function updateLoc(event) {
-        mod.send('S_USER_LOCATION', 5, {
-            gameId: event.gameId,
-            loc: event.loc,
-            dest: event.loc,
-            w: event.w,
-            speed: 300,
-            type: 7
-        });
-    }
-
-    // ~~~* Hooks * ~~~
-    // note: for skills, do if classes[event.templateId].blockedSkills !== 
-
-    mod.hook('S_LOGIN', 10, (event) => {
-        myId = event.gameId;
-    });
-
-    mod.game.on('leave_game', () => {
-        clearInterval(NASux)
-    })
-    mod.hook('S_SPAWN_USER', 13, { order: 9999 }, (event) => {
-        spawnedPlayers[event.gameId] = event;
-        if (mod.settings.mode === 3 || mod.settings.blacklistedNames.includes(event.name.toString().toLowerCase()) || mod.settings.classes[getClass(event.templateId)].isHidden === true || (mod.settings.party && !partyMembers.includes(event.name))) { //includes should work!!
-            hiddenUsers[event.gameId] = event;
-            return false;
-        }
-        if (mod.settings.showStyle) {
-            event.weaponEnchant = 0;
-            event.body = 0;
-            event.hand = 0;
-            event.feet = 0;
-            event.underwear = 0;
-            event.head = 0;
-            event.face = 0;
-            event.weapon = 0;
-            event.showStyle = false;
-            return true;
-        }
-    });
-
-    mod.hook('S_USER_EXTERNAL_CHANGE', 6, { order: 9999 }, (event) => {
-        if (mod.settings.showStyle && !event.gameId.equals(myId)) {
-            event.weaponEnchant = 0;
-            event.body = 0;
-            event.hand = 0;
-            event.feet = 0;
-            event.underwear = 0;
-            event.head = 0;
-            event.face = 0;
-            event.weapon = 0;
-            event.showStyle = false;
-            return true;
-        }
-    });
-
-    mod.hook('S_SPAWN_USER', 13, { order: 99999, filter: { fake: null } }, (event) => {
-        if (mod.settings.showStyle) {
-            event.weaponEnchant = 0;
-            event.body = 0;
-            event.hand = 0;
-            event.feet = 0;
-            event.underwear = 0;
-            event.head = 0;
-            event.face = 0;
-            event.weapon = 0;
-            event.showStyle = false;
-            return true;
-        }
-    });
-
-    mod.hook('S_DESPAWN_USER', 3, { order: 999 }, (event) => {
-        delete hiddenUsers[event.gameId];
-        delete spawnedPlayers[event.gameId];
-    });
-
-    mod.hook('S_LOAD_TOPO', 'raw', () => {
-        spawnedPlayers = {};
-        hiddenUsers = {};
-        hiddenNpcs = {};
-    });
-
-    mod.hook('S_LEAVE_PARTY', 1, () => {
-        partyMembers = []
-    })
-
-    mod.hook('S_PARTY_MEMBER_LIST', 7, (event) => {
-        event.members.map((value) => {
-            partyMembers.push(value.name)
-        })
-    })
-
-    mod.hook('S_SPAWN_NPC', 9, (event) => {
-        if (mod.settings.hideAllSummons && event.huntingZoneId === 1023) {
-            if (mod.settings.keepMySummons && mod.game.me.is(event.owner)) return true;
-            hiddenNpcs[event.gameId] = event; // apparently NPCs get feared and crash the client too
-            return false;
-        }
-        if (mod.settings.blacklistNpcs) {
-            for (var i = 0; i < mod.settings.hiddenNpcs.length; i++) {
-                if (event.huntingZoneId == mod.settings.hiddenNpcs[i].zone && event.templateId == mod.settings.hiddenNpcs[i].templateId) {
-                    hiddenNpcs[event.gameId] = event;
-                    return false;
-                }
-            }
-        }
-        if (mod.settings.hideFireworks && event.huntingZoneId === 1023 && (event.templateId === 60016000 || event.templateId === 80037000)) {
-            return false;
-        }
-    });
-
-    mod.hook('S_DESPAWN_NPC', 3, (event) => {
-        delete hiddenNpcs[event.gameId];
-    });
-
-    mod.hook('S_EACH_SKILL_RESULT', 12, { order: 200 }, (event) => {
-        if (event.source.equals(myId) || event.owner.equals(myId)) {
-            if (mod.settings.hitMe) {
-                event.skill.id = '';
-                return true;
-            }
-            if (mod.settings.hitDamage) {
-                event.damage = '';
-                return true;
-            }
-        }
-        if (mod.settings.hitOther && (spawnedPlayers[event.owner] || spawnedPlayers[event.source]) && !event.target.equals(myId)) {
-            event.skill.id = '';
-            return true;
-        }
-    });
-
-    mod.hook('S_USER_LOCATION', 5, (event) => {
-        if (hiddenUsers[event.gameId] === undefined) {
-            return;
-        }
-        hiddenUsers[event.gameId].loc = event.dest;
-        if (hiddenUsers[event.gameId]) {
-            return false;
-        }
-    });
-
-
-
-    mod.hook('S_ACTION_STAGE', mod.base.majorPatchVersion >= 75 ? 8 : 7, { order: 999 }, (event) => {
-        if (!event.gameId.equals(myId) && spawnedPlayers[event.gameId]) {
-            if (!event.target.equals(myId) && (mod.settings.mode === 2 || hiddenUsers[event.gameId])) {
-                updateLoc(event);
-                return false;
-            }
-            if (mod.settings.blacklistSkills) {
-                if (typeof mod.settings.classes[getClass(event.templateId)].blockedSkills !== "undefined" && mod.settings.classes[getClass(event.templateId)].blockedSkills.includes(Math.floor((event.skill.id / 10000)))) {
-                    updateLoc(event);
-                    return false;
-                }
-            }
-            if (mod.settings.classes[getClass(event.templateId)].blockingSkills) {
-                updateLoc(event);
-                return false;
-            }
-        }
-    });
-
-    mod.hook('S_START_USER_PROJECTILE', mod.base.majorPatchVersion >= 75 ? 9 : 8, { order: 999 }, (event) => { // end my life
-        if (!event.gameId.equals(myId) && spawnedPlayers[event.gameId] && (hiddenUsers[event.gameId] || mod.settings.mode > 0 || mod.settings.hideProjectiles)) {
-            return false;
-        }
-        if (mod.settings.blacklistProjectiles && mod.settings.hiddenProjectiles.includes(event.skill.id)) {
-            return false;
-        }
-    });
-
-    mod.hook('S_SPAWN_PROJECTILE', 5, { order: 999 }, (event) => {
-        if (!event.gameId.equals(myId) && spawnedPlayers[event.gameId] && (hiddenUsers[event.gameId] || mod.settings.mode > 0 || mod.settings.hideProjectiles)) {
-            return false;
-        }
-        if (mod.settings.blacklistProjectiles && mod.settings.hiddenProjectiles.includes(event.skill.id)) {
-            return false;
-        }
-    });
-
-    mod.hook('S_FEARMOVE_STAGE', 1, (event) => { // we block these to prevent game crashes
-        if ((!event.target.equals(myId) && mod.settings.mode === 3) || hiddenUsers[event.target] || hiddenNpcs[event.target]) {
-            return false;
-        }
-    });
-    mod.hook('S_FEARMOVE_END', 1, (event) => {
-        if ((!event.target.equals(myId) && mod.settings.mode === 3) || hiddenUsers[event.target] || hiddenNpcs[event.target]) {
-            return false;
-        }
-    });
-
-    mod.hook('S_MOUNT_VEHICLE', 2, (event) => {
-        if (hiddenUsers[event.gameId]) {
-            hiddenUsers[event.gameId].mount = event.id
-        }
-    });
-
-    mod.hook('S_UNMOUNT_VEHICLE', 2, (event) => {
-        if (hiddenUsers[event.gameId]) {
-            hiddenUsers[event.gameId].mount = 0
-        }
-    });
-
-    mod.hook('S_UNICAST_TRANSFORM_DATA', 3, { order: 99999 }, (event) => { //Thanks Trance!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! 
-        if (mod.settings.showStyle && !event.gameId.equals(myId)) { //Thanks Trance!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! 
-            return false;//Thanks Trance!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! 
-        }//Thanks Trance!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! 
-    });//Thanks Trance!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! 
-
-    mod.hook('S_USER_MOVETYPE', 'raw', () => { //this little boi crashes us, raw due to def missing from caali
-        return false;
-    });
-
-    mod.hook('S_ABNORMALITY_REFRESH', 1, (event) => {
-        if (hiddenUsers[event.target]) {
-            return false;
-        }
-    });
-
-    mod.hook('S_ABNORMALITY_BEGIN', 3, { order: 999 }, (event) => {
-        if (hiddenUsers[event.target]) {
-            return false;
-        }
-        if (mod.settings.blacklistAbnormies && mod.settings.hiddenAbnormies.includes(event.id)) {
-            return false;
-        }
-        if (mod.settings.hideAllAbnormies && !event.target.equals(myId) && (spawnedPlayers[event.target] && spawnedPlayers[event.source])) {
-            return false;
-        }
-    });
-
-};
+
+String.prototype.clr = function (HexClr) { return `<font color='${HexClr}'>${this}</font>` }
+const Gui = require('Gui')
+let BronzeClr = '#BC8F8F',
+	SilverClr = '#9A9A9A',
+	GoldClr = '#DAA520',
+	PinkClr = '#FFB7C5',
+	HPinkClr = '#FF69B4',
+	CPinkClr = '#ED5D92',
+	RedClr = '#FE6F5E',
+	GreenClr = '#4DE19C',
+	LPurpleClr = '#E0B0FF',
+	PurpleClr = '#9966CC',
+	DPurpleClr = '#957DAD',
+	LBlueClr = '#4DDCE1',
+	BlueClr = '#436EEE',
+	DBlueClr = '#00575e',
+	HBlueClr = '#08B3E5',
+	GrayClr = '#778899',
+	YellowClr = '#DCE14D',
+	OrangeClr = '#FFBE5E';
+
+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`)
+
+	let MyGameId,
+		MyName,
+		ChangeOnCd,
+		laststate,
+		lastrange,
+		TmpData = [],
+		partyMembers = [],
+		hiddenNpcs = {},
+		hiddenUsers = {},
+		spawnedPlayers = {},
+		alphabet = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'.split(''),
+		gui = new Gui(mod);
+
+	if (notcaaliproxy) {
+		const options = require('../module').options
+		if (options) {
+			const settingsVersion = options.settingsVersion
+			if (settingsVersion) {
+				mod.settings = require('./setting_migration')(mod.settings._version === settingsVersion ? settingsVersion : undefined, settingsVersion, mod.settings)
+			}
+		}
+	}
+
+	// ~~~ * Gui Handler * ~~~ \\
+
+	function GuiHandler(page, arg) {
+		switch (page) {
+			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':
+				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':
+				TmpData = []
+				TmpData.push(
+					{ text: `<font color="${PurpleClr}" size="+24"><p align="right">MAIN MENU</p></font><br><br>`, command: `fps gui` },
+					{ text: `<font color="${YellowClr}" size="+20"><p align="right">[Main NPC page]</p></font><br>`, command: `fps gui npcMain` },
+					{ text: `<font color="${LBlueClr}" size="+19">Click a NPC ID to remove it from the blacklist:</font><br>` }
+				)
+				for (let i = 0; i < mod.settings.NpcsBlacklist.length; i++) {
+					TmpData.push({ text: `<font color="${BronzeClr}" size="+17">${mod.settings.NpcsBlacklist[i].zone}, ${mod.settings.NpcsBlacklist[i].templateId}</font><br>`, command: `fps npc hide ${mod.settings.NpcsBlacklist[i].zone} ${mod.settings.NpcsBlacklist[i].templateId};fps gui npclist` })
+				}
+				gui.parse(TmpData, `<font color="${LPurpleClr}">[FPS] Options - NPCs </font><font color="${GreenClr}">(Blacklist)</font>`)
+				TmpData = []
+				break
+			case 'npcMain':
+				TmpData = []
+				TmpData.push(
+					{ text: `<font color="${PurpleClr}" size="+24"><p align="right">MAIN MENU</p></font><br><br>`, command: `fps gui` },
+					{ text: `<font color="${YellowClr}" size="+20"><p align="right">[Blacklisted NPCs list]</p></font><br>`, command: `fps gui npclist` },
+					{ text: `<font color="${mod.settings.HideBlacklistedNpcs ? GreenClr : RedClr}" size="+20"><p align="right">[Blacklisted NPCs are ${mod.settings.HideBlacklistedNpcs ? 'Blocked' : 'Not-Blocked'}]</p></font><br><br>`, command: `fps npc;fps gui npcMain` },
+					{ text: `<font color="${LBlueClr}" size="+19">Click a letter to view all NPCs starting with that letter:<br><br>` }
+				)
+				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: `&nbsp;` }
+					)
+				}
+				TmpData.push({ text: `<br><br><font color="${PinkClr}" size="+16">(Command </font><font color="${HPinkClr}" size="+16">"fps gui searchnpc &#60;name&#62;"</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>`)
+				TmpData = []
+				break
+			case "show":
+				TmpData = []
+				TmpData.push(
+					{ text: `<font color="${PurpleClr}" size="+24"><p align="right">MAIN MENU</p></font><br>`, command: `fps gui` },
+					{ text: `<font color="${PinkClr}" size="+16">(Command </font><font color="${HPinkClr}" size="+16">"fps hide &#60;name&#62;"</font><font color="${PinkClr}" size="+16"> to hide someone that does not appear here)</font><br><br>` },
+					{ text: `<font color="${LBlueClr}" size="+19">Click to hide & add to blacklist.</font><br>` }
+				)
+				for (let i in spawnedPlayers) {
+					TmpData.push(
+						{ text: `<font color="${mod.settings.PlayersBlacklist.includes(spawnedPlayers[i].name) ? GreenClr : RedClr}" size="+17">${spawnedPlayers[i].name}</font>`, command: mod.settings.PlayersBlacklist.includes(spawnedPlayers[i].name) ? `fps show ${spawnedPlayers[i].name};fps gui show` : `fps hide  ${spawnedPlayers[i].name};fps gui show` },
+						{ text: `${JustifySpaces(spawnedPlayers[i].name.length)}<font color="${mod.settings.PlayersBlacklist.includes(spawnedPlayers[i].name) ? GreenClr : RedClr}" size="+17">${mod.settings.PlayersBlacklist.includes(spawnedPlayers[i].name) ? 'is Hidden' : 'is Shown'}.</font><br>` }
+					)
+				}
+				gui.parse(TmpData, `<font color="${LPurpleClr}">[FPS] Options - Players </font><font color="${RedClr}">(Shown)</font>`)
+				TmpData = []
+				break
+			case "hide":
+				TmpData = []
+				TmpData.push(
+					{ text: `<font color="${PurpleClr}" size="+24"><p align="right">MAIN MENU</p></font><br><br>`, command: `fps gui` },
+					{ text: `<font color="${LBlueClr}" size="+19">Click to show & remove from blacklist.</font><br>` }
+				)
+				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>`)
+				TmpData = []
+				break
+			case "skills":
+				gui.parse([
+					{ text: `<font color="${PurpleClr}" size="+24"><p align="right">MAIN MENU</p></font><br>`, command: `fps gui` },
+					{ 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>&#09;&#09;` },
+					{ text: `<font color="${LBlueClr}" size="+18">&#40;Lancer&#41;</font>`, command: `fps gui class lancer` },
+					{ text: `&nbsp;&nbsp;` },
+					{ text: `<font color="${LBlueClr}" size="+18">&#40;Brawler&#41;</font><br><br>`, command: `fps gui class brawler` },
+					{ text: `<font color="${YellowClr}" size="+20">Healers:</font>&#09;&#09;` },
+					{ text: `<font color="${LBlueClr}" size="+18">&#40;Priest&#41;</font>`, command: `fps gui class priest` },
+					{ text: `&nbsp;&nbsp;` },
+					{ text: `<font color="${LBlueClr}" size="+18">&#40;Mystic&#41;</font><br><br>`, command: `fps gui class mystic` },
+					{ text: `<font color="${YellowClr}" size="+20">Dpsers(melee):</font>&#09;` },
+					{ text: `<font color="${LBlueClr}" size="+18">&#40;Warrior&#41;</font>`, command: `fps gui class warrior` },
+					{ text: `&nbsp;&nbsp;` },
+					{ text: `<font color="${LBlueClr}" size="+18">&#40;Slayer&#41;</font>`, command: `fps gui class slayer` },
+					{ text: `&nbsp;&nbsp;` },
+					{ text: `<font color="${LBlueClr}" size="+18">&#40;Berserker&#41;</font>`, command: `fps gui class berserker` },
+					{ text: `&nbsp;&nbsp;` },
+					{ text: `<font color="${LBlueClr}" size="+18">&#40;Ninja&#41;</font>`, command: `fps gui class ninja` },
+					{ text: `&nbsp;&nbsp;` },
+					{ text: `<font color="${LBlueClr}" size="+18">&#40;Valkyrie&#41;</font>`, command: `fps gui class valkyrie` },
+					{ text: `&nbsp;&nbsp;` },
+					{ text: `<font color="${LBlueClr}" size="+18">&#40;Reaper&#41;</font><br><br>`, command: `fps gui class reaper` },
+					{ text: `<font color="${YellowClr}" size="+20">Dpsers(ranged):</font>&#09;` },
+					{ text: `<font color="${LBlueClr}" size="+18">&#40;Sorcerer&#41;</font>`, command: `fps gui class sorcerer` },
+					{ text: `&nbsp;&nbsp;` },
+					{ text: `<font color="${LBlueClr}" size="+18">&#40;Archer&#41;</font>`, command: `fps gui class archer` },
+					{ text: `&nbsp;&nbsp;` },
+					{ text: `<font color="${LBlueClr}" size="+18">&#40;Gunner&#41;</font>`, command: `fps gui class gunner` }
+				], `<font color="${LPurpleClr}">[FPS] Options - Skills </font><font color="${YellowClr}">(Choose class)</font>`)
+				break
+			case "class":
+				gui.parse(SkillsList(arg), `<font color="${LPurpleClr}">[FPS] Options - Skill list for "${arg}"</font>`)
+				break
+			case "role":
+				gui.parse([
+					{ 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>&#09;` },
+					{ 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: `&nbsp;&nbsp;` },
+					{ 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: `&nbsp;&nbsp;` },
+					{ 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: `&nbsp;&nbsp;` },
+					{ 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>&#09;&#09;` },
+					{ 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: `&nbsp;&nbsp;` },
+					{ 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>&#09;&#09;` },
+					{ 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: `&nbsp;&nbsp;` },
+					{ 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>&#09;` },
+					{ 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: `&nbsp;&nbsp;` },
+					{ 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: `&nbsp;&nbsp;` },
+					{ 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: `&nbsp;&nbsp;` },
+					{ 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: `&nbsp;&nbsp;` },
+					{ 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: `&nbsp;&nbsp;` },
+					{ 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>&#09;` },
+					{ 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: `&nbsp;&nbsp;` },
+					{ 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: `&nbsp;&nbsp;` },
+					{ 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
+			case "abn":
+				TmpData = []
+				TmpData.push(
+					{ text: `<font color="${PurpleClr}" size="+24"><p align="right">MAIN MENU</p></font><br>`, command: `fps gui` },
+					{ text: `<font color="${mod.settings.AbnDebug ? GreenClr : RedClr}" size="+19"><p align="right">Debug</p></font><br>`, command: `fps abn log;fps gui abn` },
+					{ text: `<font color="${mod.settings.HideAllAbnormalities ? GreenClr : RedClr}" size="+22">[All Abnormalities are ${mod.settings.HideAllAbnormalities ? 'Hidden' : 'Shown'}]</font><br>`, command: `fps abn all;fps gui abn` },
+					{ text: `<font color="${mod.settings.HideBlacklistedAbnormalities ? GreenClr : RedClr}" size="+22">[Blacklisted Abnormalities are ${mod.settings.HideBlacklistedAbnormalities ? 'Hidden' : 'Shown'}]</font><br><br>`, command: `fps abn blacklist;fps gui abn` },
+					{ text: `<font color="${LPurpleClr}" size="+19">Blacklist: </font><font color="${PinkClr}" size="17+">Click to remove from the blacklist.</font><br>` }
+				)
+				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>`)
+				TmpData = []
+				break
+			case "proj":
+				TmpData = []
+				TmpData.push(
+					{ text: `<font color="${PurpleClr}" size="+24"><p align="right">MAIN MENU</p></font><br>`, command: `fps gui` },
+					{ text: `<font color="${mod.settings.ProjDebug ? GreenClr : RedClr}" size="+19"><p align="right">Debug</p></font><br>`, command: `fps proj log;fps gui proj` },
+					{ text: `<font color="${mod.settings.HideAllProjectiles ? GreenClr : RedClr}" size="+22">[All Projectiles are ${mod.settings.HideAllProjectiles ? 'Hidden' : 'Shown'}]</font><br>`, command: `fps proj all;fps gui proj` },
+					{ text: `<font color="${mod.settings.HideBlacklistedProjectiles ? GreenClr : RedClr}" size="+22">[Blacklisted Projectiles are ${mod.settings.HideBlacklistedProjectiles ? 'Hidden' : 'Shown'}] </font><br><br>`, command: `fps proj blacklist;fps gui proj` },
+					{ text: `<font color="${LPurpleClr}" size="+19">Blacklist: </font><font color="${PinkClr}" size="17+">Click to remove from the blacklist.</font><br>` }
+				)
+				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>`)
+				TmpData = []
+				break
+			case "help":				//TO_DO - Better formating, it looks messy :sad:
+				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 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: `|    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            |'!fps dropitem'       |Hides/shows blacklisted drops.    |<br>` },
+					{ text: `</font>` }
+				], `<font color="${LPurpleClr}">[FPS] HELP </font>`)
+				break;
+			default:
+				gui.parse([
+					{ 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>&#09;&#09;` },
+					{ text: `<font color="${mod.settings.Mode === 0 ? GreenClr : RedClr}" size="+18">[Mode 0]</font>`, command: `fps mode 0;fps gui` },
+					{ text: `&nbsp;&nbsp;&nbsp;` },
+					{ text: `<font color="${mod.settings.Mode === 1 ? GreenClr : RedClr}" size="+18">[Mode 1]</font>`, command: `fps mode 1;fps gui` },
+					{ text: `&nbsp;&nbsp;&nbsp;` },
+					{ text: `<font color="${mod.settings.Mode === 2 ? GreenClr : RedClr}" size="+18">[Mode 2]</font>`, command: `fps mode 2;fps gui` },
+					{ text: `&nbsp;&nbsp;&nbsp;` },
+					{ 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>&#09;&#09;&#09;` },
+					{ text: `<font color="${mod.settings.Hit_Me ? GreenClr : RedClr}" size="+18">[Own effect]</font>`, command: `fps hit me;fps gui` },
+					{ text: `&nbsp;&nbsp;` },
+					{ text: `<font color="${mod.settings.Hit_Other ? GreenClr : RedClr}" size="+18">[Players effect]</font>`, command: `fps hit other;fps gui` },
+					{ text: `&nbsp;&nbsp;` },
+					{ 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>&#09;&#09;` },
+					{ text: `<font color="${mod.settings.HideMySummons ? GreenClr : RedClr}" size="+17">[Own summons]</font>`, command: `fps summons me;fps gui` },
+					{ text: `&nbsp;&nbsp;` },
+					{ text: `<font color="${mod.settings.HideOthersSummons ? GreenClr : RedClr}" size="+17">[Players summons]</font>`, command: `fps summons;fps gui` },
+					{ text: `&nbsp;&nbsp;` },
+					{ text: `<font color="${mod.settings.HideFireworks ? GreenClr : RedClr}" size="+17">[Fireworks]</font><br>`, command: `fps fireworks;fps gui` },
+					{ text: `&#09;&#09;&#09;` },
+					{ text: `<font color="${mod.settings.OnlyParty ? GreenClr : RedClr}" size="+17">[Everyone but party]</font>`, command: `fps party;fps gui` },
+					{ text: `&nbsp;&nbsp;` },
+					{ text: `<font color="${mod.settings.Hideguildlogos ? GreenClr : RedClr}" size="+17">[Guild Logos]</font>`, command: `fps guildlogo;fps gui` },
+					{ text: `&nbsp;&nbsp;` },
+					{ text: `<font color="${mod.settings.ShowStyle ? GreenClr : RedClr}" size="+17">[Style]</font>`, command: `fps style;fps gui` },
+					{ text: `&nbsp;&nbsp;` },
+					{ text: `<font color="${mod.settings.HideBlacklistedDrop ? GreenClr : RedClr}" size="+17">[Drops]</font><br><br>`, command: `fps dropitem;fps gui` },
+					{ text: `<font color="${YellowClr}" size="+21">Players:</font>&#09;` },
+					{ text: `<font color="${LBlueClr}" size="+18">[Hidden list]</font>`, command: `fps gui hide` },
+					{ text: `&nbsp;&nbsp;&nbsp;&nbsp;` },
+					{ text: `<font color="${LBlueClr}" size="+18">[Shown list]</font><br><br>`, command: `fps gui show` },
+					{ text: `<font color="${YellowClr}" size="+21">ETC:</font>&#09;&#09;` },
+					{ text: `<font color="${LBlueClr}" size="+17">[Classes/Roles]</font>`, command: `fps gui role` },
+					{ text: `&nbsp;&nbsp;&nbsp;` },
+					{ text: `<font color="${LBlueClr}" size="+17">[Skills]</font>`, command: `fps gui skills` },
+					{ text: `&nbsp;&nbsp;&nbsp;` },
+					{ text: `<font color="${LBlueClr}" size="+17">[NPCs]</font>`, command: `fps gui npcMain` },
+					{ text: `&nbsp;&nbsp;` },
+					{ text: `<font color="${LBlueClr}" size="+17">[Abnormals]</font><br>`, command: `fps gui abn` },
+					{ text: `&#09;&#09;&#09;` },
+					{ text: `<font color="${LBlueClr}" size="+17">[Projectiles]</font>`, command: `fps gui proj` },
+					{ text: `&nbsp;&nbsp;` },
+					{ text: `<font color="${mod.settings.RaidAutoChange ? GreenClr : RedClr}" size="+17">[Raid auto state]</font>`, command: `fps raid;fps gui` },
+					{ text: `&nbsp;&nbsp;` },
+					{ 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="${BlueClr}" size="+22">Quick Links:</font><br>` },
+					{ text: `<font color="${DBlueClr}" size="+21">UI:</font>&#09;&#09;` },
+					{ text: `<font color="${PurpleClr}" size="+17">[Mail]</font>`, command: `fps quicklink parcel` },
+					{ text: `&nbsp;&nbsp;&nbsp;` },
+					{ text: `<font color="${PurpleClr}" size="+17">[Broker]</font>`, command: `fps quicklink broker` },
+					{ text: `&nbsp;&nbsp;&nbsp;` },
+					{ text: `<font color="${PurpleClr}" size="+17">[Talent]</font>`, command: `fps quicklink talents` },
+					{ text: `&nbsp;&nbsp;&nbsp;` },
+					{ text: `<font color="${PurpleClr}" size="+17">[Dress]</font>`, command: `fps quicklink dressingroom` },
+					{ text: `&nbsp;&nbsp;&nbsp;` },
+					{ text: `<font color="${PurpleClr}" size="+17">[Hat Style]</font>`, command: `fps quicklink hatrestyle` },
+					{ text: `&nbsp;&nbsp;&nbsp;` },
+					{ text: `<font color="${PurpleClr}" size="+17">[Search-Engine]</font><br>`, command: `fps quicklink searchengine` },
+					{ text: `<font color="${DBlueClr}" size="+21">Group:</font>&#09;` },
+					{ text: `<font color="${OrangeClr}" size="+17">[Reset]</font>`, command: `fps quicklink reset` },
+					{ text: `&nbsp;&nbsp;&nbsp;&nbsp;` },
+					{ text: `<font color="${CPinkClr}" size="+17">[Leave]</font>`, command: `fps quicklink drop` },
+					{ text: `&nbsp;&nbsp;&nbsp;` },
+					{ text: `<font color="${CPinkClr}" size="+17">[Disband]</font><br>`, command: `fps quicklink disband` },
+					{ text: `<font color="${DBlueClr}" size="+21">Extra:</font>&#09;` },
+					{ text: `<font color="${CPinkClr}" size="+17">[Lobby]</font>`, command: `fps quicklink lobby` },
+					{ text: `&nbsp;&nbsp;&nbsp;` },
+					{ 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>`)
+		}
+	}
+
+	// ~~~ * Gui Functions * ~~~ \\
+
+	function JustifySpaces(ToJustify) {
+		if (ToJustify <= 3) return '&#09;&#09;&#09;&#09;&#09;&#09;&#09;&#09;';
+		else if (ToJustify <= 7) return '&#09;&#09;&#09;&#09;&#09;&#09;&#09;';
+		else if (ToJustify <= 12) return '&#09;&#09;&#09;&#09;&#09;&#09;';
+		else if (ToJustify <= 15) return '&#09;&#09;&#09;&#09;&#09;';
+		else return '&#09;&#09;&#09;&#09;';
+	}
+
+	function SkillsList(value) {
+		let keys = [],
+			skilldata = [],
+			skillIds = []
+		skilldata.push(
+			{ text: `<font color="${PurpleClr}" size="+24"><p align="right">MAIN MENU</p></font><br>`, command: `fps gui` },
+			{ 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>`, command: `fps skill blacklist;fps gui skills` },
+			{ text: `<font color="${LBlueClr}" size="+19">Click skill to blacklist it.</font><br>` }
+		)
+		for (let key in SkillData[value]) {
+			keys.push(key);
+		}
+		skillIds.push(Object.values(SkillData[value]))
+		for (var i = 0; i < keys.length; i++) {
+			skilldata.push({ command: `fps skill class ${value} ${skillIds[0][i]};fps gui class ${value}`, text: `<font color="${mod.settings.ClassesData[ClassNameFromID(value)].CD_SkillsBlacklist.includes(skillIds[0][i].toString()) ? GreenClr : RedClr}" size="+17">[${keys[i]}]</font><br>` })
+		}
+		return skilldata
+	}
+
+	function JsonSearch(nameKey, array, arg, title) {
+		for (let i = 0; i < array.length; i++) {
+			if (array[i].Name.startsWith(nameKey) && arg == `starts`) {
+				TmpData.push({
+					command: `fps npc hide ${array[i].HuntingZoneId} ${array[i].TemplateId};fps gui npc ${nameKey}`, text: `<font color="${mod.settings.NpcsBlacklist.some(() => {
+						return mod.settings.NpcsBlacklist.some((arrVal) => {
+							if (array[i].HuntingZoneId == arrVal.zone && array[i].TemplateId == arrVal.templateId) return true
+							return false
+						})
+					}) ? GreenClr : RedClr}" size="+17">${array[i].Name}</font><br>`
+				})
+			}
+			if (array[i].Name.includes(nameKey) && arg == `search`) {
+				TmpData.push({ command: `fps npc hide ${array[i].HuntingZoneId} ${array[i].TemplateId};fps gui npc ${nameKey}`, text: `<font color="${BronzeClr}" size="+17">${array[i].Name}</font><br>` })
+			}
+			if (!isNaN(arg)) {
+				if (array[i].nameKey == arg) {
+					return true
+				}
+			}
+		}
+		gui.parse(TmpData, `<font color="${LPurpleClr}">[FPS] Options - NPCs</font> | ` + title)
+		TmpData = []
+	}
+
+	function ClassNameFromID(name) {
+		for (let Class_data of Object.keys(mod.settings.ClassesData)) {
+			if (mod.settings.ClassesData[Class_data].name == name) {
+				return Class_data
+			}
+		}
+	}
+
+	// ~~~ * Command Functions * ~~~ \\
+
+	function Msg(msg) {
+		mod.command.message(`[FPS] ${msg}`.clr(LPurpleClr))
+	}
+
+	function HideSpecificPlayer(name) {
+		for (let i in spawnedPlayers) {
+			if (spawnedPlayers[i].name.toString().toLowerCase() === name.toLowerCase()) {
+				mod.send('S_DESPAWN_USER', 3, { gameId: spawnedPlayers[i].gameId, type: 1 });
+				hiddenUsers[spawnedPlayers[i].gameId] = spawnedPlayers[i];
+				return;
+			}
+		}
+	}
+
+	function RemoveEntry(name) {
+		var what, a = arguments, L = a.length, ax;
+		while (L > 1 && name.length) {
+			what = a[--L];
+			while ((ax = name.indexOf(what)) !== -1) { name.splice(ax, 1); }
+		}
+		return name;
+	}
+
+	function ShowSpecificPlayer(name) {
+		for (let i in hiddenUsers) {
+			if (hiddenUsers[i].name.toString().toLowerCase() === name.toLowerCase()) {
+				ModifyAppearance(hiddenUsers[i]);
+				mod.send('S_SPAWN_USER', 13, hiddenUsers[i]);
+				delete hiddenUsers[i];
+				return;
+			}
+		}
+	}
+
+	function HideAll() {
+		if (!mod.settings.OnlyParty) {
+			for (let i in spawnedPlayers) {
+				mod.send('S_DESPAWN_USER', 3, { gameId: spawnedPlayers[i].gameId, type: 1 });
+				hiddenUsers[spawnedPlayers[i].gameId] = spawnedPlayers[i];
+			}
+		}
+	}
+
+	function ShowAll() {
+		for (let i in hiddenUsers) {
+			ModifyAppearance(hiddenUsers[i]);
+			mod.send('S_SPAWN_USER', 13, hiddenUsers[i]);
+			delete hiddenUsers[i];
+		}
+	}
+
+	// ~~~ * Functions * ~~~ \\
+
+	function EqGid(xg) {
+		if (notcaaliproxy) return (xg === MyGameId)
+		return (xg.equals(MyGameId))
+	}
+
+	function ModifyAppearance(event) {
+		let modified = false;
+
+		if (mod.settings.ShowStyle) {
+			event.ShowStyle = false;
+			event.weaponEnchant = event.body = event.hand = event.feet = event.underwear = event.head = event.face = event.weapon = 0;
+			event.title = event.underwearDye = event.styleBackDye = event.styleHeadDye = event.styleFaceDye = event.styleBodyDye = event.showFace = event.styleHead = event.styleFace = event.styleBack = event.styleWeapon = event.styleBody = event.styleFootprint = 0;
+			event.icons = [];
+			if (event.mount) event.mount = 231;
+			modified = true;
+		}
+
+		if (mod.settings.Hideguildlogos) {
+			event.guildEmblem = '';
+			modified = true;
+		}
+
+		return modified;
+	}
+
+	function ModifySkillResult(event) {
+		let modified = false;
+
+		if (mod.settings.Hit_Me) {
+			event.skill = { npc: 0, type: 0, id: 0 };
+			modified = true;
+		}
+
+		if (mod.settings.Hit_Damage) {
+			event.damage = event.type = 0;
+			modified = true;
+		}
+
+		return modified;
+	}
+
+	function ClassID(m) {
+		return (m % 100)
+	}
+
+	function UpdateLoc(event) {
+		mod.send('S_USER_LOCATION', 5, { gameId: event.gameId, loc: event.loc, dest: event.loc, w: event.w, speed: 300, type: 7 });
+	}
+
+	// ~~~* Hook functions * ~~~ \\
+
+	function sLogin(event) {
+		MyGameId = event.gameId;
+		MyName = event.name;
+		laststate = undefined;
+		if (mod.settings.ProjDebug) {
+			mod.settings.ProjDebug = false
+			Msg('Detected Projectile debug on, ' + 'Made off'.clr(HPinkClr) + '.')
+		}
+		if (mod.settings.AbnDebug) {
+			mod.settings.AbnDebug = false
+			Msg('Detected Abnormalities debug on, ' + 'Made off'.clr(HPinkClr) + '.')
+		}
+	}
+
+	function sLoadTopo() {
+		spawnedPlayers = {};
+		hiddenUsers = {};
+		hiddenNpcs = {};
+		if (mod.settings.ProjDebug) {
+			mod.settings.ProjDebug = false
+			Msg('Detected Projectile debug on, ' + 'Made off'.clr(HPinkClr) + '.')
+		}
+		if (mod.settings.AbnDebug) {
+			mod.settings.AbnDebug = false
+			Msg('Detected Abnormalities debug on, ' + 'Made off'.clr(HPinkClr) + '.')
+		}
+	}
+
+	function sLeaveParty() {
+		partyMembers = []
+		if (mod.settings.RaidAutoChange) {
+			if (mod.settings.Mode !== 2 || laststate === undefined) return;
+			mod.command.exec(`fps mode ${laststate}`)
+			laststate = undefined;
+		}
+	}
+
+	function sMountVehicle(event) {
+		if (EqGid(event.gameId)) return;
+		spawnedPlayers[event.gameId].mount = event.id
+		if (hiddenUsers[event.gameId]) hiddenUsers[event.gameId].mount = event.id;
+		if (mod.settings.ShowStyle) {
+			event.id = 231
+			return true;
+		}
+	}
+
+	function sUnmountVehicle(event) {
+		if (EqGid(event.gameId)) return;
+		spawnedPlayers[event.gameId].mount = 0
+		if (hiddenUsers[event.gameId]) hiddenUsers[event.gameId].mount = 0;
+	}
+
+	function cSetVisibleRange(event) {
+		lastrange = event.range
+	}
+
+	function sStartCooltimeItem(event) {
+		if (event.cooldown == 0) return false
+	}
+
+	function sStartActionScript(event) {
+		if ([40000, 40001, 40002].includes(event.script)) return;
+		if (mod.settings.NoZoomingToNpc) return false
+	}
+
+	function sPcBangInventory(event) {
+		for (let item of event.inventory)
+			if ([152898, 184659, 201005, 201006, 201007, 201008, 201022, 855604].includes(item.item)) {
+				item.cooldown = 0;
+				return true;
+			}
+	}
+
+	function sLoadingScreenControlInfo() {
+		if (mod.settings.Mode >= 2) return false
+	}
+
+	function sGuildName(event) {
+		if (mod.settings.Hideguildlogos) {
+			event.guildEmblem = '';
+			return true;
+		}
+	}
+
+	function sApplyTitle(event) {
+		if (EqGid(event.gameId)) return;
+		if (mod.settings.ShowStyle) return false
+	}
+
+	function sImageData() {
+		if (mod.settings.Hideguildlogos) return false
+	}
+
+	function sRequestCityWarMapInfoDetail(event) {
+		if (mod.settings.Hideguildlogos) {
+			for (let lgd in event.guilds) {
+				if (typeof event.guilds[lgd].id !== 'undefined') {
+					event.guilds[lgd].emblem = '';
+					return true;
+				}
+			}
+		}
+	}
+
+	function sSpawnUser(event) {
+		spawnedPlayers[event.gameId] = event;
+		if (mod.settings.Mode === 3 || mod.settings.PlayersBlacklist.includes(event.name) || mod.settings.ClassesData[ClassID(event.templateId)].isHidden === true || (mod.settings.OnlyParty && !partyMembers.includes(event.name))) {
+			hiddenUsers[event.gameId] = event;
+			return false;
+		}
+		if (ModifyAppearance(event)) return true;
+	}
+
+	function sSpawnUserfn(event) {
+		if (ModifyAppearance(event)) return true;
+	}
+
+	function sDespawnUser(event) {
+		delete hiddenUsers[event.gameId];
+		delete spawnedPlayers[event.gameId];
+	}
+
+	function sUserLocation(event) {
+		if (spawnedPlayers[event.gameId]) spawnedPlayers[event.gameId].loc = event.dest;
+		if (hiddenUsers[event.gameId]) {
+			hiddenUsers[event.gameId].loc = event.dest;
+			return false;
+		}
+	}
+
+	function sUserMoveType() { return false; }
+
+	function sPartyMemberList(event) {
+		event.members.map((value) => { partyMembers.push(value.name) })
+		if (mod.settings.RaidAutoChange) {
+			if (event.members.length >= 18) {
+				if (mod.settings.Mode === 3) return;
+				laststate = mod.settings.Mode
+				mod.command.exec(`fps mode 2`)
+			} else {
+				if (mod.settings.Mode !== 2 || laststate === undefined) return;
+				mod.command.exec(`fps mode ${laststate}`)
+				laststate = undefined;
+			}
+		}
+	}
+
+	function sUserExternalChange(event) {
+		if (EqGid(event.gameId)) return;
+		if (mod.settings.ShowStyle) {
+			event.ShowStyle = false;
+			event.weaponEnchant = event.body = event.hand = event.feet = event.underwear = event.head = event.face = event.weapon = 0;
+			event.title = event.underwearDye = event.styleBackDye = event.styleHeadDye = event.styleFaceDye = event.styleBodyDye = event.showFace = event.styleHead = event.styleFace = event.styleBack = event.styleWeapon = event.styleBody = event.styleFootprint = 0;
+			return true;
+		}
+	}
+
+	function sUnicastTransformData(event) {
+		if (EqGid(event.gameId)) return;
+		if (mod.settings.ShowStyle) return false;
+		if (mod.settings.Hideguildlogos) {
+			event.guildLogo = '';
+			return true;
+		}
+	}
+
+	function sSpawnNpc(event) {
+		if (event.huntingZoneId === 1023) {
+			if (EqGid(event.owner)) {
+				if (!mod.settings.HideMySummons) return;
+				hiddenNpcs[event.gameId] = event;
+				return false;
+			}
+			if (!mod.settings.HideOthersSummons) return;
+			hiddenNpcs[event.gameId] = event;
+			return false;
+		}
+		if (mod.settings.HideBlacklistedNpcs) {
+			for (var i = 0; i < mod.settings.NpcsBlacklist.length; i++) {
+				if (event.huntingZoneId == mod.settings.NpcsBlacklist[i].zone && event.templateId == mod.settings.NpcsBlacklist[i].templateId) {
+					hiddenNpcs[event.gameId] = event;
+					return false;
+				}
+			}
+		}
+		if (mod.settings.HideFireworks && event.huntingZoneId === 1023 && (event.templateId === 60016000 || event.templateId === 80037000)) return false;
+		if (mod.settings.ShowStyle) {
+			event.repairable = false;
+			return true;
+		}
+	}
+
+	function sDespawnNpc(event) {
+		delete hiddenNpcs[event.gameId];
+		if (event.type !== 5) return;
+		event.type = 1;
+		return true;
+	}
+
+	function sFearMoveStage(event) {
+		if ((!EqGid(event.target) && mod.settings.Mode === 3) || hiddenUsers[event.target] || hiddenNpcs[event.target]) return false;
+	}
+
+	function sFearMoveEnd(event) {
+		if ((!EqGid(event.target) && mod.settings.Mode === 3) || hiddenUsers[event.target] || hiddenNpcs[event.target]) return false;
+	}
+
+	function sAbnormalityBegin(event) {
+		if (mod.settings.AbnDebug) {
+			if (EqGid(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'${MyName}'\x1b[0m:\x1b[33m \ID "\x1b[32m${event.id}\x1b[0m"`);
+			if (EqGid(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'${MyName}'\x1b[0m:\x1b[33m \ID "\x1b[32m${event.id}\x1b[0m"`);
+			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 (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;
+	}
+
+	function sAbnormalityRefresh(event) {
+		if (hiddenUsers[event.target]) return false;
+		if ((mod.settings.HideBlacklistedAbnormalities || mod.settings.HideAllAbnormalities) && (spawnedPlayers[[10306, 10316, 12001, 12003, 12120, 12130].includes(event.target)] || spawnedPlayers[[10306, 10316, 12001, 12003, 12120, 12130].includes(event.source)])) return false;
+	}
+
+	function sAbnormalityFail(event) {
+		if (event.id === 3000021) return false;
+	}
+
+	function sActionStage(event) {
+		if (EqGid(event.gameId) || !spawnedPlayers[event.gameId]) return;
+		if ((mod.settings.Mode >= 2) || hiddenUsers[event.gameId] || (mod.settings.HideBlacklistedSkills && mod.settings.ClassesData[ClassID(event.templateId)].CD_SkillsBlacklist.includes(Math.floor(event.skill.id / 10000).toString())) || mod.settings.ClassesData[ClassID(event.templateId)].CD_HideBlacklistedSkills) {
+			UpdateLoc(event);
+			return false;
+		}
+	}
+
+	function sStartUserProjectile(event) {
+		if (mod.settings.ProjDebug) {
+			if (EqGid(event.gameId)) console.log(`\x1b[2m[${new Date().toTimeString().slice(0, 8)}]\x1b[0m \x1b[31m->\x1b[0m \x1b[36mProjectile \x1b[4mStarted\x1b[0m \x1b[45mfrom\x1b[0m \x1b[37m'${MyName}'\x1b[0m:\x1b[33m \Skill_ID "\x1b[32m${event.skill.id}\x1b[0m"`);
+			if (spawnedPlayers[event.gameId]) console.log(`\x1b[2m[${new Date().toTimeString().slice(0, 8)}]\x1b[0m \x1b[31m->\x1b[0m \x1b[36mProjectile \x1b[4mStarted\x1b[0m \x1b[45mfrom\x1b[0m \x1b[37m'${spawnedPlayers[event.source].name}'\x1b[0m:\x1b[33m \Skill_ID "\x1b[32m${event.skill.id}\x1b[0m"`);
+		}
+		if (mod.settings.HideBlacklistedProjectiles && mod.settings.ProjectilesBlacklist.includes(event.skill.id)) return false;
+		if (!EqGid(event.gameId) && spawnedPlayers[event.gameId] && (hiddenUsers[event.gameId] || mod.settings.Mode > 0 || mod.settings.HideAllProjectiles)) return false;
+	}
+
+	function sSpawnProjectile(event) {
+		if (mod.settings.ProjDebug) {
+			if (EqGid(event.gameId)) console.log(`\x1b[2m[${new Date().toTimeString().slice(0, 8)}]\x1b[0m \x1b[31m->\x1b[0m \x1b[36mProjectile \x1b[4mSpawned\x1b[0m \x1b[45mfrom\x1b[0m \x1b[37m'${MyName}'\x1b[0m:\x1b[33m \Skill_ID "\x1b[32m${event.skill.id}\x1b[0m"`);
+			if (spawnedPlayers[event.gameId]) console.log(`\x1b[2m[${new Date().toTimeString().slice(0, 8)}]\x1b[0m \x1b[31m->\x1b[0m \x1b[36mProjectile \x1b[4mSpawned\x1b[0m \x1b[45mfrom\x1b[0m \x1b[37m'${spawnedPlayers[event.source].name}'\x1b[0m:\x1b[33m \Skill_ID "\x1b[32m${event.skill.id}\x1b[0m"`);
+		}
+		if (mod.settings.HideBlacklistedProjectiles && mod.settings.ProjectilesBlacklist.includes(event.skill.id)) return false;
+		if (!EqGid(event.gameId) && spawnedPlayers[event.gameId] && (hiddenUsers[event.gameId] || mod.settings.Mode > 0 || mod.settings.HideAllProjectiles)) return false;
+	}
+
+	function sEachSkillResult(event) {
+		if (EqGid(event.source) || EqGid(event.owner)) {
+			if (ModifySkillResult(event)) return true;
+		}
+		if (!EqGid(event.target) && mod.settings.Hit_Other && (spawnedPlayers[event.owner] || spawnedPlayers[event.source])) {
+			event.skill = { npc: 0, type: 0, id: 0 };
+			event.id = event.damage = event.type = event.noctEffect = event.crit = event.stackExplode = event.blocked = 0;
+			event.reaction.skill = 0;
+			return true;
+		}
+	}
+
+	function sSpawnDropItem(event) {
+		if (EqGid(event.source)) return;
+		if (mod.settings.HideBlacklistedDrop) {
+			if (DropBlacklist.includes(event.item)) return false;
+		}
+		if (mod.settings.ShowStyle) {
+			event.explode = 0;
+			return true;
+		}
+	}
+
+	function sFontSwapInfo() {
+		if (mod.settings.Hit_Damage) return false;
+	}
+
+	// ~~~ * Packet Hooks * ~~~ \\
+
+	mod.hook('S_LOGIN', 10, sLogin)
+	mod.hook('S_LOAD_TOPO', 'raw', sLoadTopo)
+	mod.hook('S_LEAVE_PARTY', 'raw', sLeaveParty)
+	mod.hook('S_MOUNT_VEHICLE', 2, sMountVehicle)
+	mod.hook('S_UNMOUNT_VEHICLE', 2, sUnmountVehicle)
+	mod.hook('C_SET_VISIBLE_RANGE', 1, cSetVisibleRange)
+	mod.hook('S_START_COOLTIME_ITEM', 1, sStartCooltimeItem)
+	mod.hook('S_START_ACTION_SCRIPT', 3, sStartActionScript)
+	mod.hook('S_PCBANGINVENTORY_DATALIST', 1, sPcBangInventory)
+	mod.hook('S_LOADING_SCREEN_CONTROL_INFO', 'raw', sLoadingScreenControlInfo)
+
+	mod.hook('S_GUILD_NAME', 1, sGuildName)
+	mod.hook('S_APPLY_TITLE', 2, sApplyTitle)
+	mod.hook('S_IMAGE_DATA', 'raw', sImageData)
+	mod.hook('S_REQUEST_CITY_WAR_MAP_INFO_DETAIL', 1, sRequestCityWarMapInfoDetail)
+
+	mod.hook('S_SPAWN_USER', 13, { order: 9999 }, sSpawnUser)
+	mod.hook('S_SPAWN_USER', 13, { order: 99999, filter: { fake: null } }, sSpawnUserfn)
+	mod.hook('S_DESPAWN_USER', 3, { order: 999 }, sDespawnUser)
+	mod.hook('S_USER_LOCATION', 5, sUserLocation)
+	mod.hook('S_USER_MOVETYPE', 'raw', sUserMoveType)
+	mod.hook('S_PARTY_MEMBER_LIST', 7, sPartyMemberList)
+	mod.hook('S_USER_EXTERNAL_CHANGE', 6, { order: 9999 }, sUserExternalChange)
+	mod.hook('S_UNICAST_TRANSFORM_DATA', 3, { order: 99999 }, sUnicastTransformData)
+
+	mod.hook('S_SPAWN_NPC', 9, sSpawnNpc)
+	mod.hook('S_DESPAWN_NPC', 3, sDespawnNpc)
+	mod.hook('S_FEARMOVE_STAGE', 1, sFearMoveStage)
+	mod.hook('S_FEARMOVE_END', 1, sFearMoveEnd)
+
+	mod.hook('S_ABNORMALITY_BEGIN', 3, { order: 999 }, sAbnormalityBegin)
+	mod.hook('S_ABNORMALITY_REFRESH', 1, { order: 999 }, sAbnormalityRefresh)
+	mod.hook('S_ABNORMALITY_FAIL', 1, sAbnormalityFail)
+
+	mod.hook('S_ACTION_STAGE', 8, { order: 999 }, sActionStage)
+	mod.hook('S_SPAWN_PROJECTILE', 5, { order: 999 }, sSpawnProjectile)
+	mod.hook('S_START_USER_PROJECTILE', 9, { order: 999 }, sStartUserProjectile)
+	mod.hook('S_EACH_SKILL_RESULT', 12, { order: 999 }, sEachSkillResult)
+	mod.hook('S_SPAWN_DROPITEM', 6, sSpawnDropItem)
+	mod.hook('S_FONT_SWAP_INFO', 'raw', sFontSwapInfo)
+
+
+	// ~~~ * Commands * ~~~ \\
+
+	mod.command.add('0', () => mod.command.exec('fps mode 0'))
+	mod.command.add('1', () => mod.command.exec('fps mode 1'))
+	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) => {
+		switch (key) {
+			case "g":
+			case "gui":
+				GuiHandler(arg, arg2);
+				break
+			case "0":
+				mod.command.exec(`fps mode 0`);
+				break
+			case "1":
+				mod.command.exec(`fps mode 1`);
+				break
+			case "2":
+				mod.command.exec(`fps mode 2`)
+				break
+			case "3":
+				mod.command.exec(`fps mode 3`);
+				break
+			case "mode":
+			case "state":
+				switch (arg) {
+					case "0":
+					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.HideBlacklistedAbnormalities = true;
+						mod.settings.HideAllProjectiles = true;
+						mod.settings.HideBlacklistedProjectiles = true;
+						mod.settings.Hit_Other = true;
+
+						mod.settings.OnlyParty = false;
+
+						Msg(`Mode 3.`.clr(GoldClr));
+						break
+					default:
+						Msg(`Invalid" ${arg}".`.clr(GrayClr));
+						Msg(`Modes: ` + `[0, 1, 2, 3]`.clr(PinkClr) + '.');
+						break
+				}
+				break
+			case "hide":
+				if (typeof arg === "string" && arg !== null) {
+					if (mod.settings.PlayersBlacklist.includes(arg)) {
+						Msg(`Player "${arg}"` + ` Already hidden`.clr(RedClr) + '.');
+						return;
+					} else
+						if ((mod.settings.ClassesNames.includes(arg) && !mod.settings.ClassesBlacklist.includes(arg)) || (mod.settings.RolesNames.includes(arg) && !mod.settings.RolesBlacklist.includes(arg))) {
+							for (let i in mod.settings.ClassesData) {
+								if ((mod.settings.ClassesData[i].name === arg || mod.settings.ClassesData[i].role.includes(arg)) && mod.settings.ClassesData[i].isHidden !== true) {
+									mod.settings.ClassesData[i].isHidden = true;
+									if (mod.settings.ClassesData[i].name === arg) mod.settings.ClassesBlacklist.push(arg);
+									if (mod.settings.ClassesData[i].role.includes(arg)) mod.settings.RolesBlacklist.push(arg);
+									let classtohide = mod.settings.ClassesData[i].model;
+									for (let i in spawnedPlayers) {
+										if (ClassID(spawnedPlayers[i].templateId) === classtohide) HideSpecificPlayer(spawnedPlayers[i].name);
+									}
+								}
+							}
+							Msg(`Class/Role ${arg}` + ` Hidden`.clr(GreenClr) + '.');
+							return;
+						} else if (mod.settings.ClassesBlacklist.includes(arg) || mod.settings.RolesBlacklist.includes(arg)) {
+							Msg(`Class/Role "${arg}"` + ` Already hidden`.clr(RedClr) + '.');
+							return;
+						}
+					Msg(`Player "${arg}"` + ` Hidden`.clr(GreenClr) + '.');
+					mod.settings.PlayersBlacklist.push(arg);
+					HideSpecificPlayer(arg);
+				} else
+					Msg(`Invalid ${arg2}.`.clr(GrayClr));
+				break
+			case "show":
+				if (typeof arg === "string" && arg !== null) {
+					if (mod.settings.PlayersBlacklist.includes(arg)) {
+						ShowSpecificPlayer(arg);
+						RemoveEntry(mod.settings.PlayersBlacklist, arg);
+						Msg(`Player "${arg}"` + ` Shown`.clr(RedClr) + '.');
+						return;
+					}
+					if ((mod.settings.ClassesNames.includes(arg) && mod.settings.ClassesBlacklist.includes(arg)) || (mod.settings.RolesBlacklist.includes(arg) && mod.settings.RolesNames.includes(arg))) {
+						for (let i in mod.settings.ClassesData) {
+							if (mod.settings.ClassesData[i].name === arg || mod.settings.ClassesData[i].role.includes(arg)) {
+								if (mod.settings.ClassesData[i].name === arg) RemoveEntry(mod.settings.ClassesBlacklist, arg);
+								if (mod.settings.ClassesData[i].role.includes(arg)) RemoveEntry(mod.settings.RolesBlacklist, arg);
+								mod.settings.ClassesData[i].isHidden = false;
+								let classToShow = mod.settings.ClassesData[i].model;
+								for (let i in hiddenUsers) {
+									if (ClassID(hiddenUsers[i].templateId) === classToShow) ShowSpecificPlayer(hiddenUsers[i].name);
+								}
+							}
+						}
+						Msg(`Class "${arg}"` + ` Shown`.clr(RedClr) + '.');
+					} else if (!mod.settings.ClassesBlacklist.includes(arg) || !mod.settings.RolesBlacklist.includes(arg)) {
+						Msg(`Class/Role "${arg}"` + ` Already shown`.clr(RedClr) + '.');
+					} else if (!mod.settings.PlayersBlacklist.includes(arg)) {
+						Msg(`Player "${arg}"` + ` Already shown`.clr(RedClr) + '.');
+					}
+				}
+				break
+			case "party":
+				if (mod.settings.Mode === 3) return Msg(`You've to disable mode 3 first.`.clr(RedClr));
+				mod.settings.OnlyParty = !mod.settings.OnlyParty
+				if (mod.settings.OnlyParty) {
+					for (let i in spawnedPlayers) {
+						if (!partyMembers.includes(spawnedPlayers[i].name)) {
+							mod.send('S_DESPAWN_USER', 3, { gameId: spawnedPlayers[i].gameId, type: 1 })
+							hiddenUsers[spawnedPlayers[i].gameId] = spawnedPlayers[i];
+						}
+					}
+				} else {
+					ShowAll()
+				}
+				Msg(`Everyone but party ${mod.settings.OnlyParty ? 'Hidden'.clr(GreenClr) : 'Shown'.clr(RedClr)}.`);
+				break
+			case "raid":
+				mod.settings.RaidAutoChange = !mod.settings.RaidAutoChange
+				Msg(`Raid auto-state ${mod.settings.RaidAutoChange ? 'Enabled'.clr(GreenClr) : 'Disabled'.clr(RedClr)}.`);
+				break
+			case "list":
+				Msg(`Hidden players: ${mod.settings.PlayersBlacklist}.`.clr(PinkClr));
+				Msg(`Hidden classes: ${mod.settings.ClassesBlacklist}.`.clr(PinkClr));
+				Msg(`Hidden roles: ${mod.settings.RolesBlacklist}.`.clr(PinkClr));
+				break
+			case "summons":
+			case "sums":
+				switch (arg) {
+					case "me":
+						mod.settings.HideMySummons = !mod.settings.HideMySummons;
+						Msg(`Own summoned NPCs ${mod.settings.HideMySummons ? 'Hidden'.clr(RedClr) : 'Shown'.clr(GreenClr)}.`);
+						break
+					default:
+						mod.settings.HideOthersSummons = !mod.settings.HideOthersSummons;
+						Msg(`Others summoned NPCs ${mod.settings.HideOthersSummons ? 'Hidden'.clr(GreenClr) : 'Shown'.clr(RedClr)}.`);
+						break
+				}
+				break
+			case "skills":
+			case "skill":
+				switch (arg) {
+					case "blacklist":
+						mod.settings.HideBlacklistedSkills = !mod.settings.HideBlacklistedSkills;
+						Msg(`Blacklisted skills ${mod.settings.HideBlacklistedSkills ? 'Hidden'.clr(GreenClr) : 'Shown'.clr(RedClr)}.`);
+						break
+					case "class":
+						if (mod.settings.ClassesNames.includes(arg2)) {
+							for (let i in mod.settings.ClassesData) {
+								if (mod.settings.ClassesData[i].name === arg2) {
+									if (arg3 != null && !isNaN(arg3) && arg3 < 50) {
+										if (mod.settings.ClassesData[i].CD_SkillsBlacklist.includes(arg3)) {
+											let index = mod.settings.ClassesData[i].CD_SkillsBlacklist.indexOf(arg3)
+											if (index !== -1) {
+												mod.settings.ClassesData[i].CD_SkillsBlacklist.splice(index, 1)
+												Msg(`Skill ID '${arg3}'` + ` Shown`.clr(RedClr) + ` for class '${arg2}'.`)
+											}
+											return
+										} else {
+											mod.settings.ClassesData[i].CD_SkillsBlacklist.push(arg3)
+											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)}.`);
+										return;
+									}
+								}
+							}
+						} else
+							Msg(`Class ${arg2} not found.`.clr(RedClr));
+						break
+				}
+				break
+			case "npcs":
+			case "npc":
+				if (arg == 'hide') {
+					let found = mod.settings.NpcsBlacklist.some((s) => {
+						return s.zone === arg2 && s.templateId === arg3;
+					});
+					if (found) {
+						Msg(`NPC HntZone '${arg2}', TmpId '${arg3}'` + ` Removed from the blacklist`.clr(RedClr) + '.')
+						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 })
+					}
+					return
+				} else
+					mod.settings.HideBlacklistedNpcs = !mod.settings.HideBlacklistedNpcs;
+				Msg(`Blacklisted NPCs ${mod.settings.HideBlacklistedNpcs ? 'Hidden'.clr(GreenClr) : 'Shown'.clr(RedClr)}.`);
+				break
+			case "hit":
+				switch (arg) {
+					case "me":
+						mod.settings.Hit_Me = !mod.settings.Hit_Me;
+						Msg(`Own hits effect ${mod.settings.Hit_Me ? 'Hidden'.clr(GreenClr) : 'Shown'.clr(RedClr)}.`);
+						break
+					case "other":
+						mod.settings.Hit_Other = !mod.settings.Hit_Other;
+						Msg(`Players hit effect ${mod.settings.Hit_Other ? 'Hidden'.clr(GreenClr) : 'Shown'.clr(RedClr)}.`);
+						break
+					case "damage":
+						mod.settings.Hit_Damage = !mod.settings.Hit_Damage;
+						Msg(`Damage numbers ${mod.settings.Hit_Damage ? 'Hidden'.clr(GreenClr) : 'Shown'.clr(RedClr)}.`);
+						break
+					default:
+						Msg(`Invalid &#40;hit&#41; "${arg}".`.clr(GrayClr));
+						break;
+				}
+				break
+			case "fireworks":
+			case "firework":
+				mod.settings.HideFireworks = !mod.settings.HideFireworks;
+				Msg(`Fireworks ${mod.settings.HideFireworks ? 'Hidden'.clr(GreenClr) : 'Shown'.clr(RedClr)}.`);
+				break
+			case "abn":
+			case "effects":
+			case "abnormal":
+			case "abnormalities":
+				switch (arg) {
+					case "all":
+						mod.settings.HideAllAbnormalities = !mod.settings.HideAllAbnormalities;
+						Msg(`All Abnormalities ${mod.settings.HideAllAbnormalities ? 'Hidden'.clr(GreenClr) : 'Shown'.clr(RedClr)}.`);
+						break
+					case "blacklist":
+						if (!arg2 || !arg3) {
+							mod.settings.HideBlacklistedAbnormalities = !mod.settings.HideBlacklistedAbnormalities;
+							Msg(`Blacklisted Abnormalities ${mod.settings.HideBlacklistedAbnormalities ? 'Hidden'.clr(GreenClr) : 'Shown'.clr(RedClr)}.`);
+							break
+						} else if (arg2 && arg3) {
+							arg3 = Number(arg3);
+							if (!mod.settings.AbnormalitiesBlacklist.includes(arg3)) {
+								if (arg2 == 'add') {
+									mod.settings.AbnormalitiesBlacklist.push(arg3)
+									Msg(`Blacklisted Abnormalities` + ` added "${arg3}"`.clr(GreenClr) + '.')
+									return
+								} else if (arg2 == 'remv') {
+									Msg(`Blacklisted Abnormalities` + ` can't remove "${arg3}" as it's not there`.clr(GrayClr) + '.')
+									return
+								}
+							} else if (mod.settings.AbnormalitiesBlacklist.includes(arg3)) {
+								if (arg2 == 'add') {
+									Msg(`Blacklisted Abnormalities` + ` can't add "${arg3}" as it's already there`.clr(GrayClr) + '.')
+									return
+								} else if (arg2 == 'remv') {
+									let index = mod.settings.AbnormalitiesBlacklist.indexOf(arg3)
+									if (index !== -1) {
+										mod.settings.AbnormalitiesBlacklist.splice(index, 1)
+										Msg(`Blacklisted Abnormalities` + ` removed "${arg3}"`.clr(RedClr) + '.')
+										return
+									}
+								}
+							} else return Msg(`Invalid &#40;abnormalities Blacklist&#41; "${arg}".`.clr(GrayClr));
+						}
+						break
+					case "log":
+					case "debug":
+						mod.settings.AbnDebug = !mod.settings.AbnDebug
+						Msg(`Abnormalities debug ${mod.settings.AbnDebug ? 'started'.clr(GreenClr) : 'stopped'.clr(RedClr)}, check your console for details.`)
+						break;
+					default:
+						Msg(`Invalid &#40;abnormalities&#41; "${arg}".`.clr(GrayClr));
+						break;
+				}
+				break
+			case "guildlogo":
+				if (ChangeOnCd) return Msg(`Try again in 4 seconds.`.clr(PinkClr));
+				mod.settings.Hideguildlogos = !mod.settings.Hideguildlogos;
+				mod.send('C_SET_VISIBLE_RANGE', 1, { range: 0 })
+				setTimeout(() => { mod.send('C_SET_VISIBLE_RANGE', 1, { range: lastrange }) }, 1500);
+				ChangeOnCd = true
+				setTimeout(() => { ChangeOnCd = false }, 4000);
+				Msg(`Guild Logos ${mod.settings.Hideguildlogos ? 'Hidden'.clr(GreenClr) : 'Shown'.clr(RedClr)}.`);
+				break
+			case "costume":
+			case "style":
+				if (ChangeOnCd) return Msg(`Try again in 4 seconds.`.clr(PinkClr));
+				mod.settings.ShowStyle = !mod.settings.ShowStyle;
+				mod.send('C_SET_VISIBLE_RANGE', 1, { range: 0 })
+				setTimeout(() => { mod.send('C_SET_VISIBLE_RANGE', 1, { range: lastrange }) }, 1500);
+				ChangeOnCd = true
+				setTimeout(() => { ChangeOnCd = false }, 4000);
+				Msg(`Style of NPCs & others ${mod.settings.ShowStyle ? 'Hidden'.clr(GreenClr) : 'Shown'.clr(RedClr)}.`);
+				break
+			case "proj":
+			case "projectile":
+				switch (arg) {
+					case "all":
+						mod.settings.HideAllProjectiles = !mod.settings.HideAllProjectiles;
+						Msg(`Projectiles ${mod.settings.HideAllProjectiles ? 'Hidden'.clr(GreenClr) : 'Shown'.clr(RedClr)}.`);
+						break
+					case "blacklist":
+						if (!arg2 || !arg3) {
+							mod.settings.HideBlacklistedProjectiles = !mod.settings.HideBlacklistedProjectiles;
+							Msg(`Blacklisted projectile ${mod.settings.HideBlacklistedProjectiles ? 'Hidden'.clr(GreenClr) : 'Shown'.clr(RedClr)}.`);
+							break
+						} else if (arg2 && arg3) {
+							arg3 = Number(arg3);
+							if (!mod.settings.ProjectilesBlacklist.includes(arg3)) {
+								if (arg2 == 'add') {
+									mod.settings.ProjectilesBlacklist.push(arg3)
+									Msg(`Blacklisted projectile` + ` added "${arg3}"`.clr(GreenClr) + '.')
+									return
+								} else if (arg2 == 'remv') {
+									Msg(`Blacklisted projectile` + ` can't remove "${arg3}" as it's not there`.clr(GrayClr) + '.')
+									return
+								}
+							} else if (mod.settings.ProjectilesBlacklist.includes(arg3)) {
+								if (arg2 == 'add') {
+									Msg(`Blacklisted projectile` + ` can't add "${arg3}" as it's already there`.clr(GrayClr) + '.')
+									return
+								} else if (arg2 == 'remv') {
+									let index = mod.settings.ProjectilesBlacklist.indexOf(arg3)
+									if (index !== -1) {
+										mod.settings.ProjectilesBlacklist.splice(index, 1)
+										Msg(`Blacklisted projectile` + ` removed "${arg3}"`.clr(RedClr) + '.')
+										return
+									}
+								}
+							} else return Msg(`Invalid &#40;projectile Blacklist&#41; "${arg}".`.clr(GrayClr));
+						}
+						break;
+					case "log":
+					case "debug":
+						mod.settings.ProjDebug = !mod.settings.ProjDebug
+						Msg(`Projectile debug ${mod.settings.ProjDebug ? 'started'.clr(GreenClr) : 'stopped'.clr(RedClr)}, check your console for details.`)
+						break;
+					default:
+						Msg(`Invalid &#40;projectile&#41; "${arg}".`.clr(GrayClr));
+						break;
+				}
+				break
+			case "quicklink":
+				switch (arg) {
+					case "parcel":
+						mod.send('C_REQUEST_CONTRACT', 1, { type: 8 });
+						break;
+					case "talents":
+						mod.send('S_REQUEST_CONTRACT', 1, { type: 77 });
+						break;
+					case "broker":
+						mod.send('S_NPC_MENU_SELECT', 1, { type: 28 });
+						break;
+					case "dressingroom":
+						mod.send('C_REQUEST_CONTRACT', 1, { type: 76 });
+						break;
+					case "hatrestyle":
+						mod.send('C_REQUEST_CONTRACT', 1, { type: 90 });
+						break;
+					case "lobby":
+						mod.send('C_RETURN_TO_LOBBY', 1, {});
+						break;
+					case "exit":
+						mod.send('C_EXIT', 1, {});
+						break;
+					case "drop":
+						mod.send('C_LEAVE_PARTY', 1, {});
+						break;
+					case "disband":
+						mod.send('C_DISMISS_PARTY', 1, {});
+						break;
+					case "reset":
+						mod.send('C_RESET_ALL_DUNGEON', 1, {});
+						break;
+					case "searchengine":
+						mod.send('S_SHOW_AWESOMIUMWEB_SHOP', 1, { link: 'https://duckduckgo.com/' });
+						break;
+					default:
+						Msg(`Invalid &#40;quicklink&#41; "${arg}".`.clr(GrayClr));
+						break;
+				}
+				break;
+			case "npczoom":
+				mod.settings.NoZoomingToNpc = !mod.settings.NoZoomingToNpc;
+				Msg(`Npc zoom-ins ${mod.settings.NoZoomingToNpc ? 'Disabled'.clr(GreenClr) : 'ON'.clr(RedClr)}.`);
+				break
+			case "dropitem":
+				mod.settings.HideBlacklistedDrop = !mod.settings.HideBlacklistedDrop
+				Msg(`Drop blacklist ${mod.settings.HideBlacklistedDrop ? 'Hidden'.clr(GreenClr) : 'Shown'.clr(RedClr)}.`);
+				break
+			case "help":
+				mod.command.exec(`fps gui help`)
+				break
+			default:
+				Msg('Unknown command, check command list.'.clr(RedClr));
+				mod.command.exec(`fps gui help`)
+				break
+		}
+	})
+}

+ 101 - 221
lib/setting_migration.js

@@ -1,230 +1,110 @@
 "use strict"
 "use strict"
 
 
 const DefaultSettings = {
 const DefaultSettings = {
-    "mode": 0,
-    "party": false,
-    "hideFireworks": false,
-    "hideAllAbnormies": true,
-    "hideAllSummons": false,
-    "keepMySummons": true,
-    "blacklistNpcs": false,
-    "blacklistSkills": false,
-    "blacklistAbnormies": false,
-    "hideProjectiles": false,
-    "hiddenAbnormies": [],
-    "blacklistProjectiles": false,
-    "hiddenProjectiles": [270120, 270220, 270320, 270420, 270520, 270620, 270720, 270820, 270920, 271020],
-    "hitMe": false,
-    "hitOther": true,
-    "hitDamage": false,
-    "showStyle": false,
-    "blacklistedNames": [
-        "hugedong"
-    ],
-    "hiddenNpcs": [],
-    "classNames": [
-        "warrior",
-        "lancer",
-        "slayer",
-        "berserker",
-        "sorcerer",
-        "archer",
-        "priest",
-        "mystic",
-        "reaper",
-        "gunner",
-        "brawler",
-        "ninja",
-        "valkyrie"
-    ],
-    "roleNames": [
-        "dps",
-        "healer",
-        "tank",
-        "ranged"
-    ],
-    "hiddenClasses": [],
-    "hiddenRoles": [],
-    "classes": {
-        "1": {
-            "name": "warrior",
-            "model": 1,
-            "blockedSkills": [],
-            "blockingSkills": false,
-            "role": [
-                "dps"
-            ],
-            "isHidden": false
-        },
-        "2": {
-            "name": "lancer",
-            "model": 2,
-            "blockedSkills": [],
-            "blockingSkills": false,
-            "role": [
-                "tank"
-            ],
-            "isHidden": false
-        },
-        "3": {
-            "name": "slayer",
-            "model": 3,
-            "blockedSkills": [],
-            "blockingSkills": false,
-            "role": [
-                "dps"
-            ],
-            "isHidden": false
-        },
-        "4": {
-            "name": "berserker",
-            "model": 4,
-            "blockedSkills": [],
-            "blockingSkills": false,
-            "role": [
-                "dps"
-            ],
-            "isHidden": false
-        },
-        "5": {
-            "name": "sorcerer",
-            "model": 5,
-            "blockedSkills": [],
-            "blockingSkills": false,
-            "role": [
-                "dps",
-                "ranged"
-            ],
-            "isHidden": false
-        },
-        "6": {
-            "name": "archer",
-            "model": 6,
-            "blockedSkills": [],
-            "blockingSkills": false,
-            "role": [
-                "dps",
-                "ranged"
-            ],
-            "isHidden": false
-        },
-        "7": {
-            "name": "priest",
-            "model": 7,
-            "blockedSkills": [],
-            "blockingSkills": false,
-            "role": [
-                "healer"
-            ],
-            "isHidden": false
-        },
-        "8": {
-            "name": "mystic",
-            "model": 8,
-            "blockedSkills": [],
-            "blockingSkills": false,
-            "role": [
-                "healer"
-            ],
-            "isHidden": false
-        },
-        "9": {
-            "name": "reaper",
-            "model": 9,
-            "blockedSkills": [],
-            "blockingSkills": false,
-            "role": [
-                "dps"
-            ],
-            "isHidden": false
-        },
-        "10": {
-            "name": "gunner",
-            "model": 10,
-            "blockedSkills": [],
-            "blockingSkills": false,
-            "role": [
-                "dps",
-                "ranged"
-            ],
-            "isHidden": false
-        },
-        "11": {
-            "name": "brawler",
-            "model": 11,
-            "blockedSkills": [],
-            "blockingSkills": false,
-            "role": [
-                "tank"
-            ],
-            "isHidden": false
-        },
-        "12": {
-            "name": "ninja",
-            "model": 12,
-            "blockedSkills": [],
-            "blockingSkills": false,
-            "role": [
-                "dps"
-            ],
-            "isHidden": false
-        },
-        "13": {
-            "name": "valkyrie",
-            "model": 13,
-            "blockedSkills": [],
-            "blockingSkills": false,
-            "role": [
-                "dps"
-            ],
-            "isHidden": false
-        }
-    }
-}
+	_version: 2,
 
 
-function MigrateSettings(from_ver, to_ver, settings) {
-    if (from_ver === undefined) {
-        // Migrate legacy config file
-        console.log(`FPS-UTILS - FPSUTILS has been updated, please check the readme for more info`)
-        return Object.assign(Object.assign({}, DefaultSettings), settings);
-    } else if (from_ver === null) {
-        // No config file exists, use default settings
-        return DefaultSettings;
-    } else {
-        // Migrate from older version (using the new system) to latest one
-        if (from_ver + 1 < to_ver) {
-            // Recursively upgrade in one-version steps
-            console.log(`FPS-UTILS - FPSUTILS has been updated, please check the readme for more info`)
-            settings = MigrateSettings(from_ver, from_ver + 1, settings);
-            return MigrateSettings(from_ver + 1, to_ver, settings);
-        }
+	Mode: 0,
+
+	OnlyParty: false,
+	RaidAutoChange: false,
+
+	ShowStyle: false,
+	NoZoomingToNpc: false,
+
+	ProjDebug: false,
+	AbnDebug: false,
+
+	Hit_Me: false,
+	Hit_Other: false,
+	Hit_Damage: false,
+
+	HideFireworks: true,
+	Hideguildlogos: false,
 
 
-        // If we reach this point it's guaranteed that from_ver === to_ver - 1, so we can implement
-        // a switch for each version step that upgrades to the next version. This enables us to
-        // upgrade from any version to the latest version without additional effort!
-        switch (to_ver) {
-            /*case 2:
-                // Upgrade from v1 to v2
-                // EXAMPLE: in v1, colors were specified like "reset_font_color": "green", but we support arbitrary hex colors now!
-                switch (settings.reset_font_color) {
-                    case "red": settings.reset_font_color = "#FF0000"; break;
-                    case "green": settings.reset_font_color = "#00FF00"; break;
-                    case "blue": settings.reset_font_color = "#0000FF"; break;
-                    default: settings.reset_font_color = DefaultSettings.reset_font_color; break;
-                }
-                break;
-            case 3:
-                // upgrade from v2 to v3
-                // EXAMPLE: setting "random_color" was removed (note that it's also absent from DefaultSettings, which should always correspond to the latest version!)
-                delete settings.random_color;
-                break;
-            // ...
-            // TODO: whenever you increment your settings version, add an entry to the switch here.
-            // ...*/
-        }
+	HideMySummons: false,
+	HideOthersSummons: false,
 
 
-        return settings;
-    }
+	HideAllAbnormalities: false,
+	HideAllProjectiles: false,
+
+	HideBlacklistedAbnormalities: true,
+	HideBlacklistedProjectiles: true,
+	HideBlacklistedNpcs: false,
+	HideBlacklistedSkills: false,
+	HideBlacklistedDrop: false,
+
+	AbnormalitiesBlacklist: [
+		201, 202, 902, 903, 908, 910, 911, 912, 913, 916, 917, 920, 921, 922, 1130, 1131, 1133, 1461, 1462, 1490, 1491, 1495, 1510, 1511, 1512, 1610, 1630, 1800, 2040, 2041, 2042, 2057,
+		2058, 2059, 2060, 2066, 2067, 2068, 2081, 2755, 2756, 2757, 2758, 2759, 2760, 2761, 4401, 4600, 4610, 4611, 4612, 4613, 4614, 4615, 4616, 4950, 5060, 6005, 6006, 6007, 6009,
+		6016, 10400, 10401, 10402, 10403, 10404, 10405, 10501, 10502, 10503, 10504, 10505, 10506, 10510, 10511, 10512, 10513, 10514, 10515, 10516, 10520, 10521, 10522, 10523,
+		10524, 10525, 10600, 10601, 10602, 10603, 10604, 10605, 10606, 10610, 10611, 10612, 10613, 10614, 10615, 10616, 10620, 10621, 10622, 10623, 10624, 10625, 10625, 10700,
+		10701, 10702, 10703, 10704, 10705, 10706, 10710, 10711, 10712, 10713, 10714, 10715, 10716, 10720, 10721, 10722, 10723, 10724, 10725, 10800, 10801, 10802, 10803, 10804,
+		10805, 10806, 12230, 12240, 27050, 40175, 40176, 48732, 48733, 48734, 48735, 48736, 48737, 48738, 48739, 60005, 60018, 60026, 70234, 70235, 70236, 70237, 70238, 70462,
+		88611, 88612, 100200, 100201, 100202, 100203, 100294, 100295, 100296, 100297, 100298, 100299, 100800, 100801, 101801, 101900, 102600, 103100, 103102, 103104, 103130,
+		103131, 200200, 200201, 200202, 200230, 200231, 200232, 200500, 200900, 200901, 200930, 200931, 201200, 201300, 201301, 201302, 201303, 201304, 201305, 201700, 201807,
+		201808, 201811, 201812, 201830, 201831, 300300, 300301, 400100, 400101, 400102, 400103, 400104, 400105, 401705, 401706, 401710, 401711, 401721, 401722, 401723, 401724,
+		401727, 401728, 457017, 457052, 476615, 476616, 476617, 476618, 500200, 500500, 500600, 500601, 500602, 500700, 500701, 500702, 500703, 500704, 500705, 500706, 500707,
+		500720, 500721, 500722, 500723, 500724, 500725, 500726, 500727, 501000, 501001, 501002, 501003, 501004, 501005, 501006, 501020, 501021, 501022, 501023, 501024, 501025,
+		501026, 501400, 501402, 600900, 600901, 600902, 600903, 600904, 600905, 600906, 600907, 600908, 600920, 600921, 600922, 600923, 600924, 600925, 600926, 600927, 600928,
+		601450, 620000, 620001, 621000, 622001, 622002, 700200, 700201, 700202, 700203, 700230, 700231, 700232, 700233, 700300, 700400, 700401, 700402, 700403, 700404, 700405,
+		700406, 700407, 700408, 700409, 700600, 700601, 700602, 700603, 700630, 700631, 700700, 700701, 700730, 700731, 701001, 701002, 701003, 701004, 701005, 701006, 701007,
+		701008, 701009, 701010, 701011, 701012, 701511, 701540, 701541, 701542, 701543, 701544, 701545, 701546, 701547, 701548, 701549, 701550, 701551, 701560, 701561, 701562,
+		701563, 701564, 701565, 701566, 701567, 701568, 701569, 701570, 701571, 701604, 701605, 701606, 701607, 701700, 701701, 701702, 701703, 701704, 701705, 701706, 701707,
+		701708, 701720, 701721, 701722, 701723, 701724, 701725, 701726, 701727, 701728, 701800, 701801, 701802, 701803, 701804, 701805, 701806, 701807, 701808, 701820, 701821,
+		701822, 701823, 701824, 701825, 701826, 701827, 701828, 701900, 702000, 702001, 702002, 702003, 702005, 702012, 757002, 757003, 757004, 757005, 757006, 757007, 757008,
+		757009, 757016, 757017, 757018, 757029, 757031, 757032, 757033, 757049, 757052, 757054, 760009, 760015, 760031, 760032, 776021, 776022, 776023, 776024, 776025, 776026,
+		776028, 776029, 800100, 800101, 800102, 800103, 800104, 800105, 800106, 800107, 800108, 800300, 800301, 800302, 800303, 800304, 801000, 801001, 801100, 801101, 801400,
+		801401, 806020, 806021, 806022, 806023, 806028, 830004, 905434, 905932, 999996, 4510004, 4510005, 4510006, 4510007, 4510008, 4510009, 4510010, 4510011, 4510012, 4510013,
+		4510014, 4510015, 5000000, 5000003, 5020003, 5020006, 5020007, 5020008, 5020010, 5020011, 5030004, 5030005, 5690001, 7691000, 7691007, 9691000, 9691007, 9691011, 10152050,
+		10152096, 10154030, 10154054, 10155550, 14400002, 14400003, 44300066, 44300073, 44300078, 44300079, 47630300, 47650400, 47660100, 47660200, 47660300, 47660400, 47660500,
+		47660600, 47660700, 47660800, 47660900, 47662300, 47662800, 47680400, 74300078, 74300081, 75000016, 76600024, 77600017, 77702400, 77703433, 77703437, 78200379, 78200379,
+		78200383, 80401500, 81121101, 81121102, 81121103, 81121104, 81121105, 81121201, 81121202, 81121203, 81121204, 81121205, 90341010, 90442101, 90442103, 90442107, 90442211,
+		91600019, 93503301, 93503302, 93503303, 93503401, 93503402, 98200379, 98200383, 98850023, 98850024, 98850027, 98850030, 98850035, 98850036, 99000900, 99000910, 99000920,
+		99000930, 99000940, 99000950, 99000960, 99000970, 99001000, 99001010, 99001020, 99001030, 99001040, 99001050, 99001060, 99001070, 99001200, 99001210, 99001220, 99001230,
+		99001240, 99001250, 99001260, 99001270, 99001300, 99001301, 99001302, 99001303, 99001310, 99001320, 99001330, 99001340, 99001350, 99001360, 99001370, 99001400, 99001410,
+		99001420, 99001430, 99001440, 99001450, 99001460, 99001470, 99001700, 99001710, 99001720, 99001730, 99001740, 99001750, 99001760, 99001770, 99002300, 99002310, 99002320,
+		99002330, 99002340, 99002350, 99002360, 99002370, 99003200, 99003600, 99003700, 99020000, 99020010, 99020020, 99070011, 99070021, 99070023, 99070025, 99070027, 99070028,
+		99070029, 99070030, 99070031, 99070032, 999001001, 999001002, 999001003, 999001004, 999001005, 999001006, 999001007, 999001008, 999001011, 999001018, 999001019, 999001020, 999001021, 999009820, 999010000
+	],
+	ProjectilesBlacklist: [270120, 270220, 270320, 270420, 270520, 270620, 270720, 270820, 270920, 271020],
+	PlayersBlacklist: [],
+	ClassesBlacklist: [],
+	RolesBlacklist: [],
+	NpcsBlacklist: [],
+	DropBlacklist: [8000, 8001, 8002, 8005, 8008, 8009, 8010, 8011, 8012, 8013, 8014, 8015, 8016, 8017, 8018, 8019, 8020, 8021, 8022, 8023],
+
+	ClassesNames: ["warrior", "lancer", "slayer", "berserker", "sorcerer", "archer", "priest", "mystic", "reaper", "gunner", "brawler", "ninja", "valkyrie"],
+	RolesNames: ["dps", "healer", "tank", "ranged"],
+
+	ClassesData: {
+		1: { name: "warrior", model: 1, CD_SkillsBlacklist: [], CD_HideBlacklistedSkills: false, role: ["dps"], isHidden: false },
+		2: { name: "lancer", model: 2, CD_SkillsBlacklist: [], CD_HideBlacklistedSkills: false, role: ["tank"], isHidden: false },
+		3: { name: "slayer", model: 3, CD_SkillsBlacklist: [], CD_HideBlacklistedSkills: false, role: ["dps"], isHidden: false },
+		4: { name: "berserker", model: 4, CD_SkillsBlacklist: [], CD_HideBlacklistedSkills: false, role: ["dps"], isHidden: false },
+		5: { name: "sorcerer", model: 5, CD_SkillsBlacklist: [], CD_HideBlacklistedSkills: false, role: ["dps", "ranged"], isHidden: false },
+		6: { name: "archer", model: 6, CD_SkillsBlacklist: [], CD_HideBlacklistedSkills: false, role: ["dps", "ranged"], isHidden: false },
+		7: { name: "priest", model: 7, CD_SkillsBlacklist: [], CD_HideBlacklistedSkills: false, role: ["healer"], isHidden: false },
+		8: { name: "mystic", model: 8, CD_SkillsBlacklist: [], CD_HideBlacklistedSkills: false, role: ["healer"], isHidden: false },
+		9: { name: "reaper", model: 9, CD_SkillsBlacklist: [], CD_HideBlacklistedSkills: false, role: ["dps"], isHidden: false },
+		10: { name: "gunner", model: 10, CD_SkillsBlacklist: [], CD_HideBlacklistedSkills: false, role: ["dps", "ranged"], isHidden: false },
+		11: { name: "brawler", model: 11, CD_SkillsBlacklist: [], CD_HideBlacklistedSkills: false, role: ["tank"], isHidden: false },
+		12: { name: "ninja", model: 12, CD_SkillsBlacklist: [], CD_HideBlacklistedSkills: false, role: ["dps"], isHidden: false },
+		13: { name: "valkyrie", model: 13, CD_SkillsBlacklist: [], CD_HideBlacklistedSkills: false, role: ["dps"], isHidden: false }
+	}
+}
+
+function MigrateSettings(from_ver, to_ver, settings) {
+	if (from_ver === undefined) {
+		return Object.assign(Object.assign({}, DefaultSettings), settings);
+	} else if (from_ver === null) {
+		return DefaultSettings;
+	} else {
+		if (from_ver + 1 < to_ver) {
+			settings = MigrateSettings(from_ver, from_ver + 1, settings);
+			return MigrateSettings(from_ver + 1, to_ver, settings);
+		}
+		return settings;
+	}
 }
 }
 
 
 module.exports = MigrateSettings;
 module.exports = MigrateSettings;

+ 40 - 9
manifest.json

@@ -1,29 +1,60 @@
 {
 {
 	"files": {
 	"files": {
-		"README.md": "7E61250BC61166840686A200B99A1E63B0964C34EDDE0B6E9140965E0533F3A2",
-		"index.js": "98FD86932A81C695F71E3D32D2C9F7E63A8117B533915026FB4026E722B7A95D",
-		"module.json": "0FE5B3029D1E29FE0C9D1C08AD239D75A394BE9D4AF3721373C78775F11328E3",
-		"npcData.json": "AC5CC26675716568FC7A88772A8C260304EC737221FF4B334EBB20783BCC6440",
-		"setting_migration.js": "6A2C1C665C6891E4C6DDD3E986617A38B17690119BD310AB25135EF503D41E1C",
-		"skillString.json": "682E3773DACCEF6E189A0A0939937A9A36A32F2BAE5544E670AF4F5E992196E6"
+		"README.md": "d6805a4e8ed4f91e54b72d4c5455c1b97f1d6f14d410b8251d75296b833ee365",
+		"lib/data/npcData.json": "9949d5b7d18e347c29c46adf44e4ad8a519fc2e87166b0c402860ebaa082fb35",
+		"lib/data/skillString.json": "9d69876fea0be8e6ac5dd43b3fc74ea023f6b8a6145384f8f780dd977045d8ef",
+		"lib/index.js": "9b8c05b88d5768449f838c31c78d141d516e1842f66a600c95c63b50089415ed",
+		"lib/setting_migration.js": "ed468f119cd8656354151afe4573ed7ac743282cba9c8c234b1a536eadec0d39",
+		"module.json": "6baafd62dc0415f9166ed1440cacb90a35b5efb8f89067edb8288fbbad7078a3",
+		"node_modules/Gui/LICENSE": "589ed823e9a84c56feb95ac58e7cf384626b9cbf4fda2a907bc36e103de1bad2",
+		"node_modules/Gui/README.md": "3f8afb8758597d32d5075a0664b3b9acdce7193ad43b54ee1d83daa9e0647db0",
+		"node_modules/Gui/index.js": "b13b4ebf8620c1e550965a39ac692063a59b5b2c628458cd160024e69b65474e",
+		"package.json": "e4f97b0f2f8234a68ca2c9831eb50c8aabfe979f348700fd01ce8dab1c75242a"
 	},
 	},
 	"defs": {
 	"defs": {
+		"C_ADMIN": 1,
+		"C_CONFIRM_UPDATE_NOTIFICATION": 1,
+		"C_DISMISS_PARTY": 1,
+		"C_EXIT": 1,
+		"C_LEAVE_PARTY": 1,
+		"C_REQUEST_CONTRACT": 1,
+		"C_RESET_ALL_DUNGEON": 1,
+		"C_RETURN_TO_LOBBY": 1,
+		"C_SET_VISIBLE_RANGE": 1,
 		"S_ABNORMALITY_BEGIN": 3,
 		"S_ABNORMALITY_BEGIN": 3,
+		"S_ABNORMALITY_FAIL": 1,
 		"S_ABNORMALITY_REFRESH": 1,
 		"S_ABNORMALITY_REFRESH": 1,
-		"S_ACTION_STAGE": [7,8],
+		"S_ACTION_STAGE": 8,
+		"S_ANNOUNCE_UPDATE_NOTIFICATION": 1,
+		"S_APPLY_TITLE": 2,
 		"S_DESPAWN_NPC": 3,
 		"S_DESPAWN_NPC": 3,
 		"S_DESPAWN_USER": 3,
 		"S_DESPAWN_USER": 3,
 		"S_EACH_SKILL_RESULT": 12,
 		"S_EACH_SKILL_RESULT": 12,
 		"S_FEARMOVE_END": 1,
 		"S_FEARMOVE_END": 1,
 		"S_FEARMOVE_STAGE": 1,
 		"S_FEARMOVE_STAGE": 1,
-		"S_LEAVE_PARTY": 1,
+		"S_FONT_SWAP_INFO": "raw",
+		"S_GUILD_NAME": 1,
+		"S_IMAGE_DATA": "raw",
+		"S_LEAVE_PARTY": "raw",
+		"S_LOADING_SCREEN_CONTROL_INFO": "raw",
 		"S_LOAD_TOPO": "raw",
 		"S_LOAD_TOPO": "raw",
 		"S_LOGIN": 10,
 		"S_LOGIN": 10,
+		"S_MOUNT_VEHICLE": 2,
+		"S_NPC_MENU_SELECT": 1,
 		"S_PARTY_MEMBER_LIST": 7,
 		"S_PARTY_MEMBER_LIST": 7,
+		"S_PCBANGINVENTORY_DATALIST": 1,
+		"S_REQUEST_CITY_WAR_MAP_INFO_DETAIL": 1,
+		"S_REQUEST_CONTRACT": 1,
+		"S_SHOW_AWESOMIUMWEB_SHOP": 1,
+		"S_SPAWN_DROPITEM": 6,
 		"S_SPAWN_NPC": 9,
 		"S_SPAWN_NPC": 9,
 		"S_SPAWN_PROJECTILE": 5,
 		"S_SPAWN_PROJECTILE": 5,
 		"S_SPAWN_USER": 13,
 		"S_SPAWN_USER": 13,
-		"S_START_USER_PROJECTILE": [8,9],
+		"S_START_ACTION_SCRIPT": 3,
+		"S_START_COOLTIME_ITEM": 1,
+		"S_START_USER_PROJECTILE": 9,
+		"S_UNICAST_TRANSFORM_DATA": 3,
+		"S_UNMOUNT_VEHICLE": 2,
 		"S_USER_EXTERNAL_CHANGE": 6,
 		"S_USER_EXTERNAL_CHANGE": 6,
 		"S_USER_LOCATION": 5,
 		"S_USER_LOCATION": 5,
 		"S_USER_MOVETYPE": "raw"
 		"S_USER_MOVETYPE": "raw"

+ 6 - 7
module.json

@@ -1,11 +1,10 @@
 {
 {
     "disableAutoUpdate": false,
     "disableAutoUpdate": false,
-	"options": {
-        "niceName": "FPS-UTILS",
-        "settingsVersion": 1,
+    "options": {
+        "niceName": "fps-utils",
+        "settingsVersion": 2,
         "settingsFile": "config.json",
         "settingsFile": "config.json",
-        "settingsMigrator": "setting_migration.js"
+        "settingsMigrator": "./lib/setting_migration.js"
     },
     },
-    "servers": ["https://raw.githubusercontent.com/codeagon/fps-utils/master/"],
-    "supportUrl": "https://discord.gg/maqBmJV"
-}
+    "servers": ["https://raw.githubusercontent.com/Risenio/fps-utils/master/"]
+}

+ 674 - 0
node_modules/Gui/LICENSE

@@ -0,0 +1,674 @@
+                    GNU GENERAL PUBLIC LICENSE
+                       Version 3, 29 June 2007
+
+ Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
+ Everyone is permitted to copy and distribute verbatim copies
+ of this license document, but changing it is not allowed.
+
+                            Preamble
+
+  The GNU General Public License is a free, copyleft license for
+software and other kinds of works.
+
+  The licenses for most software and other practical works are designed
+to take away your freedom to share and change the works.  By contrast,
+the GNU General Public License is intended to guarantee your freedom to
+share and change all versions of a program--to make sure it remains free
+software for all its users.  We, the Free Software Foundation, use the
+GNU General Public License for most of our software; it applies also to
+any other work released this way by its authors.  You can apply it to
+your programs, too.
+
+  When we speak of free software, we are referring to freedom, not
+price.  Our General Public Licenses are designed to make sure that you
+have the freedom to distribute copies of free software (and charge for
+them if you wish), that you receive source code or can get it if you
+want it, that you can change the software or use pieces of it in new
+free programs, and that you know you can do these things.
+
+  To protect your rights, we need to prevent others from denying you
+these rights or asking you to surrender the rights.  Therefore, you have
+certain responsibilities if you distribute copies of the software, or if
+you modify it: responsibilities to respect the freedom of others.
+
+  For example, if you distribute copies of such a program, whether
+gratis or for a fee, you must pass on to the recipients the same
+freedoms that you received.  You must make sure that they, too, receive
+or can get the source code.  And you must show them these terms so they
+know their rights.
+
+  Developers that use the GNU GPL protect your rights with two steps:
+(1) assert copyright on the software, and (2) offer you this License
+giving you legal permission to copy, distribute and/or modify it.
+
+  For the developers' and authors' protection, the GPL clearly explains
+that there is no warranty for this free software.  For both users' and
+authors' sake, the GPL requires that modified versions be marked as
+changed, so that their problems will not be attributed erroneously to
+authors of previous versions.
+
+  Some devices are designed to deny users access to install or run
+modified versions of the software inside them, although the manufacturer
+can do so.  This is fundamentally incompatible with the aim of
+protecting users' freedom to change the software.  The systematic
+pattern of such abuse occurs in the area of products for individuals to
+use, which is precisely where it is most unacceptable.  Therefore, we
+have designed this version of the GPL to prohibit the practice for those
+products.  If such problems arise substantially in other domains, we
+stand ready to extend this provision to those domains in future versions
+of the GPL, as needed to protect the freedom of users.
+
+  Finally, every program is threatened constantly by software patents.
+States should not allow patents to restrict development and use of
+software on general-purpose computers, but in those that do, we wish to
+avoid the special danger that patents applied to a free program could
+make it effectively proprietary.  To prevent this, the GPL assures that
+patents cannot be used to render the program non-free.
+
+  The precise terms and conditions for copying, distribution and
+modification follow.
+
+                       TERMS AND CONDITIONS
+
+  0. Definitions.
+
+  "This License" refers to version 3 of the GNU General Public License.
+
+  "Copyright" also means copyright-like laws that apply to other kinds of
+works, such as semiconductor masks.
+
+  "The Program" refers to any copyrightable work licensed under this
+License.  Each licensee is addressed as "you".  "Licensees" and
+"recipients" may be individuals or organizations.
+
+  To "modify" a work means to copy from or adapt all or part of the work
+in a fashion requiring copyright permission, other than the making of an
+exact copy.  The resulting work is called a "modified version" of the
+earlier work or a work "based on" the earlier work.
+
+  A "covered work" means either the unmodified Program or a work based
+on the Program.
+
+  To "propagate" a work means to do anything with it that, without
+permission, would make you directly or secondarily liable for
+infringement under applicable copyright law, except executing it on a
+computer or modifying a private copy.  Propagation includes copying,
+distribution (with or without modification), making available to the
+public, and in some countries other activities as well.
+
+  To "convey" a work means any kind of propagation that enables other
+parties to make or receive copies.  Mere interaction with a user through
+a computer network, with no transfer of a copy, is not conveying.
+
+  An interactive user interface displays "Appropriate Legal Notices"
+to the extent that it includes a convenient and prominently visible
+feature that (1) displays an appropriate copyright notice, and (2)
+tells the user that there is no warranty for the work (except to the
+extent that warranties are provided), that licensees may convey the
+work under this License, and how to view a copy of this License.  If
+the interface presents a list of user commands or options, such as a
+menu, a prominent item in the list meets this criterion.
+
+  1. Source Code.
+
+  The "source code" for a work means the preferred form of the work
+for making modifications to it.  "Object code" means any non-source
+form of a work.
+
+  A "Standard Interface" means an interface that either is an official
+standard defined by a recognized standards body, or, in the case of
+interfaces specified for a particular programming language, one that
+is widely used among developers working in that language.
+
+  The "System Libraries" of an executable work include anything, other
+than the work as a whole, that (a) is included in the normal form of
+packaging a Major Component, but which is not part of that Major
+Component, and (b) serves only to enable use of the work with that
+Major Component, or to implement a Standard Interface for which an
+implementation is available to the public in source code form.  A
+"Major Component", in this context, means a major essential component
+(kernel, window system, and so on) of the specific operating system
+(if any) on which the executable work runs, or a compiler used to
+produce the work, or an object code interpreter used to run it.
+
+  The "Corresponding Source" for a work in object code form means all
+the source code needed to generate, install, and (for an executable
+work) run the object code and to modify the work, including scripts to
+control those activities.  However, it does not include the work's
+System Libraries, or general-purpose tools or generally available free
+programs which are used unmodified in performing those activities but
+which are not part of the work.  For example, Corresponding Source
+includes interface definition files associated with source files for
+the work, and the source code for shared libraries and dynamically
+linked subprograms that the work is specifically designed to require,
+such as by intimate data communication or control flow between those
+subprograms and other parts of the work.
+
+  The Corresponding Source need not include anything that users
+can regenerate automatically from other parts of the Corresponding
+Source.
+
+  The Corresponding Source for a work in source code form is that
+same work.
+
+  2. Basic Permissions.
+
+  All rights granted under this License are granted for the term of
+copyright on the Program, and are irrevocable provided the stated
+conditions are met.  This License explicitly affirms your unlimited
+permission to run the unmodified Program.  The output from running a
+covered work is covered by this License only if the output, given its
+content, constitutes a covered work.  This License acknowledges your
+rights of fair use or other equivalent, as provided by copyright law.
+
+  You may make, run and propagate covered works that you do not
+convey, without conditions so long as your license otherwise remains
+in force.  You may convey covered works to others for the sole purpose
+of having them make modifications exclusively for you, or provide you
+with facilities for running those works, provided that you comply with
+the terms of this License in conveying all material for which you do
+not control copyright.  Those thus making or running the covered works
+for you must do so exclusively on your behalf, under your direction
+and control, on terms that prohibit them from making any copies of
+your copyrighted material outside their relationship with you.
+
+  Conveying under any other circumstances is permitted solely under
+the conditions stated below.  Sublicensing is not allowed; section 10
+makes it unnecessary.
+
+  3. Protecting Users' Legal Rights From Anti-Circumvention Law.
+
+  No covered work shall be deemed part of an effective technological
+measure under any applicable law fulfilling obligations under article
+11 of the WIPO copyright treaty adopted on 20 December 1996, or
+similar laws prohibiting or restricting circumvention of such
+measures.
+
+  When you convey a covered work, you waive any legal power to forbid
+circumvention of technological measures to the extent such circumvention
+is effected by exercising rights under this License with respect to
+the covered work, and you disclaim any intention to limit operation or
+modification of the work as a means of enforcing, against the work's
+users, your or third parties' legal rights to forbid circumvention of
+technological measures.
+
+  4. Conveying Verbatim Copies.
+
+  You may convey verbatim copies of the Program's source code as you
+receive it, in any medium, provided that you conspicuously and
+appropriately publish on each copy an appropriate copyright notice;
+keep intact all notices stating that this License and any
+non-permissive terms added in accord with section 7 apply to the code;
+keep intact all notices of the absence of any warranty; and give all
+recipients a copy of this License along with the Program.
+
+  You may charge any price or no price for each copy that you convey,
+and you may offer support or warranty protection for a fee.
+
+  5. Conveying Modified Source Versions.
+
+  You may convey a work based on the Program, or the modifications to
+produce it from the Program, in the form of source code under the
+terms of section 4, provided that you also meet all of these conditions:
+
+    a) The work must carry prominent notices stating that you modified
+    it, and giving a relevant date.
+
+    b) The work must carry prominent notices stating that it is
+    released under this License and any conditions added under section
+    7.  This requirement modifies the requirement in section 4 to
+    "keep intact all notices".
+
+    c) You must license the entire work, as a whole, under this
+    License to anyone who comes into possession of a copy.  This
+    License will therefore apply, along with any applicable section 7
+    additional terms, to the whole of the work, and all its parts,
+    regardless of how they are packaged.  This License gives no
+    permission to license the work in any other way, but it does not
+    invalidate such permission if you have separately received it.
+
+    d) If the work has interactive user interfaces, each must display
+    Appropriate Legal Notices; however, if the Program has interactive
+    interfaces that do not display Appropriate Legal Notices, your
+    work need not make them do so.
+
+  A compilation of a covered work with other separate and independent
+works, which are not by their nature extensions of the covered work,
+and which are not combined with it such as to form a larger program,
+in or on a volume of a storage or distribution medium, is called an
+"aggregate" if the compilation and its resulting copyright are not
+used to limit the access or legal rights of the compilation's users
+beyond what the individual works permit.  Inclusion of a covered work
+in an aggregate does not cause this License to apply to the other
+parts of the aggregate.
+
+  6. Conveying Non-Source Forms.
+
+  You may convey a covered work in object code form under the terms
+of sections 4 and 5, provided that you also convey the
+machine-readable Corresponding Source under the terms of this License,
+in one of these ways:
+
+    a) Convey the object code in, or embodied in, a physical product
+    (including a physical distribution medium), accompanied by the
+    Corresponding Source fixed on a durable physical medium
+    customarily used for software interchange.
+
+    b) Convey the object code in, or embodied in, a physical product
+    (including a physical distribution medium), accompanied by a
+    written offer, valid for at least three years and valid for as
+    long as you offer spare parts or customer support for that product
+    model, to give anyone who possesses the object code either (1) a
+    copy of the Corresponding Source for all the software in the
+    product that is covered by this License, on a durable physical
+    medium customarily used for software interchange, for a price no
+    more than your reasonable cost of physically performing this
+    conveying of source, or (2) access to copy the
+    Corresponding Source from a network server at no charge.
+
+    c) Convey individual copies of the object code with a copy of the
+    written offer to provide the Corresponding Source.  This
+    alternative is allowed only occasionally and noncommercially, and
+    only if you received the object code with such an offer, in accord
+    with subsection 6b.
+
+    d) Convey the object code by offering access from a designated
+    place (gratis or for a charge), and offer equivalent access to the
+    Corresponding Source in the same way through the same place at no
+    further charge.  You need not require recipients to copy the
+    Corresponding Source along with the object code.  If the place to
+    copy the object code is a network server, the Corresponding Source
+    may be on a different server (operated by you or a third party)
+    that supports equivalent copying facilities, provided you maintain
+    clear directions next to the object code saying where to find the
+    Corresponding Source.  Regardless of what server hosts the
+    Corresponding Source, you remain obligated to ensure that it is
+    available for as long as needed to satisfy these requirements.
+
+    e) Convey the object code using peer-to-peer transmission, provided
+    you inform other peers where the object code and Corresponding
+    Source of the work are being offered to the general public at no
+    charge under subsection 6d.
+
+  A separable portion of the object code, whose source code is excluded
+from the Corresponding Source as a System Library, need not be
+included in conveying the object code work.
+
+  A "User Product" is either (1) a "consumer product", which means any
+tangible personal property which is normally used for personal, family,
+or household purposes, or (2) anything designed or sold for incorporation
+into a dwelling.  In determining whether a product is a consumer product,
+doubtful cases shall be resolved in favor of coverage.  For a particular
+product received by a particular user, "normally used" refers to a
+typical or common use of that class of product, regardless of the status
+of the particular user or of the way in which the particular user
+actually uses, or expects or is expected to use, the product.  A product
+is a consumer product regardless of whether the product has substantial
+commercial, industrial or non-consumer uses, unless such uses represent
+the only significant mode of use of the product.
+
+  "Installation Information" for a User Product means any methods,
+procedures, authorization keys, or other information required to install
+and execute modified versions of a covered work in that User Product from
+a modified version of its Corresponding Source.  The information must
+suffice to ensure that the continued functioning of the modified object
+code is in no case prevented or interfered with solely because
+modification has been made.
+
+  If you convey an object code work under this section in, or with, or
+specifically for use in, a User Product, and the conveying occurs as
+part of a transaction in which the right of possession and use of the
+User Product is transferred to the recipient in perpetuity or for a
+fixed term (regardless of how the transaction is characterized), the
+Corresponding Source conveyed under this section must be accompanied
+by the Installation Information.  But this requirement does not apply
+if neither you nor any third party retains the ability to install
+modified object code on the User Product (for example, the work has
+been installed in ROM).
+
+  The requirement to provide Installation Information does not include a
+requirement to continue to provide support service, warranty, or updates
+for a work that has been modified or installed by the recipient, or for
+the User Product in which it has been modified or installed.  Access to a
+network may be denied when the modification itself materially and
+adversely affects the operation of the network or violates the rules and
+protocols for communication across the network.
+
+  Corresponding Source conveyed, and Installation Information provided,
+in accord with this section must be in a format that is publicly
+documented (and with an implementation available to the public in
+source code form), and must require no special password or key for
+unpacking, reading or copying.
+
+  7. Additional Terms.
+
+  "Additional permissions" are terms that supplement the terms of this
+License by making exceptions from one or more of its conditions.
+Additional permissions that are applicable to the entire Program shall
+be treated as though they were included in this License, to the extent
+that they are valid under applicable law.  If additional permissions
+apply only to part of the Program, that part may be used separately
+under those permissions, but the entire Program remains governed by
+this License without regard to the additional permissions.
+
+  When you convey a copy of a covered work, you may at your option
+remove any additional permissions from that copy, or from any part of
+it.  (Additional permissions may be written to require their own
+removal in certain cases when you modify the work.)  You may place
+additional permissions on material, added by you to a covered work,
+for which you have or can give appropriate copyright permission.
+
+  Notwithstanding any other provision of this License, for material you
+add to a covered work, you may (if authorized by the copyright holders of
+that material) supplement the terms of this License with terms:
+
+    a) Disclaiming warranty or limiting liability differently from the
+    terms of sections 15 and 16 of this License; or
+
+    b) Requiring preservation of specified reasonable legal notices or
+    author attributions in that material or in the Appropriate Legal
+    Notices displayed by works containing it; or
+
+    c) Prohibiting misrepresentation of the origin of that material, or
+    requiring that modified versions of such material be marked in
+    reasonable ways as different from the original version; or
+
+    d) Limiting the use for publicity purposes of names of licensors or
+    authors of the material; or
+
+    e) Declining to grant rights under trademark law for use of some
+    trade names, trademarks, or service marks; or
+
+    f) Requiring indemnification of licensors and authors of that
+    material by anyone who conveys the material (or modified versions of
+    it) with contractual assumptions of liability to the recipient, for
+    any liability that these contractual assumptions directly impose on
+    those licensors and authors.
+
+  All other non-permissive additional terms are considered "further
+restrictions" within the meaning of section 10.  If the Program as you
+received it, or any part of it, contains a notice stating that it is
+governed by this License along with a term that is a further
+restriction, you may remove that term.  If a license document contains
+a further restriction but permits relicensing or conveying under this
+License, you may add to a covered work material governed by the terms
+of that license document, provided that the further restriction does
+not survive such relicensing or conveying.
+
+  If you add terms to a covered work in accord with this section, you
+must place, in the relevant source files, a statement of the
+additional terms that apply to those files, or a notice indicating
+where to find the applicable terms.
+
+  Additional terms, permissive or non-permissive, may be stated in the
+form of a separately written license, or stated as exceptions;
+the above requirements apply either way.
+
+  8. Termination.
+
+  You may not propagate or modify a covered work except as expressly
+provided under this License.  Any attempt otherwise to propagate or
+modify it is void, and will automatically terminate your rights under
+this License (including any patent licenses granted under the third
+paragraph of section 11).
+
+  However, if you cease all violation of this License, then your
+license from a particular copyright holder is reinstated (a)
+provisionally, unless and until the copyright holder explicitly and
+finally terminates your license, and (b) permanently, if the copyright
+holder fails to notify you of the violation by some reasonable means
+prior to 60 days after the cessation.
+
+  Moreover, your license from a particular copyright holder is
+reinstated permanently if the copyright holder notifies you of the
+violation by some reasonable means, this is the first time you have
+received notice of violation of this License (for any work) from that
+copyright holder, and you cure the violation prior to 30 days after
+your receipt of the notice.
+
+  Termination of your rights under this section does not terminate the
+licenses of parties who have received copies or rights from you under
+this License.  If your rights have been terminated and not permanently
+reinstated, you do not qualify to receive new licenses for the same
+material under section 10.
+
+  9. Acceptance Not Required for Having Copies.
+
+  You are not required to accept this License in order to receive or
+run a copy of the Program.  Ancillary propagation of a covered work
+occurring solely as a consequence of using peer-to-peer transmission
+to receive a copy likewise does not require acceptance.  However,
+nothing other than this License grants you permission to propagate or
+modify any covered work.  These actions infringe copyright if you do
+not accept this License.  Therefore, by modifying or propagating a
+covered work, you indicate your acceptance of this License to do so.
+
+  10. Automatic Licensing of Downstream Recipients.
+
+  Each time you convey a covered work, the recipient automatically
+receives a license from the original licensors, to run, modify and
+propagate that work, subject to this License.  You are not responsible
+for enforcing compliance by third parties with this License.
+
+  An "entity transaction" is a transaction transferring control of an
+organization, or substantially all assets of one, or subdividing an
+organization, or merging organizations.  If propagation of a covered
+work results from an entity transaction, each party to that
+transaction who receives a copy of the work also receives whatever
+licenses to the work the party's predecessor in interest had or could
+give under the previous paragraph, plus a right to possession of the
+Corresponding Source of the work from the predecessor in interest, if
+the predecessor has it or can get it with reasonable efforts.
+
+  You may not impose any further restrictions on the exercise of the
+rights granted or affirmed under this License.  For example, you may
+not impose a license fee, royalty, or other charge for exercise of
+rights granted under this License, and you may not initiate litigation
+(including a cross-claim or counterclaim in a lawsuit) alleging that
+any patent claim is infringed by making, using, selling, offering for
+sale, or importing the Program or any portion of it.
+
+  11. Patents.
+
+  A "contributor" is a copyright holder who authorizes use under this
+License of the Program or a work on which the Program is based.  The
+work thus licensed is called the contributor's "contributor version".
+
+  A contributor's "essential patent claims" are all patent claims
+owned or controlled by the contributor, whether already acquired or
+hereafter acquired, that would be infringed by some manner, permitted
+by this License, of making, using, or selling its contributor version,
+but do not include claims that would be infringed only as a
+consequence of further modification of the contributor version.  For
+purposes of this definition, "control" includes the right to grant
+patent sublicenses in a manner consistent with the requirements of
+this License.
+
+  Each contributor grants you a non-exclusive, worldwide, royalty-free
+patent license under the contributor's essential patent claims, to
+make, use, sell, offer for sale, import and otherwise run, modify and
+propagate the contents of its contributor version.
+
+  In the following three paragraphs, a "patent license" is any express
+agreement or commitment, however denominated, not to enforce a patent
+(such as an express permission to practice a patent or covenant not to
+sue for patent infringement).  To "grant" such a patent license to a
+party means to make such an agreement or commitment not to enforce a
+patent against the party.
+
+  If you convey a covered work, knowingly relying on a patent license,
+and the Corresponding Source of the work is not available for anyone
+to copy, free of charge and under the terms of this License, through a
+publicly available network server or other readily accessible means,
+then you must either (1) cause the Corresponding Source to be so
+available, or (2) arrange to deprive yourself of the benefit of the
+patent license for this particular work, or (3) arrange, in a manner
+consistent with the requirements of this License, to extend the patent
+license to downstream recipients.  "Knowingly relying" means you have
+actual knowledge that, but for the patent license, your conveying the
+covered work in a country, or your recipient's use of the covered work
+in a country, would infringe one or more identifiable patents in that
+country that you have reason to believe are valid.
+
+  If, pursuant to or in connection with a single transaction or
+arrangement, you convey, or propagate by procuring conveyance of, a
+covered work, and grant a patent license to some of the parties
+receiving the covered work authorizing them to use, propagate, modify
+or convey a specific copy of the covered work, then the patent license
+you grant is automatically extended to all recipients of the covered
+work and works based on it.
+
+  A patent license is "discriminatory" if it does not include within
+the scope of its coverage, prohibits the exercise of, or is
+conditioned on the non-exercise of one or more of the rights that are
+specifically granted under this License.  You may not convey a covered
+work if you are a party to an arrangement with a third party that is
+in the business of distributing software, under which you make payment
+to the third party based on the extent of your activity of conveying
+the work, and under which the third party grants, to any of the
+parties who would receive the covered work from you, a discriminatory
+patent license (a) in connection with copies of the covered work
+conveyed by you (or copies made from those copies), or (b) primarily
+for and in connection with specific products or compilations that
+contain the covered work, unless you entered into that arrangement,
+or that patent license was granted, prior to 28 March 2007.
+
+  Nothing in this License shall be construed as excluding or limiting
+any implied license or other defenses to infringement that may
+otherwise be available to you under applicable patent law.
+
+  12. No Surrender of Others' Freedom.
+
+  If conditions are imposed on you (whether by court order, agreement or
+otherwise) that contradict the conditions of this License, they do not
+excuse you from the conditions of this License.  If you cannot convey a
+covered work so as to satisfy simultaneously your obligations under this
+License and any other pertinent obligations, then as a consequence you may
+not convey it at all.  For example, if you agree to terms that obligate you
+to collect a royalty for further conveying from those to whom you convey
+the Program, the only way you could satisfy both those terms and this
+License would be to refrain entirely from conveying the Program.
+
+  13. Use with the GNU Affero General Public License.
+
+  Notwithstanding any other provision of this License, you have
+permission to link or combine any covered work with a work licensed
+under version 3 of the GNU Affero General Public License into a single
+combined work, and to convey the resulting work.  The terms of this
+License will continue to apply to the part which is the covered work,
+but the special requirements of the GNU Affero General Public License,
+section 13, concerning interaction through a network will apply to the
+combination as such.
+
+  14. Revised Versions of this License.
+
+  The Free Software Foundation may publish revised and/or new versions of
+the GNU General Public License from time to time.  Such new versions will
+be similar in spirit to the present version, but may differ in detail to
+address new problems or concerns.
+
+  Each version is given a distinguishing version number.  If the
+Program specifies that a certain numbered version of the GNU General
+Public License "or any later version" applies to it, you have the
+option of following the terms and conditions either of that numbered
+version or of any later version published by the Free Software
+Foundation.  If the Program does not specify a version number of the
+GNU General Public License, you may choose any version ever published
+by the Free Software Foundation.
+
+  If the Program specifies that a proxy can decide which future
+versions of the GNU General Public License can be used, that proxy's
+public statement of acceptance of a version permanently authorizes you
+to choose that version for the Program.
+
+  Later license versions may give you additional or different
+permissions.  However, no additional obligations are imposed on any
+author or copyright holder as a result of your choosing to follow a
+later version.
+
+  15. Disclaimer of Warranty.
+
+  THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
+APPLICABLE LAW.  EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
+HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
+OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
+THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+PURPOSE.  THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
+IS WITH YOU.  SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
+ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
+
+  16. Limitation of Liability.
+
+  IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
+WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
+THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
+GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
+USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
+DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
+PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
+EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
+SUCH DAMAGES.
+
+  17. Interpretation of Sections 15 and 16.
+
+  If the disclaimer of warranty and limitation of liability provided
+above cannot be given local legal effect according to their terms,
+reviewing courts shall apply local law that most closely approximates
+an absolute waiver of all civil liability in connection with the
+Program, unless a warranty or assumption of liability accompanies a
+copy of the Program in return for a fee.
+
+                     END OF TERMS AND CONDITIONS
+
+            How to Apply These Terms to Your New Programs
+
+  If you develop a new program, and you want it to be of the greatest
+possible use to the public, the best way to achieve this is to make it
+free software which everyone can redistribute and change under these terms.
+
+  To do so, attach the following notices to the program.  It is safest
+to attach them to the start of each source file to most effectively
+state the exclusion of warranty; and each file should have at least
+the "copyright" line and a pointer to where the full notice is found.
+
+    {one line to give the program's name and a brief idea of what it does.}
+    Copyright (C) {year}  {name of author}
+
+    This program is free software: you can redistribute it and/or modify
+    it under the terms of the GNU General Public License as published by
+    the Free Software Foundation, either version 3 of the License, or
+    (at your option) any later version.
+
+    This program is distributed in the hope that it will be useful,
+    but WITHOUT ANY WARRANTY; without even the implied warranty of
+    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+    GNU General Public License for more details.
+
+    You should have received a copy of the GNU General Public License
+    along with this program.  If not, see <http://www.gnu.org/licenses/>.
+
+Also add information on how to contact you by electronic and paper mail.
+
+  If the program does terminal interaction, make it output a short
+notice like this when it starts in an interactive mode:
+
+    {project}  Copyright (C) {year}  {fullname}
+    This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
+    This is free software, and you are welcome to redistribute it
+    under certain conditions; type `show c' for details.
+
+The hypothetical commands `show w' and `show c' should show the appropriate
+parts of the General Public License.  Of course, your program's commands
+might be different; for a GUI interface, you would use an "about box".
+
+  You should also get your employer (if you work as a programmer) or school,
+if any, to sign a "copyright disclaimer" for the program, if necessary.
+For more information on this, and how to apply and follow the GNU GPL, see
+<http://www.gnu.org/licenses/>.
+
+  The GNU General Public License does not permit incorporating your program
+into proprietary programs.  If your program is a subroutine library, you
+may consider it more useful to permit linking proprietary applications with
+the library.  If this is what you want to do, use the GNU Lesser General
+Public License instead of this License.  But first, please read
+<http://www.gnu.org/philosophy/why-not-lgpl.html>.

+ 35 - 0
node_modules/Gui/README.md

@@ -0,0 +1,35 @@
+# Gui
+
+Allows you to have access to the welcome message window where you can click stuffs.
+
+## For Developers:
+
+You just require it like normal or just read the source it's like 5 lines if you wanna use it.
+Example :
+```
+const Gui = require('Gui')
+
+module.exports = function (mod) {
+	const gui = new Gui(mod)
+	mod.command.add('guitest', () => {
+		gui.parse(
+			[
+				{
+					text: `Test text!`,                 //Text goes here.
+					command: `fps mode 3`,              //Command which will get send by 'command.exec()'.
+					img: `icon_items.homonculus1_tex`   //Image 'category.name' will appear infront of text.
+				}
+			],
+			'This is a test!'							//Title goes here.
+		)
+	})
+	this.destructor = () => {
+		mod.command.remove('guitest')					//This just for reloading.
+	}
+}
+```
+## Additional things to know
+- Multiple commands can now be split/chained together by using `command: "cmd1;cmd2"`
+
+## Credits
+- [HugeDong69](https://github.com/codeagon) - Original developer. [Donation link](https://ko-fi.com/codeagon)

+ 126 - 0
node_modules/Gui/index.js

@@ -0,0 +1,126 @@
+const map = new WeakMap();
+let blep;
+
+class Gui {
+	constructor(mod) {
+		this.mod = mod;
+		const base = mod.base || mod;
+
+		if (!map.has(base)) {
+			map.set(base, {});
+
+			mod.hook('C_CONFIRM_UPDATE_NOTIFICATION', 1, () => false)
+
+			mod.hook('C_ADMIN', 1, (event) => {
+				blep = event.command.split(";")
+				blep.forEach(
+					function (cmd) {
+						mod.command.exec(cmd);
+					})
+				return false
+			})
+		}
+	}
+
+	parse(array, title, mode) {
+		if (mode == 2) {
+			this.mod.send('S_ANNOUNCE_UPDATE_NOTIFICATION', 1, {
+				id: 0,
+				title: title, // <img src='icon_notice'/>`<img src='icon_notice'/>`<img src='icon_notice'/>`<img src='icon_notice'/>` USE THIS
+				body: squonk(array, mode)
+
+			})
+			Data = ''
+			ArrayTXT = ['cools']
+		} else
+			this.mod.send('S_ANNOUNCE_UPDATE_NOTIFICATION', 1, {
+				id: 0,
+				title: title, // <img src='icon_notice'/>`<img src='icon_notice'/>`<img src='icon_notice'/>`<img src='icon_notice'/>` USE THIS
+				body: thonk(array, mode)
+			})
+		Data = ''
+	}
+}
+
+let Data = '',
+	Count = 0,
+	IMGCount = 1,
+	TXTCount = 0,
+	FirstTXT = true,
+	ArrayTXT = [],
+	isFinished = 0
+
+function ShoveData(stuff, mode) {
+	if (Data.length >= 16000) {
+		Data += `GUI Data Limit Exceeded, some values may be missing.`
+		isFinished = true
+		return
+	}
+	if (Count >= 7 && mode == 1) {
+		Data += `<br>${stuff}`
+		Count = 1
+	} else {
+		Data += stuff
+	}
+}
+
+function thonk(array) {
+	isFinished = false
+	for (var i = 0; i < array.length; i++) {
+		Count++
+		if (array[i].command == null && !isFinished) {
+			if (array[i].img != null) {
+				ShoveData(`<img src='img://__${array[i].img}'></img>${array[i].text}`)
+			}
+			ShoveData(`${array[i].text}`)
+
+		} else
+			if (array[i].img != null && array[i].command !== null && !isFinished) {
+				ShoveData(`<a href='admincommand:/@${array[i].command}' ><img src='img://__${array[i].img}'></img></a>${array[i].text} `)
+			} else
+				if (array[i].img == null && array[i].command !== null && !isFinished) {
+					ShoveData(`<a href='admincommand:/@${array[i].command}'>${array[i].text}</a>`)
+				}
+	}
+	//console.log(`Finished stuff ${Data}`) //mod here
+	Count = 0
+	return Data
+}
+
+function squonk(array) {
+	for (var i = 0; i < array.length; i++) {
+		if (IMGCount <= 5) {
+			IMGCount++
+			ArrayTXT.push(array[i].text)
+			Data += `<a href='admincommand:/@${array[i].command}'><img src='img://__${array[i].img}'></img></a> &#09; `
+			//console.log(IMGCount)
+		} if (ArrayTXT.length == 5) {
+			console.log('else')
+			FirstTXT = true
+			for (var j = 0; j < ArrayTXT.length; j++) {
+				console.log(ArrayTXT[j])
+				// console.log(ArrayTXT)
+				if (j == 4) {
+					// console.log('BEEEEEEEEEEEEEEP')
+					Data += `${ArrayTXT[j]}<br>`
+					IMGCount = 0
+					ArrayTXT = []
+					FirstTXT = true
+				}
+				if (FirstTXT == true && j != 4) {
+					Data += `<br> &#09;${ArrayTXT[j]} &#09;&#09;`
+					FirstTXT = false
+				} else if (j != 4) {
+					Data += `${ArrayTXT[j]} &#09;&#09;&#09;`
+				}
+			}
+			IMGCount = 0
+			ArrayTXT = []
+			//console.log(ArrayTXT.length)
+			FirstTXT = true
+		}
+	}
+	console.log(Data)
+	return Data
+}
+module.exports = Gui;

+ 6 - 0
package.json

@@ -0,0 +1,6 @@
+{
+	"main": "lib",
+	"name": "fps-utils",
+	"author": "Risenio",
+	"description": "A free script filled with features dedicated to improve your fps."
+}

Некоторые файлы не были показаны из-за большого количества измененных файлов