I am requesting a new part for the forum; PtokaX Feature Requests..
hmm, good idea
I would almost agree! But.....
do we not already have that?
It would be very surprising to me if the 'Requested Scripts' were not read and filtered on 'good ideas'.
Just an opinion. :)
Would it be possible for PtokaX to send a message to op chat with the details of users that get banned for 3 x bad password so that someone can deal with the problem?
Hope this is the right place for this if not please ignore the above and pretend it wasn't here/remove post (delete as necessary) :]
QuoteOriginally posted by Bertee
Would it be possible for PtokaX to send a message to op chat with the details of users that get banned for 3 x bad password so that someone can deal with the problem?
Yes, is possible ;)
also i've seen it in yhub not sure about ynhub but you can invite people into the opchat. could dat be implented in.
oh and wouldn't it be easier if vipchat was implanted in the software. as there will be no script needed for it, then less resources would be used and less cpu therefore giving better perfermance of the ptokax client. lol
RaZ
p.s. i know there is a script for inviting users to opchat, but i reackon it would save more cpu if it was implanted in.
QuoteOriginally posted by raz
also i've seen it in yhub not sure about ynhub but you can invite people into the opchat. could dat be implented in.
Yes is in my todo, already requeted by someone other :]
QuoteOriginally posted by raz
oh and wouldn't it be easier if vipchat was implanted in the software.
If you want VIP chat please use script...
kool. lol if i get any other ideas. i'll let you know. k :D
RaZ
Could there be a inbuild search option or line counter in the script-editor part?
That sure would make lots of people happy!
Regards,
Troubadour
QuoteOriginally posted by Bertee
Would it be possible for PtokaX to send a message to op chat with the details of users that get banned for 3 x bad password so that someone can deal with the problem?
Hope this is the right place for this if not please ignore the above and pretend it wasn't here/remove post (delete as necessary) :]
-- 3X Bad Pass Cleaner By ??????Hawk??????
-- 03/04/2005
-- Op Notify added 05/04/2005
Bot = frmHub:GetOpChatName() --// Comment for Hub Op Chat
--Bot = "Scripted Ops Chat Name" --// Uncomment for Hub Op Chat
CleanTime = 12 --// Time In Hrs Default 12 hrs
function Main()
Counter = 0
cTime = 1000 * 60 * 1
SetTimer(cTime)
StartTimer()
end
function OnTimer()
if Counter == (CleanTime * 60) then
CleanBans(1)
Counter = 0
else
CleanBans(0)
Counter = Counter + 1
end
end
function CleanBans(data)
local t = GetBannedItemIp( "3x bad password")
local LoopStop = t
if t then
while t do
if data == 1 then
Unban(t)
else
SendPmToOps(Bot, "User:- "..t.." Has been Banned for 3 X bad passwords Please Check.")
if LoopStop == t then break end
end
t = GetBannedItemIp( "3x bad password")
end
end
end
nice... *copy* *paste* RUN :D
QuoteOriginally posted by Troubadour
Could there be a inbuild search option or line counter in the script-editor part?
That sure would make lots of people happy!
No way.. as i have expressed myself before on this,.. The Script Editor should be put in a coffin and the coffin should be given a proper burial ... it is a useless buch of lines and I can't imagine myself using some developed IDE in PtokaX for Lua... even for smaller scripts the use of a proper editor is a must. ( two windows make things less complicated in this case, although not in every other case .. )
Herodes,
Let's say we don't all agree to your opinion about this issue!
But what do you offer as a perfect replacement of the inbuild editor and how do you find bugs in a editor if you create a lua scripting file (does it contain a check syntax too?)
Do give me an editor that can do both things!
Regards,
Troubadour
QuoteOriginally posted by Troubadour
Herodes,
Let's say we don't all agree to your opinion about this issue!
But what do you offer as a perfect replacement of the inbuild editor and how do you find bugs in a editor if you create a lua scripting file (does it contain a check syntax too?)
Do give me an editor that can do both things!
Regards,
Troubadour
needless to say that I respect different opinions on this. But,... the error messages from scripts in ptokaX have nothing to do with the script editor itself,.. the only thing that they share is the same tab in Ptx..
Apart from the bugs that appear in runtime,.. EditPlus can integrate the lua console and find out the syntax bugs in a jif.. bastya elvatars has given some tips how to do it on this board.
Just to staighten things. i am against opening the scripts within the PtokaX window, because that confuses lots and lots of ppl,... and cause it will never be practical the sizing ofthe PtokaX window isn't even close to a practical editor ( I am aware that it can be resized.. but the rest of the tabs aren't designed for no other than the initial sizes ..)
Cheers for that Hawk but what i actually meant was when the user got banned for 3 bad passwords it sent the user name to opchat.
@Troubadour and others wanting a debugger: -click- (http://board.univ-angers.fr/thread.php?threadid=3981&boardid=9&sid=272333ceececfe6f4d703dfc2f48da6f)
-- // edit
I think this one would be good to add to the wiki... now fixing my winblows and I will do.
thanks bastya_elvtars
Best regards,
Troubadour
hmm, a simple request, the hability to start different timers, and stop only one or more without affecting the whole, timer function !! eg.: StartTimer(games,stuff)
StopTimer(stuff)
QuoteOriginally posted by Dessamator
hmm, a simple request, the hability to start different timers, and stop only one or more without affecting the whole, timer function !! eg.: StartTimer(games,stuff)
StopTimer(stuff)
Interesting one :D
QuoteOriginally posted by Dessamator
hmm, a simple request, the hability to start different timers, and stop only one or more without affecting the whole, timer function !! eg.: StartTimer(games,stuff)
StopTimer(stuff)
would,nt something like that be better written into the game script
eg.: StartTimer(games,stuff)
GameStartTime = 12 --// Time In Hrs Default 12 hrs
QuoteOriginally posted by (uk)jay
QuoteOriginally posted by Dessamator
hmm, a simple request, the hability to start different timers, and stop only one or more without affecting the whole, timer function !! eg.: StartTimer(games,stuff)
StopTimer(stuff)
would,nt something like that be better written into the game script
eg.: StartTimer(games,stuff)
GameStartTime = 12 --// Time In Hrs Default 12 hrs
its obvious that u either didnt understand the request, or u dont understand timers, if u did, u would know that there is only 1 global timer, and the rest are mini timers, they rely on the main timer to start and stop (when thats done u do it to all timers, not only 1 ) which in some cases might cause more problems than solve!!
QuoteOriginally posted by Dessamator
QuoteOriginally posted by (uk)jay
QuoteOriginally posted by Dessamator
hmm, a simple request, the hability to start different timers, and stop only one or more without affecting the whole, timer function !! eg.: StartTimer(games,stuff)
StopTimer(stuff)
would,nt something like that be better written into the game script
eg.: StartTimer(games,stuff)
GameStartTime = 12 --// Time In Hrs Default 12 hrs
its obvious that u either didnt understand the request, or u dont understand timers, if u did, u would know that there is only 1 global timer, and the rest are mini timers, they rely on the main timer to start and stop (when thats done u do it to all timers, not only 1 ) which in some cases might cause more problems than solve!!
Your right i don't understand timers i'm still trying to learn lua 5 So any tips you might have plz share
QuoteOriginally posted by (uk)jay
QuoteOriginally posted by Dessamator
QuoteOriginally posted by (uk)jay
QuoteOriginally posted by Dessamator
hmm, a simple request, the hability to start different timers, and stop only one or more without affecting the whole, timer function !! eg.: StartTimer(games,stuff)
StopTimer(stuff)
would,nt something like that be better written into the game script
eg.: StartTimer(games,stuff)
GameStartTime = 12 --// Time In Hrs Default 12 hrs
its obvious that u either didnt understand the request, or u dont understand timers, if u did, u would know that there is only 1 global timer, and the rest are mini timers, they rely on the main timer to start and stop (when thats done u do it to all timers, not only 1 ) which in some cases might cause more problems than solve!!
Your right i don't understand timers i'm still trying to learn lua 5 So any tips you might have plz share
some hints, hmm ok, a timer is based on 4 main functions,
OnTimer -- in this function u can put ur coding, to do whatever
SetTimer(timerinterval) -- here u set the timer interval
StartTimer() -- Self explanatory, start the timer
StopTimer(), -- Stop the timer
QuoteThe PtokaX Scripting-Interface wrote:
Timer
-----
SetTimer(TimeInterval)
StartTimer()
StopTimer()
GetTimer() - return timer state, 1 for enabled and nil for disabled.
GetTimerInterval() - return timer interval.
QuoteOriginally posted by Herodes
QuoteThe PtokaX Scripting-Interface wrote:
Timer
-----
SetTimer(TimeInterval)
StartTimer()
StopTimer()
GetTimer() - return timer state, 1 for enabled and nil for disabled.
GetTimerInterval() - return timer interval.
thnx for the correction herodes, but like i said, 4 main functions, the others are secondary(most scripts can work without it), but thnx either way, i almost forgot them!!
Hammering protection after a kick/ban.. Maybe like the way in YnHub.. Another request..
QuoteOriginally posted by GeceBekcisi
Hammering protection after a kick/ban.. Maybe like the way in YnHub.. Another request..
*agrees*
i thing the new ptokax must come with a bot included... 8)
QuoteOriginally posted by ?Tr??T_????
i thing the new ptokax must come with a bot included... 8)
Also, if there is a bot included then we have as scripters no work to do anymore???
Do you think thats the right way???
I think that we make it easy enough to make a lot scripts for each of anyone who is asking for scripts. I think that all scripters wanna make scripts in the future.
Grtzzz
DJ Bert
QuoteOriginally posted by ?Tr??T_????
i thing the new ptokax must come with a bot included... 8)
Try ynhub :P
QuoteOriginally posted by ?Tr??T_????
i thing the new ptokax must come with a bot included... 8)
Options->Hub bot ... already is here :P
ok leave the bot...
what about standard right clicks?
Implement this for redirects:
Redirect.Levels.ShowRedirect=4
frmHub.SetRedAddy=function(self,what,addy)
local FuncTable=
{
["share"]=function (addy)
self:SetShareRedirAddr(addy)
end,
["slots"]=function (addy)
self:SetSlotsRedirAddr(addy)
end,
["ratio"]=function (addy)
self:SetRatioRedirAddr(addy)
end,
["maxhubs"]=function (addy)
self:SetMaxHubsRedirAddr(addy)
end,
["nickrule"]= function (addy)
self:SetNickRuleRedirAddr(addy)
end,
["tempban"]=function (addy)
self:SetTempBanRedirAddr(addy)
end,
["regonly"]=function (addy)
self:SetRegOnlyRedirAddr(addy)
end,
["ban"]=function (addy)
self:SetBanRedirAddr(addy)
end,
["default"]=function (addy)
self:SetRedirectAddress(addy)
end,
["notag"]=function (addy)
self:SetNoTagRedirAddr(addy)
end,
}
if FuncTable[what] then
FuncTable[what](addy)
return true
end
end
frmHub.GetRedAddy=function(self,what)
local FuncTable=
{
["share"]=function ()
return self:GetShareRedirAddr()
end,
["slots"]=function ()
return self:GetSlotsRedirAddr()
end,
["ratio"]=function ()
return self:GetRatioRedirAddr()
end,
["maxhubs"]=function ()
return self:GetMaxHubsRedirAddr()
end,
["nickrule"]=function ()
return self:GetNickRuleRedirAddr()
end,
["tempban"]=function ()
return self:GetTempBanRedirAddr()
end,
["regonly"]=function ()
return self:GetRegOnlyRedirAddr()
end,
["ban"]=function ()
return self:GetBanRedirAddr()
end,
["default"]=function ()
return self:GetRedirectAddress()
end,
["notag"]=function ()
return self:GetNoTagRedirAddr()
end
}
if not FuncTable[what] then return -1
else return FuncTable[what]() end
end
frmHub.SetRed=function(self,what,p)
local FuncTable=
{
["share"]=function (p)
self:SetShareRedirect(p)
end,
["slots"]=function (p)
self:SetSlotsRedirect(p)
end,
["ratio"]=function (p)
self:SetRatioRedirect(p)
end,
["maxhubs"]=function (p)
self:SetMaxHubsRedirect(p)
end,
["nickrule"]=function (p)
self:SetNickRuleRedirect(p)
end,
["tempban"]=function (p)
self:SetTempBanRedirect(p)
end,
["regonly"]=function (p)
self:SetRegOnlyRedirect(p)
end,
["ban"]=function (p)
self:SetBanRedirect(p)
end,
["allnew"]=function (p)
if p then self:SetRedirectFull(math.abs(p-1)) end -- lol
self:SetRedirectAll(p)
end,
["full"]=function (p)
self:SetRedirectFull(p)
end,
}
if FuncTable[what] then
FuncTable[what](p)
return true
end
end
frmHub.GetRed=function(self,what)
local FuncTable=
{
["share"]=function ()
if Checks then return 2 end
return self:GetShareRedirect()
end,
["slots"]=function ()
if Checks then return 2 end
return self:GetSlotsRedirect()
end,
["ratio"]=function ()
if Checks then return 2 end
return self:GetRatioRedirect()
end,
["maxhubs"]=function ()
if Checks then return 2 end
return self:GetMaxHubsRedirect()
end,
["nickrule"]=function ()
if Checks then return 2 end
return self:GetNickRuleRedirect()
end,
["tempban"]=function ()
return self:GetTempBanRedirect()
end,
["regonly"]=function ()
return self:GetRegOnlyRedirect()
end,
["ban"]=function ()
return self:GetBanRedirect()
end,
["allnew"]=function ()
return self:GetRedirectAll()
end,
["full"]=function ()
return self:GetRedirectFull()
end,
}
if not FuncTable[what] then return -1
else return FuncTable[what]() end
end
May I suggest an allowed clients box\window in Ptokax GUI, to easy edit "ClientTags.xml" file from GUI?
QuoteOriginally posted by LoTeK_
May I suggest an allowed clients box\window in Ptokax GUI, to easy edit "ClientTags.xml" file from GUI?
And reload it, without stopping and starting the hub :D
QuoteOriginally posted by Pothead
QuoteOriginally posted by LoTeK_
May I suggest an allowed clients box\window in Ptokax GUI, to easy edit "ClientTags.xml" file from GUI?
And reload it, without stopping and starting the hub :D
agree :D would be nice
Howdy
some requests
1: adding in flood - minimum allowed chars in a search
(i did as a user a search with just a dot ,, that is lots of files in a big hub)
2: change dropcommand to just a drop without adding to tempban
(it seems little weird if i drop myself - just testing - that i am added to tempban)
QuoteOriginally posted by BeeR
Howdy
some requests
1: adding in flood - minimum allowed chars in a search
(i did as a user a search with just a dot ,, that is lots of files in a big hub)
Should only be added if the user is passive. Otherwise it's mandatory that DC++ crashes for idiots. :D
frmHub:GetScripts()
Should return like:
{
["lawmaker.lua"]=1, -- enabled
["shoutstats.lua"]=0, -- disabled
}
A way to Output stuff from scripts to the Scripting debug window.
Like how dcdebug() (in dc++) prints stuff to the Output window of Visual Studio.
:)
QuoteOriginally posted by Pothead
A way to Output stuff from scripts to the Scripting debug window.
Like how dcdebug() (in dc++) prints stuff to the Output window of Visual Studio.
:)
Maybe you mean support for print()? :P
can a feature be added in ptokax so that all scripts can be stopped and started by clicking on one button or one cmd
QuoteOriginally posted by kunal
can a feature be added in ptokax so that all scripts can be stopped and started by clicking on one button or one cmd
It's already here,from 0.3.3.0 build 17.02
Added: startscipt hub command.
Added: stopscript hub command.
i know those cmds but with those cmds ill have to stop each script and start script having to enter the cmds again and again.i want all scripts to be started and stopped with a single cmd eg !startallscripts
QuoteOriginally posted by Mutor
...Scripting may be Enabled/Disabled on the Options page of the GUI. To do this by command wouldnt help much, because if scripts are disabled, then we would have no means of starting them again.
Yes , indeed, unless its built in , like the e.g. !getbanlist
But frmHub:GetScripts() and thus script.sFileName,script.bRunning and script:Start() script:Stop() and script:ReStart() would make sense, also GetScriptbyFileName("ccc.lua") would be good.
Also a frmHub:GetAllBotNames() would be nice :)
QuoteOriginally posted by blackwings
Also a frmHub:GetAllBotNames() would be nice :)
Yeah, was thinking of that here too. Just to check whether one is already registered there should be frmhub:bIsBotRegged(botname)
I wanted frmHub:GetAllBotNames() because it would be much nicer then
manually add/remove botnames in a table with all you bots username. In cases like commands in ToArrival, =
if ToWho == frmHub:GetAllBotNames() then
-- code
end
Hi - me again :]
some stuff i have in my Verlihub i rent, and i like to see in new versions of Ptokax
(belive it or not - i found a network for my ptokaxhub !?!)
since not all uses large hubscripts (i use blackwings basic)
it would be nice to have inbuild bancommands like:
prefix-ban/unban
description-ban/unban
email-ban/unban
C'ya