XenoBot Forums - Powered by vBulletin

User Tag List

Page 1 of 4 123 ... LastLast
Results 1 to 10 of 34

Thread: Protecting your own script, make it for X persons only. :D

  1. #1
    ososzayat's Avatar
    Join Date
    Oct 2014
    Posts
    69
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)

    Lightbulb Protecting your own script, make it for X persons only. :D

    ​to protect your own script, making it for some players only so no one can give it away but you

    first.. you need this module to check the right character every x seconds:
    Code:
    Module.New('CheckIfAllowed', function(Allow)
        local ListAllowed = {"Lord Zayat", "Wezy"}
            if (table.find(ListAllowed, Self.Name())) then
                print([[Happy Hunting]]) 
                else
                print([[You're NOT ALLOWED To run this script]])
                Cavebot.Stop()
            end
        Allow:Delay(30000, 60000)end)
    Second.. you need to prevent anyone from adding his name.. using Hex format of script and loadstring().. all about this here:
    http://forums.xenobot.net/showthread...aging-Lua-Code

    good luck

  2. #2

    Join Date
    Jan 2014
    Posts
    183
    Mentioned
    9 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by ososzayat View Post
    ​to protect your own script, making it for some players only so no one can give it away but you

    first.. you need this module to check the right character every x seconds:
    Code:
    Module.New('CheckIfAllowed', function(Allow)
        local ListAllowed = {"Lord Zayat", "Wezy"}
            if (table.find(ListAllowed, Self.Name())) then
                print([[Happy Hunting]]) 
                else
                print([[You're NOT ALLOWED To run this script]])
                Cavebot.Stop()
            end
        Allow:Delay(30000, 60000)end)
    Second.. you need to prevent anyone from adding his name.. using Hex format of script and loadstring().. all about this here:
    http://forums.xenobot.net/showthread...aging-Lua-Code

    good luck
    That module suck. When im on pc ill write what i mean.

  3. #3
    Monthly Subscriber
    Join Date
    Jun 2012
    Posts
    185
    Mentioned
    22 Post(s)
    Tagged
    0 Thread(s)
    You can't really make scripts only for x character. All you can do is obfuscate code but it still doesn't 100% protect your code from beeing stolen/edited.

  4. #4
    Senior Member Jontor's Avatar
    Join Date
    Sep 2014
    Posts
    446
    Mentioned
    51 Post(s)
    Tagged
    1 Thread(s)
    Quote Originally Posted by eldera View Post
    You can't really make scripts only for x character. All you can do is obfuscate code but it still doesn't 100% protect your code from beeing stolen/edited.
    Or you can get trusted enough and have privilege to use .xblua files

  5. #5
    Queen Fatality Fatality's Avatar
    Join Date
    Mar 2014
    Location
    Canada
    Posts
    754
    Mentioned
    83 Post(s)
    Tagged
    1 Thread(s)
    .lol.

  6. #6
    Monthly Subscriber
    Join Date
    Jun 2012
    Posts
    185
    Mentioned
    22 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by Jontor View Post
    Or you can get trusted enough and have privilege to use .xblua files
    Everyone can use them. You have to get permission to generate those and gl with that

  7. #7
    Queen Fatality Fatality's Avatar
    Join Date
    Mar 2014
    Location
    Canada
    Posts
    754
    Mentioned
    83 Post(s)
    Tagged
    1 Thread(s)
    He meant to get permission to generate them.

  8. #8
    ososzayat's Avatar
    Join Date
    Oct 2014
    Posts
    69
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by kamilqq View Post
    That module suck. When im on pc ill write what i mean.
    im not a scripter, i tryed to make this and i succeeded.. then i shared it. if you have a better idea share it please

  9. #9

    Join Date
    Jan 2014
    Posts
    183
    Mentioned
    9 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by ososzayat View Post
    im not a scripter, i tryed to make this and i succeeded.. then i shared it. if you have a better idea share it please
    Your module just stops cavebot, check this out. It won't make script work if name doesnt match.
    Code:
    Access = false
    
    
    names = 
    
    {
    {Name = 'Rawkerkan Coli'},
    {Name = 'Zenia Sena'},
    {Name = 'Arherd Gumi'},
    {Name = 'Thor Jord'},
    {Name = 'Lonliu Maimar'},
    {Name = 'Ephil Melon'},
    {Name = 'Froskurek'}
    }
    
    for _, name in ipairs(names) do
    	if Self.Name() == name.Name then
    		Access = true
    	end
    end
    
    
    if Access then
    print('authorization complete')
    WHOLE UR SCRIPT HERE 
    
    else
    print('You are not able to use this script.')
    end
    it's would work better belive me.
    You can add some prints there.

  10. #10
    Monthly Subscriber
    Join Date
    Jun 2012
    Posts
    185
    Mentioned
    22 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by kamilqq View Post
    Your module just stops cavebot, check this out. It won't make script work if name doesnt match.
    Code:
    Access = false
    
    
    names = 
    
    {
    {Name = 'Rawkerkan Coli'},
    {Name = 'Zenia Sena'},
    {Name = 'Arherd Gumi'},
    {Name = 'Thor Jord'},
    {Name = 'Lonliu Maimar'},
    {Name = 'Ephil Melon'},
    {Name = 'Froskurek'}
    }
    
    for _, name in ipairs(names) do
    	if Self.Name() == name.Name then
    		Access = true
    	end
    end
    
    
    if Access then
    print('authorization complete')
    WHOLE UR SCRIPT HERE 
    
    else
    print('You are not able to use this script.')
    end
    it's would work better belive me.
    You can add some prints there.
    You can still "crack" it wi

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •