Script Question
Moderator: Moderators
-
- Posts: 36
- Joined: 2003-04-09 04:04
Script Question
I wasn't sure what to search for, as I'm sure this has been covered before, but I was wondering what line of script I could add to my bots, that show on the users list, to give them a description and a connection.
You have to send a $MyINFO.
Where sBotName is a string holding the name of your Bot, and i an integer setting the icon to be displayed by NMDC.
Code: Select all
colUsers.SendToAll "$MyINFO $ALL "&sBotName&" Description$ $"&chr(i)&"$$0$"
-
- Posts: 36
- Joined: 2003-04-09 04:04
-
- Posts: 36
- Joined: 2003-04-09 04:04
-
- Posts: 36
- Joined: 2003-04-09 04:04
Sorry, no edit. :(
Another interesting thing I discovered in my op chat script. It also has a line of script to give the bot a description and a connection, but this time, only nmdc and older ++ clients can see it. What causes this? Here's that part of the op chat script in case it will help to clarify things.
Code: Select all
If Left(sCurData, 8) = "$GetINFO" Then
Dim sReqdUsername
sReqdUsername = Split(sCurData, " ", 3)(1)
If curUser.bOperator Then
If sReqdUsername = sOpChatName Then _
curUser.SendData cstr("$MyINFO $ALL "& sReqdUsername &" Description$ $Connection"& chr(8) &"$$0$|")
End If
Okay, here's one...
I can't get the minimum share feature to work on ANY script I use.
I'm using the NeoModus hub software... I tried their AutoBot, no luck.
I have scripts enabled. I have the scripts in the scripts folder. I know I'm doing something right, (and I know SOMETHING'S working) as I can change the greeting message on the TriggerBot.
But I can't get the MinShare to work for ANY SCRIPT I DOWNLOAD.
I'm really at the end of my rope here. Help?
I can't get the minimum share feature to work on ANY script I use.
I'm using the NeoModus hub software... I tried their AutoBot, no luck.
I have scripts enabled. I have the scripts in the scripts folder. I know I'm doing something right, (and I know SOMETHING'S working) as I can change the greeting message on the TriggerBot.
But I can't get the MinShare to work for ANY SCRIPT I DOWNLOAD.
I'm really at the end of my rope here. Help?
-
- Posts: 210
- Joined: 2003-01-23 17:24
- Location: Nevada
- Contact:
Could you quickly describe the exact behavior ? I have already seen several cases where 2 or more scripts were trying to check minimum share size, and were steping on each other's feet (i.e. one script would kick a user, and the script would crash -or worse, enter an endless loop- because the user object it was working with suddendly disapeared).I can't get the MinShare to work for ANY SCRIPT I DOWNLOAD.
What is the exact behavior ? No one under the minimum share getting disconected anymore after the hub has been up for about a minute ? Some people under the minimum share getting disconected, but not others ? No one at all getting disconected ?
-
- Posts: 36
- Joined: 2003-04-09 04:04
-
- Posts: 210
- Joined: 2003-01-23 17:24
- Location: Nevada
- Contact:
1) Try with an | at the end of the data you send, and without ;)I don't guess any of you know what's going on with my problem. Oh yes, ignoring bots or not doesn't have anything to do with whether or not you can see their description/connection.
2a) Which trigger/event do you use to send the MyInfo data ? Most people insist on drowning their CPU under all the $GetInfo transiting in DataArival, and chop sub-strings away from there.
If you haven't tried yet, send the $MyInfo from NewUserConnected (and OPConnected); you might get more consistent results.
2b) Send a $hello along with the MyInfo (i.e. "$Hello "&sBotName&"|$MyINFO $ALL "&sBotName& ... etc. )
3) Make sure you got your caps right. When they receive "MyInfo" instead of "MyINFO", some clients are forgiving .... and some aren't =)