PtokaX forum

Stuff => Your opinions about the forum => Topic started by: Requiem on 03 April, 2005, 20:18:02

Title: PtokaX Feature Requests
Post by: Requiem on 03 April, 2005, 20:18:02
I am requesting a new part for the forum; PtokaX Feature Requests..
Title:
Post by: Dessamator on 05 April, 2005, 00:37:48
hmm, good idea
Title:
Post by: Shurlock on 05 April, 2005, 01:51:25
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.  :)
Title: Good idea maybe
Post by: Bertee on 05 April, 2005, 04:44:16
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)  :]
Title:
Post by: PPK on 05 April, 2005, 05:57:23
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 ;)
Title:
Post by: raz on 05 April, 2005, 06:08:29
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.
Title:
Post by: PPK on 05 April, 2005, 16:58:39
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...
Title:
Post by: raz on 05 April, 2005, 22:37:03
kool. lol if i get any other ideas. i'll let you know. k  :D

RaZ
Title:
Post by: Troubadour on 05 April, 2005, 22:55:47
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
Title:
Post by: ??????Hawk?????? on 05 April, 2005, 23:23:03
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

Title:
Post by: TTB on 05 April, 2005, 23:33:49
nice... *copy* *paste* RUN  :D
Title:
Post by: Herodes on 05 April, 2005, 23:43:08
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 .. )
Title:
Post by: Troubadour on 06 April, 2005, 00:04:14
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
Title:
Post by: Herodes on 06 April, 2005, 00:22:01
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 ..)
Title:
Post by: Bertee on 06 April, 2005, 00:59:35
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.
Title:
Post by: bastya_elvtars on 06 April, 2005, 01:56:07
@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.
Title:
Post by: Troubadour on 06 April, 2005, 11:02:16
thanks bastya_elvtars

Best regards,
Troubadour
Title:
Post by: Dessamator on 06 April, 2005, 17:35:42
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)
Title:
Post by: jiten on 06 April, 2005, 18:07:52
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
Title:
Post by: Tw?sT?d-d?v on 06 April, 2005, 18:10:52
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
Title:
Post by: Dessamator on 07 April, 2005, 19:50:35
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!!
Title:
Post by: Tw?sT?d-d?v on 07 April, 2005, 20:46:52
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
Title:
Post by: Dessamator on 07 April, 2005, 21:36:22
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
Title:
Post by: Herodes on 08 April, 2005, 00:41:12
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.
Title:
Post by: Dessamator on 08 April, 2005, 11:25:18
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!!
Title:
Post by: GeceBekcisi on 26 July, 2005, 18:58:30
Hammering protection after a kick/ban.. Maybe like the way in YnHub.. Another request..
Title:
Post by: imby on 26 July, 2005, 21:01:49
QuoteOriginally posted by GeceBekcisi
Hammering protection after a kick/ban.. Maybe like the way in YnHub.. Another request..

*agrees*
Title:
Post by: ?Tr??T_???? on 01 August, 2005, 00:37:15
i thing the new ptokax must come with a bot included... 8)
Title:
Post by: DJ Bert on 01 August, 2005, 01:35:41
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
Title:
Post by: imby on 01 August, 2005, 04:07:27
QuoteOriginally posted by ?Tr??T_????
i thing the new ptokax must come with a bot included... 8)

Try ynhub  :P
Title:
Post by: PPK on 01 August, 2005, 04:25:01
QuoteOriginally posted by ?Tr??T_????
i thing the new ptokax must come with a bot included... 8)
Options->Hub bot ... already is here :P
Title:
Post by: ?Tr??T_???? on 04 August, 2005, 13:26:45
ok leave the bot...
what about standard right clicks?
Title:
Post by: bastya_elvtars on 06 August, 2005, 21:21:30
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
Title:
Post by: LoTeK_ on 06 August, 2005, 23:11:16
May I suggest an allowed clients box\window in Ptokax GUI, to easy edit "ClientTags.xml" file from GUI?
Title:
Post by: Pothead on 07 August, 2005, 03:37:24
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
Title:
Post by: DEEP-GOA on 20 August, 2005, 17:22:36
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
Title:
Post by: BeeR on 22 August, 2005, 20:09:38
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)
Title:
Post by: bastya_elvtars on 22 August, 2005, 20:12:39
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
Title:
Post by: bastya_elvtars on 23 August, 2005, 18:42:54
frmHub:GetScripts()

Should return like:

{
  ["lawmaker.lua"]=1, -- enabled
  ["shoutstats.lua"]=0, -- disabled
}
Title:
Post by: Pothead on 16 September, 2005, 19:45:10
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.
:)
Title:
Post by: bastya_elvtars on 16 September, 2005, 20:12:42
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
Title:
Post by: kunal on 17 September, 2005, 08:27:41
can a feature be added in ptokax so that all scripts can be stopped and started by clicking on one button or one cmd
Title:
Post by: Tw?sT?d-d?v on 17 September, 2005, 10:00:29
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.
Title:
Post by: kunal on 17 September, 2005, 11:25:46
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
Title:
Post by: Dessamator on 17 September, 2005, 17:19:46
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
Title:
Post by: bastya_elvtars on 20 September, 2005, 01:34:01
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.
Title:
Post by: blackwings on 20 September, 2005, 01:41:41
Also a frmHub:GetAllBotNames() would be nice :)
Title:
Post by: bastya_elvtars on 20 September, 2005, 01:48:13
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)
Title:
Post by: blackwings on 20 September, 2005, 01:53:00
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
Title:
Post by: BeeR on 25 September, 2005, 02:11:14
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