PtokaX forum

Archive => Archived 5.0 boards => Request for scripts => Topic started by: Therion on 15 May, 2005, 10:26:17

Title: Chilla's Lis script
Post by: Therion on 15 May, 2005, 10:26:17
can anybody convert it to work with lua5 it's the best ip ranger script and it has a lot of good stuff

very thankful for help

thx in advance :P
Title:
Post by: Dessamator on 15 May, 2005, 11:32:46
hmm interesting, everybody keeps asking to convert each of chilla's script maybe we should convert them all, nightlitch's too(just a thought)

anyways,
can u show us which version u want us to convert?
which one of these:
QuoteL.I.S.-V.0.51.rar
L.I.S.-V.0.5141.rar
L.I.S.-V.0.5141F.rar
L.I.S.-V0.513.rar
L.I.S.rar
LIS_v.0.3.rar

ps the script is quite big, u should try using nl lua4 to 5 converter first,

Good luck !
Title: hehe
Post by: Therion on 15 May, 2005, 20:30:31
i'm a total noob on scripting and converting so if anybody could help me out i should be very pleased



thx in advance ////Therion
Title:
Post by: Dessamator on 15 May, 2005, 20:52:11
ok then we'll help, first of all use search the forum for info on how to convert from lua4 to lua5 , ull probably find nightlitch's gui converter, use that with the "L.I.S.-V.0.5141F.lua" file and l8r show us the syntax errors, we'll help u from there !!
Title: not working out for me =(
Post by: Therion on 16 May, 2005, 13:06:18
i got this error Syntax L.I.S.-V.0.5141.lua5.lua:788: unexpected symbol near `.'


and i have ptokax 0.3.3.0 B 16.09

im really pleased for help with this baby
Title:
Post by: Dessamator on 16 May, 2005, 13:46:09
QuoteOriginally posted by Therion
i got this error Syntax L.I.S.-V.0.5141.lua5.lua:788: unexpected symbol near `.'


and i have ptokax 0.3.3.0 B 16.09

im really pleased for help with this baby

show us the line, and the function with that error !!
Title: hehe
Post by: Therion on 17 May, 2005, 08:54:36
that one of my problem how do i find that string ?

as a said before im noob on ptokax script ;)
Title:
Post by: Dessamator on 17 May, 2005, 10:11:26
ok then look at this info :  

L.I.S.-V.0.5141.lua5.lua:788: unexpected symbol near `.'
the syntax is : scriptname:error line : error description

so from that info u know that 788 is the line where the error is  , or close to that !, :),
Title: oki
Post by: Therion on 18 May, 2005, 15:23:34
it look like it in the very end of the script because the line 788
its the last symbol on the script

L.I.S.-V.0.5141.lua5.lua:788: unexpected symbol near `.'


   },      
}

could not any of you nice guys load the whole script and test it after it's been converted with the lua converter i dont really  know how to do this stuff =)


thx in advance Therion
Title:
Post by: 6Marilyn6Manson6 on 18 May, 2005, 15:37:38
QuoteOriginally posted by Therion
it look like it in the very end of the script because the line 788
its the last symbol on the script

L.I.S.-V.0.5141.lua5.lua:788: unexpected symbol near `.'


   },      
}

could not any of you nice guys load the whole script and test it after it's been converted with the lua converter i dont really  know how to do this stuff =)


thx in advance Therion

Therion post script with [code] please :)
Title:
Post by: Dessamator on 18 May, 2005, 16:14:21
QuoteOriginally posted by 6Marilyn6Manson6
QuoteOriginally posted by Therion
it look like it in the very end of the script because the line 788
its the last symbol on the script

L.I.S.-V.0.5141.lua5.lua:788: unexpected symbol near `.'


   },      
}

could not any of you nice guys load the whole script and test it after it's been converted with the lua converter i dont really  know how to do this stuff =)


thx in advance Therion

Therion post script with [code] please :)

he cant, the script is tooooooo big, i guess no newbie can convert it,if somebody else doesnt convert it, then ill convert it when i have the patience, because  theres quite a lot of filehandling and errors there !! :)
Title:
Post by: 6Marilyn6Manson6 on 18 May, 2005, 16:41:55
Quotehe cant, the script is tooooooo big, i guess no newbie can convert it,if somebody else doesnt convert it, then ill convert it when i have the patience, because  theres quite a lot of filehandling and errors there !! :)


mmm mm without script... we can't help he :(
Title: hehe
Post by: Therion on 18 May, 2005, 16:55:48
im ready to give up

last stupid question how do i post the script with code ?
Title:
Post by: Psycho_Chihuahua on 18 May, 2005, 16:57:20
Well i found the script and let it run through NL's Lua Converter.
Still giving out Errors ^^

Here it is (http://psycho-chihuahua.net/L.I.S.-V.0.5141.lua5.lua.rar)
Title: ok iv started on this script so lets see if we can convert this puppy
Post by: kbeh273300 on 21 May, 2005, 01:56:23
ok here is the code for the first error.
-------------------------------------------------------------------------------------------------------------------------------------------
--// *** OC SEND INTRO ***
-------------------------------------------------------------------------------------------------------------------------------------------
function doOCSendIntro(curUser)
if NicksLogQueue[curUser.sName] then
local curmath.min = tonumber(os.date("%M"))
if curmath.min >= NicksLogQueue[curUser.sName] then
doSendOC((curmath.min - NicksLogQueue[curUser.sName]),curUser)
else
doSendOC((curmath.min - NicksLogQueue[curUser.sName] + 60),curUser)
end
elseif ULoggs[string.lower(curUser.sName)] then
local tmp = ULoggs[string.lower(curUser.sName)].InActive[1]*24*60 - ULoggs[string.lower(curUser.sName)].InActive[2] + tonumber(os.date("%H"))*60 + tonumber(os.date("%M"))
doSendOC(tmp,curUser)
end
end


now line 788 is...
local curmath.min = tonumber(os.date("%M"))

any ideas ?
Title: error number one fixed :)
Post by: kbeh273300 on 21 May, 2005, 03:57:16
ok thanks to Madman the first error is now fixed it was...
local curmin = tonumber(os.date("%M"))

now on to error number two :)



[20:49] Syntax ...nd Settings\kirk\Desktop\New Folder (7)\scripts\L.I.S.-V.0.5141.lua5.lua:1718: too many syntax levels near `" ------------------------------------------------------------------------------------------------

"'



[tostring(string.lower(cmd32))] = {
help = function() return(" - L.I.S.-"..curVersion.." - "..ConfHelpText.."\r\n\r\n"..
"\t"..LPrefix..cmd13.." [op]/[nicks]/[ipcheck]/[notlogged]/[all]    - "..HelpReportText.." : "..LISINI2CONF.ReportTo..", Status : "..LISINI2CONF.ReportNotLogged.."\r\n"..
"\t"..LPrefix..cmd26.." [nick]    - "..HelpNickToSendText.." Nicks : "..GetNicks(LISINI2CONF.STNick).."\r\n"..
"\t------------------------------------------------------------------------------------------------\r\n"..
"\t"..LPrefix..cmd14.." [on]/[off]    - "..HelpBlockNickText.." Status : "..LISINI2CONF.BlockNick.."\r\n"..
"\t"..LPrefix..cmd33.." [nick]    - "..HelpBlockedNicksText.." "..BlockedNicksText1.." : "..GetNicks(LISINI2CONF.BlockedNicks).."\r\n"..
"\t------------------------------------------------------------------------------------------------\r\n"..
"\t"..LPrefix..cmd15.." [reg]/[unreg]    - "..HelpRegText.." Status : "..LISINI2CONF.RegBot.."\r\n"..
"\t"..LPrefix..cmd23.." [op-reg] [days]/[reg] [days]/[logs] [days]/[off]    - "..HelpAutoDelText.." Status : "..LISINI2CONF.AutoDelAccount..", "..DaysText.." : "..LISINI2CONF.Max7.."\r\n"..
"\t"..LPrefix..cmd25.." [on]/[off]    - "..HelpISPCheckText.." Status : "..LISINI2CONF.ISPNickCheck.."\r\n"..
"\t"..LPrefix..cmd28.." [on]/[off]    - "..HelpRegCheckText.." Status : "..LISINI2CONF.RegRule.."\r\n"..
"\t"..LPrefix..cmd38.." [on]/[off]    - "..HelpBadIPSearchText.."  Status : "..LISINI2CONF.CheckBadIP.."\r\n"..
"\t"..LPrefix..cmd39.." [on]/[off]    - "..HelpShowCpuTime.."  Status : "..LISINI2CONF.ShowCpuTime.."\r\n"..
"\t------------------------------------------------------------------------------------------------\r\n"..
"\t"..LPrefix..cmd34.." [on]/[off]    - "..HelpCorrectActiveIP.."  Status : "..LISINI2CONF.CheckActiveIP.."\r\n"..
"\t"..LPrefix..cmd37.." [nick]    - "..HelpNoIPCheck.." "..GetNicksNonAs(LISINI2CONF.NoIPCheck).."\r\n"..
"\t------------------------------------------------------------------------------------------------\r\n"..
"\t"..LPrefix..cmd35.." [on]/[off]    - "..HelpOCIntro.."  Status : "..LISINI2CONF.OCSendIntro.."\r\n"..
"\t"..LPrefix..cmd36.." [user]/[all]    - "..HelpOCIntroTo.."  Status : "..LISINI2CONF.OCSendIntroTo.."\r\n"..
"\t------------------------------------------------------------------------------------------------\r\n"..
"\t"..LPrefix..cmd22.." [onlyallow]/[notdeny]/[all]    - "..HelpAllowIPText.." : "..LISINI2CONF.AllowIP.."\r\n"..
"\t"..LPrefix..cmd3.." [IP-Range] [RangeName]    - "..HelpAddDenyText.."\r\n"..
"\t"..LPrefix..cmd4.." [IP-Range] [RangeName]    - "..HelpAddAllowText.."\r\n"..
"\t"..LPrefix..cmd5.." [RangeNr.]/[IP-Range]/[RangeName]    - "..HelpDelDenyText.."\r\n"..
"\t"..LPrefix..cmd6.." [RangeNr.]/[IP-Range]/[RangeName]    - "..HelpDelAllowText.."\r\n"..
"\t"..LPrefix..cmd7.." [Nr.]   - "..HelpListDeny.."\r\n"..
"\t"..LPrefix..cmd8.." [Nr.]   - "..HelpListAllow.."\r\n"..
"\t------------------------------------------------------------------------------------------------\r\n"..
"\t"..LPrefix..cmd16.." [nick]/[IP-Range]    - "..HelpWatchText.." "..WatchText3.." : "..GetNicks(LISINI2CONF.WUsers).."\r\n"..
"\t------------------------------------------------------------------------------------------------\r\n"..
"\t"..LPrefix..cmd30.." [on]/[off]    - "..HelpCMD30Text.."  Status : "..LISINI2CONF.OnlyMasters.."\r\n"..
"\t------------------------------------------------------------------------------------------------\r\n"..
"\t"..LPrefix..cmd32.."    - "..HelpHelpText.."\r\n")
end,
},


line 1718 is...
"\t------------------------------------------------------------------------------------------------\r\n"..

any ideas ? :)
Title:
Post by: Madman on 21 May, 2005, 04:44:50
This removes the the error...

"\t"..LPrefix..cmd16.." [nick]/[IP-Range]    - "..HelpWatchText.." "..WatchText3.." : "..GetNicks(LISINI2CONF.WUsers).."\r\n"..
"\t------------------------------------------------------------------------------------------------\r\n"..
"\t"..LPrefix..cmd30.." [on]/[off]    - "..HelpCMD30Text.."  Status : "..
-- LISINI2CONF.OnlyMasters.."\r\n"..
"\t------------------------------------------------------------------------------------------------\r\n"..
-- "\t"..LPrefix..cmd32..
-- "    - "..HelpHelpText..
"\r\n")
So.. some where in
LISINI2CONF.OnlyMasters
LPrefix..cmd32
HelpHelpText

is the error...is my guess... now i'm of to bed...
Title:
Post by: TTB on 21 May, 2005, 23:27:40
Holy *peep*, never seen this IPranger before. Damn, what a huge and kick ass script!
Title:
Post by: Dessamator on 21 May, 2005, 23:47:45
QuoteOriginally posted by TTB
Holy *peep*, never seen this IPranger before. Damn, what a huge and kick ass script!

my thought exactly," i wonder who will  tame this huuge beast and bring it to its knees"
 :D
Title:
Post by: TTB on 21 May, 2005, 23:49:49
Ghehe... NL is making a new one... I wonder if he can beat this one...  8)
Title:
Post by: Dessamator on 22 May, 2005, 00:03:59
damn, that will be problematic, when we have to convert it to lua 6, :)
Title:
Post by: TTB on 22 May, 2005, 00:09:51
ROFL well, in a lua hub they are trying to convert it atm. I think they can do it...
Title:
Post by: Dessamator on 22 May, 2005, 10:06:56
yah i saw it hehe, they are trying, i was helping a bit too,  :)
Title:
Post by: jiten on 22 May, 2005, 10:28:54
QuoteOriginally posted by TTB
ROFL well, in a lua hub they are trying to convert it atm. I think they can do it...
It's going to be a hard task with a huge script like this :D
Title: yepp it looks big
Post by: Therion on 22 May, 2005, 15:08:40
but it is the best ip ranger many useful options in it
like this one you can see when a user who not belongs in the hub is trying to connect,

for example [***]***, IP : **.***.***.** : Wasn't in the Allow Ranges, Disconnecting...


very nice function

so thats why im bothering you smart guy's to convert it

 :P


thanks again ///Therion
Title: yo yo yo
Post by: kbeh273300 on 23 May, 2005, 03:21:29
hi all just wanted to say yes its gonna be a real bear , we fixed some small stuff now we are on the harder stuff so it will probly take awhile since im new to scripting myself , but i do have some of ptokax/lua's best people around me :) and of corse this board witch is also and endless suply of help :)
Title:
Post by: Therion on 23 May, 2005, 12:52:07
keep up the good work

one question

why does Chilla not convert the script ?
Title:
Post by: Dessamator on 23 May, 2005, 13:26:08
QuoteOriginally posted by Therion
keep up the good work

one question

why does Chilla not convert the script ?
because, he either doesnt have the time or doesnt have the patience, and because he's not around these days !
Title: hello again my friends ;)
Post by: Therion on 30 June, 2005, 09:17:07
i did little bit of searching in this forum secure lite looks like a newer ver of lis bot is it easier to convert that script o lua 5 ?
im still in use of the ipranger ;)

thx in advance therion