Mob alive

07/06/2013 12:56 564lopes564#1
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?
07/06/2013 14:41 [uLow]NTX?!#2
What do you want todo ?

Want to check if an Mob is alive then check in isAlive = 1 and isRegisterd = 0
07/06/2013 15:56 564lopes564#3
I have always isAlive = 1 and isRegisterd = 1
07/06/2013 16:00 [uLow]NTX?!#4
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...]
07/06/2013 18:43 noahrmal#5
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