Register for your free account! | Forgot your password?

Go Back   elitepvpers > Popular Games > Metin2
You last visited: Today at 03:02

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



[python] chceck chr is alive

Discussion on [python] chceck chr is alive within the Metin2 forum part of the Popular Games category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Oct 2018
Posts: 2
Received Thanks: 1
[python] chceck chr is alive

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:
nikomaz1022 is offline  
Thanks
1 User
Old 02/09/2019, 22:16   #2
 
KaMeR1337's Avatar
 
elite*gold: 0
Join Date: May 2008
Posts: 1,415
Received Thanks: 5,444
there is no way to check if player is dead in python only
KaMeR1337 is offline  
Thanks
2 Users
Old 02/23/2019, 20:55   #3
 
elite*gold: 0
Join Date: Dec 2015
Posts: 8
Received Thanks: 1
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.
Harveygx123 is offline  
Reply


Similar Threads Similar Threads
[Python-Modul]EXP-Donator (kompatibel mit Python Loader)
11/23/2013 - Metin2 Hacks, Bots, Cheats, Exploits & Macros - 27 Replies
Moin, da man mich danach gefragt hat und ich sowieso mal ein Beispiel für die Benutzung meines Python Loaders veröffentlichen wollte, habe ich die Gelegenheit genutzt und euch eben einen EXP-Spendebot geschrieben. Man kann ihn einfach mit dem oben verlinkten Python Module Loader laden und ihn mit F5 aktivieren/deaktivieren. Sobald ihr mehr als 99 Erfahrungspunkte habt (man kann nur in 100er Schritten spenden), werden alle Erfahrungspunkte an eure Gilde gespendet. Wer Lust hat und...
[Python]Python Loader vs import
07/29/2013 - Metin2 Private Server - 2 Replies
when i tried to inject my bot with this pyScrLoader = ui.PythonScriptLoader() pyScrLoader.LoadScriptFile(self, "eigenartig/mainboard.py") syserr shows me: 0728 16:55:05139 :: CEffectManager::RegisterEffect - LoadScript(d:/ymir work/effect/hit/percent_damage1.mse) Error 0728 16:55:05139 :: CInstanceBase::RegisterEffect(eEftType=264, c_szEftAttachBone=, c_szEftName=d:/ymir work/effect/hit/percent_damage1.mse, isCache=1) - Error 0728 16:55:05139 :: CEffectManager::RegisterEffect...
Help to make a python file works with python loader
03/03/2013 - Metin2 - 2 Replies
Hey epvp! I want make a very. Little hack works on pythonn loader can anybody help me please?
Metin2 - Python - Wie Python Hacks verschlüsseln und Server überprüfen (GF/PServe)
09/23/2012 - Metin2 - 2 Replies
Ich wollte fragen, wie man Python Hacks am besten Verschlüsselt ? und wie man feststellen kann ob man auf einem GF / Pserver spielt. ?
Python + Eric Python IDE installieren ?!
07/05/2011 - General Coding - 0 Replies
hat sich erledigt.



All times are GMT +1. The time now is 03:02.


Powered by vBulletin®
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2025 elitepvpers All Rights Reserved.