| View previous topic :: View next topic |
| Author |
Message |
monie089 Halfop
Joined: 29 Jul 2006 Posts: 76
|
Posted: Sat Aug 26, 2006 8:17 pm Post subject: Help script for commands |
|
|
Im tryin to make a simple help script but its keep saying cant execute the $text and other stuff.
| Code: |
bind pub @help pub:help
proc pub:help {nick host hand botnick chan arg } {
if {$arg == ""} {
putserv "PRIVMSG $chan :\001ACTION\001 Bringing the whoopin stick to $nick bet its gone hurt >:)"
putserv "NOTICE $nick :Help commands start with @help <command> the command should have the @"
}
if {$arg == "sitecheck"} {
putserv "NOTICE $nick :The command Sitecheck will check for any site that you put in to see if that website
is up"
putserv "Notice $nick :This makes it easier then checking yourself and it saves time"
putserv "NOTICE $nick :\004Usage:\004 @sitecheck <url> - to check the site"
}
if {$arg == "uptime"} {
putserv "NOTICE $nick :This simple script shows the uptime for $botnick"
putserv "NOTICE $nick :SYNTAX:@uptime thats all :)"
}
if {$arg == "news"} {
putserv "NOTICE $nick :This shows the lastest news from site.nintendoxg.com/news.php"
putserv "NOTICE $nick :Right now it doest show the lastest 5 innstead it shows all ;)"
putserv "NOTICE $nick :SYNTAX:@news and it will display all the news for ;)"
}
if {$arg == "online"} {
putserv "NOTICE $nick :This command will show the users currently online at NintendoXG"
putserv "NOTICE $nick :Right now it doesnt show the names instead it shows the statistic"
putserv "NOTICE $nick :SYNTAX: @online shows the statics"
}
if {$arg == "8ball"}
putserv "NOTICE $nick :The magic 8ball customly made yes"
putserv "NOTICE $nick :come have your 8ball questions answered told"
putserv "NOTICE $nick :SYNTAX:@8ball <question>"
}
if {$arg == "destroy"} {
putserv "NOTICE $nick :The destroy script is a beta version that i got bored with"
putserv "NOTICE $nick :It is a fun game that you can play and i will make more"
putserv "NOTICE $nick :SYNTAX:@destroy <nick>"
}
if {$arg == "google"} {
putserv "NOTICE $nick :Google can search for anything you input for it"
putserv "NOTICE $nick :Right now it can only do @google and not the others"
putserv "NOTICE $nick :SYNTAX:@google <thinghere>"
}
}
putlog "Help script loaded"
|
Can someone please help me  _________________ New server irc.NintendoXG.com come and visit |
|
| Back to top |
|
 |
demond Revered One

Joined: 12 Jun 2004 Posts: 3073 Location: San Francisco, CA
|
Posted: Sat Aug 26, 2006 9:09 pm Post subject: |
|
|
botnick shouldn't be there as argument of pub:help _________________ connection, sharing, dcc problems? click <here>
before asking for scripting help, read <this>
use [code] tag when posting logs, code |
|
| Back to top |
|
 |
r0t3n Owner
Joined: 31 May 2005 Posts: 507 Location: UK
|
Posted: Sat Aug 26, 2006 9:12 pm Post subject: |
|
|
Try changing
| Code: | | if {$arg == "8ball"} |
To
| Code: | | if {$arg == "8ball"} { |
Also try using proper indenting, makes it easier to read on the eye. _________________ r0t3n @ #r0t3n @ Quakenet |
|
| Back to top |
|
 |
monie089 Halfop
Joined: 29 Jul 2006 Posts: 76
|
Posted: Sat Aug 26, 2006 9:22 pm Post subject: |
|
|
Ok,Thanks. _________________ New server irc.NintendoXG.com come and visit |
|
| Back to top |
|
 |
Alchera Revered One

Joined: 11 Aug 2003 Posts: 3344 Location: Ballarat Victoria, Australia
|
Posted: Sat Aug 26, 2006 9:35 pm Post subject: |
|
|
| Tosser^^ wrote: | | Also try using proper indenting, makes it easier to read on the eye. |
The user has been told this on more than one occassion and simply refuses to adhere to the advice. _________________ Add [SOLVED] to the thread title if your issue has been.
Search | FAQ | RTM |
|
| Back to top |
|
 |
caesar Mint Rubber

Joined: 14 Oct 2001 Posts: 3741 Location: Mint Factory
|
Posted: Sun Aug 27, 2006 2:58 pm Post subject: |
|
|
| Code: |
bind pub - @help pub:help
proc pub:help {nick host hand chan txt} {
switch [string tolower [lindex [split $txt] 0]] {
"sitecheck" {
putserv "NOTICE $nick :The command Sitecheck will check for any site that you put in to see if that website is up"
putserv "Notice $nick :This makes it easier then checking yourself and it saves time"
putserv "NOTICE $nick :\004Usage:\004 @sitecheck <url> - to check the site"
}
"uptime" {
putserv "NOTICE $nick :This simple script shows the uptime for $::botnick"
putserv "NOTICE $nick :SYNTAX:@uptime thats all :)"
}
"news" {
putserv "NOTICE $nick :This shows the lastest news from site.nintendoxg.com/news.php"
putserv "NOTICE $nick :Right now it doest show the lastest 5 innstead it shows all ;)"
putserv "NOTICE $nick :SYNTAX:@news and it will display all the news for ;)"
}
"online" {
putserv "NOTICE $nick :This command will show the users currently online at NintendoXG"
putserv "NOTICE $nick :Right now it doesnt show the names instead it shows the statistic"
putserv "NOTICE $nick :SYNTAX: @online shows the statics"
}
"8ball" {
putserv "NOTICE $nick :The magic 8ball customly made yes"
putserv "NOTICE $nick :come have your 8ball questions answered told"
putserv "NOTICE $nick :SYNTAX:@8ball <question>"
}
"destroy" {
putserv "NOTICE $nick :The destroy script is a beta version that i got bored with"
putserv "NOTICE $nick :It is a fun game that you can play and i will make more"
putserv "NOTICE $nick :SYNTAX:@destroy <nick>"
}
"google" {
putserv "NOTICE $nick :Google can search for anything you input for it"
putserv "NOTICE $nick :Right now it can only do @google and not the others"
putserv "NOTICE $nick :SYNTAX:@google <thinghere>"
}
default {
putserv "PRIVMSG $chan :\001ACTION\001 Bringing the whoopin stick to $nick bet its gone hurt >:)"
putserv "NOTICE $nick :Help commands start with @help <command> the command should have the @"
}
}
}
putlog "Help script loaded"
|
_________________ Once the game is over, the king and the pawn go back in the same box. |
|
| Back to top |
|
 |
monie089 Halfop
Joined: 29 Jul 2006 Posts: 76
|
Posted: Thu Aug 31, 2006 6:09 pm Post subject: |
|
|
Thanks i found the problem thought i forgot to set a variable for it _________________ New server irc.NintendoXG.com come and visit |
|
| Back to top |
|
 |
|