User Control Panel
Advertisements

HELP US, HELP YOU!

little error

 
Post new topic   Reply to topic    Bot Depot Forum Index -> Visual Basic
View unanswered posts
Author Message
gunner
Newbie
Newbie


Joined: 01 Jul 2004
Posts: 39

Reputation: 23.3Reputation: 23.3

PostPosted: Mon Feb 21, 2005 3:03 pm    Post subject: Reply with quote

as you may already know im building a vb bot but im trying to set the name
code:
Code:
Public Const StrName As String = "Vbb - 20%"


but it just changes to **********@gmail.com
<_< Sad
Back to top
eric256
The Keymaker
The Keymaker


Joined: 03 May 2006
Posts: 2292
Location: Colorado
Reputation: 47Reputation: 47Reputation: 47Reputation: 47Reputation: 47

PostPosted: Mon Feb 21, 2005 3:51 pm    Post subject: Reply with quote

That could have been less clear but you would probably have to work at it. You make it sound like StrName is magicaly changing to your email address. Since I'm guessing that is not the case.....what is your question?
_________________
Eric256
Proud previous owner and current admin of Bot-depot.com
Back to top
gunner
Newbie
Newbie


Joined: 01 Jul 2004
Posts: 39

Reputation: 23.3Reputation: 23.3

PostPosted: Mon Feb 21, 2005 4:10 pm    Post subject: Reply with quote

well it has to go to vbb - 20% but it just goes turns my name into my email addres
Back to top
eric256
The Keymaker
The Keymaker


Joined: 03 May 2006
Posts: 2292
Location: Colorado
Reputation: 47Reputation: 47Reputation: 47Reputation: 47Reputation: 47

PostPosted: Mon Feb 21, 2005 5:20 pm    Post subject: Reply with quote

QUOTE(gunner @ Feb 21 2005, 08:10 AM)
well it has to go to vbb - 20% but it just goes turns my name into my email addres

What does this mean? Are you saying that it is changing the value of your constant? That doesn't sound likely. Please take a few seconds and explain exactly what your problem is.

_________________
Eric256
Proud previous owner and current admin of Bot-depot.com
Back to top
gunner
Newbie
Newbie


Joined: 01 Jul 2004
Posts: 39

Reputation: 23.3Reputation: 23.3

PostPosted: Mon Feb 21, 2005 5:24 pm    Post subject: Reply with quote

i got a bot, it has a code in it , the code is from someone else, the code is ment for changing the name when my bot goes online but the problem is, he changes the name to my email addres and not "Vbb - 20%"

hope this is more clearly to you .i really cant say it better. :ph34r:
Back to top
Dazzy
Agent
Agent


Joined: 09 Jan 2004
Posts: 1731

Reputation: 72.3

PostPosted: Mon Feb 21, 2005 6:08 pm    Post subject: Reply with quote

Theres most likely something else doing it? have you checked through all the rest of the code and searched for the varible you're unsing for admin or the users email address..
Back to top
gunner
Newbie
Newbie


Joined: 01 Jul 2004
Posts: 39

Reputation: 23.3Reputation: 23.3

PostPosted: Mon Feb 21, 2005 8:57 pm    Post subject: Reply with quote

i just contacted the maker of the code and he sayd that he removed a part of code :blink:

does anyone know anycode to change the name?
Back to top
Keenie
Almost An Agent
Almost An Agent


Joined: 31 Oct 2003
Posts: 1071

Reputation: 52.4

PostPosted: Tue Feb 22, 2005 10:34 am    Post subject: Reply with quote

It's kinda hard to show you the code how to do it without knowing how your bot works, but basically something like this (Havnt used vb in a while, but looks ok to me)

Code:
wsMain.senddata ("PRP " & trailID & " MRN " & strName & vbCrLf)


Where wsMain is the winsock connected to the Notification Server, trailID is the trialid which increments for each command, and strName is the new name you want, which should have spaces replaced with %20.

Chances are there is a function coded into the bot to make things easier, but you;d have to look around for that yourself.
Back to top
gunner
Newbie
Newbie


Joined: 01 Jul 2004
Posts: 39

Reputation: 23.3Reputation: 23.3

PostPosted: Tue Feb 22, 2005 1:48 pm    Post subject: Reply with quote

i try'd your code but it says something is wrong with
Code:
("PRP "

Sad
Back to top
Teario
Member
Member


Joined: 25 Jun 2004
Posts: 130
Location: Liverpool(home) or Derby(uni), UK
Reputation: 59.8
votes: 3

PostPosted: Tue Feb 22, 2005 8:37 pm    Post subject: Reply with quote

In your source go to the Bot module (it should be the second from the top, called Bot (Bot.bas) ) and at the top it should say this:
Code:
Public Const StrName As String = "Your bots Display Name"<br />


something similar to that, im not exactly sure what it looks like cause i changed mine but its the line where it asks for a display name, you just have to change StrName to FName, like this

Code:
Public Const FName As String = "Your bots Display Name"<br />


Thats what I did and it worked (I got the code from another post on this forum)

Edit: You could have just looked here: http://www.bot-depot.com/forums/index.php?showtopic=376
Back to top
Dazzy
Agent
Agent


Joined: 09 Jan 2004
Posts: 1731

Reputation: 72.3

PostPosted: Tue Feb 22, 2005 8:45 pm    Post subject: Reply with quote

Basically, look around the bot and look at places where it is POSSIBLE that it could be changing the name, if iyou're unsure wether it could be that part or not post the slice here.
Back to top
Siebe
God Like
God Like


Joined: 06 Jan 2004
Posts: 562
Location: Netherlands
Reputation: 39.8Reputation: 39.8Reputation: 39.8Reputation: 39.8

PostPosted: Tue Feb 22, 2005 10:31 pm    Post subject: Reply with quote

Make sure it's URL encoding.
Other than that, check variable names, like suggested above.
Back to top
Teario
Member
Member


Joined: 25 Jun 2004
Posts: 130
Location: Liverpool(home) or Derby(uni), UK
Reputation: 59.8
votes: 3

PostPosted: Tue Feb 22, 2005 10:59 pm    Post subject: Reply with quote

QUOTE(Dazzy @ Feb 22 2005, 12:45 PM)
Basically, look around the bot and look at places where it is POSSIBLE that it could be changing the name

Code:
Public Const StrName As String = "Your bots Display Name"<br />
This is at the top, if you search and then select the "current project" radio button, it says no matches, however if you change StrName to FName (which I assumed means FriendlyName) it comes up with this:

Code:
dataout "REA " & intTrailid & " " & StrUsername & " " & Replace(FName, " ", "%20") & vbCrLf


This line I assume is changing its display name to the contents of the FName constant, as it comes right under a check to see if we are connected, and right underneath a line which sets its status to online...
Back to top
Keenie
Almost An Agent
Almost An Agent


Joined: 31 Oct 2003
Posts: 1071

Reputation: 52.4

PostPosted: Wed Feb 23, 2005 10:27 pm    Post subject: Reply with quote

QUOTE(gunner @ Feb 22 2005, 08:48 AM)
i try'd your code but it says something is wrong with
Code:
("PRP "

Sad

Did it happen to say what is wrong? Or did it just pop up a little box saying "OH NO! Something is wrong! Go post it on bd without explaining what!"
Back to top
Display posts from previous:   
Post new topic   Reply to topic    Bot Depot Forum Index -> Visual Basic All times are GMT
Page 1 of 1

 



Protected by phpBB Security phpBB-TweakS
phpBB Security Has Blocked 9 Exploit Attempts.
Antispam Captcha Mod by phpbb-security.com
Powered by phpBB © 2001, 2005 phpBB Group