Browse Source

Fix.

No moar `.equals` (caali's bigInt).
Fix for the spam `Mode 2.` while doing HH and wipe too much. :wink:
Fix can't apply talents with `S_` packet.
Mie 8 years ago
parent
commit
1608f843c6
2 changed files with 4 additions and 5 deletions
  1. 3 3
      lib/index.js
  2. 1 2
      manifest.json

+ 3 - 3
lib/index.js

@@ -454,8 +454,7 @@ module.exports = function FpsUtils(mod) {
 	// ~~~ * Functions * ~~~ \\
 
 	function EqGid(xg) {
-		if (notcaaliproxy) return (xg === MyGameId)
-		return (xg.equals(MyGameId))
+		return (xg === MyGameId)
 	}
 
 	function ModifyAppearance(event) {
@@ -643,6 +642,7 @@ module.exports = function FpsUtils(mod) {
 		if (mod.settings.RaidAutoChange) {
 			if (event.members.length >= 18) {
 				if (mod.settings.Mode === 3) return;
+				if (mod.settings.Mode === 2 && laststate !== undefined) return;
 				laststate = mod.settings.Mode
 				mod.command.exec(`fps mode 2`)
 			} else {
@@ -1211,7 +1211,7 @@ module.exports = function FpsUtils(mod) {
 						mod.send('C_REQUEST_CONTRACT', 1, { type: 8 });
 						break;
 					case "talents":
-						mod.send('S_REQUEST_CONTRACT', 1, { type: 77 });
+						mod.send('C_REQUEST_CONTRACT', 1, { type: 77 });
 						break;
 					case "broker":
 						mod.send('S_NPC_MENU_SELECT', 1, { type: 28 });

+ 1 - 2
manifest.json

@@ -3,7 +3,7 @@
 		"README.md": "af938aff5f1baf9ea7920e9e5b96b6e11b48e5b584dbb7561d19c533c7ac7397",
 		"lib/data/npcData.json": "9949d5b7d18e347c29c46adf44e4ad8a519fc2e87166b0c402860ebaa082fb35",
 		"lib/data/skillString.json": "9d69876fea0be8e6ac5dd43b3fc74ea023f6b8a6145384f8f780dd977045d8ef",
-		"lib/index.js": "806b64c2ae0a1e258739e77e832ae5e52b050d33d64a12d3282b31b4b2a8c6b2",
+		"lib/index.js": "ad738b294ab712fb9bdb6077665454fa217492437eaf7383e7f3b2a2c13e99d9",
 		"lib/setting_migration.js": "b536ca71f44e065c61eb9816758c596d2ad81caabb7fe5bfcaa1191d6a79fe30",
 		"module.json": "00741bd3c50a9764e437f53028fcfc7dd53cda091dd9221718ef6f1b40a20d2f",
 		"node_modules/Gui/LICENSE": "589ed823e9a84c56feb95ac58e7cf384626b9cbf4fda2a907bc36e103de1bad2",
@@ -44,7 +44,6 @@
 		"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": 10,