READ THE RULES
0 Members and 1 Guest are viewing this topic.
Leviathan v4.1 Tested on 0.4.1.1 (Windows)Fixed: -- changed few saveTableToFile --> SaveToFile (reported by [NL]ben) -- Bug with raport command (raported by [NL]ben) -- Bug with account protection -- Bug in banip (thx Smurffiina) -- bug when starting/stopping timed messages when theres no messages -- bug when starting/stopping topic changer when theres no messages -- bug with rename command -- bug when warning/kicking offline user -- Typo @line when script makers logged in (thx Ferdi) -- bug with repass command (reported by Mikkis) -- bug with login/logout messages (DC++ 0.7xx clients) (reported by baba.runner) -- bug with ip advertising (Thx Goku) -- bug with temp ban @ advertising -- file path bug with 0.4.1 series PX -- slots command bug (hopefully) * copyed mostly from SlotBot 2.1 LUA 5.1x [Strict] [API 2] by Mutor *Added: -- missing 'change' to !redirect commands rightclick -- Offline message senders Profile saved to table (request by Stormbringer) -- Country Code and name to myinfo/userinfo/loginmessage (0.4.1.0RC1 -->) -- Adjustable name for main clean command (!setcleanname <new name>) -- Chosable rightclick/help language for registered users *** inbuild *** -- eng -- Offline time to !showusers (if user is offline) -- characters « » to forbidden in nicks/botname -- Chatranks (based to HubRanking Bot made by Optimus) -- table to settings.ini for adjusting how many empty lines will cleanmain send (["chatcleanlines"] = 20000) -- User Description check for possible advertisers (reads from advertising permissions for profile) -- Kick & Warn logs (ban loggin inbuild in PtokaX) (requested by BD) -- Userinfo file backup (LV_DataBase/tbl/UserInfo.tbl[BackUp]) -- Counters file backup (LV_DataBase/tbl/counters.tbl[BackUp]) -- Scan if new users registered from px gui or delregistered from px gui -- Option to disable releasepart manually (CmdHelpSettings.tbl) (request by evilution1 & Tommy666) *** ["disable"] = false, or ["disable"] = true, *** addrel,delrel,showrel -- Option to choose can user selfreg own nick or does request go to operators (manually at CmdHelpSettings.tbl) *** ["opchat"] = 0, or ["opchat"] = 1, 'under command regme'Changed: -- Rightclick commands structure so its easyer to choose how they show -- Minshare/Maxshare/Minslots/Maxslots/Maxslots redirect message (thx Vipertje)-----------------------LV 4.1 FINAL----------------------- [FIXED] Commands.lua:2183: attempt to concatenate local 'passw' (a nil value)
When the script is started ptokax hangs please can you have a look into it.
I wish it had been true.But it's the same with a fresh ptokax with 0 reglist.
[15:14:21] *** Connecting to 127.0.0.1:411...[15:14:21] *** Connected[15:14:21] <Leviathan_4.1> This hub is running PtokaX DC Hub 0.4.1.1 (UpTime: 0 days, 0 hours, 4 minutes / Users: 0)[15:14:23] <Leviathan_4.1> Welcome to PtokaX[15:14:23] <Leviathan_4.1> ------------------------------------------------------------------------------------------------------------------- Hub Information: ------------------------- Welcome: CrazyGuy, It's nice of you to stop by... Hub Name: <Enter hub name here> Hub Address: 127.0.0.1:1209;411 Hub Topic: n/a HubOwner: Cêñoßy†ê Uptime: 4 minutes Peak Users: 1 Hub Share: 0.00 B There Are Now: 0 of 250 max users online. ------------------------------------------------------------------------------------------------------------------- Your Information: ------------------------- Username: CrazyGuy User Profile: User IP Address: 127.0.0.1 Country: [??] Unknown DNS: localhost Share Size: 2.25 GB (2414107314b) DC Tag: <++ V:0.401,M:A,H:1/1/12,S:3> Description: testdescr<R2++ [029L]> Email: n/a Connection: Cable(10M+/1M) ------------------------------------------------------------------------------------------------------------------- Hub Powered by PtokaX 0.4.1.1 Lua 5.1 Running Leviathan v 4.1[FINAL] from Cêñoßy†ê & TïMê†råVêlléR[15:14:23] <Leviathan_4.1> *** 16 'ENG' Usercommands enabled for your Profile 'User' and sent to your client. Type !help to get list of main script commands!
user:Disconnect()
Core.Disconnect(user)
[21:35:58] <Leviathan_4.1> Script error found, please raport this to http://luaboard.sytes.net Post raport to Lua 5.1.1 All in 1 scripts Leviathan section with this message: Leviathan v4.1[FINAL] PtokaX 0.4.1.1 Lua 5.1 LV_DataBase/lua/Functions.lua:353: attempt to index field '?' (a nil value)
local minslots,maxslots,maxhubs = Prf[user.iProfile].Slot.Min,Prf[user.iProfile].Slot.Max,Prf[user.iProfile].MaxHubs
SaveToFile(ProfileSettingsFile,Prf,"Prf")
ProfileSettingsFile = Path.."LV_DataBase/Profile_Settings.ini"
Leviathan patch update to version 4.1.1By CrazyGuy2009/02/03Fixed: Description string of bot (wasn't shown because of too long)Expected fix: D2AF ('if' always produced false because of API error)Fixed: About 10 more API errors (see LV_DataBase\Changelog.txt)Updated version to 4.1.1
[19:07:52] <[Admin]Cain> !nickban xxxxxx[19:07:53] <#Raziel> *** Wrong command !! User is Online please use !nameban[19:07:59] <[Admin]Cain> !nameban xxxxxx[19:07:59] <#Raziel> *** Wrong command !! User is Offline please use !nickban
I just noticed something weird, when I was trying to ban offline user. (or offline users nick)Code: [Select][19:07:52] <[Admin]Cain> !nickban xxxxxx[19:07:53] <#Raziel> *** Wrong command !! User is Online please use !nameban[19:07:59] <[Admin]Cain> !nameban xxxxxx[19:07:59] <#Raziel> *** Wrong command !! User is Offline please use !nickbanThe user I was trying to ban was offline the whole time. I also tried that with nick that hasn't been ever used in my hub with same result.And is there something broken with !getbans command or is just me?
MasterOPVIPReg
TheAlmightyHubOwnerAdminFriends
Prf = { [0] = { ["Login_Message"] = "no", ["Send_RightClick"] = "yes", ["Advertising_Action"] = "inform", ["Slot"] = { ["Min"] = 0, ["Max"] = 0, }, ["Notify_Login"] = "yes", ["Enable_Search_Check"] = "no", ["Share"] = { ["Max"] = { ["Share"] = 15, ["Unit"] = "TB", }, ["Min"] = { ["Share"] = 0, ["Unit"] = "GB", }, }, ["Allow_Cleaner"] = "yes", ["MaxLimiter"] = 0, ["Block_Download_Search"] = "no", ["MaxHubs"] = 0, ["Clone_Block"] = "no", ["Mode"] = { ["A"] = 1, ["P"] = 1, ["S"] = 1, }, ["Chat_Block"] = "no", ["Allow_USERIP_v1"] = "yes", },}
I've made an update patch to permanently fix the error reported by [NL]ben.While doing so, I've found a few more similar errors and corrected those straight away Notes:This is only a patch, install Leviathan 4.1[FINAL] attached to Cêñoßy†ê post firstUnpack the patch in your scripts folder, overwriting the existing filesThis patch does not alter any of the configuration files, so your own settings will still exist after installationEDIT :Patch updated and re-attached at 09:30:56 2009/02/03 with few more fixes to D2AFF functionality (thnx Madman)
Yes, I get the same things. Will look at it tomorrow.Has !getbans ever worked in this version ?
function Command.nickban(user,data) -- offline user local _,_,Name,rsn = data:find("%b<>%s+%S+%s+(%S+)%s*(.*)") if (rsn == nil or rsn == "") then rsn = "No reason given!" end if not Core.GetUser(Name) then SendMessage2("*** Nick "..Name.." got Banned by "..Cvrt.P2[user.iProfile].." "..user.sNick.." Because: "..rsn,SendWhere) BanMan.BanNick(Name,rsn,Cvrt.P2[user.iProfile].." "..user.sNick) else SendMessage(user.sNick,SetMan.GetString(21),"*** Wrong command !! User is Online please use !nameban") end return trueend
function Command.nameban(user,data) -- online user local _,_,Name,rsn = data:find("%b<>%s+%S+%s+(%S+)%s*(.*)") if (rsn == nil or rsn == "") then rsn = "No reason given!" end if Core.GetUser(Name) then local victim = Core.GetUser(Name) if Name == user.sNick then return SendMessage(user.sNick,SetMan.GetString(21),"*** Pff.. bored perhaps??"),true end if not Pro[user.iProfile][victim.iProfile] then SendMessage(user.sNick,SetMan.GetString(21),"*** You silly mortal... you cant nameban ["..Cvrt.P2[victim.iProfile].."] with that profile!!!") else SendMessage2("*** "..Name.." from "..victim.sIP.." got NameBanned by "..Cvrt.P2[user.iProfile].." "..user.sNick.." Because: "..rsn,SendWhere) Core.SendPmToNick(victim.sNick,SetMan.GetString(21),Cvrt.P2[user.iProfile].." "..user.sNick.." just NameBanned your silly ass Because: "..rsn) BanMan.BanNick(victim.sNick,rsn,Cvrt.P2[user.iProfile].." "..user.sNick) Core.Disconnect(Name) end else SendMessage(user.sNick,SetMan.GetString(21),"*** Wrong command !! User is Offline please use !nickban") end return true en
function GetCommands(user,data) local _,_,prefix,cmd = data:find("%b<>%s+(%p)(%S+)") if cmd and Command[cmd] then if Cfg["Debug_Mode"] == "yes" then Core.SendToProfile(0,"<•Debug•LV•"..Version.."> "..data) end if Command_Permission[cmd] then -- check if command in permission table if not Command_Permission[cmd].disable == true then if user.iProfile == 0 or Command_Permission[cmd][user.iProfile] then -- check if user can use command or is owner return Command[cmd](user,data) -- do the command else -- if user werent allowed to use command Forbidden(user) -- send message return true end end else -- if command werent in table return OnError("Missing command "..cmd.." at "..Path.."LV_DataBase/tbl/CmdHelpSettings.tbl"),true -- send error message end endend
function Command.chatter(user,data) local _,_,func = data:find("%b<>%s+%S+%s+(%S+)") if func then if func:lower() == "on" or func:lower() == "off" then if func:lower() == "on" and next(Tables.Messages) then if Cfg.Chatter.On_Off == "on" then SendMessage(user.sNick,Cfg.Bot_Name,"ERROR!! Timed Messages already running") else Core.SendToOps("<"..Cfg.Bot_Name.."> *** "..Cvrt.P2[user.iProfile].." "..user.sNick.." changed Timed Messages to: "..func:upper()) Cfg.Chatter.On_Off = func:lower() SaveToFile(ScriptSettingsFile,Cfg,"Cfg") Tmr.Chatter = TmrMan.AddTimer(Cfg.Chatter.Time*Cvrt.C2[Cfg.Chatter.What],"Chatter") end elseif func:lower() == "off" then if Cfg.Chatter.On_Off == "off" then SendMessage(user.sNick,Cfg.Bot_Name,"ERROR!! Timed Messages already stopped") else Core.SendToOps("<"..Cfg.Bot_Name.."> *** "..Cvrt.P2[user.iProfile].." "..user.sNick.." changed Timed Messages to: "..func:upper()) Cfg.Chatter.On_Off = func:lower() SaveToFile(ScriptSettingsFile,Cfg,"Cfg") TmrMan.RemoveTimer(Tmr.Chatter) end else SendMessage(user.sNick,Cfg.Bot_Name,"*** No messages in table, Starting ignored !!") end end else SendMessage(user.sNick,Cfg.Bot_Name,wrong.."chatter <on/off>") end return trueend
another problem timed messages won't stop, gives error about no messages in file..in file Commands.lua, lines 2373 untill 2397, "function chatter" should be changed to avoid problems with start and stopping the chatterCode: [Select]function Command.chatter(user,data) local _,_,func = data:find("%b<>%s+%S+%s+(%S+)") if func then if func:lower() == "on" or func:lower() == "off" then if func:lower() == "on" and next(Tables.Messages) then if Cfg.Chatter.On_Off == "on" then SendMessage(user.sNick,Cfg.Bot_Name,"ERROR!! Timed Messages already running") else Core.SendToOps("<"..Cfg.Bot_Name.."> *** "..Cvrt.P2[user.iProfile].." "..user.sNick.." changed Timed Messages to: "..func:upper()) Cfg.Chatter.On_Off = func:lower() SaveToFile(ScriptSettingsFile,Cfg,"Cfg") Tmr.Chatter = TmrMan.AddTimer(Cfg.Chatter.Time*Cvrt.C2[Cfg.Chatter.What],"Chatter") end elseif func:lower() == "off" then if Cfg.Chatter.On_Off == "off" then SendMessage(user.sNick,Cfg.Bot_Name,"ERROR!! Timed Messages already stopped") else Core.SendToOps("<"..Cfg.Bot_Name.."> *** "..Cvrt.P2[user.iProfile].." "..user.sNick.." changed Timed Messages to: "..func:upper()) Cfg.Chatter.On_Off = func:lower() SaveToFile(ScriptSettingsFile,Cfg,"Cfg") TmrMan.RemoveTimer(Tmr.Chatter) end else SendMessage(user.sNick,Cfg.Bot_Name,"*** No messages in table, Starting ignored !!") end end else SendMessage(user.sNick,Cfg.Bot_Name,wrong.."chatter <on/off>") end return trueend
LV_4.1.lua:33: attempt to index global 'Core' (a nil value)