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

Okay, keys profile in the works, just a small question

Thric3

New Member
Joined
Oct 23, 2012
Messages
70
Reaction score
0
So when I dump the RActors, I see the key, however it isn't given a distance, unlike everything else.

Is there a way to check to see if it exists in the game world at all? (Example, while ActorExists(166943)) (I made that code up).

Thanks for any help.
 
You can do something like this:
PHP:
<While condition="ActorExistsAt(166943,ZetaDia.Me.Position.X,ZetaDia.Me.Position.Y,ZetaDia.Me.Position.Z,50)">
	<!-- Do something -->
</While>
That will "Do something" if the actor id is at range 50 of your char. You can set a higher range if you want, just remember that for this to work, DB must be able to see the id in memory (not necesary to be on your char's visual range). That said, you can't check the ID of a boss at the end of a dungeon if you're at the begining, since DB might not be able to see it.
 
Oh see that's the problem. DB doesn't currently give a distance for the key. So the "50" there doesn't do anything. That's why I'm stuck. I have it getting 5 stacks, as soon as the 5th elite is killed it goes to find the warden, it locates the warden, takes the key and leaves.

But I can't get it to make the decision of whether the key actually dropped or not. DB makes it be picked up. But doesn't give it a distance somehow.

I tried all day today, I'll spend some more time on it tomorrow. I collected like 25 a2 keys today lol.
 
Maybe you can use Trinity's XML tags:
Code:
<TrinityIfSNOInRange snoid="xxxxx" range="yy"> </TrinityIfSNOInRange>
This works like the default "If" tag and can have child nodes. It allows you to check if a particular SNO ID is within a specified range before carrying out actions.
Child-nodes can be any tag type - be they Trinity tags or any other tags (provided by DB or other plugins), and can be nested.
An optional parameter 'type="reverse"' allows you to only process the contents if an SNO is *NOT* within range (or not present at all).
http://www.thebuddyforum.com/demonbuddy-forum/plugins/giles-plugins/73952-trinity-v1-6-new-profile-xml-tags.html
 
Back
Top