PDA

View Full Version : Protecting your own script, make it for X persons only. :D



ososzayat
01-21-2016, 02:20 PM
to protect your own script, making it for some players only so no one can give it away but you :D

first.. you need this module to check the right character every x seconds:


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.php?17125-Camouflaging-Lua-Code

good luck ;)

Jontor
01-21-2016, 03:52 PM
You can also use 'getUserName()' instead of 'Self.Name()' to bound it to a user, not character :p