Post Reply Home » Forums » Lord of the Rings Online » LOTRO - Bots and Hacks » LOTROExtreme

VB & LOTROextreme : LOTROExtreme

Posted: April 30th, 2007
tault_razorwing
Hello,
i was wondering is there any tutorials in which i can use to connect VB to lotroextreme?

Thanks
RazorWing
Posted: April 30th, 2007
User avatar
Premium
Total Posts:6718 Joined:2004
I havnt released the COM Wrapper yet. Unless you mean VB.Net. If you meant VB.Net, just add a reference to the LOTRWrapper.dll and its pretty self explanitory. If you mean VB6, I'll have to release the COM wrapper before it will work.

_________________
Use Search first, ask questions later!
Posted: April 30th, 2007
tault_razorwing
I have Visual Studio 2005 so VB.Net will be Fine :)

I have added LOTRWrapper.dll to my Reference COM in my project, just wondering how do i start getting ingame values into VB?
Posted: April 30th, 2007
User avatar
Premium
Total Posts:6718 Joined:2004
Create the LOTROWrapper object. (Look a the LOTROWrapper reference itself to see the API).

Then you can call methods using it.

_________________
Use Search first, ask questions later!
Posted: April 30th, 2007
User avatar
Premium
Total Posts:6718 Joined:2004
ie like

Dim myO as new LOTROWrapper()

dim name as string
name = myO.Player.Name

_________________
Use Search first, ask questions later!
Posted: April 30th, 2007
tault_razorwing
Ok thank you :)

Helped alot, keep me posted on new updates as i will include them into my Visual Basic bot.

I will keep you updated WyvernX as to how i get on :)

Update:
When i attempted to run the code it failed.

I went to "Project" > "Add Reference" > "Browse" > then selected LOTROWrapper.dll with the code provided and it failed to run. Here is what i got so far.

Code: Select all

Public Class Form1
    Dim myO As New LOTROWrapper()
    Dim CharName As String
    CharName = myO.Player.Name

    Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load

        'lblCharName.Text = CharName
    End Sub
End Class
Posted: April 30th, 2007
User avatar
Premium
Total Posts:6718 Joined:2004
Oh, I forgot to mention. LOTROE needs to be placed in the SAME folder that the VB App is being run. So in your VB.Net app, set the build folder to be the LOTROE folder. So it places the exe's int eh same place. I have not found a way around that bug yet. :(

_________________
Use Search first, ask questions later!
Posted: April 30th, 2007
User avatar
Total Posts:297 Joined:2006
Update thread has taken longer then 30 secsto initate (or something like that), closing.

Getting that error when I try to open LOTROExtreme
Posted: April 30th, 2007
User avatar
Premium
Total Posts:6718 Joined:2004
Hmm.. I'll have to see if I can add more detailed logging to find out why.

_________________
Use Search first, ask questions later!
Posted: May 1st, 2007
tault_razorwing
Hmm still doesnt want to compile right. I have removed the reference and created a new reference so it points to the current directory which i am currently working from. Build Path is also that of the current working directory.

Code: Select all

Public Class Form1
    Dim myO As New LOTROWrapper()
    Dim CharName As String
    CharName = myO.Player.Name

    Private Sub cmdStart_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles cmdStart.Click
        lblCharName.Text = "Player Name: " & CharName
    End Sub
End Class
Error Produced when attempting to run / compile:
Error 1 Type 'LOTROWrapper' is not defined. C:\Documents and Settings\Scooby\My Documents\Visual Studio 2005\Projects\LOTRO-Champion\LOTRO-Champion\Form1.vb 2 20 LOTRO-Champion
Error 2 Declaration expected. C:\Documents and Settings\Scooby\My Documents\Visual Studio 2005\Projects\LOTRO-Champion\LOTRO-Champion\Form1.vb 4 5 LOTRO-Champion
Posted: May 1st, 2007
User avatar
Premium
Total Posts:6718 Joined:2004
May 1, 2007 - LOTROExtreme v0.91beta

--Bugfix: Mob names were not being cached properly
--Bugfix: EU clients were not being initialized correctly.

You may have to delete LOTROExtreme.exe and run UpdateLOTROExtrme.exe for it to take the patch.

_________________
Use Search first, ask questions later!
Posted: May 1st, 2007
User avatar
Premium
Total Posts:6718 Joined:2004
PS. Make sure you have the LOTROWrapper as a reference.

_________________
Use Search first, ask questions later!
Posted: May 1st, 2007
tault_razorwing
OK i will do this step by step as it doesnt seem to want to work :(

Starting from the beginning:
1) Start-up Visual Studio 2005
2) Select Visual Basic and Window Application
3) Save Project
4) Copy all LOTROextreme files to working Directory
eg. C:\Documents and Settings\Scooby\My Documents\Visual Studio 2005\Projects\LOTRO-Champion
5) Add Reference LOTROWrapper.dll (from location on Step 4)
6) Insert the same code provided
7) Compile application

Error, LOTROWrapper not defined :(

So what step am i doing wrong? :(
Posted: May 2nd, 2007
User avatar
Premium
Total Posts:6718 Joined:2004
Problem is you ran LOTRE from a different directory,k and the wrapper is still "linked" to the old folder. Remove any old files for lOTROE. Get LOTROE working in whatever folder you put it.. (with no copies located elsewhere on the HD). Then when all files are in place and lotroE is working, load up your VS and give it a go.

_________________
Use Search first, ask questions later!
Posted: May 3rd, 2007
tault_razorwing
Ok i have done what you said, LOTROextreme works within the following development directory: C:\Documents and Settings\Scooby\My Documents\Visual Studio 2005\Projects\LOTRO-Champion\LOTRO-Champion\

But the program still fails to run with the previous error mentioned before.
Want Advertisements After The Last Post Removed? Create A Free Account!
blue large dotWho is online
Users browsing this forum: No registered users and 64 guests
Post Reply