Joined: 03 May 2006 Posts: 2292 Location: Colorado
Posted: Mon Feb 21, 2005 3:51 pm Post subject:
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
Joined: 03 May 2006 Posts: 2292 Location: Colorado
Posted: Mon Feb 21, 2005 5:20 pm Post subject:
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
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:
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..
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)
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.
Joined: 25 Jun 2004 Posts: 130 Location: Liverpool(home) or Derby(uni), UK votes: 3
Posted: Tue Feb 22, 2005 8:37 pm Post subject:
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)
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.
Joined: 25 Jun 2004 Posts: 130 Location: Liverpool(home) or Derby(uni), UK votes: 3
Posted: Tue Feb 22, 2005 10:59 pm Post subject:
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:
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...