TeraProxy 8 years ago
parent
commit
3db39a2091
3 changed files with 15 additions and 8 deletions
  1. 3 1
      README.md
  2. 10 5
      index.js
  3. 2 2
      manifest.json

+ 3 - 1
README.md

@@ -1,5 +1,5 @@
 ##### :heavy_exclamation_mark: Status :heavy_exclamation_mark:
 ##### :heavy_exclamation_mark: Status :heavy_exclamation_mark:
-Should work on all regions as long as the opcodes are mapped. Thanks to EME's recent unjustified DMCA actions against developers, opcodes for NA are no longer mapped.
+Should work on all regions as long as the opcodes are mapped. Thanks to EME's unjustified DMCA actions against developers, opcodes for NA are no longer mapped.
 
 
 ##### :heavy_exclamation_mark: Installation for Caali's tera-proxy :heavy_exclamation_mark:
 ##### :heavy_exclamation_mark: Installation for Caali's tera-proxy :heavy_exclamation_mark:
 1) Download Essentials: https://github.com/TeraProxy/Essentials/archive/master.zip
 1) Download Essentials: https://github.com/TeraProxy/Essentials/archive/master.zip
@@ -38,6 +38,8 @@ Based on true-everful-nostrum by Caali https://github.com/caali-hackerman
 ## Changelog
 ## Changelog
 <details>
 <details>
 
 
+### 2.0.1
+* [*] Fixed CCB always being used on login
 ### 2.0.0
 ### 2.0.0
 * [*] Fixed Nostrum items being used after every loading screen
 * [*] Fixed Nostrum items being used after every loading screen
 * [*] Fixed missing abnormalities for some Crystalbind and Nostrum items
 * [*] Fixed missing abnormalities for some Crystalbind and Nostrum items

+ 10 - 5
index.js

@@ -1,10 +1,10 @@
-// Version 2.0.0
+// Version 2.0.1
 // Based on true-everful-nostrum by Pinkie Pie https://github.com/pinkipi
 // Based on true-everful-nostrum by Pinkie Pie https://github.com/pinkipi
 // Based on true-everful-nostrum by Caali https://github.com/caali-hackerman
 // Based on true-everful-nostrum by Caali https://github.com/caali-hackerman
 
 
 'use strict'
 'use strict'
 
 
-const ITEMS_NOSTRUM = [152898, 184659, 201005, 201006, 201007, 201008, 201022, 855604], // EU, NA, RU, TW, ?, ?, ?, TH
+const ITEMS_NOSTRUM = [152898, 184659, 201005, 201006, 201007, 201008, 201022, 855604], // EU, NA, RU, TW, ?, ?, JP , TH
 	BUFF_NOSTRUM = [4020, 4021, 4022, 4023, 4030, 4031, 4032, 4044], // Nostrum abnormalities
 	BUFF_NOSTRUM = [4020, 4021, 4022, 4023, 4030, 4031, 4032, 4044], // Nostrum abnormalities
 	BUFF_CCB = [4610, 4611, 4612, 4613, 4615, 4616, 4950, 5000003, 5020003], // Complete Crystalbind abnormalities
 	BUFF_CCB = [4610, 4611, 4612, 4613, 4615, 4616, 4950, 5000003, 5020003], // Complete Crystalbind abnormalities
 	BUFF_INVINCIBILITY = [1134, 6007] // Invincibility abnormalities on resurrection
 	BUFF_INVINCIBILITY = [1134, 6007] // Invincibility abnormalities on resurrection
@@ -23,9 +23,15 @@ module.exports = function Essentials(mod) {
 	// ############# //
 	// ############# //
 
 
 	mod.game.on('enter_game', () => { start() })
 	mod.game.on('enter_game', () => { start() })
-	mod.game.on('leave_game', () => { stop() })
+	mod.game.on('leave_game', () => {
+		stop()
+		abnormalities = {}
+	})
 
 
-	mod.game.me.on('resurrect', () => { start() })
+	mod.game.me.on('resurrect', () => {
+		abnormalities = {}
+		start()
+	})
 
 
 	mod.hook('S_PCBANGINVENTORY_DATALIST', 1, event => {
 	mod.hook('S_PCBANGINVENTORY_DATALIST', 1, event => {
 		for(let item of event.inventory)
 		for(let item of event.inventory)
@@ -119,7 +125,6 @@ module.exports = function Essentials(mod) {
 			clearInterval(interval)
 			clearInterval(interval)
 			interval = null
 			interval = null
 		}
 		}
-		abnormalities = {}
 	}
 	}
 
 
 	// ################ //
 	// ################ //

+ 2 - 2
manifest.json

@@ -1,12 +1,12 @@
 {
 {
 	"files": {
 	"files": {
 		"LICENSE": "589ed823e9a84c56feb95ac58e7cf384626b9cbf4fda2a907bc36e103de1bad2",
 		"LICENSE": "589ed823e9a84c56feb95ac58e7cf384626b9cbf4fda2a907bc36e103de1bad2",
-		"README.md": "8d9fc63807c909955a14b9664ed023ed43502c9142ad7a5ce14f360f9fd0ed58",
+		"README.md": "5d12f5cfa9ee2cace492937f60df59531cf83910886d4de751127c172713057a",
 		"config.json": {
 		"config.json": {
 			"overwrite": false,
 			"overwrite": false,
 			"hash": "a4b1339b7b5438cedc3f91a24e6b845c181c4990f7453f5d6b1822d32ee19f78"
 			"hash": "a4b1339b7b5438cedc3f91a24e6b845c181c4990f7453f5d6b1822d32ee19f78"
 		},
 		},
-		"index.js": "2499119c3bc768e5cef9d72ef2a9c0788fae99dc92f4e14d723f2eb3118b3116",
+		"index.js": "f0babfb3df25ff4d4eee032190401e11a91fa64767734180a24c8a616d665e40",
 		"module.json": "395c3a7be155e332cbfeb2788946f42dc47b195659128bac685813025a192299",
 		"module.json": "395c3a7be155e332cbfeb2788946f42dc47b195659128bac685813025a192299",
 		"settings_migrator.js": "380eedc5a1e831f62363e4b089a897b0cf606c50b9c5032f9ce2bf5073136a37"
 		"settings_migrator.js": "380eedc5a1e831f62363e4b089a897b0cf606c50b9c5032f9ce2bf5073136a37"
 	},
 	},