teralove лет назад: 8
Родитель
Сommit
42a6dd5974
2 измененных файлов с 9 добавлено и 6 удалено
  1. 4 1
      README.MD
  2. 5 5
      index.js

+ 4 - 1
README.MD

@@ -24,6 +24,9 @@ tera-proxy module that skips lockons and instantly heals and cleanses party memb
 ## Changelog
 ## Changelog
 <details>
 <details>
 
 
+    1.41
+    - Updated protocol versions.
+    - Set max distance to 32m
     1.40
     1.40
     - Faster response
     - Faster response
     - Added: Priest's Immersion skill.
     - Added: Priest's Immersion skill.
@@ -37,7 +40,7 @@ tera-proxy module that skips lockons and instantly heals and cleanses party memb
     - Added autocleanse command
     - Added autocleanse command
     - Removed slash support
     - Removed slash support
     1.20
     1.20
-    - Added heal skills for or lvl characters. You can use it even if u have lowlvl char.
+    - Added heal skills for low level characters.
     - Fix hp choosing bug, now targets with full hp will not receive heal.
     - Fix hp choosing bug, now targets with full hp will not receive heal.
     1.12
     1.12
     - Added mystic's focus heal X
     - Added mystic's focus heal X

+ 5 - 5
index.js

@@ -24,7 +24,7 @@ module.exports = function AutoHeal(dispatch) {
         ]
         ]
     };
     };
     
     
-    const MaxDistance = 30; // in-game meters. can work up to 35m but can look suspicious
+    const MaxDistance = 32; // in-game meters. can work up to 35m
     const MaxHp = 0.97;     //(healing) ignore members that have more HP% than this
     const MaxHp = 0.97;     //(healing) ignore members that have more HP% than this
     
     
     let enabled = true,
     let enabled = true,
@@ -47,7 +47,7 @@ module.exports = function AutoHeal(dispatch) {
         command.message('(auto-heal) Cleansing ' + (enabled ? 'enabled' : 'disabled'));
         command.message('(auto-heal) Cleansing ' + (enabled ? 'enabled' : 'disabled'));
     });
     });
     
     
-    dispatch.hook('S_LOGIN', 9, (event) => {
+    dispatch.hook('S_LOGIN', 10, (event) => {
         playerId = event.playerId;
         playerId = event.playerId;
         job = (event.templateId - 10101) % 100;
         job = (event.templateId - 10101) % 100;
         (Skills[job]) ? enabled = true : enabled = false; 
         (Skills[job]) ? enabled = true : enabled = false; 
@@ -105,7 +105,7 @@ module.exports = function AutoHeal(dispatch) {
         }
         }
     })
     })
     
     
-    dispatch.hook('C_START_SKILL', 4, (event) => {
+    dispatch.hook('C_START_SKILL', 5, (event) => {
         if (!enabled) return;
         if (!enabled) return;
         if (partyMembers.length == 0) return; // be in a party
         if (partyMembers.length == 0) return; // be in a party
         if ((event.skill - 0x4000000) / 10 & 1 != 0) { // is casting (opposed to locking on)
         if ((event.skill - 0x4000000) / 10 & 1 != 0) { // is casting (opposed to locking on)
@@ -142,7 +142,7 @@ module.exports = function AutoHeal(dispatch) {
                 }
                 }
                 
                 
                 setTimeout(() => {
                 setTimeout(() => {
-                    dispatch.toServer('C_START_SKILL', 4, Object.assign({}, event, {w: playerLocation.w, skill: (event.skill + 10)}));
+                    dispatch.toServer('C_START_SKILL', 5, Object.assign({}, event, {w: playerLocation.w, skill: (event.skill + 10)}));
                 }, 10);
                 }, 10);
             }
             }
         }
         }
@@ -187,4 +187,4 @@ module.exports = function AutoHeal(dispatch) {
         });
         });
     }
     }
     
     
-}
+}