• Welcome to Valhalla Legends Archive.
 
Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Messages - WiLD

#1
Visual Basic Programming / Re: Winsock error?
June 19, 2006, 07:48 AM
I figured it out.
The computer(s) i was using had their regional settings set to Korean, when i changed it back to english it seemed to work fine.

...grr, now korean programs wont work, such as CDSpace  >:(

Ahwell.

Thanks guys
#2
Quote from: Newby on June 17, 2006, 01:14 PM
I think you're better off releasing the source.

I plan to at a later stage, as with all my projects i normally release source around v2 (If it get sthat far).

Anyways i have been looking around and i ended up looking on pscode.com, after awhile i found this (click here) which proves to be interesting but im having a little problem.
In the sample project im getting "Application or object defined error" on

Set MyScript = New clsSadScript

Anyone able to figure out why?  :-X


P.S. Remember to register and make a reference to the dll.

Thanks  ;)
#3
Quote from: Yegg on June 16, 2006, 09:40 AM
Most languages should be able to do this. This is one thing I love about LISP, such a task would be solved with little to no effort. I remember Python having an eval() function that may perform the same or similar task.

To make sure I understand you correctly, if you had "1 + 1" copied down somewhere in a text document, would you want to evaluate the "code" from that document to get the result of 2?

Correct.


Quote from: warz on June 16, 2006, 09:58 AM
Looks to me like he's wanting to be able to place his packet structures in text files so he can add support for new packets 'on the fly'.

I was thinking about doing this, if i decided to i would proberly stick with vbscript since it would be easier.
At the moment i only want users to be able to 'inject' their own code that will be executed at an event.
#4
Battle.net Bot Development / Code from .txt ?
June 16, 2006, 07:13 AM
Just a stupid question but is it possible to pull code from a txt file and execute it as if it were hardcoded? ..or anything similar?


Im guessing i could always use vbscript and call the function but i want to try and steer away from that.

Eg; code.txt

insertdword ...
insertdword ...
insertdword ...
sendpacket  ...
bsend "done"


and i can just 'insert' that wherever.
#5
Thanks for the Spht, i got it going now. I knew there had to be a list of the 'rank codes' somewhere, thanks again.

@MyndFyre;
Im sending adrequest with everything for my own purposes.
Thanks for your help too.

^.^
#6
Battle.net Bot Development / [WAR3] Promote?
June 14, 2006, 09:24 AM
I was looking at 0x7A(C->S) on BnetDocs and it lists

(DWORD) Cookie
(STRING)                  Username
(BYTE) New rank

and im wondering what the 'new rank' byte is? Anyone able to lend a hand here?


Edit:
I believe i have figured it out? Though when i go to promote someone i disconnect and get ipbanned.


    InsertDWORD &HB
    InsertNonNTString UserName
    InsertWORD &H3
    sendPacket &H7A
    InsertDWORD &H0
    InsertDWORD &H0
    InsertDWORD &H0
    InsertDWORD &H0
    sendPacket &H15

What am i doing wrong exactly? Could it be the new rank byte im using? Ive been told it was H3 and H1 was demote.
#7
Visual Basic Programming / Re: Winsock error?
June 14, 2006, 07:59 AM
Im looking at router config now and no ports at all are blocked. I doubt anyone here has any experience with it since its an Australian brand but its a Netcomm NB1300.
I think my best bet is to take a look at my router config at home and see what ive got different.

Starcraft works fine here (work).
#8
Visual Basic Programming / Re: Winsock error?
June 14, 2006, 07:45 AM
Quote from: rabbit on June 14, 2006, 06:25 AM
A router is a firewall.  Anyway, if it was an error, you'd get the error callback.  Check your port settings.

..meh.

By definition a firewall is a system that protects the data in a private network, while a router is a device that routes data among networks. Main difference between firewall and router is in number of features and price. That is what you meant right?  ;)

Anyways, I dont believe anything is using the ports. The only difference between the router at work and my home is the WAN type i believe, which wont make a difference.

I have tried on several different computers here at work and end up with the same result, i am beginning to think it might be a router issue but i do believe they are the same.
#9
Visual Basic Programming / Winsock error?
June 14, 2006, 02:42 AM
My bot runs off BNLS (im yet to figure out war3 hash  :-X) and it connects and works fine while at home, but i brought it here to work and it doesnt seem to even connect to BNLS. Im guessing its a problem with the winsocks component, perhapes a different version or something?
What makes it weirder though is i brought my copy of visual studio to work and installed that (which should install/replace winsocks component, correct?) but i was still getting the same problem.


[17:37:11] [BNLS] Connecting...
[17:37:11] [BNLS] Connected.
[17:37:11] [BNLS] Sending authorization information...
[17:37:11] [BNLS] Disconnected.


Anyone have any idea on what the problem could be?

I dont believe it to be a router/firewall problem cause i have the exact same router at home with similar settings and there is no firewall at either location.
#10
Quote from: HdxBmx27 on June 07, 2006, 05:06 PM
No...
Hes sending the wrong verbyte
Quote                                               ff 50 3a 00 00 00 00 00 36            P:.....6
0040   38 58 49 33 52 41 57 0f 00 00 00 00 00 00 00 00  8XI3RAW.........
0050   00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 55  ...............U
0060   53 41 00 55 6e 69 74 65 64 20 53 74 61 74 65 73  SA.United States
0070   00 ff 25 08 00 00 00 00 00                       ..%......
Your not handeling 0x10 BNLS_REQUESTVERSIONBYTE properly
the current VB is 0x14 witch BNLS is sending you.

BTW, its annoying to have other connections in the log so everyone, for jsut this connection in the log use the following filter:
(tcp.port == 1622 and tcp.port == 9367) and (tcp.port == 1623 and tcp.port == 6112) and tcp.len > 0 and tcp.len != 34
~-~(HDX)~-~


Ahh i found it now! I hardcoded an old verbyte eariler but totally forgot about it.
I was looking for an effective filter, thats for that one.

Well all is working fine so i have moved onto 0x52 and after looking at Bnet Docs im stuck on;

(BYTE[32]) Salt (s)
(BYTE[32]) Verifier (v)
(STRING) Username

So what are the two bytes exactly?
Also dont you have to include the password?
#11
Quote from: HdxBmx27 on June 07, 2006, 11:53 AM
Packet log please? We sorta need to know what info your sending.
But your format seems correct.
~-~(HDX)~-~

Log file
(/me has no idea   O.o)
#12
Im getting 'invaild version' back on 0x51 (WAR3).

Im sending;

Private Sub packx51()
    InsertDWORD GTC
    InsertDWORD Version
    InsertDWORD Checksum
    If sXpan Then
        InsertDWORD &H2
    Else
        InsertDWORD &H1
    End If
    InsertDWORD &H0
    InsertNonNTString CdkeyHash
    If sXpan Then
        InsertNonNTString Cdkey2Hash
    End If
    InsertNTString exeinfo
    InsertNTString strUser
    sendPacket &H51
#13
Oh fair enough. For some reason i thought it was different with WAR3.

Thanks~
#14
Just recently got back into bnet but my question is...

...what packet am i looking at to register the cdkey? ("This cdkey is already inuse by ......")

I'm using BNLS.



I also forgot the link to Bnet Docs, anyone want to remind me? :)
Does Bnet Docs include documentation for BNLS or is there another place for that? Im just wondering on a certain packet.

Thanks ^^
#15
Visual Basic Programming / Re: BasicOP
June 07, 2006, 02:09 AM
I was thinking of the same thing, making a 'plug-in bot'. I was about to post asking the best way to go about doing plugins.

I dont know about you but i planned on having pretty much everything as a plugin. - Commands etc.

Well if you're still looking for a hand or something let me know.

BasicOp sounds much better then the name i had in mind.... "plug-in bot" ;D


PM Me