Author Topic: XDCC Script converting  (Read 8220 times)

tatewaki

  • Guest
XDCC Script converting
« on: January 14, 2005, 09:38:40 AM »
Well i got this script in mIRC


Code: [Select]
XDCC
.XDCC List: { /ctcp $$snicks xdcc list }
.XDCC Get: { /ctcp $$snicks

xdcc send $chr(35) $+ $$?="Enter Pack No." }

And i like to convert it so i

can use it with IceChat what whot it look like in IceChat? It's written at Popups in the Nick list

Also is there a

tutorial anywhere on how to script in IceChat?

Snerf

  • Administrator
  • Hero Member
  • *****
  • Posts: 1968
    • IceChat IRC Client
XDCC Script converting
« Reply #1 on: January 15, 2005, 10:24:08 AM »
The help files explain a bit how to script. But this wouldnt

really be a script. IceChat does not have a $snicks identifier, nor does it have a $chr identifier. You would need to create

an alias, which would call a script in scripting, using /! command.  It would look something like this.
Open the PopupMenu

editor, and select Nicklist and add these 3 lines

Code: [Select]

XDCC
.XDCC List:/! XdccList

$nick
.XDCC Get:/! XdccGet $nick


Save the menu, and now open the Script Editor, and

make a new script file, and add this code.

Code: [Select]

Sub XdccList(Nick)
SendCommand

"/ctcp " & Nick & " xdcc list"
End Sub

Sub XdccGet(Nick)
SendCommand

"//ctcp " & Nick & " xdcc send " & chr(35) & " $+ $$?=" &

chr(34) & "Enter Pack No." & chr(34)
End Sub


Save the

Script file, and you are set.
Looks like in future versions, if $chr() and $snicks was added, would make this a lot

simpler.
The IceChat God