PtokaX forum

Archive => Archived 5.0 boards => Request for scripts => Topic started by: htb222 on 11 May, 2005, 07:15:42

Title: Request commands
Post by: htb222 on 11 May, 2005, 07:15:42
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
Title:
Post by: jiten on 11 May, 2005, 12:58:43
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
Title: RE:Problem
Post by: htb222 on 13 May, 2005, 10:05:34
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
Title:
Post by: Dessamator on 13 May, 2005, 10:11:44
try clicking this,
Posting And You... (http://home.comcast.net/~benbrausen/Funny/Posting.swf)

as for the right click, sure well do it(if it doesnt already exist) just show us the commands
Title:
Post by: htb222 on 13 May, 2005, 10:43:07
The commands are in thor 2.0. For that script i wanna to do right-click menu.
Thx
Title:
Post by: Dessamator on 13 May, 2005, 11:41:56
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 (http://dcplusplus.sourceforge.net/wiki/index.php/UserCommand%20command)

GOOD LUCK !!

Title:
Post by: htb222 on 13 May, 2005, 12:15:58
K man thx
I will try.
cya
Title:
Post by: htb222 on 13 May, 2005, 12:26:15
Man, a wrote that lines for all comands, but there is another problem. All users have same commands.
Can u help me?
Title:
Post by: Dessamator on 13 May, 2005, 13:41:25
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
Title:
Post by: htb222 on 13 May, 2005, 13:53:35
Thx man! This is great!

C ya
Title:
Post by: Dessamator on 13 May, 2005, 14:06:02
yw, m8