Fukki 5 years ago
parent
commit
5be4a137d1
2 changed files with 5 additions and 5 deletions
  1. 2 2
      index.js
  2. 3 3
      manifest.json

+ 2 - 2
index.js

@@ -222,7 +222,7 @@ module.exports = function AutoPOT(mod) {
 	});
 	
 	//Because S_PLAYER_STAT_UPDATE faster than CREATURE
-	mod.hook('S_PLAYER_STAT_UPDATE', 16, e => {
+	mod.hook('S_PLAYER_STAT_UPDATE', 17, e => {
 		if (config.enabled) {
 			useHP(Math.round(s2n(e.hp) / s2n(e.maxHp) * 100));
 			useMP(Math.round(s2n(e.mp) / s2n(e.maxMp) * 100));
@@ -239,7 +239,7 @@ module.exports = function AutoPOT(mod) {
 			useMP(Math.round(s2n(e.currentMp) / s2n(e.maxMp) * 100));
 	});*/
 	
-	mod.hook('S_ITEMLIST', 5, e => {
+	mod.hook('S_ITEMLIST', 6, e => {
 		if (!invUpdate && e.gameId === mod.game.me.gameId) {
 			invUpdate = true;
 			for(let hp = 0; hp < hpPot.length; hp++)

+ 3 - 3
manifest.json

@@ -1,6 +1,6 @@
 {
 	"files": {
-		"index.js": "120bb340ac55d908bf5168d2c2f99cf7ba271cbdd6ef2eed5401670931feb639"
+		"index.js": "89097a3b26607dc255256b0123275a80c8b1f199ae7b83356eaf014214dc9c8a"
 	},
 	"defs": {
 		"C_ADMIN": 1,
@@ -8,8 +8,8 @@
 		"C_PLAYER_LOCATION": 5,
 		"C_USE_ITEM": 3,
 		"S_ANNOUNCE_UPDATE_NOTIFICATION": 1,
-		"S_ITEMLIST": 5,
-		"S_PLAYER_STAT_UPDATE": 16,
+		"S_ITEMLIST": 6,
+		"S_PLAYER_STAT_UPDATE": 17,
 		"S_RETURN_TO_LOBBY": "raw",
 		"S_SPAWN_ME": 3
 	}