Avatar billede kraller Nybegynder
28. september 2004 - 21:25 Der er 6 kommentarer og
1 løsning

Mirc script redigeres

det er et Cw-script hvor du kan indtaste en cw og dine members kan adde sig til cw'en. Men jeg mangler en 6on6. er der nogle der kan tilføje det til scriptet???




on *:TEXT:!add cw:%priv:{
if (%cw == 1on1) {
  if (%player1 !== $null) {
    notice $nick Team is full for this cw. Sry.
    halt
  }
  if (%player1 == $null) {
    set %player1 $nick
    notice $nick You are now added to play in the next cw. Use "!remove cw" to remove your self.
    halt
  }
}
if (%cw == 2on2) {
  if (%player1 == $nick) || (%player2 == $nick) {
    notice $nick You are already added to this cw.
    halt
  }
  if (%player1 !== $null) && (%player2 !== $null) {
    notice $nick Team is full for this cw. Sry.
    halt
  }
  if (%player1 == $null) {
    set %player1 $nick
    notice $nick You are now added to play in the next cw. Use "!remove cw" to remove your self.
    halt
  }
  if (%player1 !== $null) {
    set %player2 $nick
    notice $nick You are now added to play in the next cw. Use "!remove cw" to remove your self.
    halt
  }
}
if (%cw == 3on3) {
  if (%player1 == $nick) || (%player2 == $nick) || (%player3 == $nick) {
    notice $nick You are already added to this cw.
    halt
  }
  if (%player1 !== $null) && (%player2 !== $null) && (%player3 !== $null) {
    notice $nick Team is full for this cw. Sry.
    halt
  }
  if (%player1 == $null) {
    set %player1 $nick
    notice $nick You are now added to play in the next cw. Use "!remove cw" to remove your self.
    halt
  }
  if (%player1 !== $null) && (%player2 == $null) {
    set %player2 $nick
    notice $nick You are now added to play in the next cw. Use "!remove cw" to remove your self.
    halt
  }
  if (%player1 !== $null) && (%player2 !== $null) {
    set %player3 $nick
    notice $nick You are now added to play in the next cw. Use "!remove cw" to remove your self.
    halt
  }
}
if (%cw == 4on4) {
  if (%player1 == $nick) || (%player2 == $nick) || (%player3 == $nick) || (%player4 == $nick) {
    notice $nick You are already added to this cw.
    halt
  }
  if (%player1 !== $null) && (%player2 !== $null) && (%player3 !== $null) && (%player4 !== $null) {
    notice $nick Team is full for this cw. Sry.
    halt
  }
  if (%player1 == $null) {
    set %player1 $nick
    notice $nick You are now added to play in the next cw. Use "!remove cw" to remove your self.
    halt
  }
  if (%player1 !== $null) && (%player2 == $null) {
    set %player2 $nick
    notice $nick You are now added to play in the next cw. Use "!remove cw" to remove your self.
    halt
  }
  if (%player1 !== $null) && (%player2 !== $null) && (%player3 == $null) {
    set %player3 $nick
    notice $nick You are now added to play in the next cw. Use "!remove cw" to remove your self.
    halt
  }
  if (%player1 !== $null) && (%player2 !== $null) && (%player3 !== $null) && (%player4 == $null) {
    set %player4 $nick
    notice $nick You are now added to play in the next cw. Use "!remove cw" to remove your self.
    halt
  }
}
if (%cw == 5on5) {
  if (%player1 == $nick) || (%player2 == $nick) || (%player3 == $nick) || (%player4 == $nick) || (%player5 == $nick) {
    notice $nick You are already added to this cw.
    halt
  }
  if (%player1 !== $null) && (%player2 !== $null) && (%player3 !== $null) && (%player4 !== $null) && (%player5 !== $null) {
    notice $nick Team is full for this cw. Sry.
    halt
  }
  if (%player1 == $null) {
    set %player1 $nick
    notice $nick You are now added to play in the next cw. Use "!remove cw" to remove your self.
    halt
  }
  if (%player1 !== $null) && (%player2 == $null) {
    set %player2 $nick
    notice $nick You are now added to play in the next cw. Use "!remove cw" to remove your self.
    halt
  }
  if (%player1 !== $null) && (%player2 !== $null) && (%player3 == $null) {
    set %player3 $nick
    notice $nick You are now added to play in the next cw. Use "!remove cw" to remove your self.
    halt
  }
  if (%player1 !== $null) && (%player2 !== $null) && (%player3 !== $null) && (%player4 == $null) {
    set %player4 $nick
    notice $nick You are now added to play in the next cw. Use "!remove cw" to remove your self.
    halt
  }
  if (%player1 !== $null) && (%player2 !== $null) && (%player3 !== $null) && (%player4 !== $null) && (%player5 == $null) {
    set %player5 $nick
    notice $nick You are now added to play in the next cw. Use "!remove cw" to remove your self.
    halt
  }
}
}
on 10:TEXT:!end-cw:%priv:{
if (%cw == $null) {
  notice $nick No cw is set.
  halt
}
if (%cw !== $null) {
  if (%cw == 1on1) {
    unset %cw
    unset %player1
    notice $nick Cw is now unset. Use "!set-cw <?on?>" to set again.
    halt
  }
  if (%cw == 2on2) {
    unset %cw
    unset %player1
    unset %player2
    notice $nick Cw is now unset. Use "!set-cw <?on?>" to set again.
    halt
  }
  if (%cw == 3on3) {
    unset %cw
    unset %player1
    unset %player2
    unset %player3
    notice $nick Cw is now unset. Use "!set-cw <?on?>" to set again.
    halt
  }
  if (%cw == 4on4) {
    unset %cw
    unset %player1
    unset %player2
    unset %player3
    unset %player4
    notice $nick Cw is now unset. Use "!set-cw <?on?>" to set again.
    halt
  }
  if (%cw == 5on5) {
    unset %cw
    unset %player1
    unset %player2
    unset %player3
    unset %player4
    unset %player5
    notice $nick Cw is now unset. Use "!set-cw <?on?>" to set again.
    halt
  }
}
}
on 10:TEXT:!set-cw*:%priv:{
if (%cw !== $null) {
  notice $nick There is already a cw set. Use "!end-cw" to end it.
  halt
}
if ($2 == 1on1) {
  set %cw $2
  set %player1
  notice $nick Next cw is now a $2
  halt
}
if ($2 == 2on2) {
  set %cw $2
  set %player1
  set %player2
  notice $nick Next cw is now a $2
  halt
}
if ($2 == 3on3) {
  set %cw $2
  set %player1
  set %player2
  set %player3
  notice $nick Next cw is now a $2
  halt
}
if ($2 == 4on4) {
  set %cw $2
  set %player1
  set %player2
  set %player3
  set %player4
  notice $nick Next cw is now a $2
  halt
}
if ($2 == 5on5) {
  set %cw $2
  set %player1
  set %player2
  set %player3
  set %player4
  set %player5
  notice $nick Next cw is now a $2
  halt
}
}
on *:TEXT:!remove cw:%priv:{
if (%cw == 1on1) {
  if (%player1 !== $nick) {
    notice $nick You are not added to this cw. Use "!add cw" to add your self.
    halt
  }
  if (%player1 == $nick) {
    set %player1
    notice $nick You are now removede from this cw.
    halt
  }
}
if (%cw == 2on2) {
  if (%player1 == $nick) {
    set %player1
    notice $nick You are now removede from this cw.
    halt
  }
  if (%player2 == $nick) {
    set %player2
    notice $nick You are now removede from this cw.
    halt
  }
  if (%player1 !== $nick) || (%player2 !== $nick) {
    notice $nick You are not added to this cw. Use "!add cw" to add your self.
    halt
  }
}
if (%cw == 3on3) {
  if (%player1 == $nick) {
    set %player1
    notice $nick You are now removede from this cw.
    halt
  }
  if (%player2 == $nick) {
    set %player2
    notice $nick You are now removede from this cw.
    halt
  }
  if (%player3 == $nick) {
    set %player3
    notice $nick You are now removede from this cw.
    halt
  }
  if (%player1 !== $nick) || (%player2 !== $nick) || (%player3 !== $nick) {
    notice $nick You are not added to this cw. Use "!add cw" to add your self.
    halt
  }
}
if (%cw == 4on4) {
  if (%player1 == $nick) {
    set %player1
    notice $nick You are now removede from this cw.
    halt
  }
  if (%player2 == $nick) {
    set %player2
    notice $nick You are now removede from this cw.
    halt
  }
  if (%player3 == $nick) {
    set %player3
    notice $nick You are now removede from this cw.
    halt
  }
  if (%player4 == $nick) {
    set %player4
    notice $nick You are now removede from this cw.
    halt
  }
  if (%player1 !== $nick) || (%player2 !== $nick) || (%player3 !== $nick) || (%player4 !== $nick) {
    notice $nick You are not added to this cw. Use "!add cw" to add your self.
    halt
  }
}
if (%cw == 5on5) {
  if (%player1 == $nick) {
    set %player1
    notice $nick You are now removede from this cw.
    halt
  }
  if (%player2 == $nick) {
    set %player2
    notice $nick You are now removede from this cw.
    halt
  }
  if (%player3 == $nick) {
    set %player3
    notice $nick You are now removede from this cw.
    halt
  }
  if (%player4 == $nick) {
    set %player4
    notice $nick You are now removede from this cw.
    halt
  }
  if (%player5 == $nick) {
    set %player5
    notice $nick You are now removede from this cw.
    halt
  }
  if (%player1 !== $nick) || (%player2 !== $nick) || (%player3 !== $nick) || (%player4 !== $nick) || (%player5 !== $nick) {
    notice $nick You are not added to this cw. Use "!add cw" to add your self.
    halt
  }
}
}
on *:TEXT:!players:%priv:{
if (%cw == 1on1) {
  timer 1 1 notice $nick Player: %player1
  halt
}
if (%cw == 2on2) {
  timer 1 1 notice $nick Player: %player1
  timer 1 2 notice $nick Player: %player2
  halt
}
if (%cw == 3on3) {
  timer 1 1 notice $nick Player: %player1
  timer 1 2 notice $nick Player: %player2
  timer 1 3 notice $nick Player: %player3
  halt
}
if (%cw == 4on4) {
  timer 1 1 notice $nick Player: %player1
  timer 1 2 notice $nick Player: %player2
  timer 1 3 notice $nick Player: %player3
  timer 1 4 notice $nick Player: %player4
  halt
}
if (%cw == 5on5) {
  timer 1 1 notice $nick Player: %player1
  timer 1 2 notice $nick Player: %player2
  timer 1 3 notice $nick Player: %player3
  timer 1 4 notice $nick Player: %player4
  timer 1 5 notice $nick Player: %player5
  halt
}
}
on 10:TEXT:!set-priv:#:{
set %priv $chan
notice $nick $chan is now set as priv.
}
on 10:TEXT:!cmd:%priv:{
timer 1 1 notice $nick Cw script commands
timer 1 2 notice $nick !set-cw <?on?>
timer 1 3 notice $nick !end-cw
timer 1 4 notice $nick !add cw
timer 1 5 notice $nick !remove cw
timer 1 6 notice $nick !players
timer 1 7 notice $nick !set-priv
}


Der gives 200 point ;D

//Kraller
Avatar billede d0stuffz Nybegynder
29. september 2004 - 10:05 #1
Prøv at kigge under arrays

%players player1,player2,player3,player4

isExist(søge,%players,delimiter(,))

while (%i < len(%players)) {


%i+1
}

Jeg er på arbejde lige nu, så jeg kan ikke svare helt. Men det vil være i det område af hjælpen(F1) du kan kigge i.
Avatar billede kraller Nybegynder
29. september 2004 - 15:48 #2
faktisk har jeg ikke meget forstand på mirc :D
Avatar billede mcgoat Nybegynder
29. september 2004 - 16:03 #3
virker dette???

on *:TEXT:!add cw:%priv:{
if (%cw == 1on1) {
  if (%player1 !== $null) {
    notice $nick Team is full for this cw. Sry.
    halt
  }
  if (%player1 == $null) {
    set %player1 $nick
    notice $nick You are now added to play in the next cw. Use "!remove cw" to remove your self.
    halt
  }
}
if (%cw == 2on2) {
  if (%player1 == $nick) || (%player2 == $nick) {
    notice $nick You are already added to this cw.
    halt
  }
  if (%player1 !== $null) && (%player2 !== $null) {
    notice $nick Team is full for this cw. Sry.
    halt
  }
  if (%player1 == $null) {
    set %player1 $nick
    notice $nick You are now added to play in the next cw. Use "!remove cw" to remove your self.
    halt
  }
  if (%player1 !== $null) {
    set %player2 $nick
    notice $nick You are now added to play in the next cw. Use "!remove cw" to remove your self.
    halt
  }
}
if (%cw == 3on3) {
  if (%player1 == $nick) || (%player2 == $nick) || (%player3 == $nick) {
    notice $nick You are already added to this cw.
    halt
  }
  if (%player1 !== $null) && (%player2 !== $null) && (%player3 !== $null) {
    notice $nick Team is full for this cw. Sry.
    halt
  }
  if (%player1 == $null) {
    set %player1 $nick
    notice $nick You are now added to play in the next cw. Use "!remove cw" to remove your self.
    halt
  }
  if (%player1 !== $null) && (%player2 == $null) {
    set %player2 $nick
    notice $nick You are now added to play in the next cw. Use "!remove cw" to remove your self.
    halt
  }
  if (%player1 !== $null) && (%player2 !== $null) {
    set %player3 $nick
    notice $nick You are now added to play in the next cw. Use "!remove cw" to remove your self.
    halt
  }
}
if (%cw == 4on4) {
  if (%player1 == $nick) || (%player2 == $nick) || (%player3 == $nick) || (%player4 == $nick) {
    notice $nick You are already added to this cw.
    halt
  }
  if (%player1 !== $null) && (%player2 !== $null) && (%player3 !== $null) && (%player4 !== $null) {
    notice $nick Team is full for this cw. Sry.
    halt
  }
  if (%player1 == $null) {
    set %player1 $nick
    notice $nick You are now added to play in the next cw. Use "!remove cw" to remove your self.
    halt
  }
  if (%player1 !== $null) && (%player2 == $null) {
    set %player2 $nick
    notice $nick You are now added to play in the next cw. Use "!remove cw" to remove your self.
    halt
  }
  if (%player1 !== $null) && (%player2 !== $null) && (%player3 == $null) {
    set %player3 $nick
    notice $nick You are now added to play in the next cw. Use "!remove cw" to remove your self.
    halt
  }
  if (%player1 !== $null) && (%player2 !== $null) && (%player3 !== $null) && (%player4 == $null) {
    set %player4 $nick
    notice $nick You are now added to play in the next cw. Use "!remove cw" to remove your self.
    halt
  }
}
if (%cw == 5on5) {
  if (%player1 == $nick) || (%player2 == $nick) || (%player3 == $nick) || (%player4 == $nick) || (%player5 == $nick) {
    notice $nick You are already added to this cw.
    halt
  }
  if (%player1 !== $null) && (%player2 !== $null) && (%player3 !== $null) && (%player4 !== $null) && (%player5 !== $null) {
    notice $nick Team is full for this cw. Sry.
    halt
  }
  if (%player1 == $null) {
    set %player1 $nick
    notice $nick You are now added to play in the next cw. Use "!remove cw" to remove your self.
    halt
  }
  if (%player1 !== $null) && (%player2 == $null) {
    set %player2 $nick
    notice $nick You are now added to play in the next cw. Use "!remove cw" to remove your self.
    halt
  }
  if (%player1 !== $null) && (%player2 !== $null) && (%player3 == $null) {
    set %player3 $nick
    notice $nick You are now added to play in the next cw. Use "!remove cw" to remove your self.
    halt
  }
  if (%player1 !== $null) && (%player2 !== $null) && (%player3 !== $null) && (%player4 == $null) {
    set %player4 $nick
    notice $nick You are now added to play in the next cw. Use "!remove cw" to remove your self.
    halt
  }
  if (%player1 !== $null) && (%player2 !== $null) && (%player3 !== $null) && (%player4 !== $null) && (%player5 == $null) {
    set %player5 $nick
    notice $nick You are now added to play in the next cw. Use "!remove cw" to remove your self.
    halt
  }
}

if (%cw == 6on6) {
  if (%player1 == $nick) || (%player2 == $nick) || (%player3 == $nick) || (%player4 == $nick) || (%player5 == $nick) || (%player6 == $nick){
    notice $nick You are already added to this cw.
    halt
  }
  if (%player1 !== $null) && (%player2 !== $null) && (%player3 !== $null) && (%player4 !== $null) && (%player5 !== $null) && (%player6 !== $null){
    notice $nick Team is full for this cw. Sry.
    halt
  }
  if (%player1 == $null) {
    set %player1 $nick
    notice $nick You are now added to play in the next cw. Use "!remove cw" to remove your self.
    halt
  }
  if (%player1 !== $null) && (%player2 == $null) {
    set %player2 $nick
    notice $nick You are now added to play in the next cw. Use "!remove cw" to remove your self.
    halt
  }
  if (%player1 !== $null) && (%player2 !== $null) && (%player3 == $null) {
    set %player3 $nick
    notice $nick You are now added to play in the next cw. Use "!remove cw" to remove your self.
    halt
  }
  if (%player1 !== $null) && (%player2 !== $null) && (%player3 !== $null) && (%player4 == $null) {
    set %player4 $nick
    notice $nick You are now added to play in the next cw. Use "!remove cw" to remove your self.
    halt
  }
  if (%player1 !== $null) && (%player2 !== $null) && (%player3 !== $null) && (%player4 !== $null) && (%player5 == $null) {
    set %player5 $nick
    notice $nick You are now added to play in the next cw. Use "!remove cw" to remove your self.
    halt
  }
  if (%player1 !== $null) && (%player2 !== $null) && (%player3 !== $null) && (%player4 !== $null) && (%player5 == $null) && (%player6 == $null){
    set %player5 $nick
    notice $nick You are now added to play in the next cw. Use "!remove cw" to remove your self.
    halt
  }
}

}
on 10:TEXT:!end-cw:%priv:{
if (%cw == $null) {
  notice $nick No cw is set.
  halt
}
if (%cw !== $null) {
  if (%cw == 1on1) {
    unset %cw
    unset %player1
    notice $nick Cw is now unset. Use "!set-cw <?on?>" to set again.
    halt
  }
  if (%cw == 2on2) {
    unset %cw
    unset %player1
    unset %player2
    notice $nick Cw is now unset. Use "!set-cw <?on?>" to set again.
    halt
  }
  if (%cw == 3on3) {
    unset %cw
    unset %player1
    unset %player2
    unset %player3
    notice $nick Cw is now unset. Use "!set-cw <?on?>" to set again.
    halt
  }
  if (%cw == 4on4) {
    unset %cw
    unset %player1
    unset %player2
    unset %player3
    unset %player4
    notice $nick Cw is now unset. Use "!set-cw <?on?>" to set again.
    halt
  }
  if (%cw == 5on5) {
    unset %cw
    unset %player1
    unset %player2
    unset %player3
    unset %player4
    unset %player5
    notice $nick Cw is now unset. Use "!set-cw <?on?>" to set again.
    halt
  }
  if (%cw == 6on6) {
    unset %cw
    unset %player1
    unset %player2
    unset %player3
    unset %player4
    unset %player5
    unset %player6
    notice $nick Cw is now unset. Use "!set-cw <?on?>" to set again.
    halt
  }
}
}
on 10:TEXT:!set-cw*:%priv:{
if (%cw !== $null) {
  notice $nick There is already a cw set. Use "!end-cw" to end it.
  halt
}
if ($2 == 1on1) {
  set %cw $2
  set %player1
  notice $nick Next cw is now a $2
  halt
}
if ($2 == 2on2) {
  set %cw $2
  set %player1
  set %player2
  notice $nick Next cw is now a $2
  halt
}
if ($2 == 3on3) {
  set %cw $2
  set %player1
  set %player2
  set %player3
  notice $nick Next cw is now a $2
  halt
}
if ($2 == 4on4) {
  set %cw $2
  set %player1
  set %player2
  set %player3
  set %player4
  notice $nick Next cw is now a $2
  halt
}
if ($2 == 5on5) {
  set %cw $2
  set %player1
  set %player2
  set %player3
  set %player4
  set %player5
  notice $nick Next cw is now a $2
  halt
}
if ($2 == 6on6) {
  set %cw $2
  set %player1
  set %player2
  set %player3
  set %player4
  set %player5
  set %player6
  notice $nick Next cw is now a $2
  halt
}
}
on *:TEXT:!remove cw:%priv:{
if (%cw == 1on1) {
  if (%player1 !== $nick) {
    notice $nick You are not added to this cw. Use "!add cw" to add your self.
    halt
  }
  if (%player1 == $nick) {
    set %player1
    notice $nick You are now removede from this cw.
    halt
  }
}
if (%cw == 2on2) {
  if (%player1 == $nick) {
    set %player1
    notice $nick You are now removede from this cw.
    halt
  }
  if (%player2 == $nick) {
    set %player2
    notice $nick You are now removede from this cw.
    halt
  }
  if (%player1 !== $nick) || (%player2 !== $nick) {
    notice $nick You are not added to this cw. Use "!add cw" to add your self.
    halt
  }
}
if (%cw == 3on3) {
  if (%player1 == $nick) {
    set %player1
    notice $nick You are now removede from this cw.
    halt
  }
  if (%player2 == $nick) {
    set %player2
    notice $nick You are now removede from this cw.
    halt
  }
  if (%player3 == $nick) {
    set %player3
    notice $nick You are now removede from this cw.
    halt
  }
  if (%player1 !== $nick) || (%player2 !== $nick) || (%player3 !== $nick) {
    notice $nick You are not added to this cw. Use "!add cw" to add your self.
    halt
  }
}
if (%cw == 4on4) {
  if (%player1 == $nick) {
    set %player1
    notice $nick You are now removede from this cw.
    halt
  }
  if (%player2 == $nick) {
    set %player2
    notice $nick You are now removede from this cw.
    halt
  }
  if (%player3 == $nick) {
    set %player3
    notice $nick You are now removede from this cw.
    halt
  }
  if (%player4 == $nick) {
    set %player4
    notice $nick You are now removede from this cw.
    halt
  }
  if (%player1 !== $nick) || (%player2 !== $nick) || (%player3 !== $nick) || (%player4 !== $nick) {
    notice $nick You are not added to this cw. Use "!add cw" to add your self.
    halt
  }
}
if (%cw == 5on5) {
  if (%player1 == $nick) {
    set %player1
    notice $nick You are now removede from this cw.
    halt
  }
  if (%player2 == $nick) {
    set %player2
    notice $nick You are now removede from this cw.
    halt
  }
  if (%player3 == $nick) {
    set %player3
    notice $nick You are now removede from this cw.
    halt
  }
  if (%player4 == $nick) {
    set %player4
    notice $nick You are now removede from this cw.
    halt
  }
  if (%player5 == $nick) {
    set %player5
    notice $nick You are now removede from this cw.
    halt
  }
  if (%player1 !== $nick) || (%player2 !== $nick) || (%player3 !== $nick) || (%player4 !== $nick) || (%player5 !== $nick) {
    notice $nick You are not added to this cw. Use "!add cw" to add your self.
    halt
  }
}

if (%cw == 5on5) {
  if (%player1 == $nick) {
    set %player1
    notice $nick You are now removede from this cw.
    halt
  }
  if (%player2 == $nick) {
    set %player2
    notice $nick You are now removede from this cw.
    halt
  }
  if (%player3 == $nick) {
    set %player3
    notice $nick You are now removede from this cw.
    halt
  }
  if (%player4 == $nick) {
    set %player4
    notice $nick You are now removede from this cw.
    halt
  }
  if (%player5 == $nick) {
    set %player5
    notice $nick You are now removede from this cw.
    halt
  }
  if (%player6 == $nick) {
    set %player6
    notice $nick You are now removede from this cw.
    halt
  }
  if (%player1 !== $nick) || (%player2 !== $nick) || (%player3 !== $nick) || (%player4 !== $nick) || (%player5 !== $nick) || (%player6 !== $nick){
    notice $nick You are not added to this cw. Use "!add cw" to add your self.
    halt
  }
}

}
on *:TEXT:!players:%priv:{
if (%cw == 1on1) {
  timer 1 1 notice $nick Player: %player1
  halt
}
if (%cw == 2on2) {
  timer 1 1 notice $nick Player: %player1
  timer 1 2 notice $nick Player: %player2
  halt
}
if (%cw == 3on3) {
  timer 1 1 notice $nick Player: %player1
  timer 1 2 notice $nick Player: %player2
  timer 1 3 notice $nick Player: %player3
  halt
}
if (%cw == 4on4) {
  timer 1 1 notice $nick Player: %player1
  timer 1 2 notice $nick Player: %player2
  timer 1 3 notice $nick Player: %player3
  timer 1 4 notice $nick Player: %player4
  halt
}
if (%cw == 5on5) {
  timer 1 1 notice $nick Player: %player1
  timer 1 2 notice $nick Player: %player2
  timer 1 3 notice $nick Player: %player3
  timer 1 4 notice $nick Player: %player4
  timer 1 5 notice $nick Player: %player5
  halt
}
if (%cw == 6on6) {
  timer 1 1 notice $nick Player: %player1
  timer 1 2 notice $nick Player: %player2
  timer 1 3 notice $nick Player: %player3
  timer 1 4 notice $nick Player: %player4
  timer 1 5 notice $nick Player: %player5
  timer 1 6 notice $nick Player: %player6
  halt
}
}
on 10:TEXT:!set-priv:#:{
set %priv $chan
notice $nick $chan is now set as priv.
}
on 10:TEXT:!cmd:%priv:{
timer 1 1 notice $nick Cw script commands
timer 1 2 notice $nick !set-cw <?on?>
timer 1 3 notice $nick !end-cw
timer 1 4 notice $nick !add cw
timer 1 5 notice $nick !remove cw
timer 1 6 notice $nick !players
timer 1 7 notice $nick !set-priv
}
Avatar billede mcgoat Nybegynder
29. september 2004 - 16:06 #4
Fejl... Prøv denne istedet:

on *:TEXT:!add cw:%priv:{
if (%cw == 1on1) {
  if (%player1 !== $null) {
    notice $nick Team is full for this cw. Sry.
    halt
  }
  if (%player1 == $null) {
    set %player1 $nick
    notice $nick You are now added to play in the next cw. Use "!remove cw" to remove your self.
    halt
  }
}
if (%cw == 2on2) {
  if (%player1 == $nick) || (%player2 == $nick) {
    notice $nick You are already added to this cw.
    halt
  }
  if (%player1 !== $null) && (%player2 !== $null) {
    notice $nick Team is full for this cw. Sry.
    halt
  }
  if (%player1 == $null) {
    set %player1 $nick
    notice $nick You are now added to play in the next cw. Use "!remove cw" to remove your self.
    halt
  }
  if (%player1 !== $null) {
    set %player2 $nick
    notice $nick You are now added to play in the next cw. Use "!remove cw" to remove your self.
    halt
  }
}
if (%cw == 3on3) {
  if (%player1 == $nick) || (%player2 == $nick) || (%player3 == $nick) {
    notice $nick You are already added to this cw.
    halt
  }
  if (%player1 !== $null) && (%player2 !== $null) && (%player3 !== $null) {
    notice $nick Team is full for this cw. Sry.
    halt
  }
  if (%player1 == $null) {
    set %player1 $nick
    notice $nick You are now added to play in the next cw. Use "!remove cw" to remove your self.
    halt
  }
  if (%player1 !== $null) && (%player2 == $null) {
    set %player2 $nick
    notice $nick You are now added to play in the next cw. Use "!remove cw" to remove your self.
    halt
  }
  if (%player1 !== $null) && (%player2 !== $null) {
    set %player3 $nick
    notice $nick You are now added to play in the next cw. Use "!remove cw" to remove your self.
    halt
  }
}
if (%cw == 4on4) {
  if (%player1 == $nick) || (%player2 == $nick) || (%player3 == $nick) || (%player4 == $nick) {
    notice $nick You are already added to this cw.
    halt
  }
  if (%player1 !== $null) && (%player2 !== $null) && (%player3 !== $null) && (%player4 !== $null) {
    notice $nick Team is full for this cw. Sry.
    halt
  }
  if (%player1 == $null) {
    set %player1 $nick
    notice $nick You are now added to play in the next cw. Use "!remove cw" to remove your self.
    halt
  }
  if (%player1 !== $null) && (%player2 == $null) {
    set %player2 $nick
    notice $nick You are now added to play in the next cw. Use "!remove cw" to remove your self.
    halt
  }
  if (%player1 !== $null) && (%player2 !== $null) && (%player3 == $null) {
    set %player3 $nick
    notice $nick You are now added to play in the next cw. Use "!remove cw" to remove your self.
    halt
  }
  if (%player1 !== $null) && (%player2 !== $null) && (%player3 !== $null) && (%player4 == $null) {
    set %player4 $nick
    notice $nick You are now added to play in the next cw. Use "!remove cw" to remove your self.
    halt
  }
}
if (%cw == 5on5) {
  if (%player1 == $nick) || (%player2 == $nick) || (%player3 == $nick) || (%player4 == $nick) || (%player5 == $nick) {
    notice $nick You are already added to this cw.
    halt
  }
  if (%player1 !== $null) && (%player2 !== $null) && (%player3 !== $null) && (%player4 !== $null) && (%player5 !== $null) {
    notice $nick Team is full for this cw. Sry.
    halt
  }
  if (%player1 == $null) {
    set %player1 $nick
    notice $nick You are now added to play in the next cw. Use "!remove cw" to remove your self.
    halt
  }
  if (%player1 !== $null) && (%player2 == $null) {
    set %player2 $nick
    notice $nick You are now added to play in the next cw. Use "!remove cw" to remove your self.
    halt
  }
  if (%player1 !== $null) && (%player2 !== $null) && (%player3 == $null) {
    set %player3 $nick
    notice $nick You are now added to play in the next cw. Use "!remove cw" to remove your self.
    halt
  }
  if (%player1 !== $null) && (%player2 !== $null) && (%player3 !== $null) && (%player4 == $null) {
    set %player4 $nick
    notice $nick You are now added to play in the next cw. Use "!remove cw" to remove your self.
    halt
  }
  if (%player1 !== $null) && (%player2 !== $null) && (%player3 !== $null) && (%player4 !== $null) && (%player5 == $null) {
    set %player5 $nick
    notice $nick You are now added to play in the next cw. Use "!remove cw" to remove your self.
    halt
  }
}

if (%cw == 6on6) {
  if (%player1 == $nick) || (%player2 == $nick) || (%player3 == $nick) || (%player4 == $nick) || (%player5 == $nick) || (%player6 == $nick){
    notice $nick You are already added to this cw.
    halt
  }
  if (%player1 !== $null) && (%player2 !== $null) && (%player3 !== $null) && (%player4 !== $null) && (%player5 !== $null) && (%player6 !== $null){
    notice $nick Team is full for this cw. Sry.
    halt
  }
  if (%player1 == $null) {
    set %player1 $nick
    notice $nick You are now added to play in the next cw. Use "!remove cw" to remove your self.
    halt
  }
  if (%player1 !== $null) && (%player2 == $null) {
    set %player2 $nick
    notice $nick You are now added to play in the next cw. Use "!remove cw" to remove your self.
    halt
  }
  if (%player1 !== $null) && (%player2 !== $null) && (%player3 == $null) {
    set %player3 $nick
    notice $nick You are now added to play in the next cw. Use "!remove cw" to remove your self.
    halt
  }
  if (%player1 !== $null) && (%player2 !== $null) && (%player3 !== $null) && (%player4 == $null) {
    set %player4 $nick
    notice $nick You are now added to play in the next cw. Use "!remove cw" to remove your self.
    halt
  }
  if (%player1 !== $null) && (%player2 !== $null) && (%player3 !== $null) && (%player4 !== $null) && (%player5 == $null) {
    set %player5 $nick
    notice $nick You are now added to play in the next cw. Use "!remove cw" to remove your self.
    halt
  }
  if (%player1 !== $null) && (%player2 !== $null) && (%player3 !== $null) && (%player4 !== $null) && (%player5 == $null) && (%player6 == $null){
    set %player5 $nick
    notice $nick You are now added to play in the next cw. Use "!remove cw" to remove your self.
    halt
  }
}

}
on 10:TEXT:!end-cw:%priv:{
if (%cw == $null) {
  notice $nick No cw is set.
  halt
}
if (%cw !== $null) {
  if (%cw == 1on1) {
    unset %cw
    unset %player1
    notice $nick Cw is now unset. Use "!set-cw <?on?>" to set again.
    halt
  }
  if (%cw == 2on2) {
    unset %cw
    unset %player1
    unset %player2
    notice $nick Cw is now unset. Use "!set-cw <?on?>" to set again.
    halt
  }
  if (%cw == 3on3) {
    unset %cw
    unset %player1
    unset %player2
    unset %player3
    notice $nick Cw is now unset. Use "!set-cw <?on?>" to set again.
    halt
  }
  if (%cw == 4on4) {
    unset %cw
    unset %player1
    unset %player2
    unset %player3
    unset %player4
    notice $nick Cw is now unset. Use "!set-cw <?on?>" to set again.
    halt
  }
  if (%cw == 5on5) {
    unset %cw
    unset %player1
    unset %player2
    unset %player3
    unset %player4
    unset %player5
    notice $nick Cw is now unset. Use "!set-cw <?on?>" to set again.
    halt
  }
  if (%cw == 6on6) {
    unset %cw
    unset %player1
    unset %player2
    unset %player3
    unset %player4
    unset %player5
    unset %player6
    notice $nick Cw is now unset. Use "!set-cw <?on?>" to set again.
    halt
  }
}
}
on 10:TEXT:!set-cw*:%priv:{
if (%cw !== $null) {
  notice $nick There is already a cw set. Use "!end-cw" to end it.
  halt
}
if ($2 == 1on1) {
  set %cw $2
  set %player1
  notice $nick Next cw is now a $2
  halt
}
if ($2 == 2on2) {
  set %cw $2
  set %player1
  set %player2
  notice $nick Next cw is now a $2
  halt
}
if ($2 == 3on3) {
  set %cw $2
  set %player1
  set %player2
  set %player3
  notice $nick Next cw is now a $2
  halt
}
if ($2 == 4on4) {
  set %cw $2
  set %player1
  set %player2
  set %player3
  set %player4
  notice $nick Next cw is now a $2
  halt
}
if ($2 == 5on5) {
  set %cw $2
  set %player1
  set %player2
  set %player3
  set %player4
  set %player5
  notice $nick Next cw is now a $2
  halt
}
if ($2 == 6on6) {
  set %cw $2
  set %player1
  set %player2
  set %player3
  set %player4
  set %player5
  set %player6
  notice $nick Next cw is now a $2
  halt
}
}
on *:TEXT:!remove cw:%priv:{
if (%cw == 1on1) {
  if (%player1 !== $nick) {
    notice $nick You are not added to this cw. Use "!add cw" to add your self.
    halt
  }
  if (%player1 == $nick) {
    set %player1
    notice $nick You are now removede from this cw.
    halt
  }
}
if (%cw == 2on2) {
  if (%player1 == $nick) {
    set %player1
    notice $nick You are now removede from this cw.
    halt
  }
  if (%player2 == $nick) {
    set %player2
    notice $nick You are now removede from this cw.
    halt
  }
  if (%player1 !== $nick) || (%player2 !== $nick) {
    notice $nick You are not added to this cw. Use "!add cw" to add your self.
    halt
  }
}
if (%cw == 3on3) {
  if (%player1 == $nick) {
    set %player1
    notice $nick You are now removede from this cw.
    halt
  }
  if (%player2 == $nick) {
    set %player2
    notice $nick You are now removede from this cw.
    halt
  }
  if (%player3 == $nick) {
    set %player3
    notice $nick You are now removede from this cw.
    halt
  }
  if (%player1 !== $nick) || (%player2 !== $nick) || (%player3 !== $nick) {
    notice $nick You are not added to this cw. Use "!add cw" to add your self.
    halt
  }
}
if (%cw == 4on4) {
  if (%player1 == $nick) {
    set %player1
    notice $nick You are now removede from this cw.
    halt
  }
  if (%player2 == $nick) {
    set %player2
    notice $nick You are now removede from this cw.
    halt
  }
  if (%player3 == $nick) {
    set %player3
    notice $nick You are now removede from this cw.
    halt
  }
  if (%player4 == $nick) {
    set %player4
    notice $nick You are now removede from this cw.
    halt
  }
  if (%player1 !== $nick) || (%player2 !== $nick) || (%player3 !== $nick) || (%player4 !== $nick) {
    notice $nick You are not added to this cw. Use "!add cw" to add your self.
    halt
  }
}
if (%cw == 5on5) {
  if (%player1 == $nick) {
    set %player1
    notice $nick You are now removede from this cw.
    halt
  }
  if (%player2 == $nick) {
    set %player2
    notice $nick You are now removede from this cw.
    halt
  }
  if (%player3 == $nick) {
    set %player3
    notice $nick You are now removede from this cw.
    halt
  }
  if (%player4 == $nick) {
    set %player4
    notice $nick You are now removede from this cw.
    halt
  }
  if (%player5 == $nick) {
    set %player5
    notice $nick You are now removede from this cw.
    halt
  }
  if (%player1 !== $nick) || (%player2 !== $nick) || (%player3 !== $nick) || (%player4 !== $nick) || (%player5 !== $nick) {
    notice $nick You are not added to this cw. Use "!add cw" to add your self.
    halt
  }
}

if (%cw == 6on6) {
  if (%player1 == $nick) {
    set %player1
    notice $nick You are now removede from this cw.
    halt
  }
  if (%player2 == $nick) {
    set %player2
    notice $nick You are now removede from this cw.
    halt
  }
  if (%player3 == $nick) {
    set %player3
    notice $nick You are now removede from this cw.
    halt
  }
  if (%player4 == $nick) {
    set %player4
    notice $nick You are now removede from this cw.
    halt
  }
  if (%player5 == $nick) {
    set %player5
    notice $nick You are now removede from this cw.
    halt
  }
  if (%player6 == $nick) {
    set %player6
    notice $nick You are now removede from this cw.
    halt
  }
  if (%player1 !== $nick) || (%player2 !== $nick) || (%player3 !== $nick) || (%player4 !== $nick) || (%player5 !== $nick) || (%player6 !== $nick){
    notice $nick You are not added to this cw. Use "!add cw" to add your self.
    halt
  }
}

}
on *:TEXT:!players:%priv:{
if (%cw == 1on1) {
  timer 1 1 notice $nick Player: %player1
  halt
}
if (%cw == 2on2) {
  timer 1 1 notice $nick Player: %player1
  timer 1 2 notice $nick Player: %player2
  halt
}
if (%cw == 3on3) {
  timer 1 1 notice $nick Player: %player1
  timer 1 2 notice $nick Player: %player2
  timer 1 3 notice $nick Player: %player3
  halt
}
if (%cw == 4on4) {
  timer 1 1 notice $nick Player: %player1
  timer 1 2 notice $nick Player: %player2
  timer 1 3 notice $nick Player: %player3
  timer 1 4 notice $nick Player: %player4
  halt
}
if (%cw == 5on5) {
  timer 1 1 notice $nick Player: %player1
  timer 1 2 notice $nick Player: %player2
  timer 1 3 notice $nick Player: %player3
  timer 1 4 notice $nick Player: %player4
  timer 1 5 notice $nick Player: %player5
  halt
}
if (%cw == 6on6) {
  timer 1 1 notice $nick Player: %player1
  timer 1 2 notice $nick Player: %player2
  timer 1 3 notice $nick Player: %player3
  timer 1 4 notice $nick Player: %player4
  timer 1 5 notice $nick Player: %player5
  timer 1 6 notice $nick Player: %player6
  halt
}
}
on 10:TEXT:!set-priv:#:{
set %priv $chan
notice $nick $chan is now set as priv.
}
on 10:TEXT:!cmd:%priv:{
timer 1 1 notice $nick Cw script commands
timer 1 2 notice $nick !set-cw <?on?>
timer 1 3 notice $nick !end-cw
timer 1 4 notice $nick !add cw
timer 1 5 notice $nick !remove cw
timer 1 6 notice $nick !players
timer 1 7 notice $nick !set-priv
}
Avatar billede kraller Nybegynder
29. september 2004 - 17:55 #5
det virker ikke
Avatar billede kraller Nybegynder
29. september 2004 - 19:02 #6
der er en der laver et nyt til mig
Avatar billede mcgoat Nybegynder
30. september 2004 - 10:11 #7
Fandt lige en fejl.. virker dette?

on *:TEXT:!add cw:%priv:{
if (%cw == 1on1) {
  if (%player1 !== $null) {
    notice $nick Team is full for this cw. Sry.
    halt
  }
  if (%player1 == $null) {
    set %player1 $nick
    notice $nick You are now added to play in the next cw. Use "!remove cw" to remove your self.
    halt
  }
}
if (%cw == 2on2) {
  if (%player1 == $nick) || (%player2 == $nick) {
    notice $nick You are already added to this cw.
    halt
  }
  if (%player1 !== $null) && (%player2 !== $null) {
    notice $nick Team is full for this cw. Sry.
    halt
  }
  if (%player1 == $null) {
    set %player1 $nick
    notice $nick You are now added to play in the next cw. Use "!remove cw" to remove your self.
    halt
  }
  if (%player1 !== $null) {
    set %player2 $nick
    notice $nick You are now added to play in the next cw. Use "!remove cw" to remove your self.
    halt
  }
}
if (%cw == 3on3) {
  if (%player1 == $nick) || (%player2 == $nick) || (%player3 == $nick) {
    notice $nick You are already added to this cw.
    halt
  }
  if (%player1 !== $null) && (%player2 !== $null) && (%player3 !== $null) {
    notice $nick Team is full for this cw. Sry.
    halt
  }
  if (%player1 == $null) {
    set %player1 $nick
    notice $nick You are now added to play in the next cw. Use "!remove cw" to remove your self.
    halt
  }
  if (%player1 !== $null) && (%player2 == $null) {
    set %player2 $nick
    notice $nick You are now added to play in the next cw. Use "!remove cw" to remove your self.
    halt
  }
  if (%player1 !== $null) && (%player2 !== $null) {
    set %player3 $nick
    notice $nick You are now added to play in the next cw. Use "!remove cw" to remove your self.
    halt
  }
}
if (%cw == 4on4) {
  if (%player1 == $nick) || (%player2 == $nick) || (%player3 == $nick) || (%player4 == $nick) {
    notice $nick You are already added to this cw.
    halt
  }
  if (%player1 !== $null) && (%player2 !== $null) && (%player3 !== $null) && (%player4 !== $null) {
    notice $nick Team is full for this cw. Sry.
    halt
  }
  if (%player1 == $null) {
    set %player1 $nick
    notice $nick You are now added to play in the next cw. Use "!remove cw" to remove your self.
    halt
  }
  if (%player1 !== $null) && (%player2 == $null) {
    set %player2 $nick
    notice $nick You are now added to play in the next cw. Use "!remove cw" to remove your self.
    halt
  }
  if (%player1 !== $null) && (%player2 !== $null) && (%player3 == $null) {
    set %player3 $nick
    notice $nick You are now added to play in the next cw. Use "!remove cw" to remove your self.
    halt
  }
  if (%player1 !== $null) && (%player2 !== $null) && (%player3 !== $null) && (%player4 == $null) {
    set %player4 $nick
    notice $nick You are now added to play in the next cw. Use "!remove cw" to remove your self.
    halt
  }
}
if (%cw == 5on5) {
  if (%player1 == $nick) || (%player2 == $nick) || (%player3 == $nick) || (%player4 == $nick) || (%player5 == $nick) {
    notice $nick You are already added to this cw.
    halt
  }
  if (%player1 !== $null) && (%player2 !== $null) && (%player3 !== $null) && (%player4 !== $null) && (%player5 !== $null) {
    notice $nick Team is full for this cw. Sry.
    halt
  }
  if (%player1 == $null) {
    set %player1 $nick
    notice $nick You are now added to play in the next cw. Use "!remove cw" to remove your self.
    halt
  }
  if (%player1 !== $null) && (%player2 == $null) {
    set %player2 $nick
    notice $nick You are now added to play in the next cw. Use "!remove cw" to remove your self.
    halt
  }
  if (%player1 !== $null) && (%player2 !== $null) && (%player3 == $null) {
    set %player3 $nick
    notice $nick You are now added to play in the next cw. Use "!remove cw" to remove your self.
    halt
  }
  if (%player1 !== $null) && (%player2 !== $null) && (%player3 !== $null) && (%player4 == $null) {
    set %player4 $nick
    notice $nick You are now added to play in the next cw. Use "!remove cw" to remove your self.
    halt
  }
  if (%player1 !== $null) && (%player2 !== $null) && (%player3 !== $null) && (%player4 !== $null) && (%player5 == $null) {
    set %player5 $nick
    notice $nick You are now added to play in the next cw. Use "!remove cw" to remove your self.
    halt
  }
}

if (%cw == 6on6) {
  if (%player1 == $nick) || (%player2 == $nick) || (%player3 == $nick) || (%player4 == $nick) || (%player5 == $nick) || (%player6 == $nick){
    notice $nick You are already added to this cw.
    halt
  }
  if (%player1 !== $null) && (%player2 !== $null) && (%player3 !== $null) && (%player4 !== $null) && (%player5 !== $null) && (%player6 !== $null){
    notice $nick Team is full for this cw. Sry.
    halt
  }
  if (%player1 == $null) {
    set %player1 $nick
    notice $nick You are now added to play in the next cw. Use "!remove cw" to remove your self.
    halt
  }
  if (%player1 !== $null) && (%player2 == $null) {
    set %player2 $nick
    notice $nick You are now added to play in the next cw. Use "!remove cw" to remove your self.
    halt
  }
  if (%player1 !== $null) && (%player2 !== $null) && (%player3 == $null) {
    set %player3 $nick
    notice $nick You are now added to play in the next cw. Use "!remove cw" to remove your self.
    halt
  }
  if (%player1 !== $null) && (%player2 !== $null) && (%player3 !== $null) && (%player4 == $null) {
    set %player4 $nick
    notice $nick You are now added to play in the next cw. Use "!remove cw" to remove your self.
    halt
  }
  if (%player1 !== $null) && (%player2 !== $null) && (%player3 !== $null) && (%player4 !== $null) && (%player5 == $null) {
    set %player5 $nick
    notice $nick You are now added to play in the next cw. Use "!remove cw" to remove your self.
    halt
  }
  if (%player1 !== $null) && (%player2 !== $null) && (%player3 !== $null) && (%player4 !== $null) && (%player5 == $null) && (%player6 == $null){
    set %player6 $nick
    notice $nick You are now added to play in the next cw. Use "!remove cw" to remove your self.
    halt
  }
}

}
on 10:TEXT:!end-cw:%priv:{
if (%cw == $null) {
  notice $nick No cw is set.
  halt
}
if (%cw !== $null) {
  if (%cw == 1on1) {
    unset %cw
    unset %player1
    notice $nick Cw is now unset. Use "!set-cw <?on?>" to set again.
    halt
  }
  if (%cw == 2on2) {
    unset %cw
    unset %player1
    unset %player2
    notice $nick Cw is now unset. Use "!set-cw <?on?>" to set again.
    halt
  }
  if (%cw == 3on3) {
    unset %cw
    unset %player1
    unset %player2
    unset %player3
    notice $nick Cw is now unset. Use "!set-cw <?on?>" to set again.
    halt
  }
  if (%cw == 4on4) {
    unset %cw
    unset %player1
    unset %player2
    unset %player3
    unset %player4
    notice $nick Cw is now unset. Use "!set-cw <?on?>" to set again.
    halt
  }
  if (%cw == 5on5) {
    unset %cw
    unset %player1
    unset %player2
    unset %player3
    unset %player4
    unset %player5
    notice $nick Cw is now unset. Use "!set-cw <?on?>" to set again.
    halt
  }
  if (%cw == 6on6) {
    unset %cw
    unset %player1
    unset %player2
    unset %player3
    unset %player4
    unset %player5
    unset %player6
    notice $nick Cw is now unset. Use "!set-cw <?on?>" to set again.
    halt
  }
}
}
on 10:TEXT:!set-cw*:%priv:{
if (%cw !== $null) {
  notice $nick There is already a cw set. Use "!end-cw" to end it.
  halt
}
if ($2 == 1on1) {
  set %cw $2
  set %player1
  notice $nick Next cw is now a $2
  halt
}
if ($2 == 2on2) {
  set %cw $2
  set %player1
  set %player2
  notice $nick Next cw is now a $2
  halt
}
if ($2 == 3on3) {
  set %cw $2
  set %player1
  set %player2
  set %player3
  notice $nick Next cw is now a $2
  halt
}
if ($2 == 4on4) {
  set %cw $2
  set %player1
  set %player2
  set %player3
  set %player4
  notice $nick Next cw is now a $2
  halt
}
if ($2 == 5on5) {
  set %cw $2
  set %player1
  set %player2
  set %player3
  set %player4
  set %player5
  notice $nick Next cw is now a $2
  halt
}
if ($2 == 6on6) {
  set %cw $2
  set %player1
  set %player2
  set %player3
  set %player4
  set %player5
  set %player6
  notice $nick Next cw is now a $2
  halt
}
}
on *:TEXT:!remove cw:%priv:{
if (%cw == 1on1) {
  if (%player1 !== $nick) {
    notice $nick You are not added to this cw. Use "!add cw" to add your self.
    halt
  }
  if (%player1 == $nick) {
    set %player1
    notice $nick You are now removede from this cw.
    halt
  }
}
if (%cw == 2on2) {
  if (%player1 == $nick) {
    set %player1
    notice $nick You are now removede from this cw.
    halt
  }
  if (%player2 == $nick) {
    set %player2
    notice $nick You are now removede from this cw.
    halt
  }
  if (%player1 !== $nick) || (%player2 !== $nick) {
    notice $nick You are not added to this cw. Use "!add cw" to add your self.
    halt
  }
}
if (%cw == 3on3) {
  if (%player1 == $nick) {
    set %player1
    notice $nick You are now removede from this cw.
    halt
  }
  if (%player2 == $nick) {
    set %player2
    notice $nick You are now removede from this cw.
    halt
  }
  if (%player3 == $nick) {
    set %player3
    notice $nick You are now removede from this cw.
    halt
  }
  if (%player1 !== $nick) || (%player2 !== $nick) || (%player3 !== $nick) {
    notice $nick You are not added to this cw. Use "!add cw" to add your self.
    halt
  }
}
if (%cw == 4on4) {
  if (%player1 == $nick) {
    set %player1
    notice $nick You are now removede from this cw.
    halt
  }
  if (%player2 == $nick) {
    set %player2
    notice $nick You are now removede from this cw.
    halt
  }
  if (%player3 == $nick) {
    set %player3
    notice $nick You are now removede from this cw.
    halt
  }
  if (%player4 == $nick) {
    set %player4
    notice $nick You are now removede from this cw.
    halt
  }
  if (%player1 !== $nick) || (%player2 !== $nick) || (%player3 !== $nick) || (%player4 !== $nick) {
    notice $nick You are not added to this cw. Use "!add cw" to add your self.
    halt
  }
}
if (%cw == 5on5) {
  if (%player1 == $nick) {
    set %player1
    notice $nick You are now removede from this cw.
    halt
  }
  if (%player2 == $nick) {
    set %player2
    notice $nick You are now removede from this cw.
    halt
  }
  if (%player3 == $nick) {
    set %player3
    notice $nick You are now removede from this cw.
    halt
  }
  if (%player4 == $nick) {
    set %player4
    notice $nick You are now removede from this cw.
    halt
  }
  if (%player5 == $nick) {
    set %player5
    notice $nick You are now removede from this cw.
    halt
  }
  if (%player1 !== $nick) || (%player2 !== $nick) || (%player3 !== $nick) || (%player4 !== $nick) || (%player5 !== $nick) {
    notice $nick You are not added to this cw. Use "!add cw" to add your self.
    halt
  }
}

if (%cw == 6on6) {
  if (%player1 == $nick) {
    set %player1
    notice $nick You are now removede from this cw.
    halt
  }
  if (%player2 == $nick) {
    set %player2
    notice $nick You are now removede from this cw.
    halt
  }
  if (%player3 == $nick) {
    set %player3
    notice $nick You are now removede from this cw.
    halt
  }
  if (%player4 == $nick) {
    set %player4
    notice $nick You are now removede from this cw.
    halt
  }
  if (%player5 == $nick) {
    set %player5
    notice $nick You are now removede from this cw.
    halt
  }
  if (%player6 == $nick) {
    set %player6
    notice $nick You are now removede from this cw.
    halt
  }
  if (%player1 !== $nick) || (%player2 !== $nick) || (%player3 !== $nick) || (%player4 !== $nick) || (%player5 !== $nick) || (%player6 !== $nick){
    notice $nick You are not added to this cw. Use "!add cw" to add your self.
    halt
  }
}

}
on *:TEXT:!players:%priv:{
if (%cw == 1on1) {
  timer 1 1 notice $nick Player: %player1
  halt
}
if (%cw == 2on2) {
  timer 1 1 notice $nick Player: %player1
  timer 1 2 notice $nick Player: %player2
  halt
}
if (%cw == 3on3) {
  timer 1 1 notice $nick Player: %player1
  timer 1 2 notice $nick Player: %player2
  timer 1 3 notice $nick Player: %player3
  halt
}
if (%cw == 4on4) {
  timer 1 1 notice $nick Player: %player1
  timer 1 2 notice $nick Player: %player2
  timer 1 3 notice $nick Player: %player3
  timer 1 4 notice $nick Player: %player4
  halt
}
if (%cw == 5on5) {
  timer 1 1 notice $nick Player: %player1
  timer 1 2 notice $nick Player: %player2
  timer 1 3 notice $nick Player: %player3
  timer 1 4 notice $nick Player: %player4
  timer 1 5 notice $nick Player: %player5
  halt
}
if (%cw == 6on6) {
  timer 1 1 notice $nick Player: %player1
  timer 1 2 notice $nick Player: %player2
  timer 1 3 notice $nick Player: %player3
  timer 1 4 notice $nick Player: %player4
  timer 1 5 notice $nick Player: %player5
  timer 1 6 notice $nick Player: %player6
  halt
}
}
on 10:TEXT:!set-priv:#:{
set %priv $chan
notice $nick $chan is now set as priv.
}
on 10:TEXT:!cmd:%priv:{
timer 1 1 notice $nick Cw script commands
timer 1 2 notice $nick !set-cw <?on?>
timer 1 3 notice $nick !end-cw
timer 1 4 notice $nick !add cw
timer 1 5 notice $nick !remove cw
timer 1 6 notice $nick !players
timer 1 7 notice $nick !set-priv
}
Avatar billede Ny bruger Nybegynder

Din løsning...

Tilladte BB-code-tags: [b]fed[/b] [i]kursiv[/i] [u]understreget[/u] Web- og emailadresser omdannes automatisk til links. Der sættes "nofollow" på alle links.

Loading billede Opret Preview
Kategori
IT-kurser om Microsoft 365, sikkerhed, personlig vækst, udvikling, digital markedsføring, grafisk design, SAP og forretningsanalyse.

Log ind eller opret profil

Hov!

For at kunne deltage på Computerworld Eksperten skal du være logget ind.

Det er heldigvis nemt at oprette en bruger: Det tager to minutter og du kan vælge at bruge enten e-mail, Facebook eller Google som login.

Du kan også logge ind via nedenstående tjenester