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-28-2011, 09:46 AM
Gunderak Gunderak is offline
Coder
Gunderak's Avatar
Join Date: Jun 2011
Location: Australia
Posts: 795
Gunderak is on a distinguished road
onRcPlayerChats(){ ?

Is there any form of onRcPlayerChats
I know of onRCChat(){
but that will only work if you open the scripted rc.
I ask this question because I am trying to script an rc chat system for non gold staff.
__________________

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-28-2011, 03:54 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
No. (You were already told this...)
__________________
Quote:
Reply With Quote
  #3  
Old 10-28-2011, 04:19 PM
Gunderak Gunderak is offline
Coder
Gunderak's Avatar
Join Date: Jun 2011
Location: Australia
Posts: 795
Gunderak is on a distinguished road
yes but is there any form of even reading it from the rclog.txt file?
I have kinda worded my question wrong aswell.
And btw I can barely remember what I have eaten for breakfast, let alone that one fact
__________________

Gund for president.

Remote PM {P*}x (Graal813044) from eraiphone -> Stefan: I hav 1 qustion
*Gunderak: he hav 1
*Gunderak: qustion
Reply With Quote
  #4  
Old 10-28-2011, 09:47 PM
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
rclog.txt is a log of RC actions, not chat. There's no known way to get RC chat serverside.
__________________
Reply With Quote
  #5  
Old 10-29-2011, 01:58 AM
Gunderak Gunderak is offline
Coder
Gunderak's Avatar
Join Date: Jun 2011
Location: Australia
Posts: 795
Gunderak is on a distinguished road
bugger.
Is there any way to read from the rclog.txt file and load the last five lines excluding the date/time?
__________________

Gund for president.

Remote PM {P*}x (Graal813044) from eraiphone -> Stefan: I hav 1 qustion
*Gunderak: he hav 1
*Gunderak: qustion
Reply With Quote
  #6  
Old 10-29-2011, 02:19 AM
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 Gunderak View Post
bugger.
Is there any way to read from the rclog.txt file and load the last five lines excluding the date/time?
Something like this could work. This lists the "chat" of the other players, and adds something you will "chat".

PHP Code:
function onActionServerSide() {
  if (
params[0] == "AddText") {
    
temp.filename "logs/rclog.txt";
    
temp.lines = {params[1SPC "(" SPC params[2SPC "):" SPC params[3]};
    
temp.lines.savelines(temp.filename1);
    
temp.file.loadlines(filename);
    for (
temp.aallplayerstemp.a.triggerclient(name"ShowText"temp.file);
  }
}

//#CLIENTSIDE

//GUI stuff

function RC2_textedit01.onAction() {
  
triggerserver("gui"name"AddText"player.nickplayer.communitynameRC2_textedit01.text);
  
RC2_textedit01.text "";
}

function 
onActionClientSide() {
  if (
params[0] == "ShowText"RC2_chatlist_text.addrow(0temp.c[temp.cd]);

__________________
MEEP!
Reply With Quote
  #7  
Old 10-29-2011, 03:12 AM
Gunderak Gunderak is offline
Coder
Gunderak's Avatar
Join Date: Jun 2011
Location: Australia
Posts: 795
Gunderak is on a distinguished road
ok thanks, I'm have a little play around with that.
__________________

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 10:05 AM.


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