Hi, this a script I received from Vector, but I kinda need some help. I couldn't get in contact with him so that's why I'm asking for help here, I know it's not really a "entire new script request". But still I'm asking for some moderation on this plugin (if Vector allows it of course).
Basically all I would like, to be changed/edited is that I only want the script to add the users without giving them any kind of access on the bot. So basically, a user file and after the rank order they get added to, it will message it in the channel that "Chuck Norris" (Admin/Staff manager/ bla bla bla) joined the channel.
This is the script itself
'sg
'0.2
'&Staff Greet:Vector:Greets users based on their access level to the bot
Sub sg_Event_UserJoins(Username, Flags, Message, Ping, Product, Level, OriginalStatString)
tpMod = vbNullString
GetDBEntry Username, a, f
Select Case a
Case 60
tpMod = "Jr. Moderator"
Case 70
tpMod = "Channel Moderator"
Case 100
tpMod = "Sr. Moderator"
Case 200
tpMod = "Administrator"
End Select
If InStr(Lcase(f), "g") Then
If tpMod <> vbNullString Then
AddQ "/me " & Username & " (" & tpMod & ") Has joined the channel."
End If
End If
End Sub
Oh and, when I'm currently using it now I get these errors - I assume it has something to do with this specific plugin. I haven't changed anything in the script, I just use it as it is above. So I don't really know what could be wrong. Maybe it helps you if I say that I use "standard" stealthbot and not a beta or something like that.
[17:35:51] A plugin file wasn't loaded, as it's prefix "r77" already exists: Rev77PS.plug
[17:35:51] A plugin file wasn't loaded, as it's prefix "sg" already exists: sgStaffGreet.plug
[17:35:51] 3 plugins loaded. Type /plugins in the bot to view them. Type /phelp for help using them.
[17:35:51] Type /updates in the bot to view updates and new plugins that are available for download.
[17:35:51] Load Call Error On File> D:\Documents and Settings\Bruger\STEALHBOT\plugins\Rev77PS.plug
[17:35:51] Error Number: 35764 Description: Still executing last request
[17:35:51] Unable to check for updates. the URL is invalid (or non-existant)
[17:37:05] -- Joined channel: Clan R77 --