|
@@ -495,7 +495,6 @@ module.exports = function FpsUtils(mod) {
|
|
|
if (event.mount) event.mount = 16;
|
|
if (event.mount) event.mount = 16;
|
|
|
if (mod.settings.Hideguildlogos) event.guildLogoId = 0;
|
|
if (mod.settings.Hideguildlogos) event.guildLogoId = 0;
|
|
|
event.title = 0;
|
|
event.title = 0;
|
|
|
- // event.weaponModel = event.bodyModel = event.handModel = event.feetModel // TODO;
|
|
|
|
|
event.weaponDye = event.bodyDye = event.handDye = event.feetDye = event.weaponEnchant = 0;
|
|
event.weaponDye = event.bodyDye = event.handDye = event.feetDye = event.weaponEnchant = 0;
|
|
|
event.showFace = false;
|
|
event.showFace = false;
|
|
|
event.styleHead = event.styleFace = event.styleBack = event.styleWeapon = event.styleBody = 0;
|
|
event.styleHead = event.styleFace = event.styleBack = event.styleWeapon = event.styleBody = 0;
|
|
@@ -563,7 +562,6 @@ module.exports = function FpsUtils(mod) {
|
|
|
|
|
|
|
|
function NpcBCheck(event) {
|
|
function NpcBCheck(event) {
|
|
|
let blocked = false;
|
|
let blocked = false;
|
|
|
- //if (mod.settings.ShowStyle) event.repairable = false;
|
|
|
|
|
|
|
|
|
|
if (mod.settings.HideBlacklistedNpcs) {
|
|
if (mod.settings.HideBlacklistedNpcs) {
|
|
|
for (let i = 0; i < mod.settings.NpcsBlacklist.length; i++) {
|
|
for (let i = 0; i < mod.settings.NpcsBlacklist.length; i++) {
|
|
@@ -813,7 +811,6 @@ module.exports = function FpsUtils(mod) {
|
|
|
SNpcs[event.gameId].spawnType = 1;
|
|
SNpcs[event.gameId].spawnType = 1;
|
|
|
SNpcs[event.gameId].spawnScript = 0;
|
|
SNpcs[event.gameId].spawnScript = 0;
|
|
|
if (NpcBCheck(event)) return false;
|
|
if (NpcBCheck(event)) return false;
|
|
|
- //if (mod.settings.ShowStyle) { event.repairable = false; return true; } // partially... This option is not only used for the icons above npcs heads, but it's used also for showing the whole shape of some npcs, e.g. bahaar & glsh. :\
|
|
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
function sDespawnNpc(event) {
|
|
function sDespawnNpc(event) {
|
|
@@ -957,7 +954,7 @@ module.exports = function FpsUtils(mod) {
|
|
|
// ~~~ * Packet Hooks * ~~~ \\
|
|
// ~~~ * Packet Hooks * ~~~ \\
|
|
|
|
|
|
|
|
const Last_Hook = { order: 100010 }
|
|
const Last_Hook = { order: 100010 }
|
|
|
- const Last_Hookfn = { order: 100010, filter: { fake: null } };
|
|
|
|
|
|
|
+ const Last_Hookfn = { order: 100010, filter: { fake: null } }
|
|
|
|
|
|
|
|
mod.hook('S_LOGIN', 12, sLogin)
|
|
mod.hook('S_LOGIN', 12, sLogin)
|
|
|
mod.hook('S_LOAD_TOPO', 'raw', sLoadTopo)
|
|
mod.hook('S_LOAD_TOPO', 'raw', sLoadTopo)
|