Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   Disable Client-RC (https://forums.graalonline.com/forums/showthread.php?t=134266505)

r3ckless 05-24-2012 04:37 AM

Disable Client-RC
 
Hey, I was wondering if there was a way to disable the Client-RC? I've been trying to find the window name by using onFirstResponderChanges, but with no success. Can anybody help me out here?

fowlplay4 05-24-2012 05:19 AM

Try:

PHP Code:

//#CLIENTSIDE
function onCreated() {
  
findweapon("-ScriptedRC").destroy();



r3ckless 05-24-2012 06:57 AM

Thats works, thank you.
Is there any way I can add a message, such as "Client-RC is disabled on this server." other than setting the players chat with an onActionKeyPressed?

For example, say they selected it from the Start menu on the Graal taskbar, is there a way I can add a message to that?

Crono 05-24-2012 11:38 AM

Quote:

Originally Posted by fowlplay4 (Post 1695444)
Try:

PHP Code:

//#CLIENTSIDE
function onCreated() {
  
findweapon("-ScriptedRC").destroy();



can you plx add a toggle on zodiac so i can hotkey whether i want to enable or disable client-rc? hit f6 too many times on accident :[.

Skyld 05-24-2012 12:59 PM

Quote:

Originally Posted by r3ckless (Post 1695443)
Hey, I was wondering if there was a way to disable the Client-RC? I've been trying to find the window name by using onFirstResponderChanges, but with no success. Can anybody help me out here?

Why exactly do you need to do this?
Quote:

Originally Posted by fowlplay4
Try:

PHP Code:

//#CLIENTSIDE
function onCreated() {
  
findweapon("-ScriptedRC").destroy();



This may also stop the Client-RC from working after switching servers, which is not ideal. If there is some good case for disabling the Client-RC on a server then I can add the necessary functionality to do that without breaking it completely.

Crono 05-24-2012 01:18 PM

Quote:

Originally Posted by Skyld (Post 1695453)
This may also stop the Client-RC from working after switching servers, which is not ideal. If there is some good case for disabling the Client-RC on a server then I can add the necessary functionality to do that without breaking it completely.

Change it to another hotkey and not F6. pls.

Skyld 05-24-2012 01:33 PM

Quote:

Originally Posted by Crono (Post 1695454)
Change it to another hotkey and not F6. pls.

What do you suggest? It could even be possible to make the key mappable like other in-game keys.

NicoX 05-24-2012 01:45 PM

Quote:

Originally Posted by Skyld (Post 1695455)
What do you suggest? It could even be possible to make the key mappable like other in-game keys.

I guess F12 is not in use and far away from the Playerlist button (F7) :) Maybe that?

Fulg0reSama 05-24-2012 01:45 PM

Quote:

Originally Posted by Skyld (Post 1695455)
What do you suggest? It could even be possible to make the key mappable like other in-game keys.

I recommend the ~ key.
But making it have custom map placement would be cooler.

Crono 05-24-2012 01:55 PM

Quote:

Originally Posted by Skyld (Post 1695455)
It could even be possible to make the key mappable like other in-game keys.

skild pls do et.

callimuc 05-24-2012 02:09 PM

Quote:

Originally Posted by Skyld (Post 1695455)
It could even be possible to make the key mappable like other in-game keys.

Would love to see that

fowlplay4 05-24-2012 03:30 PM

Quote:

Originally Posted by Skyld (Post 1695453)
This may also stop the Client-RC from working after switching servers, which is not ideal. If there is some good case for disabling the Client-RC on a server then I can add the necessary functionality to do that without breaking it completely.

It does however it's probably not a big deal for those who intentionally disable it.

CujoDaMan 05-24-2012 04:37 PM

Maybe even a serveroptions command to disable/enable it clientrcallowed=true/false along with making the key mapable.

Crono 05-24-2012 04:41 PM

Quote:

Originally Posted by CujoDaMan (Post 1695467)
Maybe even a serveroptions command to disable/enable it clientrcallowed=true/false along with making the key mapable.

Nah, that's going too far. Remapping it is fine and if you really don't like it you map it to some key you never use or don't map it at all.

Fulg0reSama 05-24-2012 05:02 PM

Quote:

Originally Posted by Crono (Post 1695468)
Nah, that's going too far. Remapping it is fine and if you really don't like it you map it to some key you never use or don't map it at all.

Telling ya, the ~ button!

BlueMelon 05-24-2012 05:06 PM

Quote:

Originally Posted by Fulg0reSama (Post 1695472)
Telling ya, the ~ button!

Many servers use the ~ button, Era uses it to clear messages.

Crow 05-24-2012 05:13 PM

Quote:

Originally Posted by BlueMelon (Post 1695473)
Many servers use the ~ button, Era uses it to clear messages.

Many layouts don't even have it. How about no?

Deas_Voice 05-24-2012 09:56 PM

Quote:

Originally Posted by Fulg0reSama (Post 1695472)
Telling ya, the ~ button!

Leave my ~ button alone! :mad:

Fulg0reSama 05-24-2012 10:03 PM

Quote:

Originally Posted by Deas_Voice (Post 1695502)
Leave my ~ button alone! :mad:

^_~

r3ckless 06-02-2012 06:49 AM

Quote:

Originally Posted by Skyld (Post 1695453)
Why exactly do you need to do this?

This may also stop the Client-RC from working after switching servers, which is not ideal. If there is some good case for disabling the Client-RC on a server then I can add the necessary functionality to do that without breaking it completely.

Personally I don't like the Client-RC. I prefer my staff to be on External, I feel insecure with Client-RC. I feel as though it can be a security risk to my server, and I don't like the look of it. Also, I rarely hire people who work on other servers, so that won't effect them. I have it set to only remove if your account is in the server options. It's a personal opinion, also what Crono said. I hit f6 too much on accident. The only thing I like about it, is the GUI Editor.

Again, back to my question.... Is there anyway to toggle a message if player's decide to open it via Graal Taskbar? I added a keydown message for pressing f6, but one of my staff is learning to LAT, so I gave him access to my server. He opens it via taskbar, and was wondering why it didn't open. So, possible to add a message to this?

cbk1994 06-02-2012 07:16 AM

Quote:

Originally Posted by r3ckless (Post 1696186)
The only thing I like about it, is the GUI Editor.

The GUI editor is the worst part of it x_x.

Skyld 06-02-2012 03:24 PM

Quote:

Originally Posted by r3ckless (Post 1696186)
Personally I don't like the Client-RC. I prefer my staff to be on External, I feel insecure with Client-RC. I feel as though it can be a security risk to my server, and I don't like the look of it.

The Client-RC is subject to the exact same restrictions (i.e. server options, IP ranges) as the external RC. Only privileged scripts from the login server are capable of making Client-RC requests also. It is not any less secure.
Quote:

Originally Posted by r3ckless
Also, I rarely hire people who work on other servers, so that won't effect them. I have it set to only remove if your account is in the server options.

That is not the point. You should not be destroying login scripts, in the same vain that I expect you wouldn't destroy the serverlist or playerlist weapons either. With any luck in the future, these scripts won't be able to by destroyed by non-login scripts.

cbk1994 06-02-2012 10:00 PM

Quote:

Originally Posted by Skyld (Post 1696225)
The Client-RC is subject to the exact same restrictions (i.e. server options, IP ranges) as the external RC. Only privileged scripts from the login server are capable of making Client-RC requests also. It is not any less secure.

Next time a global's on client-RC on your server, run http://uploads.graalcenter.org/uploa...eincapsula.png (**** incapsula) clientside or snoop on their use of global commands with onRCChat.

I've reported this before to Stefan, and I know you have too, but he has not replied :(.

Stowen 06-04-2012 07:07 PM

@Skyld

I think there should be an option to disable on your server. I mean, if it's really that big of a deal to you I can remove that line of code, but I really don't want my staff using the Client-RC on my server. But back to my question, can I add a message if they click on 'Client-RC' via Graal Taskbar menu?

P.S This is R3ckless. I'm going to be using this account on forums from now on.

callimuc 06-04-2012 07:22 PM

Quote:

Originally Posted by Stowen (Post 1696383)
P.S This is R3ckless. I'm going to be using this account on forums from now on.

Isnt that account sharing since you could use his players account aswell?

DustyPorViva 06-04-2012 08:15 PM

http://media.desura.com/images/membe...inja_Clwwb.gif

r3ckless 06-06-2012 06:24 PM

Quote:

Originally Posted by callimuc (Post 1696385)
Isnt that account sharing since you could use his players account aswell?

I didn't know you couldn't have more than one account on Graal?

r3ckless 06-06-2012 06:26 PM

Quote:

Originally Posted by DustyPorViva (Post 1696389)

lol this is perfect. "ah ah ah, you didnt say the magic word, ah ah ah!"

callimuc 06-06-2012 09:08 PM

Quote:

Originally Posted by r3ckless (Post 1696575)
I didn't know you couldn't have more than one account on Graal?

Oh thought you are 2 different people.


All times are GMT +2. The time now is 10:23 PM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.