Post Reply Home » Forums » Vanguard » VGExtreme General Discussion

vg.MobArray.GetNearest() VB.Net : VGExtreme General Discussion

Posted: September 9th, 2007
mdomino69
I am trying to use vg.MobArray.GetNearest() in VB.Net and get a type mismatch when trying to send a MsgBox with the entire array, which is a problem. I am also unable to send a messagebox with the ArrayName.Item(0) syntax as well.

It is giving an error converting a byRef to String. Any ideas on how I can do this to show the entire MobArray, I am working on a new Necro bot.

Thanks
Posted: September 9th, 2007
User avatar
administrator
Total Posts:29918 Joined:2002
well the returned value is a ArrayList which is an object. So you really cant msgbox the array. You have to do a for each or similar and iterate over the array to get out each mob you wish to get info about.

you can do something like this also ((IMob)ReturnedArray[5]).Name
Posted: September 10th, 2007
mdomino69
In VB.Net how would I go about declaring IMOB or where do I do that, and also could I get a quick example? Or a place pointing me to one

Because the above code doesn't work and I am trying to get back in the swing of things with including DLLs in my applications.
Posted: September 10th, 2007
User avatar
Premium
Total Posts:6718 Joined:2004
When you add a reference to the LotrWrapper.dll, it should have all of them defined.

_________________
Use Search first, ask questions later!
Posted: September 10th, 2007
mdomino69
Where is LOTRWrapper? Didnt see it in VGExtreme folder or do I need to DL it separately?
Posted: September 10th, 2007
mdomino69
Sorry to spam the forums!

If you meant VGEWrapper I have it included and can do everything except recieve the property of a mob.

Is there any way I could get a copy of the declaration and a quick piece of code to pull the name or HP or something from a mob in my ArrayList (called Mobs)

Thanks again, you're a great help!
Posted: September 10th, 2007
User avatar
Premium
Total Posts:6718 Joined:2004
Yes, VGEWrapper....

If you look at the object browser you can find the IMob interface in like VGEWrapper.Interfaces.IMob.

_________________
Use Search first, ask questions later!
Ready to join the community? Click here and see all of the benefits!
blue large dotWho is online
Users browsing this forum: Google Adsense [Bot] and 6 guests
Post Reply