PtokaX forum

Archive => Archived 4.0 boards => Finished Lua 4 scripts => Topic started by: egm47 on 29 December, 2003, 14:09:41

Title: Mac user script
Post by: egm47 on 29 December, 2003, 14:09:41
I have a script to only allow DC++ users only, and it works great but now have a problem in allowing a good friend into my hub as he only has a Mac system.

I would like to be able to let him in but still maintain a DC++ hub.

Any help would be greatly appreciated!!!

You guys are "Great"
Title:
Post by: plop on 29 December, 2003, 14:29:48
also allow dcgui, and make him use that.
dcgui is free for linux/mac except for windows you need 2 pay for the QT windowing system.
here (http://dc.ketelhot.de) you can find dcgui.

plop
Title:
Post by: egm47 on 29 December, 2003, 14:41:40
Is this what he should use, didn't say anything about

this being for mac.

dcgui-osx-x11-0.2.20.tar


thanks again
Title:
Post by: plop on 29 December, 2003, 15:09:09
yep, for mac there are 2 versions.
1 uses the QT windowing system and that 1 you found is using the mac native windowing system.
here  (http://board.univ-angers.fr/thread.php?threadid=164&boardid=13&styleid=1) you can find all the stuff/info about how 2 make your scripts support dcgui.
as many ppl make still the same mistake about the limiter i'll tell it again.
S:3L:20 in the tag doesn't mean the user is limiting @ 20KB/s  in total like bcdc++, but he is limiting @ 20KB/s PER slot.
in this case it means 60KB/s total.
the posted functions allready calculate the total limiter speed so you can use the bcdc++ settings.

plop
Title:
Post by: egm47 on 15 January, 2004, 17:46:22
Thanks for the help,

Sorry for the delay in saying Thank you..

Wouldn't let me run the hub from the hospital room..

hehe
Title:
Post by: FrancoS on 28 June, 2005, 20:34:50
I have a simpler solution in this case.

Put an if not before the disconnect/kick action where you check the nick to no to be the one of your friend

be sure to register your friend and maybe to choose apassword for him

If he is going to be an OP then use the if not operator  instead of what above (sorry I'm not a coder but I've seen the OP variable is available)

and a request...

Is there is a reference for the ptokax variables and APIs? And... where is the link?

thank you

Robert
Title:
Post by: Dessamator on 28 June, 2005, 22:00:55
its in ur ptokax folder, Scripting-Interface.txt