Python Hack (Help to change VID for attack)

08/01/2018 14:52 raresfranky#1
Hi ! I use this python hack: iPUSH.py .([Only registered and activated users can see links. Click Here To Register...]) and AutoAttack not work for me on my server. values for AutoAttack:
0 = Monster
2 = Metinstones
6 = Other players

I change the values and still not work.
Can anyone help me to change the python code to attack the methine stones with VID: 4660960 ? or help me with fixing the autoattack.

Code:
### AutoAttack ###
 [MENTION=337244]Static[/MENTION]method
	def autoAttack(type):
		nearestEnemey = MyFunc.walkToEnemy(type)
		isAlive = MyFunc.isAlive(nearestEnemey)
		isInRange = player.GetCharacterDistance(nearestEnemey) < 300
		tp = (float(player.GetStatus(player.HP)) / (float(player.GetStatus(player.MAX_HP))) * 100)
		if (isAlive and isInRange) or tp < 90:
			MyFunc.setCharDirection(nearestEnemey)
			chr.SetRotation(MyFunc.getDegree(nearestEnemey))
			player.SetAttackKeyState(TRUE)
		else:
			player.SetAttackKeyState(FALSE)
...

Code:
### AutoAttack ###
autoAttackEditLine = Gui.addEditLine(mainBoard, 70, pos+1, 20, 16, "0", 2)	# 0 = Mobs | 2 = Metins | 6 = Players
autoAttackBtn = Gui.addToggleButton(mainBoard, "AutoAttack", 5, pos, "middle", lambda : MyFunc.autoAttack(int(autoAttackEditLine[1].GetText())), lambda : player.SetAttackKeyState(FALSE), 1); pos += 20
[Only registered and activated users can see links. Click Here To Register...]

Thanks!

PS: Sorry for my english.
01/04/2019 23:01 MasterZin#2
Friend, I'm trying to do the same thing and no luck at all. The metins vid doesn't work for my client.
11/15/2020 09:18 baba4507#3
+1