This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.


For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.

Xmas|$nick

Old posts that have not been replied to for several years.
K
Kimmi
Halfop
Posts: 58
Joined: Thu Jul 24, 2003 4:17 pm
Location: Norway
Contact:

Xmas|$nick

Post by Kimmi »

Hello
I think it was last xmas I asked for a scripted that gave +v when someone changed nick with "xmas" tag, and devoice if they remove "xmas" tag.
Then someone was so kind to help me making it.
But now It xmas again and I cant find it on my computer.
I tryed to search this forum, but cant fint my topic from then.

Im not sure if its desent of me to ask for help again :P

Kimmi
(admins do U have ann archive of old topic???)
Kimmi@EFnet
User avatar
demond
Revered One
Posts: 3073
Joined: Sat Jun 12, 2004 9:58 am
Location: San Francisco, CA
Contact:

Post by demond »

Code: Select all

bind nick - * xmas
proc xmas {n u h c nn} {
  if ![botisop $c] return
  set xold [string match -nocase *xmas* $n]
  set xnew [string match -nocase *xmas* $nn]
  if {!$xold && $xnew} {
    pushmode $c +v $n; flushmode $c
  } elseif {$xold && !$xnew} {
    pushmode $c -v $n; flushmode $c
  }
}
K
Kimmi
Halfop
Posts: 58
Joined: Thu Jul 24, 2003 4:17 pm
Location: Norway
Contact:

Post by Kimmi »

I tryed this but it didnt work....
when <boy> changed nick <Xmasboy> the bot didnt give him voice.

Kimmi
Kimmi@EFnet
User avatar
user
&nbsp;
Posts: 1452
Joined: Tue Mar 18, 2003 9:58 pm
Location: Norway

Post by user »

Change the nick passed to pushmode ($n to $nn) and don't flushmode, because that's not really needed.
Have you ever read "The Manual"?
K
Kimmi
Halfop
Posts: 58
Joined: Thu Jul 24, 2003 4:17 pm
Location: Norway
Contact:

Post by Kimmi »

okey.. but can U show it to me, cuz Im not sure how the code should look....
Kimmi@EFnet
User avatar
demond
Revered One
Posts: 3073
Joined: Sat Jun 12, 2004 9:58 am
Location: San Francisco, CA
Contact:

Post by demond »

Code: Select all

bind nick - * xmas
proc xmas {n u h c nn} {
  if ![botisop $c] return
  set xold [string match -nocase *xmas* $n]
  set xnew [string match -nocase *xmas* $nn]
  if {!$xold && $xnew} {
    pushmode $c +v $nn
  } elseif {$xold && !$xnew} {
    pushmode $c -v $nn
  }
}
K
Kimmi
Halfop
Posts: 58
Joined: Thu Jul 24, 2003 4:17 pm
Location: Norway
Contact:

Post by Kimmi »

thanx, worked now :)
Kimmi@EFnet
User avatar
AbuAli
Voice
Posts: 35
Joined: Sat Jun 12, 2004 2:49 am

i try it,

Post by AbuAli »

hello,
i need a code like this,
voice the user on join and on change the nick
have a tag
[something]nick
and devoice him if he change the nick, "remove the tag"
i try 4 codes on the forum, and i search on archive tcls,
i dont find,
i recive this erros from this tcl,

Tcl error [something]: wrong # args: should be "something n u h c nn"

plz help, and i need to spacifc the channel where he will do that,
thax
awyeah you will help me, "Arabian" :D [/b]
g
greenbear
Owner
Posts: 733
Joined: Mon Sep 24, 2001 8:00 pm
Location: Norway

Post by greenbear »

Escape the brackets by adding a \ in front of them.
User avatar
Sir_Fz
Revered One
Posts: 3794
Joined: Sun Apr 27, 2003 3:10 pm
Location: Lebanon
Contact:

Post by Sir_Fz »

Code: Select all

bind nick - * xmas
bind join - * xmas
 
proc xmas {n u h c {nn ""}} { 
  if ![botisop $c] return 
  set xold [string match -nocase *\[yourtag\]* $n] 
  set xnew [string match -nocase *\[yourtag\]* $nn]
  if {$nn == ""} {
   if {$xold} {
    pushmode $c +v $n
   }
  } else {
   if {!$xold && $xnew} { 
    pushmode $c +v $nn 
  } elseif {$xold && !$xnew} { 
    pushmode $c -v $nn 
  }
 } 
}
Just change yourtag to whatever you want.
User avatar
AbuAli
Voice
Posts: 35
Joined: Sat Jun 12, 2004 2:49 am

not working

Post by AbuAli »

something rong on that,

he is giving voice to all who join the channel
with or without tag
any one join got voice,

i need a code, when any one join a channel with [tag]nick got voice
and on any one change his nick to [tag]nick got voice
and if he remove the tag .. got devoice

and i need to set the channel where the bot will apply this code

thx alot
User avatar
Sir_Fz
Revered One
Posts: 3794
Joined: Sun Apr 27, 2003 3:10 pm
Location: Lebanon
Contact:

Post by Sir_Fz »

The code I gave should not voice any users except the one's with [tag]. Make sure you edited \[yourtag\] correctly. Here's one that checks for channel:

Code: Select all

set tvchans "#channel #channel2"

bind nick - * xmas 
bind join - * xmas 
  
proc xmas {n u h c {nn ""}} { 
  if {(![botisop $c]) || ([lsearch -exact $::tvchans $c] == -1)} { return }
  set xold [string match -nocase "\[yourtag\]*" $n] 
  set xnew [string match -nocase "\[yourtag\]*" $nn] 
  if {$nn == ""} { 
   if {$xold} { 
    pushmode $c +v $n 
   } 
  } else { 
   if {!$xold && $xnew} { 
    pushmode $c +v $nn 
  } elseif {$xold && !$xnew} { 
    pushmode $c -v $nn 
  } 
 } 
}
Make sure you're not using any other voice scripts. This script will only work on [tag]nicks and NOT all nicks.
User avatar
AbuAli
Voice
Posts: 35
Joined: Sat Jun 12, 2004 2:49 am

:(

Post by AbuAli »

i remove all the tcls, and keep only this one,
the bot giving voice to any user not useing the tag
and the user who use the tag dont get voice,
its incredible,

* Joins: [tag]testee (test@HfwiyPvEFYU.201.11.14.O)
the bot did nothing
* [tag]testee is now known as testee
nothing,
* testee is now known as [tag]testee
nothing,
* Guest748022 is now known as coi0te
* Eggdrop sets mode: +v coi0te
* Joins: dev (somebody@aPaEOlgZdZs.200.96.23.O)
* Eggrop sets mode: +v dev

i cant belive, something rong, he is doing what i dont want give voice to any one :P plz help me,

you can made another code, not this, simples,
who join or who change the nick from nick to [Tag]nick the bot give voice, and if remove the tag devoice, its simples, forget xmas :P
User avatar
Sir_Fz
Revered One
Posts: 3794
Joined: Sun Apr 27, 2003 3:10 pm
Location: Lebanon
Contact:

Post by Sir_Fz »

Code: Select all

set xold "[string match -nocase "\[yourtag\]*" $n]"
...
if {$xold} {
 pushmode $c +v $n
}
...
means that if the user has [yourtag] in his nick then the bot will voice him, so it's impossible for the bot to voice nicks with no [yourtag].
User avatar
AbuAli
Voice
Posts: 35
Joined: Sat Jun 12, 2004 2:49 am

:(

Post by AbuAli »

i know, you thenk that,
but i remove all tcls, stil only this one, the voice, and the bot.user is empty, nothing there about auto voice,

and the give voice to all,

you cant make another code, difirant ?

simples code,
set chanvoice "#Channel"
and when any one join the channel useing [tag]nick give voice,
and if the use change the nick on the chennel to [tag]nick give voice,
and if the nick [tag]nick change to nick, remove the voice,

cant make another code ?

this one not working
thx, sorry for ask again,
Locked