Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   Future Improvements (https://forums.graalonline.com/forums/forumdisplay.php?f=10)
-   -   sendtorc2 (https://forums.graalonline.com/forums/showthread.php?t=78216)

projectigi 01-04-2008 02:28 PM

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

Twinny 01-04-2008 02:39 PM

sendtonc()? Only people with NC can read it.

Otherwise, I think what you're asking for is near possible without a ****load of coding.

projectigi 01-04-2008 02:43 PM

Quote:

Originally Posted by Twinny (Post 1368002)
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

Twinny 01-04-2008 02:48 PM

Unless you can just do a sendpm() to each of the rcs..... (not sure if you can do .sendpm() on a rc object)

Inverness 01-04-2008 11:13 PM

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

bscharff 01-27-2008 02:32 AM

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)

Inverness 01-27-2008 01:58 PM

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.

cbk1994 01-27-2008 04:11 PM

Quote:

Originally Posted by Inverness (Post 1372214)
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 );
  }




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

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