Graal Forums

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

Gunderak 10-06-2011 07:57 AM

RC Chat Window?
 
I couldnt think of a title.
Anywy as some of you may know im trying to make a rc chat window for iDevices.
Is there any way to get the latest rc line? in this section of the class.
PHP Code:

  temp.replace = {
                   {
"RCCHAT"rc.chat.window?}
                 }; 


fowlplay4 10-06-2011 03:46 PM

There are only a few ways to get the RC chat:
1. Setting up logging on your RC and having a program watch the file for changes
2. Having a script hook into onRCChat() on someone's client and get the line by line there.

Emera 10-06-2011 05:00 PM

I am not even going to being trying to make sense of all this. But, couldn't you tell the control-NPC to send the chat going into and out from RC to a web server, then tell your iDevice app to retrieve the data from that web server? I don't even know how to do it, but wouldn't that work?

Gunderak 10-06-2011 07:34 PM

Yes id assume thats how itd work, but i am really unsure of how i could incorperate this into cbk1994's web server. i know how to script it but now using his system.
also @fowlplay you'd probably be able to answer this.
how would i add more items in the temp. array? iv'e tried and it doesnt seem to work.

cbk1994 10-07-2011 02:33 AM

Quote:

Originally Posted by Gunderak (Post 1670165)
how would i add more items in the temp. array? iv'e tried and it doesnt seem to work.

What do you mean by "add more items"? What have you tried so far? It's just an array.

Quote:

Originally Posted by Emera (Post 1670151)
I am not even going to being trying to make sense of all this. But, couldn't you tell the control-NPC to send the chat going into and out from RC to a web server, then tell your iDevice app to retrieve the data from that web server? I don't even know how to do it, but wouldn't that work?

No, because as Jer said, there are only really those two (known?) ways to get regular RC chat. There is no script function for it.

Gunderak 10-07-2011 04:33 AM

Well like to add more things to be replaced to the array, how would you go about doing it in this case?
PHP Code:

 temp.replace = { 
                   {
"Item1"allplayers.size(), "item2"whatever
                 }; 

I have tried this.

cbk1994 10-07-2011 05:28 AM

It's a multi-dimensional array.

PHP Code:

temp.replace = {
  {
"item1"whatever},
  {
"item2"whatever}
}; 


Gunderak 10-07-2011 07:08 AM

Thanks a bunch!


All times are GMT +2. The time now is 04:58 AM.

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