Author Topic: need help with this script  (Read 1848 times)

0 Members and 1 Guest are viewing this topic.

Offline ?StIfFLEr??

  • Triple Ace
  • **
  • Posts: 241
  • Karma: +17/-63
need help with this script
« on: 28 October, 2008, 14:56:29 »
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.
Code: [Select]
-------------
--  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!!!
« Last Edit: 28 October, 2008, 15:00:02 by ?StIfFLEr?? »

PtokaX forum

need help with this script
« on: 28 October, 2008, 14:56:29 »

Offline ?StIfFLEr??

  • Triple Ace
  • **
  • Posts: 241
  • Karma: +17/-63
Re: need help with this script
« Reply #1 on: 29 October, 2008, 09:36:42 »
thanks American Idiot..... 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

Offline ?StIfFLEr??

  • Triple Ace
  • **
  • Posts: 241
  • Karma: +17/-63
Re: need help with this script
« Reply #2 on: 29 October, 2008, 18:39:20 »
lol dun knw y the post was moved i did not wanted it to get converted :p

Offline bastya_elvtars

  • Forum God
  • ****
  • Posts: 3 725
  • Karma: +173/-7
  • The rock n' roll doctor
    • The FreshStuff3 Site
Re: need help with this script
« Reply #3 on: 29 October, 2008, 22:22:49 »
Fuck. Looks like I shouldn't moderate when tired.
Everything could have been anything else and it would have just as much meaning.

Offline ?StIfFLEr??

  • Triple Ace
  • **
  • Posts: 241
  • Karma: +17/-63
Re: need help with this script
« Reply #4 on: 30 October, 2008, 02:46:42 »
lol its fine buddy no isssues till the problem is solved  :P

PtokaX forum

Re: need help with this script
« Reply #4 on: 30 October, 2008, 02:46:42 »