Graal Forums  

Go Back   Graal Forums > Development Forums > Future Improvements
FAQ Members List Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 01-04-2008, 02:28 PM
projectigi projectigi is offline
Registered User
Join Date: Jan 2004
Posts: 403
projectigi is an unknown quantity at this point
sendtorc2

Hi,

I would find a command like
sendtorc2( <text>, <account> );
useful :o

I often wanted to put something in RC, put didn't because it was only interesting for 1 or 2 staff and the others would just get spammed
__________________
Reply With Quote
  #2  
Old 01-04-2008, 02:39 PM
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
sendtonc()? Only people with NC can read it.

Otherwise, I think what you're asking for is near possible without a ****load of coding.
Reply With Quote
  #3  
Old 01-04-2008, 02:43 PM
projectigi projectigi is offline
Registered User
Join Date: Jan 2004
Posts: 403
projectigi is an unknown quantity at this point
Quote:
Originally Posted by Twinny View Post
sendtonc()? Only people with NC can read it.

Otherwise, I think what you're asking for is near possible without a ****load of coding.
still everyone with nc will read it and people without nc can't read it o.ô
I just want to only a single person, like /scriptscan and other rc commands do
__________________
Reply With Quote
  #4  
Old 01-04-2008, 02:48 PM
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
Unless you can just do a sendpm() to each of the rcs..... (not sure if you can do .sendpm() on a rc object)
Reply With Quote
  #5  
Old 01-04-2008, 11:13 PM
Inverness Inverness is offline
Incubator
Inverness's Avatar
Join Date: Aug 2004
Location: Houston, Texas
Posts: 3,613
Inverness is a jewel in the roughInverness is a jewel in the rough
You can sendpm() to any players, and RC is a player, but sendpm() is not good enough.

We want to be able to send RC message to only account, there is no substitute
__________________
Reply With Quote
  #6  
Old 01-27-2008, 02:32 AM
bscharff bscharff is offline
Bloo
bscharff's Avatar
Join Date: Sep 2006
Location: San Antonio, Texas
Posts: 185
bscharff has a little shameless behaviour in the past
Send a message via AIM to bscharff Send a message via MSN to bscharff Send a message via Yahoo to bscharff
Bump!

I think he means send the message ONLY to the RC accounts that are in the params[0] array.

Such as:
sendtorc2({"bscharff","Inverness"},"Hi Bloo & Invern!");
Would ONLY show "Hi Bloo & Invern!" to the RC accounts bscharff & Inverness.

I would say to add sendtorc2(array, str), sendtonc2(array, str), and echo2(array, str)
__________________
Trying to be nice now...
Reply With Quote
  #7  
Old 01-27-2008, 01:58 PM
Inverness Inverness is offline
Incubator
Inverness's Avatar
Join Date: Aug 2004
Location: Houston, Texas
Posts: 3,613
Inverness is a jewel in the roughInverness is a jewel in the rough
Those commands would not require an array to determine who to send to, it would simply send to the current player object (the player executing the script).

Which can be changed using a with block.
__________________
Reply With Quote
  #8  
Old 01-27-2008, 04:11 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
Quote:
Originally Posted by Inverness View Post
Those commands would not require an array to determine who to send to, it would simply send to the current player object (the player executing the script).

Which can be changed using a with block.
Yes, that is typically the way programming systems would do it, but Graal would probably go the other approach with the array, simply because it is easier.

Actually, I suppose it might be just as easy to do something like:

findPlayer( "cbk1994" ).echo2( "foo" );

and then you would be able to make a function like
PHP Code:
public function massItaccsmsg )
{
  for ( 
temp.accs )
  {
    
findPlayertemp.).echo2msg );
  }

__________________
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 12:58 AM.


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