-- Build for PtokaX DC Hub 0.3.3.21b
-- Leviathan Private Hub Script by C??o?y??
-- Started 15/8/2005
-- Thx for ?s???? for spelling corrections and beta testing =)
-- Thx Optimus and T?M??r?V?ll?R for help
-- Used parts that i have found from http://board.univ-angers.fr/main.php
-- Many thx to those who recognise ther code (cant remember what i took from where)
-- Rules.txt and network.txt for profiles in Leviathan/txt folder
-- Uses ptokaX default profiles (master/operator/vip)
-- Min/max share check for profiles
-- Min/Max slot check for profiles
-- Max hub check for profiles
-- Anti advertise for profiles operator and vip
-- All reply is welcome :P
Leviathan v.1d (http://ptxscriptdb.psycho-chihuahua.net/download.php?view.91)
Hey, looks cool, great job!
But could you please upload it to the script database?
QuoteOriginally posted by bastya_elvtars
Hey, looks cool, great job!
But could you please upload it to the script database?
Done .. will change link when its aproved there :D
Done.
http://ptxscriptdb.psycho-chihuahua.net/download.php?view.91
Please do not link directly to the download, only to its page, maybe people will read the description then. Thanks!
v1e
Added : missing !getpass command sry all my mistake
Added : Turn TempBan redirect on/off shows allso in hubconfig
Added : Turn Ban redirect on/off shows allso in hubconfig
Added : Turn Hub Full redirection on/off shows allso in hubconfig
Added : Turn All new connections redirect on/off shows allso in hubconfig
Added : Change message to unregistered redirect shows allso in hubconfig
Changed : Automatically sets Redirect address to tempban/ban/regonly from normal redirect field
Changed : Regonly on from ptokaX automatically and removed old script part
v2
Changed : Profile settings to smaller size
Added : Antiadvertise on/off for profiles
Added : Registry cleaner from plop with little mod
script cleaning
Leviathan v2 (http://ptxscriptdb.psycho-chihuahua.net/download.php?view.100)
v2.1
Tested with PtokaX DC Hub 0.3.3.21f
Changed : Whole setting thing now in separate tables in Leviathan/Tables folder (minshare.tbl,maxshare.tbl,minslots.tbl,maxslots.tbl,maxhubs.tbl,antiadvert.tbl)
Added : !showerror command.. shows last script errors (hopefully you will never see that file =))
Added : Adjustable table for all commands in Leviathan/Tables/scriptlevel.tbl
Changed : new Rightclick/help function
Added : antiadvert/rightclick to hub config table
Added : !antiadvert
Added : !rightclick
Added : !minshare /!maxshare /!minslots /!maxslots /!maxhubs commands to profiles
Added : !kick with profile protection (clientside allso)
Added : !nickban with profile protection (online/offline users)
Added : !timeban : with profile protection (online users)
Added : Profile REG
Changed : Slot/hubs/share check function little
Changed : Whole Antiadvertising function (smaller/nicer :P) (all hub addys in networklist is protected automatically)
Added : !addsafe to add allowed "advertising" address
Added : !delsafe to remove allowed "advertising" address
Added : !showsafe to show all allowed "advertising addresses
Added : !addnetwork to add hub to networklist table
Added : !delnetwork to remove hub from networklist table
Changed : !network command to read network hubs from table
Added : Timed memoryflush (hope it works)
Added : !rename to change your nick (request by 3sixty)
-Script cleaning
Current Master !help list:
!whisper - Whisper to user (only for he's/she's eyes)
!me - Write in 3rd person
!talk - Talk without nick
!version - Show Script version
!help - Shows all available commands
!rules - Shows hub rules for your profile
!network - Shows possible network hubs
!disclaimer - Shows disclaimer message
!myinfo - Shows some info of you
!showsafe - Shows allowed addresses to type in hub
!hconfig - Shows current hub configurations
!userinfo - Shows info of selected user
!showerror - Shows Script error log
!noclean - Add or remove nick to/from regcleaner protected list
!shownoclean - Shows users that are protected from regcleaner
!showusers - Shows users from selected profile
!seen - Shows when selected user were logged last time
!cleanusers - Manually cleans unused accounts
!addsafe - Adds address that is safe to type in hub
!delsafe - Deletes address from safe list
!setop - Turn Op-Chat On or Off
!setopname - Set/change Name to Op-Chat
!setopdesc - Set/change description to Op-Chat
!settempbanredirect - Turn TempBan redirection On or Off
!setbanredirect - Set Ban redirection On or Off
!setredirectfull - Set Hub full redirection On or Off
!setredirectall - Set all new connections redirection On or Off
!redirect - Set redirect address (!redirect shows current address if set)
!unregredmessage - Set/change message for unregistered users redirection
!setmaxlogins - Set max logins
!setmaxusers <0-5000> - Set/change Max user user limit (0-5000)
!sethubname - Set/change hub's name
!setdescription - Set/change hub's description
!topic - Set/change hub's topic
!regaddress - Turn hub's auto registering On or Off
!setregaddress - Set/change hub's registering address
!getscripts - Shows all script available in hub
!stopscript - Stops selected script
!startscript - Starts selected script
!restartscripts - Restarts all scripts from hub
!restart - Restarts hub
!reloadtxt - Reloads all txt files (if enabled)
!repass - Changes your password
!regvip - Registers user with Vip profile
!regop - Registers user with Operator profile
!regmaster - Registers user with Master profile
!changeprofile - Changes selected users profile
!getpass - Shows selected users password
!delreg - Deletes user from registered list
!maxhubs - Set max hubs to profile 0=off
!minslots - Set min slots to profile 0=off
!maxslots - Set max slots to profile 0=off
!minshare - Set min share to profile 0=off
!maxshare - Set max share to profile 0=off
!antiadvert - Set antiadvertising on or off for selected profile
!rightclick - Turn Rightclick commands on or off for profile
!kick - Kick user from hub
!regreg >nick> - Registers user with Reg profile
!nameban - Nameban user from hub
!timeban : - Timeban user for selected time
!addnetwork - Add hub to networklist
!delnetwork - Delete hub from networklist
!rename - Change your nick
Leviathan 2.1 (http://personal.inet.fi/private/cenobyte/download/Leviathan_v2.1_final.rar)
Seams either no one uses this script or all are happy withit.. please post requests or bugs =)
Nice CYB :D
hi, cyber
your script looks very nice but my hub aint private and i just need one option from this script.
!regop
- Registers user with Operator profile
can u strip it for external script... that profile 4 can reg ops...
respects, nw
Great script m8 wel done
Greetzz TT
QuoteOriginally posted by Northwind
hi, cyber
your script looks very nice but my hub aint private and i just need one option from this script.
!regop - Registers user with Operator profile
can u strip it for external script... that profile 4 can reg ops...
respects, nw
Try this one
---------------------------------------
--// simple regop to Northwind by C??o?y??
---------------------------------------
tSettings = {
["BotName"] = frmHub:GetHubBotName(), --Crabs bot name from hub
}
CanDo = { -- Profiles that can add/remove safe addys 1/yes 0/no
[0] = 1, -- Master
[1] = 1, -- Operator
[4] = 1, -- Moderator
[5] = 1, -- Netfounder
}
tPrefixes = {}
tFunctions = {}
tCommands = {}
Main = function()
frmHub:RegBot(tSettings.BotName)
for a,b in pairs(frmHub:GetPrefixes()) do tPrefixes[b] = 1 end
end
OpConnected = function(user)
tFunctions.SendCommands(user)
end
tProfileName = function(nr)
local name = GetProfileName(nr) or "User" --// Get ProfileName
return name
end
tFunctions.GetCommands = function(user, data)
local s,e,prefix,cmd = string.find(data, "%b<>%s+(%p)(%S+)")
if cmd and tCommands[cmd] then
return tCommands[cmd](user, data)
end
end
tFunctions.SendCommands = function(user)
if user.bUserCommand then
if CanDo[user.iProfile] == 1 then
user:SendData("$UserCommand 0 3")
user:SendData("$UserCommand 1 3 "..tSettings.BotName.."\\Register user as Operator[offline]$<%[mynick]> !regop %[line:Nick] %[line:Password]||")
user:SendData("$UserCommand 1 3 "..tSettings.BotName.."\\Register user as Operator[online]$<%[mynick]> !regop %[nick] %[line:Password]||")
end
end
end
ChatArrival = function(user, data)
local data = string.sub(data, 1, (string.len(data)-1))
user.SendMessage = user.SendData return tFunctions.GetCommands(user, data)
end
ToArrival = function(user, data)
local data = string.sub(data, 1, (string.len(data)-1))
local s,e,to,from,msg = string.find(data,"%$To:%s+(%S+)%s+From:%s+(%S+)%s+%$%b<>%s+(.+)")
if to == tSettings.BotName then
user.SendMessage = user.SendPM return tFunctions.GetCommands(user, data)
end
end
tCommands["regop"] = function(user, data)
if CanDo[user.iProfile] == 1 then
local s,e,cmd,victim,passw = string.find(data, "%b<>%s+(%S+)%s+(%S+)%s+(%S+)")
if GetUserProfile(victim) == nil then
if victim then
SendToAll(tSettings.BotName,tProfileName(user.iProfile).." "..user.sName.." registered a new Operator, called: "..victim)
user:SendPM(tSettings.BotName,"\n\r\n\tUser succesfully registered!\r\tProfile: Operator\r\tNick: "..victim.."\r\tPassword: "..passw.."\r\tHub address: "..frmHub:GetHubAddress()..":"..frmHub:GetHubPort().."")
AddRegUser(victim, passw,1)
else
user:SendData(tSettings.BotName, "Right command is !regop !!!")
end
else
user:SendData(tSettings.BotName, "Dont even try it!!! We DONT have room for 2 same nicks here!!")
end
else
user:SendData(tSettings.BotName, "You silly mortal... you can't make me obey you... with that profile!!!")
end
return 1
end
QuoteOriginally posted by T?M??r?V?ll?R
Great script m8 wel done
Greetzz TT
thx for help and support m8 :P
Small bug in Leviathan_v.2.1.lua
Link updated with fixed version!!
Leviathan 2.1 (http://personal.inet.fi/private/cenobyte/download/Leviathan_v2.1_final.rar)
line checkSafe = function(msg)
for i = 1,table.getn(SafeAddressTable) do
if string.find(msg,SafeAddressTable[i][2],1,true) or string.find(msg,NetworkTable[i][3],1,true) or string.find(msg,"addsafe") or string.find(msg,"addnetwork") then
return 1
end
end
end
should be checkSafe = function(msg)
for i = 1,table.getn(SafeAddressTable) do
if string.find(msg,SafeAddressTable[i][2],1,true) or string.find(msg,NetworkTable[i][2],1,true) or string.find(msg,"addsafe") or string.find(msg,"addnetwork") then
return 1
end
end
end
Have been playing with ver 2.0 (couldnt find ver 2.1)? ..?
Have added 4 extra profiles and altered the right click
http://ptxscriptdb.psycho-chihuahua.net/download.php?view.192
hehhe i have tested 2.3b (given by ceno) but i dont think its gonna be public as Ceno now gonna do remakes to fit new lua standards...
Leviathan is surelu best bot for privates... heheh of course as its made in Finland
It's very strange to see 3.0 from Coder who has not the original.
Original developer has just released 2.5 for lua 5.1
Labyrinth Of Suffering
Leviathan Private Hub Script by C??o?y??
Started 15/8/2005
Thx for ?s???? for spelling corrections and beta testing =)
Thx mostly for Optimus and T?M??r?V?ll?R for help
Used parts that i have found from http://board.univ-angers.fr/main.php
Many thx to those who recognise ther code (cant remember what i took from where)
v1e
Added : missing !getpass <nick> command sry all my mistake
Added : Turn TempBan redirect on/off shows allso in hubconfig
Added : Turn Ban redirect on/off shows allso in hubconfig
Added : Turn Hub Full redirection on/off shows allso in hubconfig
Added : Turn All new connections redirect on/off shows allso in hubconfig
Added : Change message to unregistered redirect shows allso in hubconfig
Changed : Automatically sets Redirect address to tempban/ban/regonly from normal redirect field
Changed : Regonly on from ptokaX automatically and removed old script part
v2
Changed : Profile settings to smaller size
Added : Antiadvertise on/off for profiles
Added : Registry cleaner from plop with little mod
Script cleaning
v2.1
Tested with PtokaX DC Hub 0.3.3.21f
Changed : Whole setting thing now in separate tables in Leviathan/Tables folder (minshare.tbl,maxshare.tbl,minslots.tbl,maxslots.tbl,maxhubs.tbl,antiadvert.tbl)
Added : !showerror command.. shows last script errors (hopefully you will never see that file =))
Added : Adjustable table for all commands in Leviathan/Tables/scriptlevel.tbl
Changed : new Rightclick/help function
Added : antiadvert/rightclick to hub config table
Added : !antiadvert <profile> <on/off>
Added : !rightclick <profile> <on/off>
Added : !minshare <profile> <nr> <unit>/!maxshare <profile> <nr> <unit>/!minslots <profile> <nr>/!maxslots <profile> <nr>/!maxhubs <profile> <nr> commands to profiles
Added : !kick with profile protection (clientside allso)
Added : !nickban with profile protection (online/offline users)
Added : !timeban <nick> <hh>:<min> <reason> with profile protection (online users)
Added : Profile REG
Changed : Slot/hubs/share check function little
Changed : Whole Antiadvertising function (smaller/nicer :P) (all hub addys in networklist is protected automatically)
Added : !addsafe <address> to add allowed "advertising" address
Added : !delsafe <nr> to remove allowed "advertising" address
Added : !showsafe to show all allowed "advertising addresses
Added : !addnetwork <minshare> <hubname> <hubaddress> to add hub to networklist table
Added : !delnetwork <hubnumber> to remove hub from networklist table
Changed : !network command to read network hubs from table
Added : Timed memoryflush (hope it works)
Added : !rename <new_name> to change your nick (request by 3sixty)
-Script cleaning
v2.2
Tested with PtokaX DC Hub 0.3.3.21g
Added : Clients rightclicksupport (myinfo/userinfo)
Changed : Connection modes A/P/5 to Active/Passive/Socket 5 (myinfo/userinfo)
Added : Registrytable (Who is regged,by who,when) (myinfo/userinfo)log is removed when user gets delregged)
Added : Script adds all old users automatically to Registrytable as regger by(botname) and time(old user)
Added : Login counter (myinfo/userinfo) (log is removed when user gets delregged)
Added : Userinfotable (Logs users info when connected) (log is removed when user gets delregged)
Added : Online/Offline for userinfo
Fixed : MemoryFlush
Added : Timed HubAddy (option to choose on/off and set time) (added to rightclick/helplist/commands)--needs building
Added : Timed Topicchanger (option to choose on/off and set time) (added to rightclick/helplist/commands)--needs building
Changed : !rules part.. (reads scripted profilesettings and adds extra rules from txt file)
Code Cleaning
v.2.3
Tested with PtokaX DC Hub 0.3.3.21h
Removed : Timed Topicchanger (useless)
Changed : Userinfotable/LoginTable/RegTable (removes all info of unregistered user when logs off)
Added : Private on/off to settings (on = is private hub off = is public hub)
Added : Profile User
Added : Win32.Tibick detection
Added : !getbans,!getpermbans,!gettempbans,!clrpermbans,!clrtempbans,!gag,!ungag,!rangeban,!rangetempban,!rangeunban,!rangetempunban,!getrangebans
Added: !commandsettings (shows what command is allowed for what profile) (thx Optimus.. u rule)
Fixed : Antiadvertising (frmHub:GetHubAddress()/hubs addy now allowed to type) --bug =(
Fixed : !tempban
Fixed : !ipban
v.2.4beta
Tested with PtokaX DC Hub 0.3.4.0a
Added: !banner (thx TT)
Added: Random lines to hubaddy
Added: More triggers to antiadvertising
Added: Warn command (thx TT)
Added: When talk command is used owner gets info about that (thx TT)
Added: !away/!back (thx TT)
Added: !mass (thx TT)
Adedd: Notification if users client supports old UserIP v1 (request from Northwind)
Rebuild: Whole settings table
Rebuild: ProtectionTable (kick/ban/password)
Removed: Log stuffs (less mem usage)
Removed: Option to use as public hub(less txt)
Alot script cleaning
Fixed: Bug with antiadvertising (now safe to type hubs addy where script runs and safe/network addys) (thx TT)
Fixed: Profile Reg bug in tables (thx TT)
Fixed: !regreg bug with profile reg (thx TT)
v.2.4
Tested with PtokaX DC Hub 0.3.4.0a
Added: Login msg with on/off option for every profile (thx TT)
Changed: Hub advert msg to own file
--- Files updated: (Scripts/Leviathan.lua),(Leviathan/Settings.ini),(Leviathan/Txt/Hubadvert.txt)
Thx for the info? ?northwind? ?..? Couldnt find the later versions (after 2.0)? liked the script and had a play with it? ..? and the last post on the thread was from Nov.
I did not and would not take any of the credits out of someone elses work, as u can see
as said i like the script and it is perfect for a closed private hub..
I am very interested in obtaining later versions of this scipt.
Quote from: remaster-it on 14 March, 2006, 15:35:17
Thx for the info northwind .. Couldnt find the later versions (after 2.0) liked the script and had a play with it .. and the last post on the thread was from Nov.
I did not and would not take any of the credits out of someone elses work, as u can see
as said i like the script and it is perfect for a closed private hub..
I am very interested in obtaining later versions of this scipt.
Dont worry.. feel free to mod it to your needs.. .thats why not compilded.. im currently working v2.5 for PtokaX DC Hub 0.3.4.0c.. when finished i might post link here ;D
Currently done:
Tested with Ptokax DC Hub 0.3.4.0c
Rebuild version
Build sofar:
-- Rebuild: Min/Max share check for profiles Master/Operator/Vip/Reg/Unregged
-- Rebuild: Min/Max slot check for profiles Master/Operator/Vip/Reg/Unregged
-- Rebuild: Max Hub check for profiles Master/Operator/Vip/Reg/Unregged
-- Rebuild: Login message for profiles with on/off option
-- Rebuild: $UserIP notification message if enabled
-- Rebuild: Hubadvert
-- Rebuild: Help table
-- Rebuild: Rightclick table
-- Added: Login notification to profiles (on/off)
-- Added: Pinger notification (if registering enabled from ptokax and pinger not blocked)
-- Added: !addbad,!showbad,!delbad commands (bad addresses)
-- Changed: !showsafe->!showgood, !delsafe->!delgood, !addsafe->!addgood(good addresses)
-- Removed: Random borders
-- Rules list
-- AntiAdvertising (new tables)
Leviathan Private Hub Script v2.4 (0.3.4.0a+b) (http://shield2k.org/leviathan)
I was messin arround with the script and i get this error [10:36] Syntax Leviathan/Lua/functions.lua:22: attempt to index field `?' (a nil value)
--//Edit
Another one...[10:36] Syntax ...dministrator\Desktop\teste\scripts\Leviathan_2.4.lua:224: attempt to index field `?' (a nil value)
Quote from: Markitos on 15 March, 2006, 09:50:43
I was messin arround with the script and i get this error [10:36] Syntax Leviathan/Lua/functions.lua:22: attempt to index field `?' (a nil value)
--//Edit
Another one...[10:36] Syntax ...dministrator\Desktop\teste\scripts\Leviathan_2.4.lua:224: attempt to index field `?' (a nil value)
what profile logged in when you got that? unregistered perhaps?? and version 2.4 wont work with 0.3.4.0b or c version.. ::)
Sofar worked without any errors in my hub... (registered only) 8)
Quote from: Cy?e??o? on 15 March, 2006, 21:03:28
Quote from: Markitos on 15 March, 2006, 09:50:43
I was messin arround with the script and i get this error [10:36] Syntax Leviathan/Lua/functions.lua:22: attempt to index field `?' (a nil value)
--//Edit
Another one...[10:36] Syntax ...dministrator\Desktop\teste\scripts\Leviathan_2.4.lua:224: attempt to index field `?' (a nil value)
what profile logged in when you got that? unregistered perhaps?? and version 2.4 wont work with 0.3.4.0b or c version.. ::)
Sofar worked without any errors in my hub... (registered only) 8)
master....
Many Thx Cy?e??o? have d/l 2.4 .. not 2 well at mo ... will have a play with it l8r
like the table formats havnt run it yet
Have now hasd a play and modified and tested the 2.4 script ..? for 8 profiles ..? ? http://uk1.no-ip.biz/files/Leviathan_2.4-8.rar