AnGelBot-Portal²

Normale Version: Multichannscript - labern labern labern
Du siehst gerade eine vereinfachte Darstellung unserer Inhalte. Normale Ansicht mit richtiger Formatierung.
Habe ein Problem mit folgenden Script. Er soll bestimmte nur im angegebenen Channel labern (#udc-clan).
Shocked Shocked Shocked
Kann mir mal jemand das script debuggen oder sagen was ich falsch mache .. ??? Embarassed Embarassed Embarassed

Zitat:Sub Init()
'udc-clan'
Script "udc-clan laberscript"
Hook "Chan_msg"
End Sub

Sub chan_Msg(chan, Nick, RegUser, Line)
If " & chan & " = "#udc-clan" then
Select Case LCase(Param(Line, 1))
Case "!games"
SendLine "privmsg " & chan & " :--------------Server--------------", 3
SendLine "privmsg " & chan & " :UDC´s Battlefield of the flying Döner", 3
SendLine "privmsg " & chan & " :62.93.201.31:27008", 3
SendLine "privmsg " & chan & " :Pass Wort: udc", 3

Case "!hp"
SendLine "PRIVMSG " & chan & " :--------------Home-Page--------------", 3
SendLine "PRIVMSG " & chan & " :http://www.udc-clan.com", 3

Case "!help"
SendLine "NOTICE " & nick & " :--------------Help--------------", 3
SendLine "NOTICE " & Nick & " :Befehlsübersicht des Bots:", 3
SendLine "NOTICE " & Nick & " :*** !server", 3
SendLine "NOTICE " & Nick & " :*** !tv <Kanal> <Zeit>", 3
SendLine "NOTICE " & Nick & " :*** !wetter <PLZ>", 3
SendLine "NOTICE " & Nick & " :*** !partner", 3
SendLine "NOTICE " & Nick & " :*** !hp", 3
SendLine "NOTICE " & Nick & " :*** !date", 3
SendLine "NOTICE " & Nick & " :*** !time", 3


case "!sommer-ferien"
SendLine "Privmsg " & chan & " : SeX miT MäNNerN", 3

End Select
END IF
END SUB

Confused: Confused: Confused: Confused: Confused: Confused:

THX 4 answer ...
So sollte das gehn:
Code:
ActiveChannels = "#udc-clan"

Sub Init()
Script "udc-clan laberscript"
Hook "Chan_msg"
End Sub

Sub chan_Msg(chan, Nick, RegUser, Line)
If Not Instr(1, LCase(ActiveChannels), LCase(Chan)) > 0 Then Exit Sub
Select Case LCase(Param(Line, 1))
Case "!games"
SendLine "privmsg " & chan & " :--------------Server--------------", 3
SendLine "privmsg " & chan & " :UDC´s Battlefield of the flying Döner", 3
SendLine "privmsg " & chan & " :62.93.201.31:27008", 3
SendLine "privmsg " & chan & " :Pass Wort: udc", 3

Case "!hp"
SendLine "PRIVMSG " & chan & " :--------------Home-Page--------------", 3
SendLine "PRIVMSG " & chan & " :http://www.udc-clan.com", 3

Case "!help"
SendLine "NOTICE " & nick & " :--------------Help--------------", 3
SendLine "NOTICE " & Nick & " :Befehlsübersicht des Bots:", 3
SendLine "NOTICE " & Nick & " :*** !server", 3
SendLine "NOTICE " & Nick & " :*** !tv <Kanal> <Zeit>", 3
SendLine "NOTICE " & Nick & " :*** !wetter <PLZ>", 3
SendLine "NOTICE " & Nick & " :*** !partner", 3
SendLine "NOTICE " & Nick & " :*** !hp", 3
SendLine "NOTICE " & Nick & " :*** !date", 3
SendLine "NOTICE " & Nick & " :*** !time", 3

case "!sommer-ferien"
SendLine "Privmsg " & chan & " : SeX miT MäNNerN", 3

End Select
End Sub
alta thx ... es funzt ...
Referenz-URLs