egghelp.org community Forum Index
[ egghelp.org home | forum home ]
egghelp.org community
Discussion of eggdrop bots, shell accounts and tcl scripts.
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

help with script

 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Scripting Help
View previous topic :: View next topic  
Author Message
Fire-Fox
Master


Joined: 23 Sep 2006
Posts: 270
Location: /dev/null

PostPosted: Wed Jun 11, 2008 11:58 am    Post subject: help with script Reply with quote

hey

i need some help with this script here


Code:
bind pub - !admin help.staff
bind pub - !staff help.staff

proc help.staff {nick host hand chan arg} {
  foreach nicks [split [chanlist #Piratezone]] {
    if {[isop $nicks]} {
      if {[string tolower $nicks]=="bob" || [string tolower $nicks]=="sitebot" || [string tolower $nicks]=="tpz" } {
      # [string match -nocase Apache* $nicks] || [string match -nocase Fedtmule* $nicks]
      } else {
        append o "$nicks "
      }
    }
  }
 
  putserv "privmsg $chan : 04$nick ::: Din admodning er sendt til staff "
  putserv "privmsg #piratezone.staff : 04$nick Søger Hjælp Hos En Af Følgende Staff Medlemmer::: $o "
}


how can i put in so when some on use it like this "!staff help with bot setup"

now it's just "!staff" and it return a text in another chan, but will love if i comes to the the staff with tags ~ - & - @

bottom line i need reason into the script but cant se how
_________________
GreatZ
Fire-Fox | Denmark

Scripts: Relay | Store Text | TvMaze
Back to top
View user's profile Send private message MSN Messenger
speechles
Revered One


Joined: 26 Aug 2006
Posts: 1398
Location: emerald triangle, california (coastal redwoods)

PostPosted: Wed Jun 11, 2008 3:50 pm    Post subject: Reply with quote

http://forum.egghelp.org/viewtopic.php?t=15535&start=6

This script accomplishes the same thing, but doesn't give users the admin's names. Instead you build a list of your admins, and the bot will message those admins when a user requires assistance.

The script above may just give you the inspiration (code you can steal..erm, borrow..heh) to do it yourself.. Smile
_________________
speechles' eggdrop tcl archive
Back to top
View user's profile Send private message
Fire-Fox
Master


Joined: 23 Sep 2006
Posts: 270
Location: /dev/null

PostPosted: Wed Jun 11, 2008 4:29 pm    Post subject: Reply with quote

Thanks alot Smile
_________________
GreatZ
Fire-Fox | Denmark

Scripts: Relay | Store Text | TvMaze
Back to top
View user's profile Send private message MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    egghelp.org community Forum Index -> Scripting Help All times are GMT - 4 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Forum hosting provided by Reverse.net

Powered by phpBB © 2001, 2005 phpBB Group
subGreen style by ktauber