View Single Post
  #3  
Old 05-03-2007, 06:56 AM
xXziroXx xXziroXx is offline
Malorian
xXziroXx's Avatar
Join Date: May 2004
Posts: 5,289
xXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant future
Skyld, remember how it didn't work on Mythic? I found out why.

If another NPC requests client RC before you open it, it will not work unless the NPC has requested the client RC to be closed. Let me show an example..


Example #1
Step #1:
PHP Code:
// Script of a wNPC
//#CLIENTSIDE
function onCreated() requestText("clientrc"1); 
Step #2:
Player press F6 for client RC to open

Result: Nothing but RC chat works in client RC. Weapons, NPCs, files, serveroptions.. NOTHING else will work other then RC chat.


Example #2
PHP Code:
// Script of a wNPC
//#CLIENTSIDE
function onCreated() requestText("clientrc"1);

function 
onReceiveText(texttypetextoptiontextlines) {
  switch (
texttype) {
    case 
"clientrc":
      
requestText("options""");
    break;
    
    case 
"options":
      
triggerServer("gui"name"updatestaffs"textlines.tokenize(), servername);
      
requestText("clientrc"0);
    break;
  }

Step #2:
Player press F6 for client RC to open

Result: Client RC will work perfectly.


So basically, if another script requests client RC for something (in my example, my script that checks serveroptions for all staff) and the client RC is opened before the script closes the client RC.. it wont work.

If I don't make any sense, please do ask what you want to know.

Don't suppose this "error" is something that could be fixed Skyld?
__________________
Follow my work on social media post-Graal:Updated august 2025.
Reply With Quote