mIRC Home    About    Download    Register    News    Help

Print Thread
#195401 23/02/08 08:26 PM
Joined: Jan 2008
Posts: 44
J
Ameglian cow
OP Offline
Ameglian cow
J
Joined: Jan 2008
Posts: 44
im looking to make a script that will fit in with another,
basically what i want to do is
- Clear All The Teams So then people can add again, basically whipe it clean

This is the teams script
Code:
on *:TEXT:!teams:#: {
  if (%bot.status == on) && ($nick isop $chan) {
    if (%cup.teams == 2) { msg $chan 15,1[4» 14± 0Current Teams In Cup Are: %team1 $+ - $+ %team2 14± 4«15] }
    if (%cup.teams == 4) { msg $chan 15,1[4» 14± 0Current Teams In Cup Are: %team1 $+ - $+ %team2 $+ - $+ %team3 $+ - $+ %team4 14± 4«15] }
    if (%cup.teams == 8) { msg $chan 15,1[4» 14± 0Current Teams In Cup Are: %team1 $+ - $+ %team2 $+ - $+ %team3 $+ - $+ %team4 $+ - $+ %team5 $+ - $+ %team6 $+ - $+ %team7 $+ - $+ %team8 14± 4«15] }
    if (%cup.teams == 16) { msg $chan 15,1[4» 14± 0Current Teams In Cup Are: %team1 $+ - $+ %team2 $+ - $+ %team3 $+ - $+ %team4 $+ - $+ %team5 $+ - $+ %team6 $+ - $+ %team7 $+ - $+ %team8 $+ - $+ %team9 $+ - $+ %team10 $+ - $+ %team11 $+ - $+ %team12 $+ - $+ %team13 $+ - $+ %team14 $+ - $+ %team15 $+ - $+ %team16 14± 4«15] }
  }

Well. tbh im a little lost as im not very good at it all, This it what i have so far
Code:
on *:TEXT:!clearteams:#: {
if (%bot.status == on) && ($nick isop $chan) {
msg $chan 15,1[4» 14± 0All Teams Have Now Been Reset 14± 4«15]
}

As you can see not alot smirk


#Plesh on QuaKenet
Jake Randall
Need help?
#Plesh - QuakeNet
Private Message Me Here!
Joined: Jan 2004
Posts: 509
L
Fjord artisan
Offline
Fjord artisan
L
Joined: Jan 2004
Posts: 509
You can use..

on *:text:!*:#: {

And check if ($1 == !word1) {

And if ($1 == !word2) {

And so and so forth.

But you don't have to combine them.

on *:text:!word1:#:
on *:text:!word2:#: is fine.

-Neal.

Joined: Oct 2004
Posts: 8,330
Hoopy frood
Offline
Hoopy frood
Joined: Oct 2004
Posts: 8,330
Because all of your teams are variables, just unset them.

/unset %team*

Keep in mind that if you have any other variables starting with %team from your script or someone else's, it will also remove those. As such, it's always best to make unique variable names that are unlikely to conflict with other scripts. Something like %scriptname.team1 or %jackerandall.team1 or something that will not likely be used by anyone else in a script. Remember people tend to use multiple scripts by multiple authors.


Invision Support
#Invision on irc.irchighway.net

Link Copied to Clipboard