What's new
  • Visit Rebornbuddy
  • Visit Panda Profiles
  • Visit LLamamMagic
  • Visit Resources
  • Visit Downloads
  • Visit Portal

Suggestion add "IsDead"

Mammon

New Member
Joined
Jun 16, 2012
Messages
413
Reaction score
0
or similiar if it's possible so bossfights and keywarden fights can work more smooth..

possible?
 
Do you mean from within a profile, or a plugin?

Try:

Code:
<If condition="ZetaDia.Me.IsDead">
    <Do Stuff />
</If>
 
You can perform a check to see whether they exist or not:

Code:
ActorExistsAt(256015, ZetaDia.Me.Position.X, ZetaDia.Me.Position.Y, ZetaDia.Me.Position.Z, 150)

I do this for keywardens...once it finds them, then I check if it can't find them. That will tell you that they are either dead (or out of range). Set a high range and it works pretty well.
 
Expanding Magi's code:
PHP:
<!-- Do stuff untill you find the boss or whatever -->
<While condition="not ActorExistsAt(boss_id, ZetaDia.Me.Position.X, ZetaDia.Me.Position.Y, ZetaDia.Me.Position.Z, 150)">
	<!-- Do stuff -->
</While>
<!-- If we are here, boss_id is under 150 range of out bot -->
<While condition="ActorExistsAt(boss_id, ZetaDia.Me.Position.X, ZetaDia.Me.Position.Y, ZetaDia.Me.Position.Z, 150)">
	<!-- Move near boss_id -->
	<!-- Kill boss_id -->
</While>
<!-- If we are here, boss_id is not found in 150 range -->
This way you get near the mob and when you kill it, DB won't be able to find it, so you can continue your profile.
 
Back
Top