botlending forum  

Go Back   botlending forum > Eggdrop & TCL > Tcl scripting

Tcl scripting Tcl scripting related questions

Reply
 
LinkBack Thread Tools Display Modes
Old 10-08-2008, 08:39   #1 (permalink)
spy
Junior Member
 
spy's Avatar
 
Join Date: Mar 2006
Location: Somewhere
Posts: 14
Rep Power: 0
spy is an unknown quantity at this point
Question give X access & autoop

As avea si eu nevoie daca se poate de un TCL, gen daca dau !add <user> bot-ul automat sa dea Prin X Access la acel user cu un access setat de mine in script + autoop. si sa imi trimita o notificare pe notice precum ca acel user a fost adaugat. sper sa imi fi inteles cererea. multumesc anticipat.
spy is offline   Reply With Quote
Old 14-08-2008, 16:26   #2 (permalink)
Junior Member
 
aNormaLu's Avatar
 
Join Date: Feb 2007
Location: BANAT, Capitala: TIMISOARA
Age: 16
Posts: 31
Rep Power: 0
aNormaLu is an unknown quantity at this point
Send a message via Yahoo to aNormaLu
Default

Code:
a:command -add add pub:add 0000 000 m

proc pub:add {hand chan args x mix} {

	set who [lindex $args 0]
        set level "400"

	if { $who == ""} {a:usage $x xadduser; return "FAILED: not all parameters specified"}

      puthelp "privmsg X :adduser $chan $who $level"
      puthelp "privmsg X :modinfo $chan automode $who op"
      puthelp "notice $x :done master :p"
}
tre +m global pt a folosi !add <user> ... levelu e setat la 400..pui tu kt vrei.
aNormaLu is offline   Reply With Quote
Old 16-08-2008, 02:39   #3 (permalink)
spy
Junior Member
 
spy's Avatar
 
Join Date: Mar 2006
Location: Somewhere
Posts: 14
Rep Power: 0
spy is an unknown quantity at this point
Default thx but.

Eu folosesc netbots, nu este a&a script, poti sa mi-l faci sa mearga? pt netbots?
ms mult.
spy is offline   Reply With Quote
Old 17-08-2008, 00:24   #4 (permalink)
lsn
Member
 
lsn's Avatar
 
Join Date: Jun 2004
Location: In the NeXuS
Posts: 160
Rep Power: 38
lsn will become famous soon enough
Default

O sa iti modific putin scriptul lui Normal (care oricum nu functiona la parametrii lui)

Code:
bind pub m !adauga adauga

proc adauga {nick uhost hand chan arg} {

	set who [lindex $arg 0]
        set level "400"

	if {![llength $who]} {puthelp "notice $nick :trebuie sa specifici userul ..."; return}

      puthelp "privmsg X :adduser $chan $who $level"
      puthelp "privmsg X :modinfo $chan automode $who op"
      puthelp "notice $nick :done master :p"
}
__________________
RESTRICTED AREA

Last edited by UniversaliA; 31-08-2008 at 03:53. Reason: corectat llenght
lsn is offline   Reply With Quote
Old 17-08-2008, 05:29   #5 (permalink)
spy
Junior Member
 
spy's Avatar
 
Join Date: Mar 2006
Location: Somewhere
Posts: 14
Rep Power: 0
spy is an unknown quantity at this point
Talking

Merci mult lsn,la o parte din el imi dadea asa:
la aceasta linie:
Quote:
if {![llenght $who]} {puthelp "notice $nick :trebuie sa specifici userul ..."; return}
botul imi dadea eroarea asta:
Quote:
[23:21] Tcl error [adauga]: invalid command name "llenght"
si am inlocuit cu:
Quote:
if {$who == ""} {
putserv "PRIVMSG $chan :$nick: 12Folosire:2 !adauga4 <user>"; return
}
si merge ok
spy is offline   Reply With Quote
Old 17-08-2008, 17:11   #6 (permalink)
lsn
Member
 
lsn's Avatar
 
Join Date: Jun 2004
Location: In the NeXuS
Posts: 160
Rep Power: 38
lsn will become famous soon enough
Default

Greseala mea este llength in loc de llenght
__________________
RESTRICTED AREA
lsn is offline   Reply With Quote
Old 27-08-2008, 05:05   #7 (permalink)
spy
Junior Member
 
spy's Avatar
 
Join Date: Mar 2006
Location: Somewhere
Posts: 14
Rep Power: 0
spy is an unknown quantity at this point
Question intrebare

As dori sa stiu si eu cum as putea face sa nu mai dau !69 si userul,ci sa dau doar !69 si nick-ul respectivului,si bot-ul sa ai dea whois pe acel nick si sa citeasca doar userul care este logat si sa ai ofere access la X 69. Am facut eu ceva mai jos cam cum ar trebui sa fie.

Quote:
bind pub m !69 69

proc 69 {nick uhost hand chan arg} {

set who [lindex $arg 0]
set level "69"

if {$who == ""} {
putserv "PRIVMSG $chan :$nick: 12Folosire:2 !694 <user>"; return
}


puthelp "privmsg X :adduser $chan $who $level"
puthelp "privmsg X :modinfo $chan automode $who op"
puthelp "privmsg $chan $nick :2done master4 :2p4 $nick2 am adaugat userul4 $who2 pe4 $chan2 cu access level4 $level2 +4 autoop2 si este un access nu o4 pozitie2 :4P 2/hop pt a-ti lua2 @4 +!+2 "
puthelp "kick $chan $who :2Ai primit access12 $level2 pe4 $chan2 de catre4 $hand2 hop pentru2 a-ti lua4 @2 :4"
puthelp "invite $who $chan"

}
spy is offline   Reply With Quote
Old 27-08-2008, 18:58   #8 (permalink)
Junior Member
 
Ionut's Avatar
 
Join Date: Aug 2006
Location: Craiova
Age: 22
Posts: 13
Rep Power: 0
Ionut is an unknown quantity at this point
Send a message via AIM to Ionut Send a message via MSN to Ionut Send a message via Yahoo to Ionut Send a message via Skype™ to Ionut
Default

nu sunt sigur dar functioneaza:
in loc de:
Code:
puthelp "privmsg X :adduser $chan $who $level"
puthelp "privmsg X :modinfo $chan automode $who op"
poti pune
Code:
puthelp "privmsg X :adduser $chan =$who $level"
puthelp "privmsg X :modinfo $chan automode =$who op"
ps: kick-ul si invite`ul nu il vad necesar. posibil sa fie setat pe canal noop si aia restrictioneza modul +o celor cu access mai mic de 100 cea ce inseamna ca degeaba ai setat u automode op
ps2: nu cunosc in deajuns de mult tcl-scriptin (aproape mai deloc) incat sa fac sa dea raspunsul in functie de notice`urile pe care le primeste de la X. Userul pate are noadduser sau cum este setarea
ps3: poate te ajuta cineva care cunoaste mult mai bine ca mine important este ca functioneaza
__________________
Quote:
Originally Posted by MyMiniCity.net
To improve Pelendava City, you only have to give the following links to your friends or post them in your blog. Each different click will improve PelendavaCity!
Ionut is offline   Reply With Quote
Old 28-08-2008, 03:20   #9 (permalink)
spy
Junior Member
 
spy's Avatar
 
Join Date: Mar 2006
Location: Somewhere
Posts: 14
Rep Power: 0
spy is an unknown quantity at this point
Talking hmm

Da a mers nu mi-a dat prin cap chestia cu =$who , merci !
spy is offline   Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
[Modify script] Self check if have X access Smile Tcl scripting 3 30-06-2008 01:06
modificare nivelului de access GoRaPiD a&a light script 3 06-08-2004 02:07
Tcl error [pub:takeovers]: illegal access mode "banprinxtake.txt" razwan Tcl scripting 3 17-07-2004 15:03


All times are GMT +3. The time now is 07:20.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.