Browse Source

Patch 108

• `sRequestContract` to v2.
• Coloring/fix minor typos.
Risenio 5 years ago
parent
commit
afadc1b711
3 changed files with 8 additions and 8 deletions
  1. 2 2
      README.md
  2. 3 3
      index.js
  3. 3 3
      manifest.json

+ 2 - 2
README.md

@@ -86,7 +86,7 @@
   * 1 dependency;
     - tera-game-state
       - If you're using Caali's proxy(toolbox), you don't have to do anything, as this comes along-with by default.
-      - If you're using Pinkie's proxy, you will have to get it, via [this LINK](https://github.com/tera-mods-forks/tera-game-state) & place it in your mods folder (`[proxy dir]/mods`).
+      - If you're using Pinkie's proxy, you will have to get it, via [this LINK](https://github.com/tera-mods-forks/tera-game-state) & place it in your mods folder (`[proxy dir]/mods/`).
 
 ## Additional information
   It will also send a warning if the same exact item is available in more than one page (i.e. Duplicate) in your storage space. (the warning will include a blue clickable links, you can click it to show the item).
@@ -98,7 +98,7 @@
     - ? It have banked same item in 2 different pages.
       - A: Its impossible, script will never bank an item in different page, even if page is full. (Make sure you don't already have that item in different pages, aka see duplication log).
     - ? It moved my items from pocket/inventory to other pockets or to inventory.
-      - A: Its client behaviour, works only for ¹stacked items. If a stacked item has more amount in slot than the other slot, and you banked it; the less amount one will be moved from the 'other slot' to get in place of the banked one. ¹Unstacked items are unaffected.
+      - A: Its client behaviour, works only for ¹stacked items. If a stacked item has more amount in slot than the other slot, and you banked it; the less amount one will be moved from the 'other slot' to get in place of the banked one. ¹Unstackable items are unaffected.
 
 ## Proof of concept
   <details>

+ 3 - 3
index.js

@@ -92,13 +92,13 @@ module.exports = function AutoBank(mod) {
 			resetValues()
 		}
 	}
-	//function sSytemMessage(event) { if (enabled && mod.parseSystemMessage(event.message).id === 'SMT_WAREHOUSE_FULL') return false }
+	//function sSytemMessage(event) { if (Enabled && mod.parseSystemMessage(event.message).id === 'SMT_WAREHOUSE_FULL') return false }
 
 	// ~~~ * Hooks * ~~~ \\
 
 	mod.hook('S_VIEW_WARE_EX', defs.sViewWareEx, sViewWareEx)
 	mod.hook('C_PUT_WARE_ITEM', defs.cPutWareItem, cPutWareItem)
-	mod.hook('S_REQUEST_CONTRACT', 1, sRequestContract)
+	mod.hook('S_REQUEST_CONTRACT', mod.majorPatchVersion > 107 ? 2 : 1, sRequestContract)
 	mod.hook('S_CANCEL_CONTRACT', 1, sCancelContract)
 	//mod.hook('S_SYSTEM_MESSAGE', 1, sSytemMessage)
 
@@ -151,7 +151,7 @@ module.exports = function AutoBank(mod) {
 
 	// ~~~ * Command Functions * ~~~ \\
 
-	const Msg = msg => mod.command.message(`${NotCP ? '[Auto-Bank]' : ''} ${msg}`),
+	const Msg = msg => mod.command.message(`${NotCP ? '[<font color="#0ff1ce">Auto-Bank</font>]' : ''} ${msg}`),
 		resetValues = () => {
 			if (AddToBl) toggleAddToBl()
 			if (RmvFromBl) toggleRmvFromBl()

+ 3 - 3
manifest.json

@@ -1,7 +1,7 @@
 {
     "files": {
-        "README.md": "9aad6fc5c7fa9e5cefa503cb5c5950b96a1d9f5c889d3c7d8d4f6383a4043992",
-        "index.js": "f970e24fcecf5f9cd4d11a045f3182cb7edb65be42e85bb237447fc3c2349214",
+        "README.md": "965012806ad7acf9ad4b81d58537a71e934d362c31becf538251fa5d45c3302b",
+        "index.js": "4ac0d44f5661fc718247c5a9c9399eb91ade264b007676eff3610bba3dd0494f",
         "module.json": "df54235a322877d003fa9a33d00cc19aaa8fb0808782399179e34d4e191fba8a",
         "package.json": "b9e2b74cb3dfef6d72d3829b2df3ca9d516c84e40daf22c8d141151c33769396"
     },
@@ -10,7 +10,7 @@
         "C_PUT_WARE_ITEM": 3,
         "C_VIEW_WARE": 2,
         "S_CANCEL_CONTRACT": 1,
-        "S_REQUEST_CONTRACT": 1,
+        "S_REQUEST_CONTRACT": [1, 2],
         "S_VIEW_WARE_EX": 3
     }
 }