[python] chceck chr is alive

01/31/2019 13:24 nikomaz1022#1
Hi. I want to do some hack in python. I have to check, that other players in range (10000) are alive or not. I got some code but its not working good for me. Is there any different method of function to chceck other players HP or status (dead/alive) by VID?

Code:
o=player.GetMainCharacterIndex()
for i in xrange(o-150000, o+150000):
	dys = player.GetCharacterDistance(i)
	if dys > 0 and dys < 7500:
		a = chr.GetInstanceType(i)
		if a==6:
			imie=chr.GetNameByVID(i)
			chat.AppendChat(7,"# player in range: "+str(imie)) +" - dys: "+str(int(dys)))
			#====================== work but only in ~7500 and loosing my char target ======================
			player.SetTarget(i)
			if player.GetTargetVID() != 0:
				chat.AppendChat(7,"# alive by target")
			else:
				chat.AppendChat(7,"# dead by target")
			#====================== only for mobs? ======================
			info = chrmgr.GetVIDInfo(i)
			chat.AppendChat(7,"# isalive: "+info.split("isAlive=")[1][0])
part "only for mobs" isnt working well:
[Only registered and activated users can see links. Click Here To Register...]
02/09/2019 22:16 KaMeR1337#2
there is no way to check if player is dead in python only
02/23/2019 20:55 Harveygx123#3
Quote:
Originally Posted by KaMeR1337 View Post
there is no way to check if player is dead in python only
Hi I'm searching find current health mobs is it possible get value from uiTarget module ? I want to check
stone steal (ks) in farm mode. I can't use vid method cause in private server vids are change really fast it cause between range from startvid and endvid too long.