Quote:
Originally Posted by sadusten
Oh okay i see, thanks for your help, and the reason why i had
Code:
$mmiku = targetnextally() instead of the getagentbyname("Miku")
is because it didnt work so i just wanted her targeted and then gethealth(-1) but now i know 
|
You can also read out the agent model id and work with that instead of targeting her. Miku has an unique model id which allows you to find only her by the agent model.
To be very sure u can also check, level, professions, yielded weapons, position after init etc.
OR you target her and temporary save her agent in her own global.
Then u just check if global == 0 then global = get nearest agent
Or whatever.