AmIRC ZDCC 1.65 by Mat Bettinson of the Plot Hatching Factory. Authors; Original version by Josef Faulkner for Grapevine. AmIRC conversion and development up to 1.20 or so? WiZ-Id (wizkid@crocker.com) Futher development/re-write to ZDCC by Mat Bettinson (mat@cu-amiga.demon.co.uk) Testers; Effnet #Amiga; Greebo, Stone-D, ElvisP, Pilate, Moe and Dr_Phuqt Undernet #AmigaCafe; Shitlips Installation: Ensure rexxreqtools.library and rexxsupport.library are in Libs: Add an ALIAS of /ZDCC to "/rx rexx/ZDCC.amirx %p" in the LIST/ALIAS window. Add "rexx/ZDCC.amirx PMSG" to the rexx script box in the Setup/Events GUI for Private Message AND/OR rexx/ZDCC.amirc CTCP to the /CTCP rexx box. Copy one of the scripts from the rexx directory into the rexx directory where your AmIRC is installed. The standard one is smaller as it's been 'RexxOpted'. The comments at the start are left alone as the script uses that as it's own built in help file. The script postfixed '.long' is the unrexxopted script for any Arexx hackers out there. Edit the script ZDCC.amirc and change sfile, afile and pfile to different paths if uulib: is not a convienient location. There's also a new 'prompt' variable. This is sent in front of every text line ZDCC sends out so you might like to change it to give your ZDCC a different look. Note: No ZDCC: assign is required any longer. Optional; In setup/actions add the following two buttons. Replace ones if need be; Friend /rx rexx/ZDCC.amirx FADD %u UnFriend /rx rexx/ZDCC.amirx FDEL %u Now to add and subtract users from your Friends list, you can just click on their name in the userlist and press the appropriate button. Users in your friends list, get access to the private file catalog. It would also be possible to add buttons for adding and subtracting files so that it was not necessary to type /ZDCC ADD etc. One possible idea is the following; +Public ZDCC /rx rexx/ZDCC.amirx ADD PUB -Public ZDCC /rx rexx/ZDCC.amirx DEL PUB +Private ZDCC /rx rexx/ZDCC.amirx ADD PRI -Private ZDCC /rx rexx/ZDCC.amirx DEL PRI or condense the four to two with; +ZDCC file /rx rexx/ZDCC.amirx ADD -ZDCC file /rx rexx/ZDCC.amirx DEL Here, with no PRI or PUB keyword, a requestor will appear asking you which one you require. History: V1.01 A few little fixes... maybe this will help V1.02 Should have fixed the loopback problems.... { V1.03 More little bug fixes e.g (ZDCC HELP), cosmetic fixes (done by Stoebi) { V1.03 More cosmetic fixes (correct from *IX) (Pal) { V1.03 Mostly PhoEniX compatible commands (Pal) V1.04 Implements changes on 1.03 into the 1.02 version. V1.03 did not have the Loop bug fixed. V1.10 Added PACKET's!!! See Readme! V1.11 Just cleaning up version numbers V1.20 SLOTS! New additions by Mat Bettinson. V1.30 New additions by Mat Bettinson; Now two filecats private and public. (Friends list for private) Slots broken. :-/ V1.40 Files can be anywhere. Forget the ZDCC assign. V1.50 File requestors for adding files and descriptions. GUI for DEL V1.51 Libraries bugs fixed. Actually got it to work. :-) V1.52 Fixed the extra blank line when deleting. V1.53 Documented how to make (un)Friend buttons in AmIRC. Fixed Op Send. V1.60 Much rewritten 'my' way. :-) Text changed + prompt. V1.61 Slots fixed. V1.62 Whittled out more of the old weird code. Loops just for text formatting removed etc. V1.63 Sped up much code including help files. Duplicated code removed. V1.64 No-one used more than 9 files!? Now you can have infinite. V1.65 Tidied up. Tested on local CLChat server. Fixed INFO/NOTICE though they seem pointless so this'll be expanded later. Maybe. Help Text: Mat's AmIRC ZDCC V1.65 command help: Usage: /ctcp ZDCC [arg] can be any of the following for remote users: Where can be any of the following: LIST - View a list of offered files. GET # - Request Public file # for DCC. GETPRI # - Get Private file. (Must be in Friends list) HELP - See this help listing ADD [PRI|PUB] - Add a file to your list OFFER [PRI|PUB] - Same as ADD. EG: /ZDCC ADD PRI LIST [#|] - SEND list to channel (#) or nick NOTICE <#> - Public notice to channel (#) of offer SEND - To send public file to someone SENDPRI - Send private file to someone DEL - Removes the item from your list REM - Same as DEL DELPRI - Removes pack from private list REMPRI - Same as DELPRI DOFFER - Same as DEL FADD - Add to your Friends list ADDF - Same as FADD FLIST - List your Friends LISTF - Same as FLIST FREM - Remove someone from your Friends list FDEL - Same as FREM REMF - Same as FREM SETMAX - Set the maximum number of DCC slots INFO [#|] - To show current settings Notes new to 1.52; I probably should have just written my own version since this might cause some confusion in the end... WiZ-Id is welcome to integrate the changes into his versions. Having said that, you'll find this version a bit easier to use. Summary of what's changed from XDCC; The files on ZDCC offer don't have to be present in any one directory and the ZDCC: assign isn't needed. ZDCC keeps a record of the full paths to the files so they can be left where they belong. The security and kick functions have been removed. Instead, there's TWO file databases. One public based and one private base. The only thing that hasn't changed is the handling of friends. They can be added and removed as before only THIS time, if a FRIEND asks for a list of files, they'll be given both private and public lists. They then use GET for public files or GETPRI for private files. Any user NOT marked as a friend, will not get a private file list and will get a message telling them they have no access if they attempt to use the GETPRI function. Adding a fill into either public or private database is now done via a Reqtools file requestor. Eg: /ZDCC ADD will pop up a requestor asking for which base to add a file to and then a file requestor will appear. To save this first requestor, you can type PRI or PUB after /ZDCC ADD to choose. Removing file is the same in that you just need enter /ZDCC DEL though again you can specify PUB or PRI afterwards to bypass the first requestor. A GUI will then appear which will list all the available files. You just need to click the button of whichever you need to delete and it's history. Neat huh? This GUI might get pretty darn wide with a lot of files... I sent Wiz-Id a copy of what I'd done with XDCC but didn't here back and because he was still updating XDCC, things were going to get ridiculous hence the name change. However, hats off to the gents who wrote the originals. Things like the OP functions and other bits from XDCC are missing. Basically, I didn't see ZDCC as being a bot in it's own right. You should run something else to do those sorts of things IMHO. ZDCC is simply a realisation of what I thought a good and simple auto DCC util should be. Known problems; Not heavy on features but since I got Olliver Wagners CLChat server running locally, I got to give it a fairly good test myself. In otherwords, if there's any problems I don't know about them. :-) So if you find any, drop me a line. Author; Err... Yeah, I'm that writer for CU Amiga Magazine. I did this update so I could use it to send out the Contents pages and other releases I regularly DCC to the entire #Amiga channel every month. I don't intent to make this a major project especially in light of AmIRCs crap Arexx port :-(. Don't expect major updates. Hassle WiZ-Id for that. Mat Bettinson - (The) Technical Staff Writer for CU Amiga Magazine. mat@cu-amiga.demon.co.uk