|
|
@@ -1195,7 +1195,7 @@ module.exports = function FpsUtils(mod) {
|
|
|
mod.hook('S_FONT_SWAP_INFO', 'raw', Last_Hookfn, sFontSwapInfo)
|
|
|
|
|
|
mod.hook('S_SPAWN_EVENT_SEED', NotCP ? 1 : 2, Last_Hookfn, sSpawnEventSeed)
|
|
|
- mod.hook('S_UPDATE_EVENT_SEED_STATE', 3, Last_Hookfn, sUpdateEventSeedState)
|
|
|
+ mod.hook('S_UPDATE_EVENT_SEED_STATE', NotCP ? 3 : 4, Last_Hookfn, sUpdateEventSeedState)
|
|
|
mod.hook('S_RESULT_EVENT_SEED', NotCP ? 1 : 2, Last_Hookfn, sResultEventSeed)
|
|
|
mod.hook('S_DESPAWN_EVENT_SEED', 1, Last_Hookfn, sDespawnEventSeed)
|
|
|
|
|
|
@@ -1216,25 +1216,13 @@ module.exports = function FpsUtils(mod) {
|
|
|
arg2 = arg2 ? arg2.toLowerCase() : arg2;
|
|
|
arg3 = arg3 ? arg3.toLowerCase() : arg3;
|
|
|
switch (key) {
|
|
|
- case "b":
|
|
|
- mod.command.exec('fps skills blacklist');
|
|
|
- break;
|
|
|
- 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 "mod": case "mode": case "state":
|
|
|
+ case "b": mod.command.exec('fps skills blacklist'); break;
|
|
|
+ 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 "m": case "mod": case "mode": case "state":
|
|
|
switch (arg) {
|
|
|
case "0": case "off": case "zero":
|
|
|
if (mod.settings.Mode === 3) ShowAllPlayers();
|
|
|
@@ -1358,7 +1346,7 @@ module.exports = function FpsUtils(mod) {
|
|
|
break;
|
|
|
case "summons": case "sums":
|
|
|
switch (arg) {
|
|
|
- case "me":
|
|
|
+ case "me": case "own":
|
|
|
mod.settings.HideMySummons = !mod.settings.HideMySummons;
|
|
|
mod.settings.HideMySummons ? HideNpcs('own') : ShowNpcs('own');
|
|
|
Msg(`Own summoned NPCs are ${mod.settings.HideMySummons ? `<font color="${GrnC}">Hidden</font>` : `<font color="${RedC}">Shown</font>`}.`);
|
|
|
@@ -1507,18 +1495,18 @@ module.exports = function FpsUtils(mod) {
|
|
|
if (SwitchCd) return Msg(`<font color="${PnkC}">Try again in 3 seconds</font>.`);
|
|
|
mod.settings.Hideguildlogos = !mod.settings.Hideguildlogos;
|
|
|
mod.toServer('C_SET_VISIBLE_RANGE', 1, { range: 0 });
|
|
|
- setTimeout(() => mod.toServer('C_SET_VISIBLE_RANGE', 1, { range: LastVrange }), 1500);
|
|
|
+ mod.setTimeout(() => mod.toServer('C_SET_VISIBLE_RANGE', 1, { range: LastVrange }), 1500);
|
|
|
SwitchCd = true;
|
|
|
- setTimeout(() => SwitchCd = false, 2800);
|
|
|
+ mod.setTimeout(() => SwitchCd = false, 2800);
|
|
|
Msg(`Guild Logos ${mod.settings.Hideguildlogos ? `<font color="${GrnC}">Hidden</font>` : `<font color="${RedC}">Shown</font>`}.`);
|
|
|
break;
|
|
|
case "costume": case "style":
|
|
|
if (SwitchCd) return Msg(`<font color="${PnkC}">Try again in 3 seconds</font>.`);
|
|
|
mod.settings.ShowStyle = !mod.settings.ShowStyle;
|
|
|
mod.toServer('C_SET_VISIBLE_RANGE', 1, { range: 0 });
|
|
|
- setTimeout(() => mod.toServer('C_SET_VISIBLE_RANGE', 1, { range: LastVrange }), 1500);
|
|
|
+ mod.setTimeout(() => mod.toServer('C_SET_VISIBLE_RANGE', 1, { range: LastVrange }), 1500);
|
|
|
SwitchCd = true;
|
|
|
- setTimeout(() => SwitchCd = false, 2800);
|
|
|
+ mod.setTimeout(() => SwitchCd = false, 2800);
|
|
|
Msg(`Style of NPCs & others ${mod.settings.ShowStyle ? `<font color="${GrnC}">Hidden</font>` : `<font color="${RedC}">Shown</font>`}.`);
|
|
|
break;
|
|
|
case "proj": case "projectile":
|
|
|
@@ -1604,7 +1592,7 @@ module.exports = function FpsUtils(mod) {
|
|
|
mod.settings.ActionScripts = !mod.settings.ActionScripts;
|
|
|
Msg(`Npc zoom-ins ${mod.settings.ActionScripts ? `<font color="${GrnC}">Hidden</font>` : `<font color="${RedC}">Shown</font>`}.`);
|
|
|
break;
|
|
|
- case "dropitem":
|
|
|
+ case "dropitem": case "drops":
|
|
|
if (arg === 'hide') {
|
|
|
if (!arg2) {
|
|
|
mod.settings.HideBlacklistedDrop = !mod.settings.HideBlacklistedDrop;
|
|
|
@@ -1628,7 +1616,7 @@ module.exports = function FpsUtils(mod) {
|
|
|
mod.settings.HideMonsterDeathAnimation = !mod.settings.HideMonsterDeathAnimation;
|
|
|
Msg(`Monsters Death Animation is ${mod.settings.HideMonsterDeathAnimation ? `<font color="${GrnC}">Hidden</font>` : `<font color="${RedC}">Shown</font>`}.`);
|
|
|
break;
|
|
|
- case "screenabns":
|
|
|
+ case "screenabns": case "blur":
|
|
|
if (arg === 'hide') {
|
|
|
if (!arg2) {
|
|
|
mod.settings.HideOwnBlacklistedAbns = !mod.settings.HideOwnBlacklistedAbns;
|