taultunleashed logovg.MobArray.GetNearest() VB.Net : VGExtreme General Discussion
newtopic  postreply
 [ 7 posts ] 
blue large dot

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

Posted: September 9th, 2007, 4:30 am
 
mdomino69
mdomino69's Reps:
User avatar
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


Reply with quote
Posted: September 9th, 2007, 2:39 pm
 
Tault_admin

Total Posts: 29974
Joined: November 9th, 2002, 9:57 am
Tault_admin's Reps: 1444
User avatar
administrator
Mod in Training
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


Reply with quote
Posted: September 10th, 2007, 12:10 am
 
mdomino69
mdomino69's Reps:
User avatar
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.


Reply with quote
Posted: September 10th, 2007, 1:36 am
 
wyvernx

Total Posts: 6718
Joined: May 1st, 2004, 4:00 am
wyvernx's Reps: 21
User avatar
administrator
premium
When you add a reference to the LotrWrapper.dll, it should have all of them defined.

_________________
Use Search first, ask questions later!


Reply with quote
Posted: September 10th, 2007, 5:13 am
 
mdomino69
mdomino69's Reps:
User avatar
Where is LOTRWrapper? Didnt see it in VGExtreme folder or do I need to DL it separately?


Reply with quote
Posted: September 10th, 2007, 5:16 am
 
mdomino69
mdomino69's Reps:
User avatar
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!


Reply with quote
Posted: September 10th, 2007, 3:11 pm
 
wyvernx

Total Posts: 6718
Joined: May 1st, 2004, 4:00 am
wyvernx's Reps: 21
User avatar
administrator
premium
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!


Reply with quote
Want Advertisements After The Last Post Removed? Create A Free Account!

blue large dot Who is online
Users browsing this forum: No registered users and 8 guests

Popular Sections
SWTOR Cheats
Guild Wars 2 Cheats
Guild Wars 2 Hacks
Guild Wars 2 Bots
Diablo 3 Cheats
Guild Wars 2 Mods

Popular Sections
WoW Cataclysm Cheats & Exploits
WoW Cataclysm Hacks & Bots
Star Wars The Old Republic Cheats
SWTOR Mods
Torchlight 2 Cheats
SWTOR Space Mission Bots
Site Nav and RSS
RSS Feed of VGExtreme General Discussion RSS Feed 
Sitemap of VGExtreme General Discussion Sitemap 
SitemapIndex SitemapIndex
RSS Feed RSS Feed
Channel list Channel list
left bottom corner Site and Contents Copyright 2001-2012 All Rights Reserved TaultUnleashed.com bottom corner
top left
top right
createaccount
Username:   Password:   Remember Me?