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

ObjectExists() Request

Nuok

Community Developer
Joined
Jan 15, 2010
Messages
975
Reaction score
28
I would like to see if a game object exists within a questing profile, I cant use the objectmanager.

I could recode the beahvior to skip if its not there rather than waiting but id rather it just be in an if statement.

So if possible could you add an ObjectExists() like with hasItem() :)
 
why can't you use the objectmanager? should such a shortcut be added it would presumably defer to it anyway. is there something wrong with the following code? (disclaimer: I haven't actually tested)
Code:
<If Condition="null != Styx.WoWInternals.ObjectManager.GetObjectsOfType&lt;WoWGameObject&gt;().Where(o =&gt; o.Entry == 1234).FirstOrDefault()">

</If>
sure it's a pain to escape > and < (and add the namespace because I'm not sure what's available in the condition) but completely doable.
 
Back
Top