Re: Scripte funzen nicht
Posted: 28.03.2008 19:09
Ist das Script denn überhaupt geladen? (Das weiß im Zweifelsfall der Script Editor -> Alt-R.)
Code: Select all
on *:text:?ma*:#: if ($nick isin %access_us) { /msg $nick %access_ma } else { /msg $chan %nous }
Code: Select all
/*
##############
EFC ACCESS-BOT
################################################################################
Deutscher Zugriffsbot, der einfach zu bedienen ist und deinen ganzen Channel im Quakenet managen kann.
Um seine Funktionen voll entfalten zu k?nnen, wird empfohlen nur den Bot und den Channeladmin bei L oder Q einzutragen.
################################################################################
*/
/*
### START Floodprotection ###
#
#
## Floodcounter ##
*/
on *:text:*:#:{
inc %floodcount
timer 1 10 dec %floodcount
if (%floodprotection >= 3) {
set %floodprotection on
notice $chan Floodprotection an
timer 1 20 floodprotoff #
}
}
alias floodprotoff {
unset %floodprotection
notice $$1 Floodprotection aus.
}
on *:action:*:#:{
if (!%floodprotection) {
;dein code (ps: action ist alles was du mit /me machst)
}
}
/*
### END Floodprotection ###
### START Authorisation ###
#
#
## Access-Authorisation / Authorisation Message ##
*/
on *:load:{
set %access_ma En`forcer
set %access_op En`forcer
set %access_vo En`forcer
set %access_us En`forcer
set %access_no
set %noma Du hast keine Rechte als Master
set %noop Du hast keine Rechte als Operator
set %novo Du hast keine Voicerechte
set %nous Du hast keine Userrechte
set %noall Du hast keine Rechte für diesen Zugriff
set %givema Dir wurden Rechte bis Master erteilt
set %giveop Dir wurden Rechte bis Operator erteilt
set %givevo Dir wurden Rechte bis Voice erteilt
set %giveus Dir wurden Userrechte erteilt
set %takema Dir wurden deine Channel-Masterrechte genommen
set %takeop Dir wurden deine Rechte ab Operator genommen
set %takevo Dir wurden deine Rechte ab Voice genommen
set %takeus Dir wurden all deine Rechte genommen
set %setok Der Befehl $1 an $2 wurde erfolgreich ausgeführt
set %usetok Der Befehl $1 an $2 wurde erfolgreich ausgeführt
}
/*
#
#
## Grant Authorisation ##
#
# Master #
*/
on *:text:+ma *:#:{
if ($nick == En`forcer) {
set %access_ma %access_ma $+ , $+ $2
set %access_op %access_op $+ , $+ $2
set %access_vo %access_vo $+ , $+ $2
set %access_us %access_us $+ , $+ $2
msg $nick %setok
msg $2 %givema
}
else { msg # %noall }
}
;#
;# Operator #
;wie Master
/*
#
#
## Deny Authorisation ##
#
# Master #
*/
on *:text:-ma *:#:{
if ($nick == En`forcer) {
unset %access_ma %access_ma $+ , $+ $2
msg $nick %usetok
msg $2 %takema
}
else { msg # %noall }
}
;#
;# Operator#
;wie Master
;#
;#
;## Show Authorisation ##
;siehe post
;### END Authorisation ###
/*
### START Join-Action ###
#
#
## Authorisation Info ##
*/
on *:join:#:{
;besser $istok() nutzen
if ($nick isin %access_ma) {
msg $chan Hallo Master $nick
timer 1 3 msg # Du kannst als Channel-Master folgende Dienste verändern und nutzen: ?ifma
}
elseif ($nick isin %access_op) {
;auch hier: $istok()
msg $chan Hallo Operator $nick
timer 1 3 /msg chan Du kannst als Operator folgende Dienste ver?ndern und nutzen: ?ifop
}
elseif ($nick isin %access_vo) {
msg $chan Hallo $nick
timer 1 3 /msg $chan Du kannst als Voiced-User folgende Dienste nutzen: ?ifvo
}
elseif ($nick isin %access_us) {
msg $chan Hallo $nick
timer 1 3 /msg $chan Du kannst als User folgende Dienste nutzen: ?ifus
}
else {
msg $chan Willkommen $nick
timer 1 3 /msg $chan Du bekommst als Besucher unseres Channels auch deine ersten Rechte als User
set %access_ma %access_ma $+ , $+ $nick
timer 1 3 /msg $chan Als User kannst du nun folgende Dienste nutzen: ?ifus
}
}
;### END Join-Action ###
;### START Info ###
on *:text:?ifma *:#:{
if ($nick isin %access_ma) {
msg $nick Du kannst folgende Befehle ausf?hren:
timer 1 5 /msg $nick Und alle: ?ifop, ?ifvo und ?ifus
timer 1 5 /msg $nick du kannst folgende Befehle ausf?hren:
}
else { msg # %noma }
}
;### END Info ###
;### START Commands ###
;### END Commands ###