Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting
FAQ Members List Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 05-24-2012, 04:37 AM
r3ckless r3ckless is offline
Owner of Corinthia
Join Date: Dec 2011
Location: MAssachusetts, USA
Posts: 131
r3ckless is an unknown quantity at this point
Send a message via AIM to r3ckless Send a message via MSN to r3ckless
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?
__________________

Yep.

Reply With Quote
  #2  
Old 05-24-2012, 05:19 AM
fowlplay4 fowlplay4 is offline
team canada
fowlplay4's Avatar
Join Date: Jul 2004
Location: Canada
Posts: 5,200
fowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond repute
Try:

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

__________________
Quote:
Reply With Quote
  #3  
Old 05-24-2012, 06:57 AM
r3ckless r3ckless is offline
Owner of Corinthia
Join Date: Dec 2011
Location: MAssachusetts, USA
Posts: 131
r3ckless is an unknown quantity at this point
Send a message via AIM to r3ckless Send a message via MSN to r3ckless
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?
__________________

Yep.

Reply With Quote
  #4  
Old 05-24-2012, 11:38 AM
Crono Crono is offline
:pluffy:
Join Date: Feb 2002
Location: Sweden
Posts: 20,000
Crono has a reputation beyond reputeCrono has a reputation beyond reputeCrono has a reputation beyond reputeCrono has a reputation beyond reputeCrono has a reputation beyond reputeCrono has a reputation beyond reputeCrono has a reputation beyond reputeCrono has a reputation beyond reputeCrono has a reputation beyond reputeCrono has a reputation beyond reputeCrono has a reputation beyond repute
Quote:
Originally Posted by fowlplay4 View Post
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 :[.
__________________
Reply With Quote
  #5  
Old 05-24-2012, 12:59 PM
Skyld Skyld is offline
Script-fu
Skyld's Avatar
Join Date: Jan 2002
Location: United Kingdom
Posts: 3,914
Skyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud of
Send a message via AIM to Skyld
Quote:
Originally Posted by r3ckless View Post
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.
__________________
Skyld
Reply With Quote
  #6  
Old 05-24-2012, 01:18 PM
Crono Crono is offline
:pluffy:
Join Date: Feb 2002
Location: Sweden
Posts: 20,000
Crono has a reputation beyond reputeCrono has a reputation beyond reputeCrono has a reputation beyond reputeCrono has a reputation beyond reputeCrono has a reputation beyond reputeCrono has a reputation beyond reputeCrono has a reputation beyond reputeCrono has a reputation beyond reputeCrono has a reputation beyond reputeCrono has a reputation beyond reputeCrono has a reputation beyond repute
Quote:
Originally Posted by Skyld View Post
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.
__________________
Reply With Quote
  #7  
Old 05-24-2012, 01:33 PM
Skyld Skyld is offline
Script-fu
Skyld's Avatar
Join Date: Jan 2002
Location: United Kingdom
Posts: 3,914
Skyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud of
Send a message via AIM to Skyld
Quote:
Originally Posted by Crono View Post
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.
__________________
Skyld
Reply With Quote
  #8  
Old 05-24-2012, 01:45 PM
NicoX NicoX is offline
Kingdoms Management
NicoX's Avatar
Join Date: Mar 2004
Location: Frankfurt/Main, Germany
Posts: 1,933
NicoX will become famous soon enough
Send a message via AIM to NicoX Send a message via MSN to NicoX
Quote:
Originally Posted by Skyld View Post
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?
__________________
Yours Sincerely,

-Nico
(GK Management)

Clash: Nico, I'm going to give you an example of good management.
Clash: One of my staff removed my RC and banned me.
Clash: I didn't ban or remove their RC after I got another one to fix me.
Clash: Do you know why?
Björn: Because you IP banned him ?

Stefan logged on.
(npcserver) has reset the attributes of Stefan
*Stefan: ah my client crashed








Reply With Quote
  #9  
Old 05-24-2012, 01:45 PM
Fulg0reSama Fulg0reSama is offline
Extrinsical Anomaly
Fulg0reSama's Avatar
Join Date: Sep 2009
Location: Ohio
Posts: 3,049
Fulg0reSama has a brilliant futureFulg0reSama has a brilliant futureFulg0reSama has a brilliant futureFulg0reSama has a brilliant futureFulg0reSama has a brilliant futureFulg0reSama has a brilliant futureFulg0reSama has a brilliant futureFulg0reSama has a brilliant future
Quote:
Originally Posted by Skyld View Post
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.
__________________

Careful, thoughts and opinions here scare people.
Reply With Quote
  #10  
Old 05-24-2012, 01:55 PM
Crono Crono is offline
:pluffy:
Join Date: Feb 2002
Location: Sweden
Posts: 20,000
Crono has a reputation beyond reputeCrono has a reputation beyond reputeCrono has a reputation beyond reputeCrono has a reputation beyond reputeCrono has a reputation beyond reputeCrono has a reputation beyond reputeCrono has a reputation beyond reputeCrono has a reputation beyond reputeCrono has a reputation beyond reputeCrono has a reputation beyond reputeCrono has a reputation beyond repute
Quote:
Originally Posted by Skyld View Post
It could even be possible to make the key mappable like other in-game keys.
skild pls do et.
__________________
Reply With Quote
  #11  
Old 05-24-2012, 02:09 PM
callimuc callimuc is offline
callimuc's Avatar
Join Date: Nov 2010
Location: Germany
Posts: 1,015
callimuc is a splendid one to beholdcallimuc is a splendid one to beholdcallimuc is a splendid one to beholdcallimuc is a splendid one to beholdcallimuc is a splendid one to behold
Quote:
Originally Posted by Skyld View Post
It could even be possible to make the key mappable like other in-game keys.
Would love to see that
__________________
MEEP!
Reply With Quote
  #12  
Old 05-24-2012, 03:30 PM
fowlplay4 fowlplay4 is offline
team canada
fowlplay4's Avatar
Join Date: Jul 2004
Location: Canada
Posts: 5,200
fowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond repute
Quote:
Originally Posted by Skyld View Post
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.
__________________
Quote:
Reply With Quote
  #13  
Old 05-24-2012, 04:37 PM
CujoDaMan CujoDaMan is offline
Shaded Legend Management
CujoDaMan's Avatar
Join Date: Aug 2004
Location: Canada, Nova Scotia
Posts: 108
CujoDaMan is an unknown quantity at this point
Send a message via AIM to CujoDaMan Send a message via MSN to CujoDaMan
Maybe even a serveroptions command to disable/enable it clientrcallowed=true/false along with making the key mapable.
__________________
Last Manager of Shaded Legend
Reply With Quote
  #14  
Old 05-24-2012, 04:41 PM
Crono Crono is offline
:pluffy:
Join Date: Feb 2002
Location: Sweden
Posts: 20,000
Crono has a reputation beyond reputeCrono has a reputation beyond reputeCrono has a reputation beyond reputeCrono has a reputation beyond reputeCrono has a reputation beyond reputeCrono has a reputation beyond reputeCrono has a reputation beyond reputeCrono has a reputation beyond reputeCrono has a reputation beyond reputeCrono has a reputation beyond reputeCrono has a reputation beyond repute
Quote:
Originally Posted by CujoDaMan View Post
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.
__________________
Reply With Quote
  #15  
Old 05-24-2012, 05:02 PM
Fulg0reSama Fulg0reSama is offline
Extrinsical Anomaly
Fulg0reSama's Avatar
Join Date: Sep 2009
Location: Ohio
Posts: 3,049
Fulg0reSama has a brilliant futureFulg0reSama has a brilliant futureFulg0reSama has a brilliant futureFulg0reSama has a brilliant futureFulg0reSama has a brilliant futureFulg0reSama has a brilliant futureFulg0reSama has a brilliant futureFulg0reSama has a brilliant future
Quote:
Originally Posted by Crono View Post
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!
__________________

Careful, thoughts and opinions here scare people.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 10:07 AM.


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