Просмотр исходного кода

Fix.

- Removed the check for below p80.
- Now blocks emote packets from hidden people, because no point. (you can still see their emotes in "emote channel log" if you want).
- Fixed small grammar mistake in the read-me.
Mie лет назад: 7
Родитель
Сommit
0370d58f08
3 измененных файлов с 12 добавлено и 5 удалено
  1. 1 1
      README.md
  2. 7 1
      lib/index.js
  3. 4 3
      manifest.json

+ 1 - 1
README.md

@@ -26,7 +26,7 @@ Contributers:
 
 ---
 
-Thanks to the following people for helping in maintaining this module.
+Thanks to the following people for their help in maintaining this module.
   - [Caali](https://github.com/hackerman-caali)
   - [Pinkie Pie](https://github.com/pinkipi)
   - [Bernkastel](https://github.com/Bernkastel-0)

+ 7 - 1
lib/index.js

@@ -706,6 +706,11 @@ module.exports = function FpsUtils(mod) {
 		if (event.customStrings.length === 0) return false;
 	}
 
+	function sSocial(event) {
+		if (EqGid(event.target)) return;
+		if (HUsers[event.target] || HNpcs[event.target]) return false;
+	}
+
 	function sGuildName(event) {
 		if (mod.settings.Hideguildlogos) {
 			event.guildEmblem = '';
@@ -968,6 +973,7 @@ module.exports = function FpsUtils(mod) {
 	mod.hook('S_UPDATE_ACHIEVEMENT_PROGRESS', 1, Last_Hookfn, sUpdateAchievementProgress)
 	mod.hook('S_ITEM_CUSTOM_STRING', 2, sItemCustomString)
 
+	mod.hook('S_SOCIAL', 1, sSocial)
 	mod.hook('S_GUILD_NAME', 1, sGuildName)
 	mod.hook('S_APPLY_TITLE', 2, sApplyTitle)
 	mod.hook('S_IMAGE_DATA', 'raw', sImageData)
@@ -1002,7 +1008,7 @@ module.exports = function FpsUtils(mod) {
 	mod.hook('S_PLAYER_CHANGE_MP', 1, sPlayerChangeMp)
 	mod.hook('S_CREATURE_CHANGE_HP', 6, sCreatureChangeHp)
 	mod.hook('S_EACH_SKILL_RESULT', 13, Last_Hook, sEachSkillResult)
-	mod.hook('S_SPAWN_DROPITEM', mod.majorPatchVersion >= 80 ? 7 : 6, sSpawnDropItem)
+	mod.hook('S_SPAWN_DROPITEM', 7, sSpawnDropItem)
 	mod.hook('S_FONT_SWAP_INFO', 'raw', sFontSwapInfo)
 
 	// ~~~ * Commands * ~~~ \\

+ 4 - 3
manifest.json

@@ -1,9 +1,9 @@
 {
     "files": {
-        "README.md": "d460498a2503b6857f0faed356b8f06cf4108ae863d022e361f6762877966837",
+        "README.md": "bc59f32c10752de9a4123dec9688be45e9e97bd5ef6cd20ecdf249635fafc333",
         "lib/data/npcData.json": "913aace2b007dc2c04cfcb4b96bd8fea4abbc4a149df8a901c7382797b25f23b",
         "lib/data/skillString.json": "9d69876fea0be8e6ac5dd43b3fc74ea023f6b8a6145384f8f780dd977045d8ef",
-        "lib/index.js": "a433e7e8f0ed39b5e99e9b6d236e31ea9ca1fea676184deb57ebbb560fa40325",
+        "lib/index.js": "9a71c57489e75b5ba59d6fced49e8ea64dc21e4c690ea7871b6ae1392163697b",
         "lib/setting_migration.js": "868abf1f54c8e91df415e19220a2046021fa67a905dcff6a799b01a83488f6a8",
         "module.json": "edcfd2361bc0f72ed7b3838f9f07ad3647738ed2564e230e7da8f7b4a08db715",
         "package.json": "f3e3cf2c845e54b6503108b6bef7f8f5bf33654f6ae1664c75bedbf7f6aa83c1"
@@ -48,7 +48,8 @@
         "S_PCBANGINVENTORY_DATALIST": 1,
         "S_PLAYER_CHANGE_MP": 1,
         "S_SHOW_AWESOMIUMWEB_SHOP": 1,
-        "S_SPAWN_DROPITEM": [6,7],
+        "S_SOCIAL": 1,
+        "S_SPAWN_DROPITEM": 7,
         "S_SPAWN_NPC": 11,
         "S_SPAWN_PROJECTILE": 5,
         "S_SPAWN_USER": 14,