Graal Forums  

Go Back   Graal Forums > Graal V6 forums > Your opinion
FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply
 
Thread Tools Search this Thread Rate Thread Display Modes
  #1  
Old 09-12-2008, 11:02 AM
TSAdmin TSAdmin is offline
Forum Moderator
TSAdmin's Avatar
Join Date: Aug 2006
Location: Australia
Posts: 1,980
TSAdmin is a splendid one to beholdTSAdmin is a splendid one to beholdTSAdmin is a splendid one to beholdTSAdmin is a splendid one to beholdTSAdmin is a splendid one to behold
Opinion: echo != sendToNC

This has been posted many, many, many times in one way or another, I am well aware of that, but at least this isn't a request to just make something like an echo2() or sendToNC2() type thing.

Scripting Opinion:

echo() and sendToNC() should not do the same thing, so to speak. Here's what I think it should do-

Quote:
echo() - Act the same way as sendToRC, but you don't have to worry about it ALWAYS starting with "Your Server Nickname (Server): Message" and can make it act the same as it would for NC so that anything before the ":" is in green, however everyone on RC can see it.

sendToNC() - Remain as it is and used for ONLY messages to be sent to the NC users.
This comes [from me] after seeing Tig trying to make something for detecting a form of hacking via GScript2 and it looks really bad when the only way for it to appear as:
Hacker Detection: Information
and only NC users can see it, and not RC users who may have the ability to do something about it, making it only possible for them to see it for it to appear like such:
Server Name (Server): Hacker Detection: Information
__________________
TSAdmin (Forum Moderator)
Welcome to the Official GraalOnline Forums! Where sharing an opinion may be seen as a declaration of war!
------------------------
· User Agreement · Code of Conduct · Forum Rules ·
· Graal Support · Administrative Contacts ·

Last edited by TSAdmin; 09-12-2008 at 11:27 AM..
Reply With Quote
  #2  
Old 09-12-2008, 01:19 PM
xXziroXx xXziroXx is offline
Master of Puppets
xXziroXx's Avatar
Join Date: May 2004
Location: Sweden
Posts: 5,288
xXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant future
Send a message via AIM to xXziroXx Send a message via MSN to xXziroXx
Agreed, echo should be visible for everyone with RC, and sendToNC only for those with NC rights.
__________________

"A delayed game is eventually good, but a rushed game is forever bad." - Shigeru Miyamoto
Reply With Quote
  #3  
Old 09-12-2008, 03:46 PM
Chompy Chompy is offline
¯\(º_o)/¯
Chompy's Avatar
Join Date: Sep 2006
Location: Norway
Posts: 2,815
Chompy is just really niceChompy is just really niceChompy is just really nice
Send a message via MSN to Chompy
When debugging a script I prefer to use echo() since onyl nc users will see it.. Will be odd to have to switch to sendtonc() just to debug stuff :o
__________________
Reply With Quote
  #4  
Old 09-12-2008, 03:58 PM
Deas_Voice Deas_Voice is offline
Deas
Deas_Voice's Avatar
Join Date: Jun 2007
Location: Sweden
Posts: 2,264
Deas_Voice is a jewel in the roughDeas_Voice is a jewel in the rough
Send a message via AIM to Deas_Voice Send a message via MSN to Deas_Voice Send a message via Yahoo to Deas_Voice
what about sendToRC()?
__________________
.
WTF is real life, and where do I Download it?
There is no Real Life, just AFK!
since 2003~
I Support~
ღAeonღ | ღTestbedღ | ღDelteriaღ

if you are going to rep me, don't be an idiot, leave your name!
I got nothing but love for you
Reply With Quote
  #5  
Old 09-12-2008, 04:03 PM
Chompy Chompy is offline
¯\(º_o)/¯
Chompy's Avatar
Join Date: Sep 2006
Location: Norway
Posts: 2,815
Chompy is just really niceChompy is just really niceChompy is just really nice
Send a message via MSN to Chompy
I think it echo should have a choosable second parameter..

echo(test[, nc?]);

so..

PHP Code:
echo("Only people who have NC will see this!");

echo(
"All people who is on rc will see this!"true); 
If second parameter is true, all uses will see it. If false or nil, only nc users will see it
__________________
Reply With Quote
  #6  
Old 09-12-2008, 04:09 PM
Deas_Voice Deas_Voice is offline
Deas
Deas_Voice's Avatar
Join Date: Jun 2007
Location: Sweden
Posts: 2,264
Deas_Voice is a jewel in the roughDeas_Voice is a jewel in the rough
Send a message via AIM to Deas_Voice Send a message via MSN to Deas_Voice Send a message via Yahoo to Deas_Voice
Quote:
Originally Posted by Chompy View Post
I think it echo should have a choosable second parameter..

echo(test[, nc?]);

so..

PHP Code:
echo("Only people who have NC will see this!");

echo(
"All people who is on rc will see this!"true); 
If second parameter is true, all uses will see it. If false or nil, only nc users will see it
and you just forgot the clientside part of echo()?
__________________
.
WTF is real life, and where do I Download it?
There is no Real Life, just AFK!
since 2003~
I Support~
ღAeonღ | ღTestbedღ | ღDelteriaღ

if you are going to rep me, don't be an idiot, leave your name!
I got nothing but love for you
Reply With Quote
  #7  
Old 09-12-2008, 04:22 PM
Chompy Chompy is offline
¯\(º_o)/¯
Chompy's Avatar
Join Date: Sep 2006
Location: Norway
Posts: 2,815
Chompy is just really niceChompy is just really niceChompy is just really nice
Send a message via MSN to Chompy
Quote:
Originally Posted by Deas_Voice View Post
and you just forgot the clientside part of echo()?
I was thinking more of the serverside part.

echo() clientside is like savelog() (Dunno if it is still or if savelog() was changed) and sendrpgmessage()
__________________
Reply With Quote
  #8  
Old 09-12-2008, 04:28 PM
Loriel Loriel is offline
Somewhat rusty
Loriel's Avatar
Join Date: Mar 2001
Posts: 5,059
Loriel is a name known to allLoriel is a name known to allLoriel is a name known to allLoriel is a name known to all
Can you just use one of those fancy chat room devices and write your own echo and have everybody who is interested in its output join the room in question
Reply With Quote
  #9  
Old 09-12-2008, 05:31 PM
Tigairius Tigairius is offline
The Cat
Tigairius's Avatar
Join Date: Jan 2007
Location: Missouri, USA
Posts: 4,240
Tigairius has a brilliant futureTigairius has a brilliant futureTigairius has a brilliant futureTigairius has a brilliant futureTigairius has a brilliant futureTigairius has a brilliant futureTigairius has a brilliant futureTigairius has a brilliant future
Quote:
Originally Posted by Chompy View Post
When debugging a script I prefer to use echo() since onyl nc users will see it.. Will be odd to have to switch to sendtonc() just to debug stuff :o
I disagree, not going to elaborate.
__________________


“Shoot for the moon. Even if you miss, you'll land among the stars.”
Reply With Quote
  #10  
Old 09-13-2008, 12:33 AM
TSAdmin TSAdmin is offline
Forum Moderator
TSAdmin's Avatar
Join Date: Aug 2006
Location: Australia
Posts: 1,980
TSAdmin is a splendid one to beholdTSAdmin is a splendid one to beholdTSAdmin is a splendid one to beholdTSAdmin is a splendid one to beholdTSAdmin is a splendid one to behold
Let me put this simple:

There is no need to ADD to it, or CHANGE it as such, just remove the restriction from echo().

Let echo do what I said, and let sendToNC do what it even is written as: Sends to NC
__________________
TSAdmin (Forum Moderator)
Welcome to the Official GraalOnline Forums! Where sharing an opinion may be seen as a declaration of war!
------------------------
· User Agreement · Code of Conduct · Forum Rules ·
· Graal Support · Administrative Contacts ·
Reply With Quote
  #11  
Old 09-13-2008, 12:36 AM
Deas_Voice Deas_Voice is offline
Deas
Deas_Voice's Avatar
Join Date: Jun 2007
Location: Sweden
Posts: 2,264
Deas_Voice is a jewel in the roughDeas_Voice is a jewel in the rough
Send a message via AIM to Deas_Voice Send a message via MSN to Deas_Voice Send a message via Yahoo to Deas_Voice
Quote:
Originally Posted by TSAdmin View Post
Let me put this simple:

There is no need to ADD to it, or CHANGE it as such, just remove the restriction from echo().

Let echo do what I said, and let sendToNC do what it even is written as: Sends to NC
but everyone can see sendToRc() right?
but it comes with the name(Server) thing..
__________________
.
WTF is real life, and where do I Download it?
There is no Real Life, just AFK!
since 2003~
I Support~
ღAeonღ | ღTestbedღ | ღDelteriaღ

if you are going to rep me, don't be an idiot, leave your name!
I got nothing but love for you
Reply With Quote
  #12  
Old 09-13-2008, 12:37 AM
Frankie Frankie is offline
xChugxLifex
Frankie's Avatar
Join Date: Feb 2008
Location: New York
Posts: 1,610
Frankie is a jewel in the roughFrankie is a jewel in the rough
Send a message via AIM to Frankie Send a message via MSN to Frankie
I like using echo() when sending system messages to RC because it looks neater, and the stuff I would send is usually something all RCs should see.
__________________
*Sum41Freeeeek
*Frankie
Reply With Quote
  #13  
Old 09-13-2008, 12:43 AM
TSAdmin TSAdmin is offline
Forum Moderator
TSAdmin's Avatar
Join Date: Aug 2006
Location: Australia
Posts: 1,980
TSAdmin is a splendid one to beholdTSAdmin is a splendid one to beholdTSAdmin is a splendid one to beholdTSAdmin is a splendid one to beholdTSAdmin is a splendid one to behold
Quote:
Originally Posted by Deas_Voice View Post
but everyone can see sendToRc() right?
but it comes with the name(Server) thing..
This is pretty much what I mean, yes.

Quote:
*TSAdmin: Yeah, there just has to be an easier way to get simple messages to people without NC rights without having to go through sendToRC() just which is filled to the brim with "YOUR SERVER NICKNAME MIGHT BE SUPER LONG HERE (Server)" preceeding it.
__________________
TSAdmin (Forum Moderator)
Welcome to the Official GraalOnline Forums! Where sharing an opinion may be seen as a declaration of war!
------------------------
· User Agreement · Code of Conduct · Forum Rules ·
· Graal Support · Administrative Contacts ·
Reply With Quote
  #14  
Old 09-27-2008, 01:58 AM
Tigairius Tigairius is offline
The Cat
Tigairius's Avatar
Join Date: Jan 2007
Location: Missouri, USA
Posts: 4,240
Tigairius has a brilliant futureTigairius has a brilliant futureTigairius has a brilliant futureTigairius has a brilliant futureTigairius has a brilliant futureTigairius has a brilliant futureTigairius has a brilliant futureTigairius has a brilliant future
http://wiki.graal.net/index.php/Serv..._output_to_RCs



PHP Code:
sendechotorc=true/false 
Stefan added it a few days ago it looks like
__________________


“Shoot for the moon. Even if you miss, you'll land among the stars.”
Reply With Quote
  #15  
Old 09-27-2008, 02:55 AM
TSAdmin TSAdmin is offline
Forum Moderator
TSAdmin's Avatar
Join Date: Aug 2006
Location: Australia
Posts: 1,980
TSAdmin is a splendid one to beholdTSAdmin is a splendid one to beholdTSAdmin is a splendid one to beholdTSAdmin is a splendid one to beholdTSAdmin is a splendid one to behold
Loving it :] Excellent compromise. Thanks Stefan.

Edit: Though, for this to work locally, does the local NPC Server require any action by Stefan? I set it to true and normal RCs could not see the test.
__________________
TSAdmin (Forum Moderator)
Welcome to the Official GraalOnline Forums! Where sharing an opinion may be seen as a declaration of war!
------------------------
· User Agreement · Code of Conduct · Forum Rules ·
· Graal Support · Administrative Contacts ·

Last edited by TSAdmin; 09-27-2008 at 04:18 AM..
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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 03:48 AM.


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