need help with this script
 

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

need help with this script

Started by ?StIfFLEr??, 28 October, 2008, 14:56:29

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

?StIfFLEr??

Dont want to change it in new api.
here are some operator commands i just need it to be visible to operators and moderators on their right click.
if the post is wrongly place am sorry.
i am using currently PtokaX DC Hub 0.3.6.0
its an request.
-------------
--  operator command display edited by stiffler
--  11/10/2008
--------------
function ChatArrival(curUser, data)
	
	local data = string.sub(data, 1, -2)
	local s,e,cmd = nil,nil,nil
	s,e,prefix,cmd = string.find(data, "%b<>%s+([%!%+%-%?%#])(%S+)")
	
	if tCommands[cmd] == 1 then
		s,e,cmd = string.find(data, "%b<>%s+[%!%+%-%?%#](.+)")
		SendToAll(curUser.sName, prefix..cmd)
	end
	
end


function NewUserConnected(user)
user:SendData("$UserCommand 0 3 ")
if user.bOperator and (user.iProfile ==  0) then
   user:SendData("$UserCommand 0 3")
   end
   user:SendData("$UserCommand 1 3 ?GiGaByTe?\\?OpErAtOr?\\?ReGiStRaTiOn?\\?ReG uSeR?$<%[mynick]> !addreguser %[line:NiCk] %[line:PaSsWoRd] %[line:PrOfIlE(Reg)]&#124;|")
   user:SendData("$UserCommand 1 3 ?GiGaByTe?\\?OpErAtOr?\\?ReGiStRaTiOn?\\?DeL uSeR?$<%[mynick]> !delreguser %[line:NiCk]&#124;|")
   user:SendData("$UserCommand 1 3 ?GiGaByTe?\\?OpErAtOr?\\?BaN CoMmAnDs?\\?BaN?\\?PeRmAnEnt?\\?KiCk UsEr?$<%[mynick]> !ban %[line:NiCk] %[line:ReAsOn]&#124;|")
   user:SendData("$UserCommand 1 3 ?GiGaByTe?\\?OpErAtOr?\\?BaN CoMmAnDs?\\?BaN?\\?PeRmAnEnt?\\?BaN iP?$<%[mynick]> !banip %[line:Ip] %[line:ReAsOn]&#124;|")
   user:SendData("$UserCommand 1 3 ?GiGaByTe?\\?OpErAtOr?\\?BaN CoMmAnDs?\\?BaN?\\?PeRmAnEnt?\\?NiCk BaN?$<%[mynick]> !nickban %[line:NiCk] %[line:ReAsOn]&#124;|")
   user:SendData("$UserCommand 1 3 ?GiGaByTe?\\?OpErAtOr?\\?BaN CoMmAnDs?\\?BaN?\\?TeMpOrArY?\\?TeMpOrArY bAn?$<%[mynick]> !tempban %[line:NiCk] %[line:TiMe] %[line:ReAsOn]&#124;|")   
   user:SendData("$UserCommand 1 3 ?GiGaByTe?\\?OpErAtOr?\\?BaN CoMmAnDs?\\?BaN?\\?TeMpOrArY?\\?TeMpOrArY iP bAn?$<%[mynick]> !tempbanip %[line:Ip] %[line:TiMe] %[line:ReAsOn]&#124;|")      
   user:SendData("$UserCommand 1 3 ?GiGaByTe?\\?OpErAtOr?\\?BaN CoMmAnDs?\\?ClEaR bAn?\\?PeRmAnEnT?$<%[mynick]> !clrpermbans&#124;|")
   user:SendData("$UserCommand 1 3 ?GiGaByTe?\\?OpErAtOr?\\?BaN CoMmAnDs?\\?ClEaR bAn?\\?TeMpOrArY?$<%[mynick]> !clrtempbans&#124;|")
   user:SendData("$UserCommand 1 3 ?GiGaByTe?\\?OpErAtOr?\\?BaN CoMmAnDs?\\?MaInChAt BaN?\\?BaN?$<%[mynick]> !gag %[line:NiCk]&#124;|")   
   user:SendData("$UserCommand 1 3 ?GiGaByTe?\\?OpErAtOr?\\?BaN CoMmAnDs?\\?MaInChAt BaN?\\?UnBaN?$<%[mynick]> !ungag %[line:NiCk]&#124;|")     
   user:SendData("$UserCommand 1 3 ?GiGaByTe?\\?OpErAtOr?\\?BaN CoMmAnDs?\\?ShOw BaN?\\?PeRmAnEnT?$<%[mynick]> !getpermbans&#124;|")
   user:SendData("$UserCommand 1 3 ?GiGaByTe?\\?OpErAtOr?\\?BaN CoMmAnDs?\\?ShOw BaN?\\?TeMpOrArY?$<%[mynick]> !gettempbans&#124;|")   
   user:SendData("$UserCommand 1 3 ?GiGaByTe?\\?UsEr OptIoN?\\?ChAt RaNk?\\?ChAt StAt?$<%[mynick]> !chatstats&#124;|")   
   user:SendData("$UserCommand 1 3 ?GiGaByTe?\\?UsEr OptIoN?\\?ChAt RaNk?\\?ChAt StAt Year-Month?$<%[mynick]> !chatmonth %[line:YY-MM]&#124;|")
   user:SendData("$UserCommand 1 3 ?GiGaByTe?\\?UsEr OptIoN?\\?ChAt RaNk?\\?My ChAt StAt?$<%[mynick]> !mystats&#124;|") 
   user:SendData("$UserCommand 1 3 ?GiGaByTe?\\?UsEr OptIoN?\\?Ip?$<%[mynick]> +ip %[line:Nick]&#124;|")
   user:SendData("$UserCommand 1 3 ?GiGaByTe?\\?UsEr OptIoN?\\?LaStSeEn?\\?Lastseen?$<%[mynick]> +lastseen %[line:Nick]&#124;|")
   user:SendData("$UserCommand 1 3 ?GiGaByTe?\\?UsEr OptIoN?\\?HUB InFo?\\?HuB ReCoRd?$<%[mynick]> +rb.show&#124;|")   
   user:SendData("$UserCommand 1 3 ?GiGaByTe?\\?UsEr OptIoN?\\?HUB InFo?\\?LiFeTiMe?$<%[mynick]> +lifetime&#124;|")
   user:SendData("$UserCommand 1 3 ?GiGaByTe?\\?UsEr OptIoN?\\?GiGaByTe bOaRd?\\?MeSsAgEbOaRd?\\?PoSt?$<%[mynick]> !write %[line:MeSsAgE]&#124;|")
   user:SendData("$UserCommand 1 3 ?GiGaByTe?\\?UsEr OptIoN?\\?GiGaByTe bOaRd?\\?MeSsAgEbOaRd?\\?ReAd?$<%[mynick]> !read&#124;|")  
   user:SendData("$UserCommand 1 3 ?GiGaByTe?\\?UsEr OptIoN?\\?GiGaByTe bOaRd?\\?DuMpS bOaRd?\\?PoSt?$<%[mynick]> !dump %[line:MeSsAgE]&#124;|")
   user:SendData("$UserCommand 1 3 ?GiGaByTe?\\?UsEr OptIoN?\\?GiGaByTe bOaRd?\\?DuMpS bOaRd?\\?ReAd?$<%[mynick]> !dumps&#124;|") 
   user:SendData("$UserCommand 1 3 ?GiGaByTe?\\?UsEr OptIoN?\\?GiGaByTe bOaRd?\\?ReQuEsT bOaRd?\\?PoSt?$<%[mynick]> !request %[line:MeSsAgE]&#124;|")
   user:SendData("$UserCommand 1 3 ?GiGaByTe?\\?UsEr OptIoN?\\?GiGaByTe bOaRd?\\?ReQuEsT bOaRd?\\?ReAd?$<%[mynick]> !requests&#124;|") 
   user:SendData("$UserCommand 1 3 ?GiGaByTe?\\?OpErAtOr?\\?ClEaR sCrEeN?\\?ClEaN?$<%[mynick]> !cls&#124;|")   
end

OpConnected = NewUserConnected

i wrongly posted it sumwhere else before  plz if any1 can delet it!!!

?StIfFLEr??

thanks mutor..... the scripts working awesome....
thanks a lot for the help...
m sorry i really cant understand where to post what slowly i will learn tat too.. surely.... ;D

?StIfFLEr??

lol dun knw y the post was moved i did not wanted it to get converted :p

bastya_elvtars

Fuck. Looks like I shouldn't moderate when tired.
Everything could have been anything else and it would have just as much meaning.

?StIfFLEr??

lol its fine buddy no isssues till the problem is solved  :P

SMF spam blocked by CleanTalk