Clear Screen
 

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

Clear Screen

Started by Sarpanch, 10 July, 2005, 23:05:03

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Sarpanch

Hi i there any script that will clear the main screen  in lua5 format? :)

??????Hawk??????

QuoteOriginally posted by Sarpanch
Hi i there any script that will clear the main screen  in lua5 format? :)


Try the search Button.............

Sarpanch

when i search i get nothing , this is what i have in lua4

--!cls will wipe the main chat clean
--the command will be added to the rightclick menu of the OPs (optional)

botname = "bot"
rightclick = 1 -- if anything else than 1 rightclick menu won't appear
function DataArrival (curUser, sData)
command=strsub(sData,1,strlen(sData)-1)
s,e,cmd = strfind(command,"%b<>%s+(%S+)")
   if curUser.bOperator then
      if cmd=="!cls" then
         temp = "\r\n"
         for i=1,200,1 do
            temp = temp.."\r\n"
         end
         SendToAll(botname, temp)
      end
   end
end

function OpConnected(curUser)
   if rightclick == 1 then
      curUser:SendData("$UserCommand 255 7")
      curUser:SendData("$UserCommand 0 3")
      curUser:SendData("$UserCommand 1 2 $<%[mynick]> !cls|")
   end
end

kEwL

dunno y u couldnt find it
but here it is

code:
   --ScreenCleaner.lua 1.1 by yepyepyep4711 and ??????Hawk??????
    --!cls will wipe the main chat clean (does that remind you of something? ;) )
    --the command will be added to the rightclick menu of the OPs (optional)

CanDo = {
[0] = 1, -- Master
[1] = 1, -- Operator
[2] = 0, -- VIP
[3] = 0, -- Reg
[4] = 0, -- Moderator
[5] = 1, -- Netfounder
[-1] =0, -- User
}


function ChatArrival(curUser, sData)
    sData=string.sub(sData,1,string.len(sData)-1)
    local _,_,cmd = string.find(sData,"%b<>%s+(%S+)")
       if cmd and cmd=="!cls" and CanDo[curUser.iProfile] == 1 then
         SendToAll("Cleaner",string.rep("\r\n\r\n",2000))
      return 1
   end
end

function OpConnected(curUser)
       if CanDo[curUser.iProfile] == 1 then
          curUser:SendData("$UserCommand 255 7")
          curUser:SendData("$UserCommand 1 3 Clear Screen$<%[mynick]> !cls|")
       end
end

??????Hawk??????

QuoteOriginally posted by kEwL
dunno y u couldnt find it
but here it is

Lazyness......

Sarpanch

i did searched 4 it but nothing came up! just the thread i made

Dessamator

click on one of my signatures, and learn to search,
Ignorance is Bliss.

SMF spam blocked by CleanTalk