|
|
|
Page 1 of 1 |
[ 7 posts ] |
|
 vg.MobArray.GetNearest() VB.Net : VGExtreme General Discussion
|
|
Posted: September 9th, 2007, 4:30 am
|
|
|
|
mdomino69
mdomino69's Reps:
|
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, 2:39 pm
|
|
|
|
Tault_admin
Total Posts: 29974
Joined: November 9th, 2002, 9:57 am
Tault_admin's Reps: 1444
|
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, 12:10 am
|
|
|
|
mdomino69
mdomino69's Reps:
|
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, 1:36 am
|
|
|
|
wyvernx
Total Posts: 6718
Joined: May 1st, 2004, 4:00 am
wyvernx's Reps: 21
|
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, 5:13 am
|
|
|
|
mdomino69
mdomino69's Reps:
|
Where is LOTRWrapper? Didnt see it in VGExtreme folder or do I need to DL it separately?
|
|
|
|
|
Posted: September 10th, 2007, 5:16 am
|
|
|
|
mdomino69
mdomino69's Reps:
|
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, 3:11 pm
|
|
|
|
wyvernx
Total Posts: 6718
Joined: May 1st, 2004, 4:00 am
wyvernx's Reps: 21
|
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!
|
|
|
|
|
Who is online |
|
Users browsing this forum: No registered users and 17 guests |
|
|
|