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 10-06-2011, 07:57 AM
Gunderak Gunderak is offline
Coder
Gunderak's Avatar
Join Date: Jun 2011
Location: Australia
Posts: 795
Gunderak is on a distinguished road
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?}
                 }; 
__________________

Gund for president.

Remote PM {P*}x (Graal813044) from eraiphone -> Stefan: I hav 1 qustion
*Gunderak: he hav 1
*Gunderak: qustion
Reply With Quote
  #2  
Old 10-06-2011, 03:46 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
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.
__________________
Quote:
Reply With Quote
  #3  
Old 10-06-2011, 05:00 PM
Emera Emera is offline
Delterian Hybrid
Emera's Avatar
Join Date: Mar 2011
Location: Newcastle Upon-Tyne
Posts: 1,704
Emera is a jewel in the roughEmera is a jewel in the rough
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?
__________________
Reply With Quote
  #4  
Old 10-06-2011, 07:34 PM
Gunderak Gunderak is offline
Coder
Gunderak's Avatar
Join Date: Jun 2011
Location: Australia
Posts: 795
Gunderak is on a distinguished road
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.
__________________

Gund for president.

Remote PM {P*}x (Graal813044) from eraiphone -> Stefan: I hav 1 qustion
*Gunderak: he hav 1
*Gunderak: qustion
Reply With Quote
  #5  
Old 10-07-2011, 02:33 AM
cbk1994 cbk1994 is offline
the fake one
cbk1994's Avatar
Join Date: Mar 2003
Location: San Francisco
Posts: 10,718
cbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond repute
Send a message via AIM to cbk1994
Quote:
Originally Posted by Gunderak View Post
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 View Post
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.
__________________
Reply With Quote
  #6  
Old 10-07-2011, 04:33 AM
Gunderak Gunderak is offline
Coder
Gunderak's Avatar
Join Date: Jun 2011
Location: Australia
Posts: 795
Gunderak is on a distinguished road
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.
__________________

Gund for president.

Remote PM {P*}x (Graal813044) from eraiphone -> Stefan: I hav 1 qustion
*Gunderak: he hav 1
*Gunderak: qustion
Reply With Quote
  #7  
Old 10-07-2011, 05:28 AM
cbk1994 cbk1994 is offline
the fake one
cbk1994's Avatar
Join Date: Mar 2003
Location: San Francisco
Posts: 10,718
cbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond repute
Send a message via AIM to cbk1994
It's a multi-dimensional array.

PHP Code:
temp.replace = {
  {
"item1"whatever},
  {
"item2"whatever}
}; 
__________________
Reply With Quote
  #8  
Old 10-07-2011, 07:08 AM
Gunderak Gunderak is offline
Coder
Gunderak's Avatar
Join Date: Jun 2011
Location: Australia
Posts: 795
Gunderak is on a distinguished road
Thanks a bunch!
__________________

Gund for president.

Remote PM {P*}x (Graal813044) from eraiphone -> Stefan: I hav 1 qustion
*Gunderak: he hav 1
*Gunderak: qustion
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 01:21 PM.


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