Request commands
 

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

Request commands

Started by htb222, 11 May, 2005, 07:15:42

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

htb222

Hy
Anywone can help me with a few commands?
I want to add topchaters, hideuser, unhideuser but i don't know lua?
Can u help me?
Thx

jiten

QuoteOriginally posted by htb222
Hy
Anywone can help me with a few commands?
I want to add topchaters, hideuser, unhideuser but i don't know lua?
Can u help me?
Thx
Do you want those scripts or just the rightclick?

Cheers

htb222

Scripts man! And if someone knows how to make right click menu for Thor i would be pleased. Thx again, you are the masters.
Cya

Dessamator

try clicking this,
Posting And You...

as for the right click, sure well do it(if it doesnt already exist) just show us the commands
Ignorance is Bliss.

htb222

The commands are in thor 2.0. For that script i wanna to do right-click menu.
Thx

Dessamator

#5
ill teach u how to do it and u can do the rest, heres an example :

-- right clicks command    
function NewUserConnected(User)     
User:SendData("$UserCommand 0 3 |")  
User:SendData("$UserCommand 1 3 Thor\\help$<%[mynick]> !help ||")  
User:SendData("$UserCommand 1 3 Thor\\Kick user$<%[mynick]> !kick %[nick] %[line:Reason]||")  
User:SendData("$UserCommand 1 3 Thor\\Ban user$<%[mynick]> !ban %[nick] %[line:Reason]||")  
User:SendData("$UserCommand 1 3 Thor\\Timeban User$<%[mynick]> !timeban %[nick] %[line:hr:mn] %[line:Reason] ||")    
end  
OpConnected = NewUserConnected


its simple u just edit  what comes after the "UserCommand 1 3" the description of the command and the menu, u just edit whats between that and the "$<%[mynick]>"

then for the commands, u edit what comes after the "$<%[mynick]>" for example !help .

if the command has "arguments", u use %[line:type the description here], if the action is carried out on a nick, type %[nick]

check this link for reference ---> click here

GOOD LUCK !!

Ignorance is Bliss.

htb222

K man thx
I will try.
cya

htb222

Man, a wrote that lines for all comands, but there is another problem. All users have same commands.
Can u help me?

Dessamator

yep, u dont want users to have those?, simple

put it like this :

-- right clicks command    

-->>right clicks for users <<--
function NewUserConnected(User)     
User:SendData("$UserCommand 1 3 Thor\\help$<%[mynick]> !help||")  
end  

--OpConnected=NewUserConnected
-->>> right click for ops <<<--
function OpConnected(User)
User:SendData("$UserCommand 0 3 |")  
NewUserConnected(User)
User:SendData("$UserCommand 1 3 Thor\\Kick user$<%[mynick]> !kick %[nick] %[line:Reason]||")  
User:SendData("$UserCommand 1 3 Thor\\Ban user$<%[mynick]> !ban %[nick] %[line:Reason]||")  
User:SendData("$UserCommand 1 3 Thor\\Timeban User$<%[mynick]> !timeban %[nick] %[line:hr:mn] %[line:Reason]||")    
end
Ignorance is Bliss.

htb222

Thx man! This is great!

C ya

Dessamator

Ignorance is Bliss.

SMF spam blocked by CleanTalk