Graal Forums  

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

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 02-05-2007, 12:35 AM
Matt Matt is offline
iZone Administrator
Matt's Avatar
Join Date: Apr 2005
Location: United States
Posts: 2,690
Matt is a jewel in the roughMatt is a jewel in the rough
Nice work, Skyld. I'm adding this to Dark Nations now.

Edit: When i open client RC, the backround images and all buttons don't show. Do we still need the other WEAPONS still (FileBrowser,TextEditor ect..)?
Attached Thumbnails
Click image for larger version

Name:	clientrc.png
Views:	521
Size:	88.7 KB
ID:	39427  
__________________
Need Playerworld or Account support?
GraalOnline/Toonslab Support Center
Reply With Quote
  #2  
Old 02-05-2007, 10:05 PM
zokemon zokemon is offline
That one guy...
zokemon's Avatar
Join Date: Mar 2001
Location: Sonoma County, California
Posts: 2,925
zokemon is a jewel in the roughzokemon is a jewel in the rough
Send a message via ICQ to zokemon Send a message via AIM to zokemon Send a message via MSN to zokemon Send a message via Yahoo to zokemon
Nice job Skyld. I'll try to check it out on Debug.
__________________
Do it with a DON!
Reply With Quote
  #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
  #4  
Old 05-03-2007, 09:18 AM
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
Re: Rudora DB NPCs

Quote:
Originally Posted by xXziroXx View Post
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?
Hmm, I discovered this problem a while ago on Graal X I think it was, but if the Client-RC is returning 1 when you request it but is not really responding properly, that's more of a gserver issue that's out of my control. Might need to get Stefan to look into it.
__________________
Skyld
Reply With Quote
  #5  
Old 05-03-2007, 09:41 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
Quote:
Originally Posted by Skyld View Post
Hmm, I discovered this problem a while ago on Graal X I think it was, but if the Client-RC is returning 1 when you request it but is not really responding properly, that's more of a gserver issue that's out of my control. Might need to get Stefan to look into it.
Would appreciate if you would.
__________________
Follow my work on social media post-Graal:Updated august 2025.
Reply With Quote
  #6  
Old 05-03-2007, 07:02 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
Quote:
Originally Posted by Twinny View Post
Perhaps make it send the close clientrc command and then the establish clientrc one on F6?
That's what I did in example #2.
__________________
Follow my work on social media post-Graal:Updated august 2025.
Reply With Quote
  #7  
Old 05-15-2007, 11:24 PM
Switch Switch is offline
o.o
Switch's Avatar
Join Date: Jan 2007
Location: Philadelphia
Posts: 3,038
Switch has a spectacular aura about
Send a message via MSN to Switch
I need the button images x.x
__________________
Oh squiggly line in my eye fluid. I see you lurking there on the peripheral of my vision.
But when I try to look at you, you scurry away.
Are you shy, squiggly line?
Why only when I ignore you, do you return to the center of my eye?
Oh, squiggly line, it's alright, you are forgiven.
Reply With Quote
  #8  
Old 05-15-2007, 11: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 Switch View Post
I need the button images x.x
Didn't you read the first post?
Quote:
Originally Posted by Skyld
  • If you are having trouble with images not loading, log onto Rudora and go into Updates. You'll find a package with Scripted RC images there, which should install the images and work across servers.
__________________
Skyld
Reply With Quote
  #9  
Old 05-16-2007, 12:19 AM
Switch Switch is offline
o.o
Switch's Avatar
Join Date: Jan 2007
Location: Philadelphia
Posts: 3,038
Switch has a spectacular aura about
Send a message via MSN to Switch
I did. There were no files x.x
__________________
Oh squiggly line in my eye fluid. I see you lurking there on the peripheral of my vision.
But when I try to look at you, you scurry away.
Are you shy, squiggly line?
Why only when I ignore you, do you return to the center of my eye?
Oh, squiggly line, it's alright, you are forgiven.
Reply With Quote
  #10  
Old 05-16-2007, 12:19 AM
Switch Switch is offline
o.o
Switch's Avatar
Join Date: Jan 2007
Location: Philadelphia
Posts: 3,038
Switch has a spectacular aura about
Send a message via MSN to Switch
Oh wait, there ARE no 'updates' x.x
__________________
Oh squiggly line in my eye fluid. I see you lurking there on the peripheral of my vision.
But when I try to look at you, you scurry away.
Are you shy, squiggly line?
Why only when I ignore you, do you return to the center of my eye?
Oh, squiggly line, it's alright, you are forgiven.
Reply With Quote
  #11  
Old 05-16-2007, 12:27 AM
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
They are listed for me. :|
__________________
Skyld

Last edited by Skyld; 05-16-2007 at 01:46 AM..
Reply With Quote
  #12  
Old 05-16-2007, 12:29 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
Logon Rudora > Press F8 > Click on the "Start" button in the bottom left of the screen > Chose "Install Packages" and install the Scripted RC buttons.

Voilá.
__________________
Follow my work on social media post-Graal:Updated august 2025.
Reply With Quote
  #13  
Old 05-16-2007, 12:31 AM
Switch Switch is offline
o.o
Switch's Avatar
Join Date: Jan 2007
Location: Philadelphia
Posts: 3,038
Switch has a spectacular aura about
Send a message via MSN to Switch
Okay, but there's nothing there =\
Someone IM me it VIA AIM: sportkid0703

x.x
__________________
Oh squiggly line in my eye fluid. I see you lurking there on the peripheral of my vision.
But when I try to look at you, you scurry away.
Are you shy, squiggly line?
Why only when I ignore you, do you return to the center of my eye?
Oh, squiggly line, it's alright, you are forgiven.
Reply With Quote
  #14  
Old 05-16-2007, 12:40 AM
Switch Switch is offline
o.o
Switch's Avatar
Join Date: Jan 2007
Location: Philadelphia
Posts: 3,038
Switch has a spectacular aura about
Send a message via MSN to Switch
Couldn't add it to above, but took screeny

Edit: AHAHAH JUST NOTICED THAT I TOOK IT WHEN MY FRIEND GOT BACK FROM AWAY ON AIM AHAHAHAH xD
__________________
Oh squiggly line in my eye fluid. I see you lurking there on the peripheral of my vision.
But when I try to look at you, you scurry away.
Are you shy, squiggly line?
Why only when I ignore you, do you return to the center of my eye?
Oh, squiggly line, it's alright, you are forgiven.

Last edited by Switch; 08-29-2007 at 02:06 AM..
Reply With Quote
  #15  
Old 05-16-2007, 09:12 AM
Twinny Twinny is offline
My empire of dirt
Twinny's Avatar
Join Date: Mar 2006
Location: Australia
Posts: 2,422
Twinny is just really niceTwinny is just really nice
Send a message via AIM to Twinny
I don't see it either. Will it only give the option for Mac-based operating systems?
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 03:24 PM.


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