Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- on *:TEXT:*:*: {
- tokenize 32 $strip($1-)
- if ($1 == !boterkaaseneieren) || ($1 == !tictactoe) || ($1 == !bke) || ($1 == !ttt) && ($chan != #bulletstar.net) && ($2 != help) {
- msg $chan 7Boter, kaas en eieren gaat beginnen!4 Uitleg nodig? Typ !ttt help
- msg $chan 7Er is plaats voor 2 personen, typ 4!speel7 om mee te spelen!
- set %tttstatus on
- set %tttchannel $chan
- halt
- }
- if ($1 == !speel) {
- if (%tttstatus != on) { notice $nick Zet eerst het speel aan doormiddel van !ttt, !tictactoe, !bke of !boterkaaseneieren | halt }
- if (%tttnaam1 == $nick) && (!%tttnaam2) { notice $nick Wat dacht jij $nick -.-" | halt }
- if (%tttnaam1 == $nick) || (%tttnaam2 == $nick) && (%speelstatus == on) && ($2 != $null) { goto spelen }
- if (%ttt-personen >= 2) { notice $nick Sorry, maar er doen al 2 personen mee met TicTacToe! | halt }
- if (!%tttnaam1) { set %tttnaam1 $nick }
- if (%ttt-personen == 1) { set %tttnaam2 $nick | set %speelstatus on }
- inc %ttt-personen
- msg %tttchannel 4 $+ $nick 7doet mee aan TicTacToe en is speler nummer $+ %ttt-personen
- if (%ttt-personen != 2) { halt }
- msg %tttchannel 4TicTacToe 7gaat beginnen!
- msg %tttchannel 0......1|0.....1|0......
- msg %tttchannel 0......1|0.....1|0......
- msg %tttchannel 0......1|0.....1|0.......
- msg %tttchannel 1______1|1__ __1|_______
- msg %tttchannel 0......1|0.....1|0......
- msg %tttchannel 0......1|0.....1|0......
- msg %tttchannel 0......1|0.....1|0.....
- msg %tttchannel 1______1|1__ __1|_______
- msg %tttchannel 0......1|0.....1|0......
- msg %tttchannel 0......1|0.....1|0......
- msg %tttchannel 0......1|0.....1|0......
- msg %tttchannel 4 $+ %tttnaam1 7is 4X 7en4 %tttnaam2 7is 4O
- msg %tttchannel 4 $+ %tttnaam1 7mag als eerste beginnen!
- set %speelstatus on
- set %ttt-1 0.
- set %ttt-2 0.
- set %ttt-3 0.
- set %ttt-4 0.
- set %ttt-5 0.
- set %ttt-6 0.
- set %ttt-7 0.
- set %ttt-8 0.
- set %ttt-9 0.
- set %beurt %tttnaam1
- set %tttspel 1
- set %speelerror on
- :spelen
- if ($2 !isnum) { notice $nick Fout! Syntax: !speel 1 t/m 9 | halt }
- if ($2 > 9) && ($2 < 1) { notice $Nick Fout! Kies een getal van 1 t/m 9 | halt }
- if (%beurt == %tttnaam1) && ($nick != %tttnaam1) { notice $nick Jij bent niet aan de beurt! | halt }
- if (%beurt == %tttnaam2) && ($nick != %tttnaam2) { notice $nick Jij bent niet aan de beurt! | halt }
- if ($2 == 1) && (%ttt-1 == X || %ttt-1 == O) { notice $nick Daar heeft iemand al wat staan! | halt }
- if ($2 == 2) && (%ttt-2 == X || %ttt-2 == O) { notice $nick Daar heeft iemand al wat staan! | halt }
- if ($2 == 3) && (%ttt-3 == X || %ttt-3 == O) { notice $nick Daar heeft iemand al wat staan! | halt }
- if ($2 == 4) && (%ttt-4 == X || %ttt-4 == O) { notice $nick Daar heeft iemand al wat staan! | halt }
- if ($2 == 5) && (%ttt-5 == X || %ttt-5 == O) { notice $nick Daar heeft iemand al wat staan! | halt }
- if ($2 == 6) && (%ttt-6 == X || %ttt-6 == O) { notice $nick Daar heeft iemand al wat staan! | halt }
- if ($2 == 7) && (%ttt-7 == X || %ttt-7 == O) { notice $nick Daar heeft iemand al wat staan! | halt }
- if ($2 == 8) && (%ttt-8 == X || %ttt-8 == O) { notice $nick Daar heeft iemand al wat staan! | halt }
- if ($2 == 9) && (%ttt-9 == X || %ttt-9 == O) { notice $nick Daar heeft iemand al wat staan! | halt }
- if ($2 == 1) && (%tttnaam1 == $nick) { set %ttt-1 X }
- if ($2 == 2) && (%tttnaam1 == $nick) { set %ttt-2 X }
- if ($2 == 3) && (%tttnaam1 == $nick) { set %ttt-3 X }
- if ($2 == 4) && (%tttnaam1 == $nick) { set %ttt-4 X }
- if ($2 == 5) && (%tttnaam1 == $nick) { set %ttt-5 X }
- if ($2 == 6) && (%tttnaam1 == $nick) { set %ttt-6 X }
- if ($2 == 7) && (%tttnaam1 == $nick) { set %ttt-7 X }
- if ($2 == 8) && (%tttnaam1 == $nick) { set %ttt-8 X }
- if ($2 == 9) && (%tttnaam1 == $nick) { set %ttt-9 X }
- if ($2 == 1) && (%tttnaam2 == $nick) { set %ttt-1 O }
- if ($2 == 2) && (%tttnaam2 == $nick) { set %ttt-2 O }
- if ($2 == 3) && (%tttnaam2 == $nick) { set %ttt-3 O }
- if ($2 == 4) && (%tttnaam2 == $nick) { set %ttt-4 O }
- if ($2 == 5) && (%tttnaam2 == $nick) { set %ttt-5 O }
- if ($2 == 6) && (%tttnaam2 == $nick) { set %ttt-6 O }
- if ($2 == 7) && (%tttnaam2 == $nick) { set %ttt-7 O }
- if ($2 == 8) && (%tttnaam2 == $nick) { set %ttt-8 O }
- if ($2 == 9) && (%tttnaam2 == $nick) { set %ttt-9 O }
- msg %tttchannel 0......1|0.....1|0......
- msg %tttchannel 0..1 $+ %ttt-1 $+ 0...1|0..1 $+ %ttt-2 $+ 0..1|0..1 $+ %ttt-3 $+ 0...
- msg %tttchannel 0......1|0.....1|0.......
- msg %tttchannel 1______1|1__ __1|_______
- msg %tttchannel 0......1|0.....1|0......
- msg %tttchannel 0..1 $+ %ttt-4 $+ 0...1|0..1 $+ %ttt-5 $+ 0..1|0..1 $+ %ttt-6 $+ 0...
- msg %tttchannel 0......1|0.....1|0.....
- msg %tttchannel 1______1|1__ __1|_______
- msg %tttchannel 0......1|0.....1|0......
- msg %tttchannel 0..1 $+ %ttt-7 $+ 0...1|0..1 $+ %ttt-8 $+ 0..1|0..1 $+ %ttt-9 $+ 0...
- msg %tttchannel 0......1|0.....1|0......
- if (%ttt-1 == X) && (%ttt-2 == X) && (%ttt-3 == X) { msg %tttchannel 4 $+ %tttnaam1 7heeft de TicTacToe game gewonnen! | /inc %tttspellen | /inc %tttgewonnen | /ttt-reset | halt }
- if (%ttt-4 == X) && (%ttt-5 == X) && (%ttt-6 == X) { msg %tttchannel 4 $+ %tttnaam1 7heeft de TicTacToe game gewonnen! | /inc %tttspellen | /inc %tttgewonnen | /ttt-reset | halt }
- if (%ttt-7 == X) && (%ttt-8 == X) && (%ttt-9 == X) { msg %tttchannel 4 $+ %tttnaam1 7heeft de TicTacToe game gewonnen! | /inc %tttspellen | /inc %tttgewonnen | /ttt-reset | halt }
- if (%ttt-1 == X) && (%ttt-5 == X) && (%ttt-9 == X) { msg %tttchannel 4 $+ %tttnaam1 7heeft de TicTacToe game gewonnen! | /inc %tttspellen | /inc %tttgewonnen | /ttt-reset | halt }
- if (%ttt-3 == X) && (%ttt-5 == X) && (%ttt-7 == X) { msg %tttchannel 4 $+ %tttnaam1 7heeft de TicTacToe game gewonnen! | /inc %tttspellen | /inc %tttgewonnen | /ttt-reset | halt }
- if (%ttt-1 == X) && (%ttt-4 == X) && (%ttt-7 == X) { msg %tttchannel 4 $+ %tttnaam1 7heeft de TicTacToe game gewonnen! | /inc %tttspellen | /inc %tttgewonnen | /ttt-reset | halt }
- if (%ttt-2 == X) && (%ttt-5 == X) && (%ttt-8 == X) { msg %tttchannel 4 $+ %tttnaam1 7heeft de TicTacToe game gewonnen! | /inc %tttspellen | /inc %tttgewonnen | /ttt-reset | halt }
- if (%ttt-3 == X) && (%ttt-6 == X) && (%ttt-9 == X) { msg %tttchannel 4 $+ %tttnaam1 7heeft de TicTacToe game gewonnen! | /inc %tttspellen | /inc %tttgewonnen | /ttt-reset | halt }
- if (%ttt-1 == O) && (%ttt-2 == O) && (%ttt-3 == O) { msg %tttchannel 4 $+ %tttnaam2 7heeft de TicTacToe game gewonnen! | /inc %tttspellen | /inc %tttgewonnen | /ttt-reset | halt }
- if (%ttt-4 == O) && (%ttt-5 == O) && (%ttt-6 == O) { msg %tttchannel 4 $+ %tttnaam2 7heeft de TicTacToe game gewonnen! | /inc %tttspellen | /inc %tttgewonnen | /ttt-reset | halt }
- if (%ttt-7 == O) && (%ttt-8 == O) && (%ttt-9 == O) { msg %tttchannel 4 $+ %tttnaam2 7heeft de TicTacToe game gewonnen! | /inc %tttspellen | /inc %tttgewonnen | /ttt-reset | halt }
- if (%ttt-1 == O) && (%ttt-5 == O) && (%ttt-9 == O) { msg %tttchannel 4 $+ %tttnaam2 7heeft de TicTacToe game gewonnen! | /inc %tttspellen | /inc %tttgewonnen | /ttt-reset | halt }
- if (%ttt-3 == O) && (%ttt-5 == O) && (%ttt-7 == O) { msg %tttchannel 4 $+ %tttnaam2 7heeft de TicTacToe game gewonnen! | /inc %tttspellen | /inc %tttgewonnen | /ttt-reset | halt }
- if (%ttt-1 == O) && (%ttt-4 == O) && (%ttt-7 == O) { msg %tttchannel 4 $+ %tttnaam2 7heeft de TicTacToe game gewonnen! | /inc %tttspellen | /inc %tttgewonnen | /ttt-reset | halt }
- if (%ttt-2 == O) && (%ttt-5 == O) && (%ttt-8 == O) { msg %tttchannel 4 $+ %tttnaam2 7heeft de TicTacToe game gewonnen! | /inc %tttspellen | /inc %tttgewonnen | /ttt-reset | halt }
- if (%ttt-3 == O) && (%ttt-6 == O) && (%ttt-9 == O) { msg %tttchannel 4 $+ %tttnaam2 7heeft de TicTacToe game gewonnen! | /inc %tttspellen | /inc %tttgewonnen | /ttt-reset | halt }
- if (%ttt-1 == X || %ttt-1 == O) && (%ttt-2 == X || %ttt-2 == O) && (%ttt-3 == X || %ttt-3 == O) && (%ttt-4 == X || %ttt-4 == O) && (%ttt-5 == X || %ttt-5 == O) && (%ttt-6 == X || %ttt-6 == O) && (%ttt-7 == X || %ttt-7 == O) && (%ttt-8 == X || %ttt-8 == O) && (%ttt-9 == X || %ttt-9 == O) { msg %tttchannel 7Het is gelijk! Niemand heeft gewonnen! | /ttt-reset | inc %tttgelijkspel | inc %tttspellen | halt }
- if (%beurt == %tttnaam1) { set %beurt %tttnaam2 | halt }
- if (%beurt == %tttnaam2) { set %beurt %tttnaam1 | halt }
- }
- if ($1 == !stats) {
- notice $nick Games gespeeld: %tttspellen
- notice $nick Totaal gewonnen: %tttgewonnen
- notice $nick Totaal verloren: %tttgewonnen
- notice $nick Totaal gelijkspel: %tttgelijkspel
- }
- if ($1 == !ttt) && ($2 == help) {
- notice $nick Je ziet een TicTacToe veld, en deze is genummerd van 1 t/m 9. Elk nummer heeft zijn eigen vakje, dit begint links boven aan en eindigt rechts onder.
- notice $nick Als je een vakje naar beneden gaat, zit er aan de linkerkant het volgende nummer.
- }
- }
- on *:INPUT:*: {
- tokenize 32 $strip($1-)
- if ($1 == !boterkaaseneieren) || ($1 == !tictactoe) || ($1 == !bke) || ($1 == !ttt) && ($chan != #bulletstar.net) && ($2 != help) {
- msg $chan 7Boter, kaas en eieren gaat beginnen!4 Uitleg nodig? Typ !ttt help
- msg $chan 7Er is plaats voor 2 personen, typ 4!speel7 om mee te spelen!
- set %tttstatus on
- set %tttchannel $chan
- halt
- }
- if ($1 == !speel) {
- if (%tttstatus != on) { notice $nick Zet eerst het spel aan doormiddel van !ttt, !tictactoe, !bke of !boterkaaseneieren | halt }
- if (%tttnaam1 == $nick) || (%tttnaam2 == $nick) && (%speelstatus == on) { goto spelen }
- if (%ttt-personen >= 2) { notice $nick Sorry, maar er doen al 2 personen mee met TicTacToe! | halt }
- if (!%tttnaam1) { set %tttnaam1 $nick }
- if (%ttt-personen == 1) { set %tttnaam2 $nick | set %speelstatus on }
- inc %ttt-personen
- msg %tttchannel 4 $+ $nick 7doet mee aan TicTacToe en is speler nummer $+ %ttt-personen
- if (%ttt-personen != 2) { halt }
- msg %tttchannel 4TicTacToe 7gaat beginnen!
- msg %tttchannel 0......1|0.....1|0......
- msg %tttchannel 0......1|0.....1|0......
- msg %tttchannel 0......1|0.....1|0.......
- msg %tttchannel 1______1|1__ __1|_______
- msg %tttchannel 0......1|0.....1|0......
- msg %tttchannel 0......1|0.....1|0......
- msg %tttchannel 0......1|0.....1|0.....
- msg %tttchannel 1______1|1__ __1|_______
- msg %tttchannel 0......1|0.....1|0......
- msg %tttchannel 0......1|0.....1|0......
- msg %tttchannel 0......1|0.....1|0......
- msg %tttchannel 4 $+ %tttnaam1 7is 4X 7en4 %tttnaam2 7is 4O
- msg %tttchannel 4 $+ %tttnaam1 7mag als eerste beginnen!
- set %speelstatus on
- set %ttt-1 0.
- set %ttt-2 0.
- set %ttt-3 0.
- set %ttt-4 0.
- set %ttt-5 0.
- set %ttt-6 0.
- set %ttt-7 0.
- set %ttt-8 0.
- set %ttt-9 0.
- set %beurt %tttnaam1
- set %tttspel 1
- set %speelerror on
- :spelen
- if ($2 !isnum) { notice $nick Fout! Syntax: !speel 1 t/m 9 | halt }
- if ($2 > 9) && ($2 < 1) { notice $Nick Fout! Kies een getal van 1 t/m 9 | halt }
- if (%beurt == %tttnaam1) && ($nick != %tttnaam1) { notice $nick Jij bent niet aan de beurt! | halt }
- if (%beurt == %tttnaam2) && ($nick != %tttnaam2) { notice $nick Jij bent niet aan de beurt! | halt }
- if ($2 == 1) && (%ttt-1 == X || %ttt-1 == O) { notice $nick Daar heeft iemand al wat staan! | halt }
- if ($2 == 2) && (%ttt-2 == X || %ttt-2 == O) { notice $nick Daar heeft iemand al wat staan! | halt }
- if ($2 == 3) && (%ttt-3 == X || %ttt-3 == O) { notice $nick Daar heeft iemand al wat staan! | halt }
- if ($2 == 4) && (%ttt-4 == X || %ttt-4 == O) { notice $nick Daar heeft iemand al wat staan! | halt }
- if ($2 == 5) && (%ttt-5 == X || %ttt-5 == O) { notice $nick Daar heeft iemand al wat staan! | halt }
- if ($2 == 6) && (%ttt-6 == X || %ttt-6 == O) { notice $nick Daar heeft iemand al wat staan! | halt }
- if ($2 == 7) && (%ttt-7 == X || %ttt-7 == O) { notice $nick Daar heeft iemand al wat staan! | halt }
- if ($2 == 8) && (%ttt-8 == X || %ttt-8 == O) { notice $nick Daar heeft iemand al wat staan! | halt }
- if ($2 == 9) && (%ttt-9 == X || %ttt-9 == O) { notice $nick Daar heeft iemand al wat staan! | halt }
- if ($2 == 1) && (%tttnaam1 == $nick) { set %ttt-1 X }
- if ($2 == 2) && (%tttnaam1 == $nick) { set %ttt-2 X }
- if ($2 == 3) && (%tttnaam1 == $nick) { set %ttt-3 X }
- if ($2 == 4) && (%tttnaam1 == $nick) { set %ttt-4 X }
- if ($2 == 5) && (%tttnaam1 == $nick) { set %ttt-5 X }
- if ($2 == 6) && (%tttnaam1 == $nick) { set %ttt-6 X }
- if ($2 == 7) && (%tttnaam1 == $nick) { set %ttt-7 X }
- if ($2 == 8) && (%tttnaam1 == $nick) { set %ttt-8 X }
- if ($2 == 9) && (%tttnaam1 == $nick) { set %ttt-9 X }
- if ($2 == 1) && (%tttnaam2 == $nick) { set %ttt-1 O }
- if ($2 == 2) && (%tttnaam2 == $nick) { set %ttt-2 O }
- if ($2 == 3) && (%tttnaam2 == $nick) { set %ttt-3 O }
- if ($2 == 4) && (%tttnaam2 == $nick) { set %ttt-4 O }
- if ($2 == 5) && (%tttnaam2 == $nick) { set %ttt-5 O }
- if ($2 == 6) && (%tttnaam2 == $nick) { set %ttt-6 O }
- if ($2 == 7) && (%tttnaam2 == $nick) { set %ttt-7 O }
- if ($2 == 8) && (%tttnaam2 == $nick) { set %ttt-8 O }
- if ($2 == 9) && (%tttnaam2 == $nick) { set %ttt-9 O }
- msg %tttchannel 0......1|0.....1|0......
- msg %tttchannel 0..1 $+ %ttt-1 $+ 0...1|0..1 $+ %ttt-2 $+ 0..1|0..1 $+ %ttt-3 $+ 0...
- msg %tttchannel 0......1|0.....1|0.......
- msg %tttchannel 1______1|1__ __1|_______
- msg %tttchannel 0......1|0.....1|0......
- msg %tttchannel 0..1 $+ %ttt-4 $+ 0...1|0..1 $+ %ttt-5 $+ 0..1|0..1 $+ %ttt-6 $+ 0...
- msg %tttchannel 0......1|0.....1|0.....
- msg %tttchannel 1______1|1__ __1|_______
- msg %tttchannel 0......1|0.....1|0......
- msg %tttchannel 0..1 $+ %ttt-7 $+ 0...1|0..1 $+ %ttt-8 $+ 0..1|0..1 $+ %ttt-9 $+ 0...
- msg %tttchannel 0......1|0.....1|0......
- if (%ttt-1 == X) && (%ttt-2 == X) && (%ttt-3 == X) { msg %tttchannel 4 $+ %tttnaam1 7heeft de TicTacToe game gewonnen! | /inc %tttspellen | /inc %tttgewonnen | /ttt-reset | halt }
- if (%ttt-4 == X) && (%ttt-5 == X) && (%ttt-6 == X) { msg %tttchannel 4 $+ %tttnaam1 7heeft de TicTacToe game gewonnen! | /inc %tttspellen | /inc %tttgewonnen | /ttt-reset | halt }
- if (%ttt-7 == X) && (%ttt-8 == X) && (%ttt-9 == X) { msg %tttchannel 4 $+ %tttnaam1 7heeft de TicTacToe game gewonnen! | /inc %tttspellen | /inc %tttgewonnen | /ttt-reset | halt }
- if (%ttt-1 == X) && (%ttt-5 == X) && (%ttt-9 == X) { msg %tttchannel 4 $+ %tttnaam1 7heeft de TicTacToe game gewonnen! | /inc %tttspellen | /inc %tttgewonnen | /ttt-reset | halt }
- if (%ttt-3 == X) && (%ttt-5 == X) && (%ttt-7 == X) { msg %tttchannel 4 $+ %tttnaam1 7heeft de TicTacToe game gewonnen! | /inc %tttspellen | /inc %tttgewonnen | /ttt-reset | halt }
- if (%ttt-1 == X) && (%ttt-4 == X) && (%ttt-7 == X) { msg %tttchannel 4 $+ %tttnaam1 7heeft de TicTacToe game gewonnen! | /inc %tttspellen | /inc %tttgewonnen | /ttt-reset | halt }
- if (%ttt-2 == X) && (%ttt-5 == X) && (%ttt-8 == X) { msg %tttchannel 4 $+ %tttnaam1 7heeft de TicTacToe game gewonnen! | /inc %tttspellen | /inc %tttgewonnen | /ttt-reset | halt }
- if (%ttt-3 == X) && (%ttt-6 == X) && (%ttt-9 == X) { msg %tttchannel 4 $+ %tttnaam1 7heeft de TicTacToe game gewonnen! | /inc %tttspellen | /inc %tttgewonnen | /ttt-reset | halt }
- if (%ttt-1 == O) && (%ttt-2 == O) && (%ttt-3 == O) { msg %tttchannel 4 $+ %tttnaam2 7heeft de TicTacToe game gewonnen! | /inc %tttspellen | /inc %tttgewonnen | /ttt-reset | halt }
- if (%ttt-4 == O) && (%ttt-5 == O) && (%ttt-6 == O) { msg %tttchannel 4 $+ %tttnaam2 7heeft de TicTacToe game gewonnen! | /inc %tttspellen | /inc %tttgewonnen | /ttt-reset | halt }
- if (%ttt-7 == O) && (%ttt-8 == O) && (%ttt-9 == O) { msg %tttchannel 4 $+ %tttnaam2 7heeft de TicTacToe game gewonnen! | /inc %tttspellen | /inc %tttgewonnen | /ttt-reset | halt }
- if (%ttt-1 == O) && (%ttt-5 == O) && (%ttt-9 == O) { msg %tttchannel 4 $+ %tttnaam2 7heeft de TicTacToe game gewonnen! | /inc %tttspellen | /inc %tttgewonnen | /ttt-reset | halt }
- if (%ttt-3 == O) && (%ttt-5 == O) && (%ttt-7 == O) { msg %tttchannel 4 $+ %tttnaam2 7heeft de TicTacToe game gewonnen! | /inc %tttspellen | /inc %tttgewonnen | /ttt-reset | halt }
- if (%ttt-1 == O) && (%ttt-4 == O) && (%ttt-7 == O) { msg %tttchannel 4 $+ %tttnaam2 7heeft de TicTacToe game gewonnen! | /inc %tttspellen | /inc %tttgewonnen | /ttt-reset | halt }
- if (%ttt-2 == O) && (%ttt-5 == O) && (%ttt-8 == O) { msg %tttchannel 4 $+ %tttnaam2 7heeft de TicTacToe game gewonnen! | /inc %tttspellen | /inc %tttgewonnen | /ttt-reset | halt }
- if (%ttt-3 == O) && (%ttt-6 == O) && (%ttt-9 == O) { msg %tttchannel 4 $+ %tttnaam2 7heeft de TicTacToe game gewonnen! | /inc %tttspellen | /inc %tttgewonnen | /ttt-reset | halt }
- if (%ttt-1 == X || %ttt-1 == O) && (%ttt-2 == X || %ttt-2 == O) && (%ttt-3 == X || %ttt-3 == O) && (%ttt-4 == X || %ttt-4 == O) && (%ttt-5 == X || %ttt-5 == O) && (%ttt-6 == X || %ttt-6 == O) && (%ttt-7 == X || %ttt-7 == O) && (%ttt-8 == X || %ttt-8 == O) && (%ttt-9 == X || %ttt-9 == O) { msg %tttchannel 7Het is gelijk! Niemand heeft gewonnen! | /ttt-reset | inc %tttgelijkspel | inc %tttspellen | halt }
- if (%beurt == %tttnaam1) { set %beurt %tttnaam2 | halt }
- if (%beurt == %tttnaam2) { set %beurt %tttnaam1 | halt }
- }
- if ($1 == !stats) {
- echo -at Games gespeeld: %tttspellen
- echo -at Totaal gewonnen: %tttgewonnen
- echo -at Totaal verloren: %tttgewonnen
- echo -at Totaal gelijkspel: %tttgelijkspel
- }
- if ($1 == !ttt) && ($2 == help) {
- echo -at Je ziet een TicTacToe veld, en deze is genummerd van 1 t/m 9. Elk nummer heeft zijn eigen vakje, dit begint links boven aan en eindigt rechts onder.
- echo -at Als je een vakje naar beneden gaat, zit er aan de linkerkant het volgende nummer.
- }
- }
- alias ttt-status {
- echo -at Games gespeeld: %tttspellen
- echo -at Totaal gewonnen: %tttgewonnen
- echo -at Totaal verloren: %tttgewonnen
- echo -at Totaal gelijkspel: %tttgelijkspel
- }
- alias ttt-reset {
- set %tttstatus off
- set %ttt-personen 0
- unset %tttnaam1
- unset %tttnaam2
- unset %tttchannel
- unset %tttspel
- unset %beurt
- unset %speelerror
- unset %tttspel
- set %speelstatus off
- }
- alias ttt {
- msg #Goldfive 0......1|0.....1|0......
- msg #Goldfive 0..1X0...1|0..1X0..1|0..1X0...
- msg #Goldfive 0......1|0.....1|0.......
- msg #Goldfive 1______1|1__ __1|_______
- msg #Goldfive 0......1|0.....1|0......
- msg #Goldfive 0....1X0...1|0..1X0..1|0..1X0...
- msg #Goldfive 0......1|0.....1|0.....
- msg #Goldfive 1______1|1__ __1|_______
- msg #Goldfive 0......1|0.....1|0......
- msg #Goldfive 0....1X0...1|0..1X0..1|0..1X0...
- msg #Goldfive 0......1|0.....1|0......
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement