Browse Source

1.2.6

* [~] Look and feel will now be the same on Caali's and Pinkie's proxy
TeraProxy 8 years ago
parent
commit
01b7057636
4 changed files with 16 additions and 11 deletions
  1. 7 3
      README.md
  2. 5 4
      index.js
  3. 3 3
      manifest.json
  4. 1 1
      module.json

+ 7 - 3
README.md

@@ -1,16 +1,18 @@
 ##### :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. Works on Caali's and Pinkie Pie's tera-proxy.
 
 
 ##### :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 AFKer: https://github.com/TeraProxy/AFKer/archive/master.zip
 1) Download AFKer: https://github.com/TeraProxy/AFKer/archive/master.zip
 2) Extract the contents of the zip file into "\tera-proxy\bin\node_modules\"
 2) Extract the contents of the zip file into "\tera-proxy\bin\node_modules\"
-3) Done! (the module will auto-update when a new version is released)
+3) Done! (the module will auto-update on Caali's proxy when a new version is released)
+  
+Users of Pinkie's proxy also need to install tera-game-state: https://github.com/caali-hackerman/tera-game-state/archive/master.zip  
   
   
 If you enjoy my work and wish to support future development, feel free to drop me a small donation: [![Donate](https://www.paypalobjects.com/webstatic/en_US/i/buttons/PP_logo_h_100x26.png)](https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=A3KBZUCSEQ5RJ&lc=US&item_name=TeraProxy&curency_code=USD&no_note=1&no_shipping=1&currency_code=USD&bn=PP%2dDonationsBF%3abtn_donate_SM%2egif%3aNonHosted)
 If you enjoy my work and wish to support future development, feel free to drop me a small donation: [![Donate](https://www.paypalobjects.com/webstatic/en_US/i/buttons/PP_logo_h_100x26.png)](https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=A3KBZUCSEQ5RJ&lc=US&item_name=TeraProxy&curency_code=USD&no_note=1&no_shipping=1&currency_code=USD&bn=PP%2dDonationsBF%3abtn_donate_SM%2egif%3aNonHosted)
 
 
 # AFKer
 # AFKer
 A tera-proxy module that prevents you from getting back to the character select screen.  
 A tera-proxy module that prevents you from getting back to the character select screen.  
-This has the side effect that the server's AFK check will not kick you out of the game.  
+Once activated, the server's AFK check will not kick you out of the game.  
 
 
 ## Usage
 ## Usage
 The script is enabled by default and will prevent you from getting logged out when you are standing still for an hour.  
 The script is enabled by default and will prevent you from getting logged out when you are standing still for an hour.  
@@ -28,6 +30,8 @@ Whatever you send to the proxy chat in game is intercepted client-side. The chat
 ## Changelog
 ## Changelog
 <details>
 <details>
 
 
+### 1.2.6
+* [~] Look and feel will now be the same on Caali's and Pinkie's proxy
 ### 1.2.5
 ### 1.2.5
 * [~] Code changes due to Caali's recent tera-proxy updates
 * [~] Code changes due to Caali's recent tera-proxy updates
 * [-] Removed support for Pinkie Pie's tera-proxy
 * [-] Removed support for Pinkie Pie's tera-proxy

+ 5 - 4
index.js

@@ -1,9 +1,10 @@
-// Version 1.2.5
+// Version 1.2.6
 
 
 module.exports = function afker(mod) {
 module.exports = function afker(mod) {
 
 
 	let enabled = true,
 	let enabled = true,
-		lasttimemoved = Date.now()
+		lasttimemoved = Date.now(),
+		niceName = mod.proxyAuthor !== 'caali' ? '[AFK] ' : ''
 
 
 	mod.hook('C_PLAYER_LOCATION', 5, event => {
 	mod.hook('C_PLAYER_LOCATION', 5, event => {
 		if([0,1,5,6].indexOf(event.type) > -1) // running / walking / jumping / jumping (steep terrain)
 		if([0,1,5,6].indexOf(event.type) > -1) // running / walking / jumping / jumping (steep terrain)
@@ -20,7 +21,7 @@ module.exports = function afker(mod) {
 
 
 	mod.command.add('afk', () => {
 	mod.command.add('afk', () => {
 		enabled = !enabled
 		enabled = !enabled
-		mod.command.message((enabled ? '<font color="#56B4E9">enabled</font>' : '<font color="#E69F00">disabled</font>'))
-		console.log('[AFKer] ' + (enabled ? 'enabled' : 'disabled'))
+		mod.command.message(niceName + 'AFKer ' + (enabled ? '<font color="#56B4E9">enabled</font>' : '<font color="#E69F00">disabled</font>'))
+		console.log('AFKer ' + (enabled ? 'enabled' : 'disabled'))
 	})
 	})
 }
 }

+ 3 - 3
manifest.json

@@ -1,9 +1,9 @@
 {
 {
 	"files": {
 	"files": {
 		"LICENSE": "589ed823e9a84c56feb95ac58e7cf384626b9cbf4fda2a907bc36e103de1bad2",
 		"LICENSE": "589ed823e9a84c56feb95ac58e7cf384626b9cbf4fda2a907bc36e103de1bad2",
-		"README.md": "d0922e6343efc56966371d4564f133d579bc4327c61888cfde4c9fff9f86ae87",
-		"index.js": "f6d8cb12697eafbc7d6d004472341b797f9db81d9bcdb51e423fabc1bc2d6e52",
-		"module.json": "70512cd54442c8e5e42847e1dcea01747714199ff96179f472db8b7589e82abd"
+		"README.md": "e33349b904a6086263f38b9cfd1629a5ee03d11c05c5185e1c60088b329c8270",
+		"index.js": "f67dcc686a0e521fa809166cfa31f08ccbe0c326acbbb5843e590c927ed00b6d",
+		"module.json": "d8916e4dd7b73c4654283afb45dd2a68e4f2aaa28924cdce65a7595cb50e639b"
 	},
 	},
 	"defs": {
 	"defs": {
 		"C_PLAYER_LOCATION": 5,
 		"C_PLAYER_LOCATION": 5,

+ 1 - 1
module.json

@@ -1,7 +1,7 @@
 {
 {
     "disableAutoUpdate": false,
     "disableAutoUpdate": false,
     "options": {
     "options": {
-        "niceName": "AFKer"
+        "niceName": "AFK"
     },
     },
     "servers": ["https://raw.githubusercontent.com/TeraProxy/AFKer/master/"],
     "servers": ["https://raw.githubusercontent.com/TeraProxy/AFKer/master/"],
     "supportUrl": "https://github.com/TeraProxy/AFKer/issues"
     "supportUrl": "https://github.com/TeraProxy/AFKer/issues"