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 

request and hope that you can realize it
Goto page 1, 2  Next
 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Script Requests
View previous topic :: View next topic  
Author Message
elisca
Halfop


Joined: 27 Jan 2007
Posts: 65
Location: in the middle of nowhere

PostPosted: Sat Jan 27, 2007 5:12 am    Post subject: request and hope that you can realize it Reply with quote

hi.. my name is elisca and
I have some request.. hope that people here can be realize it.
I need tcl scripts for eggdrop like on counter strike simulation..
so when I type some trigger like !cover me the bot will add the owner to protec him, and give
the answer on channel "Roger that" and when the owner has been kick or ban the bot will be revenge,
kick will be kick and ban will be ban.. and don't forget to make it !decover Smile
once more and i think it's good.. when I type !terror the bot will answer on channel
"The bomb has been planted sir and will be blow up on 1minutes" and then after 1minutes the bot will do masskick on channel..
and it will be great if the bot will count on channel like.. 5 4 3 2 1 and voila masskick do !
sorry if i request to much and i will be appreciated for your help.
thanks...
Back to top
View user's profile Send private message
Alchera
Revered One


Joined: 11 Aug 2003
Posts: 3344
Location: Ballarat Victoria, Australia

PostPosted: Sat Jan 27, 2007 9:57 am    Post subject: Reply with quote

Tcl Archive
_________________
Add [SOLVED] to the thread title if your issue has been.
Search | FAQ | RTM
Back to top
View user's profile Send private message Visit poster's website
elisca
Halfop


Joined: 27 Jan 2007
Posts: 65
Location: in the middle of nowhere

PostPosted: Sat Jan 27, 2007 1:51 pm    Post subject: Reply with quote

i can't find it on link that u give Crying or Very sad
Back to top
View user's profile Send private message
beasTMan
Voice


Joined: 30 Dec 2006
Posts: 15
Location: Chisinau, Republic of Moldova

PostPosted: Sat Jan 27, 2007 2:26 pm    Post subject: Reply with quote

super idea, who can realise the tcl ?
_________________
#Xtreem @ UnderNet
Back to top
View user's profile Send private message Visit poster's website Yahoo Messenger
Sir_Fz
Revered One


Joined: 27 Apr 2003
Posts: 3793
Location: Lebanon

PostPosted: Sun Jan 28, 2007 8:12 am    Post subject: Reply with quote

So, anyone can use the !coverme and !uncover commands? or just you? because if it is just you, then we don't need a command to make the bot protect you Razz
_________________
Follow me on GitHub

- Opposing

Public Tcl scripts
Back to top
View user's profile Send private message Visit poster's website
elisca
Halfop


Joined: 27 Jan 2007
Posts: 65
Location: in the middle of nowhere

PostPosted: Sun Jan 28, 2007 4:26 pm    Post subject: Reply with quote

Sir_Fz wrote:
So, anyone can use the !coverme and !uncover commands? or just you? because if it is just you, then we don't need a command to make the bot protect you Razz


Sir Fz, I'm very happy to see u look at my request, anyone with special flag can use it sir (+f) Smile
could you help me to realise it sir? I really2 appreciated it Very Happy
Back to top
View user's profile Send private message
Sir_Fz
Revered One


Joined: 27 Apr 2003
Posts: 3793
Location: Lebanon

PostPosted: Sun Jan 28, 2007 6:09 pm    Post subject: Reply with quote

Code:
bind pub f|f !coverme cover:nick
bind pub f|f !decover decover:nick
bind pub f|f !terror terrorize
bind mode - "* +b" ban:covered
bind kick - * kick:covered
bind notc - "* cannot mass kick a channel with higher ranking ops *" defused

proc cover:nick {nick uhost hand chan arg} {
 if {![matchattr $hand |C $chan]} {
  chattr $hand |+C $chan
  puthelp "privmsg $chan :Roger that"
 }
}

proc decover:nick {nick uhost hand chan arg} {
 if {[matchattr $hand |C $chan]} {
  chattr $hand |-C $chan
  puthelp "privmsg $chan :Roger that"
 }
}

proc terrorize {nick uhost hand chan arg} {
 global bombplanted
 if {![info exists bombplanted]} {
  puthelp "privmsg $chan :The bomb has been planted sir and will be blow up on 1minutes"
  utimer 55 [list masskick $chan]
  set bombplanted 5
 }
}

proc masskick c {
 global bombplanted mkicking
 if {$bombplanted > 0} {
  puthelp "privmsg $c :$bombplanted"
  incr bombplanted -1
  utimer 1 [list masskick $c]
 } {
  putserv "ChanServ :mkick $c"
  set mkicking $c
  unset bombplanted
 }
}

proc ban:covered {nick uhost hand chan mc targ} {
 set found 0
 foreach Cn [chanlist $chan C|C] {
  if {[string match -nocase $targ $Cn![getchanhost $Cn $chan]]} {
   set found 1
   break
  }
 }
 if {$found} {
  pushmode $chan -b $targ
  pushmode $chan +b *!*@[lindex [split $uhost @] 1]
 }
}

proc kick:covered {nick uhost hand chan targ arg} {
 global mkicking
 if {[string tolower $nick] == "chanserv" && [isbotnick $targ]} {
  if {[info exists mkicking]} {unset mkicking}
  return 0
 }
 if {[validuser [nick2hand $targ]] && [matchattr [nick2hand $targ] |C $chan]} {
  putserv "kick $chan $nick :$targ is covered by me!"
 }
}

proc defused {nick uhost hand arg chan} {
 global mkicking
 if {![isbotnick [lindex [split $chan @] 0]]} {return 0}
 if {[info exists mkicking]} {
  puthelp "privmsg $mkicking :The bomb has been defuse on $mkicking (higher ranking ops in it than me)"
  unset mkicking
 }
}

The !terror command can also be used by +f users, if you want only owners to be able to use it then change f|f to n|n.

Edit4: Fixed what was not really fixed in previous edit Razz
Edit3: Fixed bug in proc defused.
Edit2: Added feature and fixed ban protection.
Edit: Applied changes.
_________________
Follow me on GitHub

- Opposing

Public Tcl scripts


Last edited by Sir_Fz on Tue Jan 30, 2007 12:03 pm; edited 5 times in total
Back to top
View user's profile Send private message Visit poster's website
elisca
Halfop


Joined: 27 Jan 2007
Posts: 65
Location: in the middle of nowhere

PostPosted: Sun Jan 28, 2007 7:19 pm    Post subject: Reply with quote

ohh thanks very much sir, i have test it.. and it work good, hmm but could you make "terror" [masskick] like we use command /cs mkick #chan on mirc.. so the channel get empty and banned for a while before we join again. I have try !terror and when the bot count 5 4.. the bot kick himself, join again and continue kick the other user.. and then count again 3 2 1 until finish.
I mean when the bot start count 5 4 3 2 1 and after that command mkick start, so the channel get empty and will banned for a while, so the simulation like the channel really2 blow up Very Happy
hihihi sorry if I have request to much sir Very Happy
o yeah I forget it sir, when i get kickban, the bot only revenge kick the user not ban like that i need.
Back to top
View user's profile Send private message
Sir_Fz
Revered One


Joined: 27 Apr 2003
Posts: 3793
Location: Lebanon

PostPosted: Sun Jan 28, 2007 9:03 pm    Post subject: Reply with quote

Applied changes, use edited code above.
_________________
Follow me on GitHub

- Opposing

Public Tcl scripts
Back to top
View user's profile Send private message Visit poster's website
elisca
Halfop


Joined: 27 Jan 2007
Posts: 65
Location: in the middle of nowhere

PostPosted: Sun Jan 28, 2007 9:50 pm    Post subject: Reply with quote

..u r the man sir ! three thumb up !
the minor thing is the bot only count until 5 4.. and do the command (mkick)
o yeah i forget it.. when the !coverme running, and i get kickban, the bot only revenge kick to the user, banned mode not working, could you fix it sir ? also when we get -ChanServ (service@dal.net)- You cannot mass kick a channel with higher ranking ops in it than you.
could you make the bot send to channel : The bomb has been defused on #chan (higher ranking ops in it than me) after he finish count Very Happy
Back to top
View user's profile Send private message
Sir_Fz
Revered One


Joined: 27 Apr 2003
Posts: 3793
Location: Lebanon

PostPosted: Mon Jan 29, 2007 8:03 am    Post subject: Reply with quote

Code edited again.
_________________
Follow me on GitHub

- Opposing

Public Tcl scripts
Back to top
View user's profile Send private message Visit poster's website
beasTMan
Voice


Joined: 30 Dec 2006
Posts: 15
Location: Chisinau, Republic of Moldova

PostPosted: Mon Jan 29, 2007 8:39 am    Post subject: Reply with quote

hey dudes , can anyone of u explain the commands of the tcl and whtat thing each command does ?
_________________
#Xtreem @ UnderNet
Back to top
View user's profile Send private message Visit poster's website Yahoo Messenger
elisca
Halfop


Joined: 27 Jan 2007
Posts: 65
Location: in the middle of nowhere

PostPosted: Mon Jan 29, 2007 6:01 pm    Post subject: Reply with quote

Sir_Fz wrote:
Code edited again.


Sir Fz, banned mode working good.. but the bot didn't send any message after he finish count.. Sad
Back to top
View user's profile Send private message
Sir_Fz
Revered One


Joined: 27 Apr 2003
Posts: 3793
Location: Lebanon

PostPosted: Mon Jan 29, 2007 9:51 pm    Post subject: Reply with quote

Ok, replace
Code:
if {![isbotnick $chan]} {return 0}

with
Code:
if {![isbotnick [lindex [split $chan @] 0]]} {return 0}

_________________
Follow me on GitHub

- Opposing

Public Tcl scripts
Back to top
View user's profile Send private message Visit poster's website
elisca
Halfop


Joined: 27 Jan 2007
Posts: 65
Location: in the middle of nowhere

PostPosted: Mon Jan 29, 2007 11:39 pm    Post subject: Reply with quote

i have replace it Sir.. rehash n' restart the bot, but still not working..
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    egghelp.org community Forum Index -> Script Requests All times are GMT - 4 Hours
Goto page 1, 2  Next
Page 1 of 2

 
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