PtokaX forum

Development Section => Your Developing Problems => Topic started by: Optimus on 21 March, 2004, 17:21:27

Title: Yellow Key
Post by: Optimus on 21 March, 2004, 17:21:27
I'm looking for away to add/remove the Yellow key from a operator by scripting code. I have read something a way back ago on the old forum i think but not quit sure... does some 1 still have that piece of code. Thx guys

Have a good Time ;)
Title:
Post by: [NL]Pur on 21 March, 2004, 18:40:16
don't bother too script it. You can uncheck it in the profile settings ;)
Title:
Post by: Optimus on 21 March, 2004, 19:27:08
well i saw a nice feature in Channel so that's why i ask, i really want to Experiment with it. lol

But thx for telling i noticed that option also offcourse. but it's off no use
Title:
Post by: Skrollster on 22 March, 2004, 07:25:46
Raw command to send to all users is:

$OpList $$$$$$|

but i think that this only will add ops, not remove them..
Title:
Post by: [NL]trucker on 22 March, 2004, 08:31:53
skrollster

if i,m right he wants to remove the keysymbol only not the OP
Title:
Post by: Event_Horizon on 22 March, 2004, 12:01:06
removing the yellow key  ?(  

if this is possible this would be great, so we can create undercover OPs  :D
Title:
Post by: Optimus on 22 March, 2004, 13:05:48
Yups indeed 8)
Title:
Post by: [NL]Pur on 22 March, 2004, 13:43:20
well it works fine here in ptokax :)
Title:
Post by: Optimus on 22 March, 2004, 14:39:05
Yups works here to, but then all operators have no key!

Well i hope some 1 will remeber the piece of code i have seen on the old forum. i will wait till then amio :D
Title:
Post by: HaArD on 22 March, 2004, 14:39:12
$Oplist only adds Ops in DC++ I don't know about other clients. Many clients also use it to determine if the user should have Options (Kick/Redirect) on the user menu when they log-in.

In theory, If you send a $Quit for the Op's Name to the other users, followed by a $Hello/$MyINFO you can remove the Op's name (with Key) and add it back (without Key).

You'll have to do this again everytime a new Op connects as the $Oplist is sent out in full each time a new Op joins (I think...)
Title:
Post by: Skrollster on 22 March, 2004, 17:28:34
QuoteOriginally posted by HaArD
You'll have to do this again everytime a new Op connects as the $Oplist is sent out in full each time a new Op joins (I think...)

Not quite right... you have to do this every time a user connects to the hub because the $Oplist is sent to them..

But if i wanted to do this i would uncheck the option in ptokax and then make a script that did send $Oplist with all ops that you want to have a yellow key every time someone request a $Nicklist...

If it doesn't make any sense i'll try to explain again...
Title:
Post by: [NL]Pur on 22 March, 2004, 18:00:27
QuoteYups works here to, but then all operators have no key!

Well i hope some 1 will remeber the piece of code i have seen on the old forum. i will wait till then amio :D

Lmao

just add a new profile 'stealthOP' (or whatever) with same rights as operators uncheck the yellow key thing in the profile settings.
Title:
Post by: Optimus on 22 March, 2004, 18:50:25
haha indeed [NL]Pur that's a way to agree yups! :))
Title:
Post by: Snooze on 26 May, 2004, 20:03:58
Hmm.. this function in the profile manager "user has key icon" isnt working for me. well.. i can give a key but i can't take it away from anyone with the option to kick.

Any help would be great, thanks

**Snooze
Title:
Post by: plop on 26 May, 2004, 22:34:39
QuoteOriginally posted by Snooze
Hmm.. this function in the profile manager "user has key icon" isnt working for me. well.. i can give a key but i can't take it away from anyone with the option to kick.

Any help would be great, thanks

**Snooze
the key is always given 2 profiles which have the abilety 2 kick or redirect.
if you use a scripted kick you can have op's without key by simple removing acces 2 those 2 ptokax commands, but still they can kick.

plop
Title: yellow key
Post by: HaL on 26 May, 2004, 23:24:51
maybe someone could write a script that
watches allways if an op enters the hub and
then the script unregs the the op from the userlist.

and then the script sends a info string  for the op?s client to ptokax

the op is still regged in ptokax as op but not in the userlist


like this:
for all ops

1. script watches allways if a op connected to the hub
2. if a op connected unreg op nick with :frmHub:UnregBot(user.sName) (this should only unreg from userlist , you still are op with all rights in ptokax)
3. send info string with: SendToAll("$MyINFO $ALL "..opnick.." "..description.."$ $Cable8$"..mail.."$10000000000$|")
..............................................................................

or a script that does the same if i write in mainchat
cmd like !user then only i am would new regged in user list as user

if (cmd=="!user") and user is op then
frmHub:UnregBot(user.sName)
SendToAll("$MyINFO $ALL "..opnick.." "..description.."$ $Cable8$"..mail.."$10000000000$|")






Title:
Post by: plop on 27 May, 2004, 00:27:24
QuoteOriginally posted by HaL
maybe someone could write a script that
watches allways if an op enters the hub and
then the script unregs the the op from the userlist.

and then the script sends a info string  for the op?s client to ptokax

the op is still regged in ptokax as op but not in the userlist


like this:
for all ops

1. script watches allways if a op connected to the hub
2. if a op connected unreg op nick with :frmHub:UnregBot(user.sName) (this should only unreg from userlist , you still are op with all rights in ptokax)
3. send info string with: SendToAll("$MyINFO $ALL "..opnick.." "..description.."$ $Cable8$"..mail.."$10000000000$|")
..............................................................................

or a script that does the same if i write in mainchat
cmd like !user then only i am would new regged in user list as user

if (cmd=="!user") and user is op then
frmHub:UnregBot(user.sName)
SendToAll("$MyINFO $ALL "..opnick.." "..description.."$ $Cable8$"..mail.."$10000000000$|")
why do so complex and risky??
with scripts you can give them all commands they need in a save way.

plop
Title:
Post by: HaL on 27 May, 2004, 00:39:21
yes i could unreg the kick and redirect function in profile manager , and use a extern kick script

but i use a hub bot

in this bot often is used the if op functions

like: (user.bOperator) or SendToOps(user.sName,data)
if im not a op i could not use this bot longer.
Title:
Post by: Snooze on 27 May, 2004, 05:20:33
Thanks for the suggestions ..
Title:
Post by: plop on 27 May, 2004, 14:34:58
QuoteOriginally posted by HaL
yes i could unreg the kick and redirect function in profile manager , and use a extern kick script

but i use a hub bot

in this bot often is used the if op functions

like: (user.bOperator) or SendToOps(user.sName,data)
if im not a op i could not use this bot longer.
then you need 2 mod it so it uses the profiles.

plop