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 03-31-2007, 06:03 AM
Rapidwolve Rapidwolve is offline
Registered User
Join Date: Jul 2006
Posts: 1,241
Rapidwolve is an unknown quantity at this point
obj.filter()

Me and Hotrian were having a little talk and we decided that it would be really useful to have a default obj.filter();

Quote:
Originally Posted by Hotrian
obj.filter(array,str);
array to filter from obj, whats in the array
str to replace everything in the obj (which has been filtered), with it, no str for
default (*)
I understand this can be scripted, you dont have to tell me that.
Reply With Quote
  #2  
Old 03-31-2007, 08:56 AM
Chandler Chandler is offline
Banned
Join Date: Jan 2007
Posts: 656
Chandler will become famous soon enough
Just wondering, how would you use this?
Reply With Quote
  #3  
Old 03-31-2007, 08:01 PM
Rapidwolve Rapidwolve is offline
Registered User
Join Date: Jul 2006
Posts: 1,241
Rapidwolve is an unknown quantity at this point
Player chats, inputs, etc..
Reply With Quote
  #4  
Old 03-31-2007, 08:03 PM
Skyld Skyld is offline
Script-fu
Skyld's Avatar
Join Date: Jan 2002
Location: United Kingdom
Posts: 3,914
Skyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud of
Send a message via AIM to Skyld
Explain exactly what this function would do. I am not certain I understand it's function.
__________________
Skyld
Reply With Quote
  #5  
Old 03-31-2007, 08:33 PM
Tyhm Tyhm is offline
Psionic Youth
Tyhm's Avatar
Join Date: Mar 2001
Location: Babord, West Graal Deaths:1009 Kills:1
Posts: 5,635
Tyhm has a spectacular aura about
So #c.filter(newbie,n**b); ?
__________________
"Whatever," said Bean, "I was just glad to get out of the toilet."

"Power does not corrupt. Fear corrupts, perhaps the fear of a loss of power."- John Steinbeck
"I'm only acting retarded, what's your excuse?" queried the Gord.
- My pet, the Levelup Gnome

http://forums.graalonline.com/forums...&postcount=233
Reply With Quote
  #6  
Old 03-31-2007, 09:54 PM
Skyld Skyld is offline
Script-fu
Skyld's Avatar
Join Date: Jan 2002
Location: United Kingdom
Posts: 3,914
Skyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud of
Send a message via AIM to Skyld
Quote:
Originally Posted by Tyhm View Post
So #c.filter(newbie,n**b); ?
That is horrible practice. #messagecodes are deprecated in the new engine and should stay that way. >
__________________
Skyld
Reply With Quote
  #7  
Old 03-31-2007, 10:48 PM
godofwarares godofwarares is offline
Webmaster
godofwarares's Avatar
Join Date: Dec 2006
Location: Florida
Posts: 552
godofwarares is on a distinguished road
Send a message via ICQ to godofwarares Send a message via AIM to godofwarares Send a message via MSN to godofwarares Send a message via Yahoo to godofwarares
Quote:
Originally Posted by Tyhm View Post
So #c.filter(newbie,n**b); ?
Wtf?
Thats the worst code i've seen in a LONG time xD
__________________
What signature? I see no signature?
Reply With Quote
  #8  
Old 03-31-2007, 11:08 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
So,
PHP Code:
player.chat.filter("foo""bar"); 
something around there?

Quote:
Originally Posted by godofwarares View Post
Wtf?
Thats the worst code i've seen in a LONG time xD
It was an example tho..
__________________
Reply With Quote
  #9  
Old 04-01-2007, 12:56 AM
godofwarares godofwarares is offline
Webmaster
godofwarares's Avatar
Join Date: Dec 2006
Location: Florida
Posts: 552
godofwarares is on a distinguished road
Send a message via ICQ to godofwarares Send a message via AIM to godofwarares Send a message via MSN to godofwarares Send a message via Yahoo to godofwarares
Quote:
Originally Posted by Chompy View Post
It was an example tho..
Even so.
__________________
What signature? I see no signature?
Reply With Quote
  #10  
Old 04-01-2007, 04:39 AM
Admins Admins is offline
Graal Administration
Join Date: Jan 2000
Location: Admins
Posts: 11,693
Admins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud of
It is planned that scripts can use the wordfilter thing that is used to filter in-game chat, PMs and RC chat.
Reply With Quote
  #11  
Old 04-01-2007, 12:29 PM
Chandler Chandler is offline
Banned
Join Date: Jan 2007
Posts: 656
Chandler will become famous soon enough
Quote:
Originally Posted by Tyhm View Post
So #c.filter(newbie,n**b); ?
I wouldn't mind this feature.
PHP Code:
player.chat.filter("Era""arE"); 
=D

Last edited by Skyld; 04-01-2007 at 12:57 PM.. Reason: Stop it
Reply With Quote
  #12  
Old 04-01-2007, 04:23 PM
Rapidwolve Rapidwolve is offline
Registered User
Join Date: Jul 2006
Posts: 1,241
Rapidwolve is an unknown quantity at this point
Well I'm not really sure what the "str" param would contain so obj.filter(array) would make more sense.
PHP Code:
this.cantsay = {"era""chandler""newb"};

function 
onPlayerChats() {
   
player.chat.filter(this.cantsay);

Reply With Quote
  #13  
Old 04-01-2007, 04:41 PM
Chandler Chandler is offline
Banned
Join Date: Jan 2007
Posts: 656
Chandler will become famous soon enough
Quote:
Originally Posted by Rapidwolve View Post
Well I'm not really sure what the "str" param would contain so obj.filter(array) would make more sense.
PHP Code:
this.cantsay = {"era""chandler""newb"};

function 
onPlayerChats() {
   
player.chat.filter(this.cantsay);

Depends, on how you perceive the world "filter".
PHP Code:
player.account.filter({"Rapidwolve""off sod"}); 
Rearrange the last part.
Reply With Quote
  #14  
Old 04-01-2007, 04:42 PM
Rapidwolve Rapidwolve is offline
Registered User
Join Date: Jul 2006
Posts: 1,241
Rapidwolve is an unknown quantity at this point
player.account.filter()? How are you going to filter someones account. o_o
Reply With Quote
  #15  
Old 04-01-2007, 04:49 PM
Chandler Chandler is offline
Banned
Join Date: Jan 2007
Posts: 656
Chandler will become famous soon enough
Quote:
Originally Posted by Rapidwolve View Post
player.account.filter()? How are you going to filter someones account. o_o
Hahaha.
Reply With Quote
  #16  
Old 04-01-2007, 11:29 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
This would be a nice feature, hope it gets added. I agree, how are you going to change the account?
__________________
Reply With Quote
  #17  
Old 04-01-2007, 11:29 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
If it was possible to add functions to TGraalVar this would be easy to script

Just make it possible to join classes to object types or something :o
__________________
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:13 AM.


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