botlending forum  

Go Back   botlending forum > Eggdrop & TCL > a&a light script

a&a light script a&a light script support, suggestions & discussions

Reply
 
LinkBack Thread Tools Display Modes
Old 27-03-2007, 01:24   #1 (permalink)
Member
 
Join Date: Jun 2004
Location: Canada
Age: 18
Posts: 141
Rep Power: 0
AdrianK is on a distinguished road
Default DCC CMDS

Nu aveam ce face si mia transit in cap sa fac toate comenzile care exista sa fie valabile si prin dcc )))

Step by Step cum se face:

1. Editarea a&a_01_a_core.tcl
- Pentru proce care va trimite la parser comenzile din DCC. Adaugam un Proces a:bind:dcc
Code:
proc a:bind:dcc {hand idx arg} {
	global settings lastbind
	
	set dir   dcc 
	set arg   [split [string trim $arg]]
	set com   $lastbind
	set chan  [lindex $arg 0]
	set nick  [hand2nick $hand]
	set uhost [getchanhost $nick]

	if { [string match "#*" $chan]}	{ set chan $chan ; set args [lrange $arg 1 end]} else {set chan $settings(homechan) ; set args [lrange $arg 0 end]}

	a:parser $nick $uhost $hand $chan $dir $com $args
}
- Pentru output in DCC in loc de pe canal. Modificarea procesului a:tell. Cautati (tot in core):
Code:
proc a:tell {x id {arg ""}} {
Si inlocuiti:

Code:
...
set w [string map {%B \002 %b \00302 %r \00304 %% \003} $w]
		switch -exact -- $dir {

			pub {
				switch -exact -- [getuser $hand XTRA _PUB_OUT] {
		
					msg	{puthelp "PRIVMSG $nick :$w"}
					note	{puthelp "NOTICE $nick :$w"}
					default {puthelp "PRIVMSG $chan :$nick $w"}
				}
			}
...
cu

Code:
...
set w [string map {%B \002 %b \00302 %r \00304 %% \003} $w]
		switch -exact -- $dir {
		    dcc {
			putlog $w
			}

			pub {
				switch -exact -- [getuser $hand XTRA _PUB_OUT] {
		
					msg	{puthelp "PRIVMSG $nick :$w"}
					note	{puthelp "NOTICE $nick :$w"}
					default {puthelp "PRIVMSG $chan :$nick $w"}
				}
			}
...
DONE cu core.

2. Editam a&a_02_a_binds.tcl
- Tot ce trebuie sa faceti e sa adaugati la sfirshitul file-ului:

Code:
# + REP lui lsn pentru a:command -all :))
foreach zx [a:command -all] {
bind dcc -|- $zx a:bind:dcc
}
3. Done Acum ar trebui sa aveti orce comanda available in DCC.
Avantaje... no flood
AdrianK 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


All times are GMT +3. The time now is 19:41.


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