Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting > Code Gallery
FAQ Members List Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 04-28-2007, 11:59 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
Language Filter

This is a bad word filter on I worked just for the sake of keeping up my scripting skills (no current jobs).
HTML Code:
-Features
-- If player says a word in the list (not capital sensitive) it is replaced by *
-- Will stop all of the following & more (for example, the word cat):
--- cat
--- scat--- scats
--- s cat
--- s cat s
--- c at
--- ca t
-- Very easy to customize.
This is very easy to customize, all you need to do is add words to this.words; for example:
PHP Code:
this.words = { "word""peace""dude" }; 
can be changed to
PHP Code:
this.words = { "hi""yo""peace""happy" }; 
or so.

You can find this.words in the onCreated function. Here is the code.

Code for Weapon/GUI-Script -Filter:
PHP Code:
// Created by Chris Zakuto
//#CLIENTSIDE
function onCreatedNULL )
{
  
this.words =
  {
    
"mac",
    
"for",
    
"lyfe"
  
};
}
function 
onPlayerChatsNULL )
{
  
  if ( 
temp.chars != NULL )
  {
    
temp.chars.clear();
  }
 
  
temp.chat player.chat;
  if ( 
temp.rchat != NULL )
  {
    
temp.rchat "";
  }
  if ( 
temp.spac != NULL )
  {
    
temp.spac 0;
  }
  for ( 
temp.0temp.temp.chat.length(); temp.++ )
  {
    if ( 
temp.chat.substringtemp.i) != " " )
    {
      
temp.chars.add( { temp.temp.spactemp.chat.substringtemp.i), temp.spac } );
      
temp.rchat temp.rchat temp.chat.substringtemp.i);
    }
    else
    {
      
temp.spac ++;
    }
  }
  for ( 
temp.atemp.chars )
  {
    
temp.= ( temp.rchat.length() - temp.a[0] ) + 1;
    
    for ( 
temp.0temp.temp.ntemp.++ )
    {
      for ( 
temp.ythis.words )
      {
        if ( 
temp.== temp.rchat.substringtemp.a[0], temp.) )
        {
          
temp.filter temp.rchat.substringtemp.a[0], temp.);
          
temp.filter2 temp.filter.length();
          if ( 
temp.zz != NULL )
          {
            
temp.zz "";
          }
          for ( 
temp.var = 0temp.var < temp.filter2temp.var ++ )
          {
            
temp.zz temp.zz "*";
          }
          
player.chat "[*]";
        }
      }
    }
  }

__________________

Last edited by cbk1994; 04-29-2007 at 10:12 PM..
Reply With Quote
  #2  
Old 04-29-2007, 12:54 AM
Novo Novo is offline
[TServerDeveloper]
Join Date: Jun 2006
Posts: 448
Novo will become famous soon enough
Or... Use Graal's internal swear filter? It's been out for a long time. I forgot how it was set up, but it was files in a folder that could even block swearing in PMs.
Reply With Quote
  #3  
Old 04-29-2007, 01:01 AM
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 Novo View Post
Or... Use Graal's internal swear filter? It's been out for a long time. I forgot how it was set up, but it was files in a folder that could even block swearing in PMs.
I just love it when people flame other people for making something nice, and then say OMG THATS NOT NECCESARY! Go milk a cow Novo.
__________________
Reply With Quote
  #4  
Old 04-29-2007, 01:20 AM
ff7chocoboknight ff7chocoboknight is offline
Skyzer Zolderon
ff7chocoboknight's Avatar
Join Date: Dec 2006
Location: New Hampshire, United States
Posts: 725
ff7chocoboknight is a name known to allff7chocoboknight is a name known to allff7chocoboknight is a name known to allff7chocoboknight is a name known to all
Send a message via AIM to ff7chocoboknight Send a message via MSN to ff7chocoboknight
@Novo: lawl! u got pwnt!

@cbkbud: Good job, man. ;p
__________________
Reply With Quote
  #5  
Old 04-29-2007, 01:24 AM
Novo Novo is offline
[TServerDeveloper]
Join Date: Jun 2006
Posts: 448
Novo will become famous soon enough
http://forums.graalonline.com/forums...ad.php?t=48781

I never mentioned anything about how one can script. I merely said that there is better solutions for people whom are interested. Personally, I feel that you're being a hypocrite.
Reply With Quote
  #6  
Old 04-29-2007, 01:40 AM
Rapidwolve Rapidwolve is offline
Registered User
Join Date: Jul 2006
Posts: 1,241
Rapidwolve is an unknown quantity at this point
Graal has one internally? o_O
Reply With Quote
  #7  
Old 04-29-2007, 01:41 AM
Sulukra Sulukra is offline
Registered Punmaster
Sulukra's Avatar
Join Date: Jul 2005
Location: That place north of the U.S.
Posts: 860
Sulukra is on a distinguished road
Quote:
Originally Posted by Novo View Post
Or... Use Graal's internal swear filter? It's been out for a long time. I forgot how it was set up, but it was files in a folder that could even block swearing in PMs.
I recall that it didn't work too well - atleast, on Valikorlia, it tended to do weird stuff like block the word jello and laser. It was just weird.
__________________
Quote:
Originally Posted by Valikorlia IRC Chat
Sulukra:You guys up for twenty questions?
Cor:Yeah.
-Twenty questions later-
Cor:Alright, so we all fail. What was it?
Sulukra:My handheld 20 questions game.
Cor:Curse you, you Canadian fiend.
Reply With Quote
  #8  
Old 04-29-2007, 02:00 AM
ff7chocoboknight ff7chocoboknight is offline
Skyzer Zolderon
ff7chocoboknight's Avatar
Join Date: Dec 2006
Location: New Hampshire, United States
Posts: 725
ff7chocoboknight is a name known to allff7chocoboknight is a name known to allff7chocoboknight is a name known to allff7chocoboknight is a name known to all
Send a message via AIM to ff7chocoboknight Send a message via MSN to ff7chocoboknight
i remember it blocking th words chair and trashcan
__________________

Last edited by ff7chocoboknight; 04-29-2007 at 02:44 AM.. Reason: eep... thrashcan is a word
Reply With Quote
  #9  
Old 04-29-2007, 02:39 AM
Rapidwolve Rapidwolve is offline
Registered User
Join Date: Jul 2006
Posts: 1,241
Rapidwolve is an unknown quantity at this point
Quote:
Originally Posted by cbkbud View Post
(not capital sensitive)
If you want it to be case sensitive use lowercase() and make both the array and the parser lowercase, thats what I did o-o
Reply With Quote
  #10  
Old 04-29-2007, 04:15 AM
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 Rapidwolve View Post
If you want it to be case sensitive use lowercase() and make both the array and the parser lowercase, thats what I did o-o
Why would I want it case senitive?

cat and cAT don't make that much of a difference ...

Personally, Novo, I think you're being a hypocrite. Please look at the date on that post, 2003. I am almost positive it has been removed.
__________________
Reply With Quote
  #11  
Old 04-29-2007, 04:25 AM
DustyPorViva DustyPorViva is offline
Will work for food. Maybe
DustyPorViva's Avatar
Join Date: Sep 2003
Location: Maryland, USA
Posts: 9,589
DustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond repute
Send a message via AIM to DustyPorViva Send a message via MSN to DustyPorViva
Only problem I have with filters that detect words even with spaces is when you stay things like, "I was watching them and he was hit", the last two words gets censored out. But really no way to get around that.
Reply With Quote
  #12  
Old 04-29-2007, 04:29 AM
ff7chocoboknight ff7chocoboknight is offline
Skyzer Zolderon
ff7chocoboknight's Avatar
Join Date: Dec 2006
Location: New Hampshire, United States
Posts: 725
ff7chocoboknight is a name known to allff7chocoboknight is a name known to allff7chocoboknight is a name known to allff7chocoboknight is a name known to all
Send a message via AIM to ff7chocoboknight Send a message via MSN to ff7chocoboknight
Quote:
Originally Posted by DustyPorViva View Post
Only problem I have with filters that detect words even with spaces is when you stay things like, "I was watching them and he was hit", the last two words gets censored out. But really no way to get around that.
hate it when that happens
__________________
Reply With Quote
  #13  
Old 04-29-2007, 04:37 AM
DustyPorViva DustyPorViva is offline
Will work for food. Maybe
DustyPorViva's Avatar
Join Date: Sep 2003
Location: Maryland, USA
Posts: 9,589
DustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond repute
Send a message via AIM to DustyPorViva Send a message via MSN to DustyPorViva
A suggestion.
Perhaps you can kind of give your script a little AI. It might be a little burdening on the script, but maybe an idea for you, or anyone else who wants to try, is to document every character that is used as a substitute for every letter of the alphabet.
Such as....
s={"s","$"};
h={"h","|-|"};
m={"m","/\/\","|\/|"};
t={"t","+","7"};
and have the check use it as a reference for letters, and if any of those letters match one of the letters above, and end up translating into a curse word, censor it.
If that makes sense.
Reply With Quote
  #14  
Old 04-29-2007, 04:42 AM
ff7chocoboknight ff7chocoboknight is offline
Skyzer Zolderon
ff7chocoboknight's Avatar
Join Date: Dec 2006
Location: New Hampshire, United States
Posts: 725
ff7chocoboknight is a name known to allff7chocoboknight is a name known to allff7chocoboknight is a name known to allff7chocoboknight is a name known to all
Send a message via AIM to ff7chocoboknight Send a message via MSN to ff7chocoboknight
nice idea! (you ppl takin' notes?)
__________________
Reply With Quote
  #15  
Old 04-29-2007, 05:22 AM
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
I know N-Pulse uses the inbuilt filter.

By the way, i would have used function ChatBar.onAction() then check ChatBar.text rather than onPlayerChats()
Reply With Quote
  #16  
Old 04-29-2007, 08:40 AM
Chandler Chandler is offline
Banned
Join Date: Jan 2007
Posts: 656
Chandler will become famous soon enough
Quote:
Originally Posted by Twinny View Post
I know N-Pulse uses the inbuilt filter.

By the way, i would have used function ChatBar.onAction() then check ChatBar.text rather than onPlayerChats()
ok


I'd use the thing Novo suggested.
Reply With Quote
  #17  
Old 04-29-2007, 04:48 PM
ff7chocoboknight ff7chocoboknight is offline
Skyzer Zolderon
ff7chocoboknight's Avatar
Join Date: Dec 2006
Location: New Hampshire, United States
Posts: 725
ff7chocoboknight is a name known to allff7chocoboknight is a name known to allff7chocoboknight is a name known to allff7chocoboknight is a name known to all
Send a message via AIM to ff7chocoboknight Send a message via MSN to ff7chocoboknight
using onPlayerChats() shows the players chat for a second then its blocked I use this split second by saying the message over and over showing the message before the words are blocked eachtime (i do this on Zone)
__________________
Reply With Quote
  #18  
Old 04-29-2007, 10:14 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
It doesn't do that actually ...

Also, I made a major correction with the spacing. (edited my original post). If you are using this code you must update it for it to work!
__________________
Reply With Quote
  #19  
Old 04-30-2007, 12:02 AM
Riot Riot is offline
Delteria Management
Join Date: Nov 2003
Location: Seminole County, Florida
Posts: 280
Riot is on a distinguished road
Quote:
Originally Posted by ff7chocoboknight View Post
using onPlayerChats() shows the players chat for a second then its blocked I use this split second by saying the message over and over showing the message before the words are blocked eachtime (i do this on Zone)
The internal system only does this for you. It is censored before it is sent to other players.
Reply With Quote
  #20  
Old 04-30-2007, 01:15 AM
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 Riot View Post
The internal system only does this for you. It is censored before it is sent to other players.
Well what I made seems to block it right away, though we don't have much lag on the server ...
__________________
Reply With Quote
  #21  
Old 04-30-2007, 12:06 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
Quote:
Originally Posted by ff7chocoboknight View Post
using onPlayerChats() shows the players chat for a second then its blocked I use this split second by saying the message over and over showing the message before the words are blocked eachtime (i do this on Zone)
Where as
PHP Code:
//#CLIENTSIDE
function ChatBar.onAction()
{
  if (
ChatBar.text == "test!")
  {
    
ChatBar.text "Filtered!";
  }

This will set the player.chat as 'Filtered' instantly. ChatBar.onAction goes before onplayerchats(). If you were to set player.chat as "", the onplayerchats event won't even be called.
Reply With Quote
  #22  
Old 04-30-2007, 09:08 PM
Deadly_Killer Deadly_Killer is offline
Registered User
Join Date: Feb 2002
Posts: 227
Deadly_Killer is on a distinguished road
You can easily check which one receives faster by script.

Example:
PHP Code:
//#CLIENTSIDE
function onPlayerChats() {
  if (
player.chat == "test") {
    
player.chat "Test";
  }
}

function 
ChatBar.onAction() {
  if (
ChatBar.text == "test") {
    
ChatBar.text "Too Fast";
  }

You will notice that when you say test, onPlayerChats would try to change it to Test. Though, it isn't as fast as reading the GUI Chat Bar which will make you say Too Fast before onPlayerChats is even called.
__________________
- Zidane / Zidaya
Reply With Quote
  #23  
Old 05-01-2007, 01:29 AM
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
I understand that it is faster, I'm not worried about that. It works fine on my server, deal with it.
__________________
Reply With Quote
  #24  
Old 05-01-2007, 09:13 PM
Deadly_Killer Deadly_Killer is offline
Registered User
Join Date: Feb 2002
Posts: 227
Deadly_Killer is on a distinguished road
Quote:
Originally Posted by cbkbud View Post
I understand that it is faster, I'm not worried about that. It works fine on my server, deal with it.
Why do you think we are trying to bash you? We are only giving suggestions to improve your coding.
__________________
- Zidane / Zidaya
Reply With Quote
  #25  
Old 05-01-2007, 09:26 PM
Chandler Chandler is offline
Banned
Join Date: Jan 2007
Posts: 656
Chandler will become famous soon enough
Quote:
Originally Posted by Deadly_Killer View Post
You can easily check which one receives faster by script.

Example:
PHP Code:
//#CLIENTSIDE
function onPlayerChats() {
  if (
player.chat == "test") {
    
player.chat "Test";
  }
}

function 
ChatBar.onAction() {
  if (
ChatBar.text == "test") {
    
ChatBar.text "Too Fast";
  }

You will notice that when you say test, onPlayerChats would try to change it to Test. Though, it isn't as fast as reading the GUI Chat Bar which will make you say Too Fast before onPlayerChats is even called.
Would be better if you used echo to find which one is called first.
Reply With Quote
  #26  
Old 05-01-2007, 10:49 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 Deadly_Killer View Post
Why do you think we are trying to bash you? We are only giving suggestions to improve your coding.
I'm sorry, I've been in a bad mood lately. I overreacted, sorry everybody. I will add this to my code.
__________________
Reply With Quote
  #27  
Old 05-03-2007, 06:02 AM
theHAWKER theHAWKER is offline
**FLIP OUT**
theHAWKER's Avatar
Join Date: Mar 2006
Location: canada, vancouver
Posts: 768
theHAWKER is an unknown quantity at this point
Quote:
Originally Posted by cbkbud View Post
This is a bad word filter on I worked just for the sake of keeping up my scripting skills (no current jobs).
HTML Code:
-Features
-- If player says a word in the list (not capital sensitive) it is replaced by *
-- Will stop all of the following & more (for example, the word cat):
--- cat
--- scat--- scats
--- s cat
--- s cat s
--- c at
--- ca t
-- Very easy to customize.
This is very easy to customize, all you need to do is add words to this.words; for example:
PHP Code:
this.words = { "word""peace""dude" }; 
can be changed to
PHP Code:
this.words = { "hi""yo""peace""happy" }; 
or so.

You can find this.words in the onCreated function. Here is the code.

Code for Weapon/GUI-Script -Filter:
PHP Code:
// Created by Chris Zakuto
//#CLIENTSIDE
function onCreatedNULL )
{
  
this.words =
  {
    
"mac",
    
"for",
    
"lyfe"
  
};
}
function 
onPlayerChatsNULL )
{
  
  if ( 
temp.chars != NULL )
  {
    
temp.chars.clear();
  }
 
  
temp.chat player.chat;
  if ( 
temp.rchat != NULL )
  {
    
temp.rchat "";
  }
  if ( 
temp.spac != NULL )
  {
    
temp.spac 0;
  }
  for ( 
temp.0temp.temp.chat.length(); temp.++ )
  {
    if ( 
temp.chat.substringtemp.i) != " " )
    {
      
temp.chars.add( { temp.temp.spactemp.chat.substringtemp.i), temp.spac } );
      
temp.rchat temp.rchat temp.chat.substringtemp.i);
    }
    else
    {
      
temp.spac ++;
    }
  }
  for ( 
temp.atemp.chars )
  {
    
temp.= ( temp.rchat.length() - temp.a[0] ) + 1;
    
    for ( 
temp.0temp.temp.ntemp.++ )
    {
      for ( 
temp.ythis.words )
      {
        if ( 
temp.== temp.rchat.substringtemp.a[0], temp.) )
        {
          
temp.filter temp.rchat.substringtemp.a[0], temp.);
          
temp.filter2 temp.filter.length();
          if ( 
temp.zz != NULL )
          {
            
temp.zz "";
          }
          for ( 
temp.var = 0temp.var < temp.filter2temp.var ++ )
          {
            
temp.zz temp.zz "*";
          }
          
player.chat "[*]";
        }
      }
    }
  }

ur script dont work...
__________________
**FLIP OUT**
Reply With Quote
  #28  
Old 05-03-2007, 06:29 AM
killerogue killerogue is offline
Registered Omega
killerogue's Avatar
Join Date: Apr 2006
Location: United States
Posts: 1,920
killerogue is on a distinguished road
Send a message via AIM to killerogue Send a message via MSN to killerogue
Quote:
Originally Posted by theHAWKER View Post
ur script dont work...
Rather than telling him his script doesn't work, you could just as possibly be using it wrong dude. =/

Anyway, good job Chris.
__________________


REMEMBER, IF YOU REP ME, LEAVE A NAME!

Quote:
Originally Posted by haunter View Post
Graal admins don't die. They go to hell and regroup.
Quote:
Originally Posted by Inverness View Post
Without scripters, your graphics and levels wouldn't do anything but sit there and look pretty.
Reply With Quote
  #29  
Old 05-03-2007, 07:41 AM
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
Quote:
Originally Posted by Chandler View Post
Would be better if you used echo to find which one is called first.
ChatBar.onAction() is called first. Think about it: you press enter on that bar to make the player chat .

If you do,
PHP Code:
//#CLIENTSIDE
function ChatBar.onAction()
{
  
ChatBar.text "";
}

function 
onplayerchats()
{
  echo(
"Yay!");

You should not be able to see your player say anything nor any output in the F2 log.

Quote:
Originally Posted by theHAWKER View Post
ur script dont work...
Did you try and debug the script?
Reply With Quote
  #30  
Old 05-03-2007, 05:10 PM
Chandler Chandler is offline
Banned
Join Date: Jan 2007
Posts: 656
Chandler will become famous soon enough
Quote:
Originally Posted by Twinny View Post
ChatBar.onAction() is called first. Think about it: you press enter on that bar to make the player chat .

If you do,
PHP Code:
//#CLIENTSIDE
function ChatBar.onAction()
{
  
ChatBar.text "";
}

function 
onplayerchats()
{
  echo(
"Yay!");

You should not be able to see your player say anything nor any output in the F2 log.
Yes. BUT STILL USE ECHO!!
Reply With Quote
  #31  
Old 05-04-2007, 12:04 AM
theHAWKER theHAWKER is offline
**FLIP OUT**
theHAWKER's Avatar
Join Date: Mar 2006
Location: canada, vancouver
Posts: 768
theHAWKER is an unknown quantity at this point
Quote:
Originally Posted by killerogue View Post
Rather than telling him his script doesn't work, you could just as possibly be using it wrong dude. =/
ur always on my back >

why dont u just tell me how to use it instead of just picking me off.

i put it in the wepons thing and called it -filter or what ever but it wont work
__________________
**FLIP OUT**
Reply With Quote
  #32  
Old 05-04-2007, 12:24 AM
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 theHAWKER View Post
ur always on my back >

why dont u just tell me how to use it instead of just picking me off.

i put it in the wepons thing and called it -filter or what ever but it wont work
Be more specific, will you? Step by step what you did, and what happened at each step would be more useful in helping us to determine why it is not working.
__________________
Skyld
Reply With Quote
  #33  
Old 05-04-2007, 12:30 AM
theHAWKER theHAWKER is offline
**FLIP OUT**
theHAWKER's Avatar
Join Date: Mar 2006
Location: canada, vancouver
Posts: 768
theHAWKER is an unknown quantity at this point
Quote:
Originally Posted by Skyld View Post
Be more specific, will you? Step by step what you did, and what happened at each step would be more useful in helping us to determine why it is not working.
umkay:
Step number one: copy and past the script into the weapon named "-filter"
Step number two: test it
Step number three: go on forums and tell the world that it wont work
__________________
**FLIP OUT**
Reply With Quote
  #34  
Old 05-04-2007, 02:50 AM
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 theHAWKER View Post
umkay:
Step number one: copy and past the script into the weapon named "-filter"
Step number two: test it
Step number three: go on forums and tell the world that it wont work
Did you add any words to the list, and, did you add yourself the weapon?
__________________
Reply With Quote
  #35  
Old 02-12-2008, 07:02 AM
CountBleck CountBleck is offline
Twilight Town Owner
Join Date: Feb 2008
Posts: 11
CountBleck is an unknown quantity at this point
Awsome. Like it on my playerworld. per+
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 09:37 PM.


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