Graal Forums

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

Rapidwolve 03-31-2007 06:03 AM

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.

Chandler 03-31-2007 08:56 AM

Just wondering, how would you use this?

Rapidwolve 03-31-2007 08:01 PM

Player chats, inputs, etc..

Skyld 03-31-2007 08:03 PM

Explain exactly what this function would do. I am not certain I understand it's function.

Tyhm 03-31-2007 08:33 PM

So #c.filter(newbie,n**b); ?

Skyld 03-31-2007 09:54 PM

Quote:

Originally Posted by Tyhm (Post 1295040)
So #c.filter(newbie,n**b); ?

That is horrible practice. #messagecodes are deprecated in the new engine and should stay that way. >:(

godofwarares 03-31-2007 10:48 PM

Quote:

Originally Posted by Tyhm (Post 1295040)
So #c.filter(newbie,n**b); ?

Wtf?
Thats the worst code i've seen in a LONG time xD

Chompy 03-31-2007 11:08 PM

So,
PHP Code:

player.chat.filter("foo""bar"); 

something around there?

Quote:

Originally Posted by godofwarares (Post 1295081)
Wtf?
Thats the worst code i've seen in a LONG time xD

It was an example tho..

godofwarares 04-01-2007 12:56 AM

Quote:

Originally Posted by Chompy (Post 1295089)
It was an example tho..

Even so.

Admins 04-01-2007 04:39 AM

It is planned that scripts can use the wordfilter thing that is used to filter in-game chat, PMs and RC chat.

Chandler 04-01-2007 12:29 PM

Quote:

Originally Posted by Tyhm (Post 1295040)
So #c.filter(newbie,n**b); ?

I wouldn't mind this feature.
PHP Code:

player.chat.filter("Era""arE"); 

=D

Rapidwolve 04-01-2007 04:23 PM

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);



Chandler 04-01-2007 04:41 PM

Quote:

Originally Posted by Rapidwolve (Post 1295309)
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.

Rapidwolve 04-01-2007 04:42 PM

player.account.filter()? How are you going to filter someones account. o_o

Chandler 04-01-2007 04:49 PM

Quote:

Originally Posted by Rapidwolve (Post 1295318)
player.account.filter()? How are you going to filter someones account. o_o

Hahaha.

cbk1994 04-01-2007 11:29 PM

This would be a nice feature, hope it gets added. I agree, how are you going to change the account?

Inverness 04-01-2007 11:29 PM

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


All times are GMT +2. The time now is 10:41 AM.

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