right kick
 

News:

29 December 2022 - PtokaX 0.5.3.0 (20th anniversary edition) released...
11 April 2017 - PtokaX 0.5.2.2 released...
8 April 2015 Anti child and anti pedo pr0n scripts are not allowed anymore on this board!
28 September 2015 - PtokaX 0.5.2.1 for Windows 10 IoT released...
3 September 2015 - PtokaX 0.5.2.1 released...
16 August 2015 - PtokaX 0.5.2.0 released...
1 August 2015 - Crowdfunding for ADC protocol support in PtokaX ended. Clearly nobody want ADC support...
30 June 2015 - PtokaX 0.5.1.0 released...
30 April 2015 Crowdfunding for ADC protocol support in PtokaX
26 April 2015 New support hub!
20 February 2015 - PtokaX 0.5.0.3 released...
13 April 2014 - PtokaX 0.5.0.2 released...
23 March 2014 - PtokaX testing version 0.5.0.1 build 454 is available.
04 March 2014 - PtokaX.org sites were temporary down because of DDOS attacks and issues with hosting service provider.

Main Menu

right kick

Started by damo, 17 August, 2004, 22:05:42

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

damo

i have right kick script and would like to add right kick options to the hub tab bar. any help would be appeciated

Herodes

provide the scirpt because without it it will be difficult to undersatnd what it does and what u want it to do ....

a quick answer would be :

$UserCommand 1 1 [blah blah the rest goes here] -- this refers to hub tab right click
$UserCommand 1 2 [blah blah the rest goes here] -- this refers to userlist right click
$UserCommand 1 3 [blah blah the rest goes here] -- this refers to both above right clicks

but for extra more info head to the DC++ wiki and search for the usercommands page ;)

damo

This is the script and would like to add a extra comand to the hub tab apart from the add favourites,reconnect and close



Bot = frmHub:GetHubBotName()
Hub_Name = frmHub:GetHubName()

help = "+help"      -- Command for Help
disc = "!disc"      -- Command for Disconnect User

ban = "!ban"      -- Command for Ban
userinfo = "!userinfo"   -- Command for UserInfo





function OpConnected(user)
   SendOpCommands(user)
end


function SendOpCommands(user)

   local text = "|$UserCommand 255 7|$UserCommand 0 7|$UserCommand 1 2 *** "..Hub_Name.." ***$<%[mynick]> "..help.."||$UserCommand 1 2 Disconnect User(s)$<%[mynick]> "..disc.." %[nick] %[line:Reason]||$UserCommand 1 2 Ban User(s)$<%[mynick]> "..ban.." %[nick] %[line:Reason]||$UserCommand 0 2|$UserCommand 1 2 Userinfo User(s)$<%[mynick]> "..userinfo.." %[nick]|"

   user:SendData(Bot, "Sending you this hubs OP UserCommands as requested. (FrEeStyLeR)")
   user:SendData(text.."|")
end

Herodes

#3
this way to script a right click is very bad to edit ...
I modified the script you provided ...
try editing this with the tips from my last post ...
Bot = frmHub:GetHubBotName()
Hub_Name = frmHub:GetHubName()

help = "+help" -- Command for Help
disc = "!disc" -- Command for Disconnect User

ban = "!ban" -- Command for Ban
userinfo = "!userinfo" -- Command for UserInfo


function OpConnected(user)
	SendOpCommands(user)
end


function SendOpCommands(user)
user:SendData("$UserCommand 255 7|")
user:SendData("$UserCommand 0 7|")
user:SendData("$UserCommand 1 2 *** "..Hub_Name.." ***|$<%[mynick]> "..help.."||")
user:SendData("$UserCommand 1 2 Disconnect User(s)$<%[mynick]> "..disc.." %[nick] %[line:Reason]|")
user:SendData("$UserCommand 1 2 Ban User(s)$<%[mynick]> "..ban.." %[nick] %[line:Reason]|")
user:SendData("$UserCommand 0 2|")
user:SendData("$UserCommand 1 2 Userinfo User(s)$<%[mynick]> "..userinfo.." %[nick]||")
user:SendData(Bot, "Sending you this hubs OP UserCommands as requested. (FrEeStyLeR)")
end
BTW the DC++ wiki UserCommands page

damo

:))  thanx for the help works fine now 8)

Herodes

you're welcome  :)

SMF spam blocked by CleanTalk