PtokaX forum

PtokaX => Bugs => Topic started by: Thor on 02 April, 2006, 22:53:52

Title: Maybe a LUA bug
Post by: Thor on 02 April, 2006, 22:53:52
I use 0.3.4.0 and our hub is on server, so i made an ALL-IN-ONE setting script, which handle all frmHub and deFlood object. When i made, i think i found two bug. The first is: the banmesssage addmessage cant set up by script... it says everything ok, but it didn't do anything ::) And the second is in the deFlood: the Scripting-Interface.txt says: settings is the following eg.: SetChat(action, count, time) But when i did the script, and i tested, i found a little changing, because the correct syntax is: SetChat(time,action, count). And a LUA request: the autoregister to the hublist can set by script, but the value doesn't ask from the hub (eg: frmHub:SetAutoRegister(0/1)    if possible). Just because my script get all settings from the hub, and it would be good, that it display it :) Thanks
Title: Re: Maybe a LUA bug
Post by: Thor on 03 April, 2006, 19:56:27
Sorry, it was my mistake, i thought to frmHub:GetAutoRegister() ... i posted the script: http://forum.ptokax.org/index.php?topic=5904.0 Please somebody see it, and correct the banmessage-addmessage setting, thanks :)
Title: Re: Maybe a LUA bug
Post by: PPK on 04 April, 2006, 00:10:39
Fixed SetBanMsgAddMsg, added GetAutoRegister and no bug found in SetChat  ::)
Title: Re: Maybe a LUA bug
Post by: Thor on 04 April, 2006, 17:20:55
It seems i cant speak :D So. The setting is ok, but the getting-action wrong...
Setting: action,counter,time
Getting: time, action, count

I get the settings by this: (copied from the settings.lua)

fMainchat = ""
for i,v in deFlood:GetChat() do
fMainchat = fMainchat..v.."\t"
end

And fMainChat return with: time, action, count.
Btw I tried this script with PtokaX 0.3.3.4d0 and many deFlood value got nil, i can't start the script...? ??? What can be the problem? The ReadMe.txt says it use LUA 5.02
Title: Re: Maybe a LUA bug
Post by: Thor on 05 April, 2006, 06:36:26
I upload it to the script database: http://ptxscriptdb.psycho-chihuahua.net/download.php?list.34 Just it is very big.
Title: Re: Maybe a LUA bug
Post by: Psycho_Chihuahua on 05 April, 2006, 11:23:38
Hungarista - it seems the Settings.lua File you uploaded to the scriptdb iis not there, could you send it to me as PN so that i can fix it please?

Thnx
Title: Re: Maybe a LUA bug
Post by: Thor on 05 April, 2006, 16:32:38
http://ptxscriptdb.psycho-chihuahua.net/download.php?view.229 I download it, so it works great. Please somebody answer me, why it don't works under PtokaX 0.3.4.0d0 (: thanks
Title: Re: Maybe a LUA bug
Post by: 6Marilyn6Manson6 on 05 April, 2006, 17:48:36
Quote from: Hungarista on 05 April, 2006, 16:32:38
http://ptxscriptdb.psycho-chihuahua.net/download.php?view.229 I download it, so it works great. Please somebody answer me, why it don't works under PtokaX 0.3.4.0d0 (: thanks

It is in hubngarian :S. Translate it in english please ;)
Title: Re: Maybe a LUA bug
Post by: bastya_elvtars on 06 April, 2006, 18:19:31
Quote from: 6Marilyn6Manson6 on 05 April, 2006, 17:48:36

It is in hubngarian :S. Translate it in english please ;)

That's why it's under Localized section in case you didn't notice.
Title: Re: Maybe a LUA bug
Post by: bastya_elvtars on 06 April, 2006, 20:44:12
Quote from: Mutor on 06 April, 2006, 20:20:30
Whats hubngarian?  :P

Hungarian hub script? :P
Title: Re: Maybe a LUA bug
Post by: Herodes on 07 April, 2006, 08:07:19
Quote from: bastya_elvtars on 06 April, 2006, 20:44:12
Quote from: Mutor on 06 April, 2006, 20:20:30
Whats hubngarian?  :P

Hungarian hub script? :P
Loool :D
Title: Re: Maybe a LUA bug
Post by: 6Marilyn6Manson6 on 07 April, 2006, 11:15:21
Hungarian is script made of Hungarista :D. Translate it in english :P
Title: Re: Maybe a LUA bug
Post by: Thor on 07 April, 2006, 12:49:01
I do it, but it is very large, and the helpfile also, so it take long time to do. But it is in progress...
Title: Re: Maybe a LUA bug
Post by: 6Marilyn6Manson6 on 07 April, 2006, 13:06:57
Quote from: Hungarista on 07 April, 2006, 12:49:01
I do it, but it is very large, and the helpfile also, so it take long time to do. But it is in progress...

Thanks, when finish english version.. please post it :D