elitepvpers

elitepvpers (https://www.elitepvpers.com/forum/)
-   Metin2 (https://www.elitepvpers.com/forum/metin2/)
-   -   Mob alive (https://www.elitepvpers.com/forum/metin2/2703345-mob-alive.html)

564lopes564 07/06/2013 12:56

Mob alive
 
Hi all !

I have one little question, how to check status target by vid?

Function chrmgr.GetVIDInfo always return (isRegistered = 1, isAlive = 1, isDead = 0)

So how i can get info about that vid?

[uLow]NTX?! 07/06/2013 14:41

What do you want todo ?

Want to check if an Mob is alive then check in isAlive = 1 and isRegisterd = 0

564lopes564 07/06/2013 15:56

I have always isAlive = 1 and isRegisterd = 1

[uLow]NTX?! 07/06/2013 16:00

Em okay, then i dont know.

But i noticed, that we are in the wrong section.!

#moverequest

This is the Right section:[Only registered and activated users can see links. Click Here To Register...]

noahrmal 07/06/2013 18:43

You can take a look at the source of the levelbot by DaRealFreak:

-> [Only registered and activated users can see links. Click Here To Register...]


especially this part:

PHP Code:

def IsMobAlive(vid):
    global 
LastCheck
    
global MatchCount
    
global HookedVid
    chr
.SelectInstance(vid)
    
BoundBox chr.GetBoundBoxOnlyXY(vid)
    
Distance player.GetCharacterDistance(vid)
    if 
chr.GetInstanceType(vid) == chr.INSTANCE_TYPE_ENEMY:
    
        if 
HookedVid[0] == vid and HookedVid[1] <= and Distance <= 200:
            return 
0
    
        
if LastCheck == str(BoundBox):
            
MatchCount += 1
        
else:
            
MatchCount 0
        LastCheck 
str(BoundBox)
        
        if 
Distance >= 975:
            return 
1
            
        
if MatchCount >= 9:
            
MatchCount 0
            
return 0
        
else:
            return 
1
    
else:
        if 
BoundBox[3] >= 175:
            return 
0
        
else:
            return 




All times are GMT +2. The time now is 11:02.

Powered by vBulletin®
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.