Просмотр исходного кода

Update for zerk HP negative when unleash?

Fukki лет назад: 8
Родитель
Сommit
5ea317c0f3
2 измененных файлов с 2 добавлено и 15 удалено
  1. 1 13
      index.js
  2. 1 2
      manifest.json

+ 1 - 13
index.js

@@ -2,7 +2,7 @@ const path = require('path'); const fs = require('fs');
 module.exports = function AutoPOT(mod) {
 	const cmd = mod.command || mod.require.command;
 	let config = getConfig(), hpPot = getHP(), mpPot = getMP();
-	let gPot = null, gLoc = null,isReady = false, isSlaying = false, isZergling = false, nowHP = 0, nowMP = 0;
+	let gPot = null,isReady = false, isSlaying = false, isZergling = false, nowHP = 0, nowMP = 0;
 	mod.game.initialize(['me', 'contract']);
 
 	cmd.add(['autopot', 'pot'], (arg1, arg2) => {
@@ -96,24 +96,12 @@ module.exports = function AutoPOT(mod) {
 		if (mod.game.me.is(e.target) && e.id === 401730)
 			setTimeout(() => {isZergling = false;}, 3000);
 	});
-	
-	mod.hook('C_PLAYER_LOCATION', 5, e => {
-		gLoc = e;
-	});
 
 	function useItem(itemId) {
 		mod.send('C_USE_ITEM', 3, {
 			gameId: mod.game.me.gameId,
 			id: Number(itemId[0]),
-			dbid: 0,
-			target: 0,
 			amount: 1,
-			dest: 0,
-			loc: gLoc.loc,
-			w: gLoc.w,
-			unk1: 0,
-			unk2: 0,
-			unk3: 0,
 			unk4: true
 		});
 	}

+ 1 - 2
manifest.json

@@ -1,9 +1,8 @@
 {
 	"files": {
-		"index.js": "618b157a9afd416d9bdab4d33da459dcbe4840abc06e38e775ca92ff4dd63b92"
+		"index.js": "9c56f82455c451000ccec581c54518d204f4f8eb6c5e3329e9e15d910dcca4d0"
 	},
 	"defs": {
-		"C_PLAYER_LOCATION": 5,
 		"C_USE_ITEM": 3,
 		"S_ABNORMALITY_BEGIN": 3,
 		"S_ABNORMALITY_END": 1,