PtokaX forum

Archive => Archived 5.0 boards => Finished Scripts => Topic started by: Sarpanch on 10 July, 2005, 23:05:03

Title: Clear Screen
Post by: Sarpanch on 10 July, 2005, 23:05:03
Hi i there any script that will clear the main screen  in lua5 format? :)
Title:
Post by: ??????Hawk?????? on 10 July, 2005, 23:06:44
QuoteOriginally posted by Sarpanch
Hi i there any script that will clear the main screen  in lua5 format? :)


Try the search Button.............
Title:
Post by: Sarpanch on 15 July, 2005, 13:56:17
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
Title:
Post by: kEwL on 15 July, 2005, 14:00:14
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 = {
Title:
Post by: ??????Hawk?????? on 15 July, 2005, 14:31:44
QuoteOriginally posted by kEwL
dunno y u couldnt find it
but here it is

Lazyness......
Title:
Post by: Sarpanch on 15 July, 2005, 21:25:05
i did searched 4 it but nothing came up! just the thread i made
Title:
Post by: Dessamator on 15 July, 2005, 22:04:26
click on one of my signatures, and learn to search,